This file contains hidden or 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 wpse_131562_redirect() { | |
if ( ! is_user_logged_in() && is_checkout() ) ) { | |
// feel free to customize the following line to suit your needs | |
wp_redirect(home_url('/uye-girisi')); | |
exit; | |
} | |
} | |
add_action('template_redirect', 'wpse_131562_redirect'); |
This file contains hidden or 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 | |
$type = 'yacht'; | |
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; | |
if(isset($_GET)) { | |
if($liman != 0) { | |
$limanq = " | |
array( | |
'key' => 'yat_limanı', | |
'value' => ".$liman.", |
This file contains hidden or 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
$i = 0; | |
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
query_posts(array( | |
'post_type' => 'post', | |
'paged' => $paged, | |
'posts_per_page' => 6 | |
)); | |
while (have_posts()) : the_post(); $i++; ?> | |
... |
This file contains hidden or 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 | |
$sehiri = get_queried_object(); | |
if($sehiri->parent != 0 ) { | |
$ilce_selected = get_queried_object()->slug; | |
$yazi = get_queried_object()->name ." İlanlar"; | |
} else { | |
$sehir_selected = get_queried_object()->slug; | |
$yazi = get_queried_object()->name ." İlanlar"; | |
$child = get_queried_object()->term_id; | |
} |
This file contains hidden or 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 cariyazdir($id) | |
{ | |
$cari = Cari::where('musteriler_id', '=', $id)->orderBy('id', 'DESC')->get(); | |
$borc = Cari::where('musteriler_id', '=', $id)->sum('borc'); | |
$alacak = Cari::where('musteriler_id', '=', $id)->sum('alacak'); | |
$durum = $borc - $alacak; | |
$durum = number_format($durum,2,",","."); | |
$musteri = Musteriler::find($id); | |
$html = '<html lang="tr-TR"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>'; |
This file contains hidden or 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 sc_draw_calendar( $month, $year ){ | |
//start draw table | |
$calendar = '<table cellpadding="0" cellspacing="0" class="calendar">'; | |
$day_names = array( | |
0 => __('Pazar', 'pippin_sc'), | |
1 => __('Pazartesi', 'pippin_sc'), | |
2 => __('Salı', 'pippin_sc'), | |
3 => __('Çarşamba', 'pippin_sc'), |
This file contains hidden or 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 | |
/* | |
Plugin Name: Admin Menu | |
Description: Admin paneli ve mneü özelleştirme | |
Version: 0.1 | |
License: GPL | |
Author: Bülent Sakarya | |
Author URI: http://www.nivothemes.com | |
*/ |
This file contains hidden or 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
class dd_slider_meta { | |
public function __construct() { | |
if ( is_admin() ) { | |
add_action( 'load-post.php', array( $this, 'init_metabox' ) ); | |
add_action( 'load-post-new.php', array( $this, 'init_metabox' ) ); | |
} | |
} |
This file contains hidden or 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 | |
$lpa_az_args = array( | |
'posts_per_page' => -1, | |
'post_type' => 'urunler', | |
'orderby' => 'title', | |
'order' => 'ASC' | |
); | |
$lpa_az_posts = get_posts( $lpa_az_args ); |