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 if (function_exists('get_most_viewed')): ?> | |
<ul> | |
<?php get_most_viewed('both', 8); ?> | |
</ul> | |
<?php endif; ?> |
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 | |
$anarschi = get_post_meta($post->ID,'ozelalanismi', true); | |
if($anarschi != "") { ?> | |
<? echo strtolower($anarschi); ?> | |
<?php }else{ ?> | |
özel alan yok | |
<?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
<?php $anarschi = new WP_Query("showposts=3&cat=14"); while($anarschi->have_posts()) : $anarschi->the_post();?> | |
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></li> | |
<?php endwhile; ?> | |
//cat id - ise dahil değil |
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
$.fn.serializeObject = function() | |
{ | |
var o = {}; | |
var a = this.serializeArray(); | |
$.each(a, function() { | |
if (o[this.name]) { | |
if (!o[this.name].push) { | |
o[this.name] = [o[this.name]]; | |
} | |
o[this.name].push(this.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
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 " "; |
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
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 | |
$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
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); |
OlderNewer