This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div class="col-sm-offset-3 col-sm-9 col-xs-12"> | |
<ul class="nav nav-pills bar_tabs" role="tablist"> | |
@foreach(config('translatable.locales') as $count => $langs ) | |
<li role="presentation" @if($count == 0) class="active" @endif style="text-transform: uppercase;" ><a href="#{{$langs}}" aria-controls="{{$langs}}" role="tab" data-toggle="tab">{{$langs}}</a></li> | |
@endforeach | |
</ul> | |
</div> | |
<div class="clearfix"></div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Base Model | |
<?php | |
namespace App\Model; | |
use Dimsav\Translatable\Translatable; | |
use Illuminate\Database\Eloquent\Model; | |
class Ads extends Model |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<li class="dropdown "><a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ LaravelLocalization::getCurrentLocaleName() }}<i class="fa fa-angle-down"></i></a> | |
<ul class="dropdown-menu"> | |
@foreach(LaravelLocalization::getSupportedLocales() as $localeCode => $properties) | |
<li> | |
<a rel="alternate" hreflang="{{ $localeCode }}" href="{{ LaravelLocalization::getLocalizedURL($localeCode, '/', [], true) }}"> | |
{{ $properties['native'] }} | |
</a> | |
</li> | |
@endforeach |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Route::group( | |
[ | |
'prefix' => LaravelLocalization::setLocale(), | |
'middleware' => ['localeSessionRedirect', 'localizationRedirect', 'localeViewPath', 'site'], | |
], | |
function () { | |
Route::get('/', 'Front\SiteController@getIndex')->name('site.index'); | |
Route::get(LaravelLocalization::transRoute('routes.sayfa') . '/{page_slug?}', 'Front\SiteController@getPage')->name('site.page'); | |
Route::get(LaravelLocalization::transRoute('routes.kategori') . '/{cat?}', 'Front\SiteController@getCategories')->name('site.categories'); | |
Route::get(LaravelLocalization::transRoute('routes.urun') . '/{ads_slug?}', 'Front\SiteController@getProductDetail')->name('site.product'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function getLinkSettings() | |
{ | |
$settings = Setting::all(); | |
return view('backend.settings.settings', compact('settings')); | |
} | |
public function postSystemSettings(Request $request) | |
{ | |
$data = $request->except(['_token', '_method']); | |
foreach ($data as $key => $value) { | |
Setting::set($key, $value); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$columnSizes = [ | |
'sm' => [3, 9], | |
'xs' => [12, 12], | |
]; | |
?> | |
{!!BootForm::open($columnSizes)->action(route('admin.update'))->enctype('multipart/form-data') !!} | |
{!! BootForm::bind($variable) !!} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Route::group(array('domain' => '{magaza}.domain'), function ($magaza) { | |
if ($magaza == "www") { | |
Route::controller('/', 'SiteController'); | |
} | |
else { | |
Route::controller('/', 'MagazaController'); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$ipAddr = $_SERVER['REMOTE_ADDR']; | |
$geopluginURL = 'http://www.geoplugin.net/php.gp?ip=' . $ipAddr; | |
$addrDetailsArr = unserialize(file_get_contents($geopluginURL)); | |
$country = $addrDetailsArr['geoplugin_countryCode']; | |
if ($country == "US") | |
{ | |
?> | |
Amerikadan selamlar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Language File | |
* | |
* @package Freelance Manager | |
* @author wojoscripts.com | |
* @copyright 2012 | |
* @version $Id: language.php, v1.00 2012-01-10 10:11:25 gewa Exp $ | |
*/ | |
if (!defined("_VALID_PHP")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ozet($max_char, $more_link_text = '(devamı»)', $stripteaser = 0, $more_file = '') { | |
$content = get_the_content($more_link_text, $stripteaser, $more_file); | |
$content = apply_filters('the_content', $content); | |
$content = str_replace(']]>', ']]>', $content); | |
$content = strip_tags($content); | |
if (strlen($_GET['p']) > 0) { | |
echo ""; | |
echo $content; | |
echo " "; |