Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php if(file_exists(TEMPLATEPATH.'/lisans.php')) { require(get_template_directory..

Decoded Output download

<?php 
 
if(file_exists(TEMPLATEPATH.'/lisans.php')) { 
    require(get_template_directory() .'/lisans.php');/* iinde $lisans_anahtar deikeni var*/ 
    $lisans['site']=getenv('HTTP_HOST'); 
    if(substr($lisans['site'], 0, 4) == "www.") 
         $lisans['site']=substr($lisans['site'],4); 
    $lisans['hash']=wordwrap(strtoupper(md5(sha1($lisans['site'].'ajans'))),4,'-',true); 
    if($lisans['hash']!==$lisans_anahtar) 
    { 
        ?> 
        <form action="" method="post"> 
            Lisans Anahtar:<input type="text" name="keyy"> 
            <button type="submit"> Kaydet</button> 
        </form> 
        <?php 
        if($_POST && $_POST['keyy']){ 
            $dosyaadi = get_template_directory() ."/lisans.php"; 
            $dosya = fopen( $dosyaadi, "r+" ); 
            if( $dosya == false ) { 
                echo ( "Dosya alrken hata olutu." ); 
                exit(); 
            } 
            fwrite( $dosya, '<?php $lisans_anahtar="'.$_POST['keyy'].'"; ?>' ); 
            echo "Kayt Baarl <br>"; 
            fclose( $dosya ); 
            echo '<meta http-equiv="refresh" content="0; url='.get_bloginfo('url').'">'; 
        } 
        else{ 
            die('Doru Lisans Anahtarna Sahip deilsin.'); 
        } 
 
 
    } 
    else 
        unset($lisans); 
    /* st ksm lisans sistemi ellemeyin! */ 
 
 
 
/* admin panel */ 
require_once get_template_directory() .'/codestar-framework-1.0.2/cs-framework.php'; 
 
    function kisalt($metin, $uzunluk){ 
  	// substr ile belirlenen uzunlukta kesiyoruz 
        $metin = substr($metin, 0, $uzunluk)."..."; 
	// kesilen metindeki son kelimeyi buluyoruz 
        $metin_son = strrchr($metin, " "); 
	// son kelimeyi " ..." ile deitiriyoruz 
        $metin = str_replace($metin_son," ...", $metin); 
         
        return $metin; 
    } 
 
// Register Custom Post Type 
function proje_post_type() { 
 
	$labels = array( 
		'name'                  => _x( 'Projeler', 'Post Type General Name', 'text_domain' ), 
		'singular_name'         => _x( 'Proje', 'Post Type Singular Name', 'text_domain' ), 
		'menu_name'             => __( 'Projeler', 'text_domain' ), 
		'name_admin_bar'        => __( 'Proje', 'text_domain' ), 
		'archives'              => __( 'Item Archives', 'text_domain' ), 
		'attributes'            => __( 'Item Attributes', 'text_domain' ), 
		'parent_item_colon'     => __( 'Parent Item:', 'text_domain' ), 
		'all_items'             => __( 'Tm Projeler', 'text_domain' ), 
		'add_new_item'          => __( 'Add New Item', 'text_domain' ), 
		'add_new'               => __( 'Yeni Ekle', 'text_domain' ), 
		'new_item'              => __( 'New Item', 'text_domain' ), 
		'edit_item'             => __( 'Edit Item', 'text_domain' ), 
		'update_item'           => __( 'Update Item', 'text_domain' ), 
		'view_item'             => __( 'View Item', 'text_domain' ), 
		'view_items'            => __( 'View Items', 'text_domain' ), 
		'search_items'          => __( 'Search Item', 'text_domain' ), 
		'not_found'             => __( 'Not found', 'text_domain' ), 
		'not_found_in_trash'    => __( 'Not found in Trash', 'text_domain' ), 
		'featured_image'        => __( 'Featured Image', 'text_domain' ), 
		'set_featured_image'    => __( 'Set featured image', 'text_domain' ), 
		'remove_featured_image' => __( 'Remove featured image', 'text_domain' ), 
		'use_featured_image'    => __( 'Use as featured image', 'text_domain' ), 
		'insert_into_item'      => __( 'Insert into item', 'text_domain' ), 
		'uploaded_to_this_item' => __( 'Uploaded to this item', 'text_domain' ), 
		'items_list'            => __( 'Items list', 'text_domain' ), 
		'items_list_navigation' => __( 'Items list navigation', 'text_domain' ), 
		'filter_items_list'     => __( 'Filter items list', 'text_domain' ), 
	); 
	$rewrite = array( 
		'slug'                  => 'proje', 
		'with_front'            => true, 
		'pages'                 => true, 
		'feeds'                 => true, 
	); 
	$args = array( 
		'label'                 => __( 'Proje', 'text_domain' ), 
		'description'           => __( 'Tm projelerinizi ekleyebilirsiniz.', 'text_domain' ), 
		'labels'                => $labels, 
		'supports'              => array( 'title', 'editor', 'thumbnail', 'revisions' ), 
		'taxonomies'            => array( 'proje_category' ), 
		'hierarchical'          => false, 
		'public'                => true, 
		'show_ui'               => true, 
		'show_in_menu'          => true, 
		'menu_position'         => 5, 
		'menu_icon'             => 'dashicons-admin-page', 
		'show_in_admin_bar'     => true, 
		'show_in_nav_menus'     => true, 
		'can_export'            => true, 
		'has_archive'           => true, 
		'exclude_from_search'   => false, 
		'publicly_queryable'    => true, 
		'rewrite'               => $rewrite, 
		'capability_type'       => 'page', 
	); 
	register_post_type( 'projeler', $args ); 
 
} 
add_action( 'init', 'proje_post_type', 0 ); 
 
 
 
// Register Custom Taxonomy 
function urunkategori() { 
 
	$labels = array( 
		'name'                       => _x( 'Proje Kategorisi', 'Taxonomy General Name', 'text_domain' ), 
		'singular_name'              => _x( 'Proje Kategorisi', 'Taxonomy Singular Name', 'text_domain' ), 
		'menu_name'                  => __( 'Proje Kategorisi', 'text_domain' ), 
		'all_items'                  => __( 'All Items', 'text_domain' ), 
		'parent_item'                => __( 'Parent Item', 'text_domain' ), 
		'parent_item_colon'          => __( 'Parent Item:', 'text_domain' ), 
		'new_item_name'              => __( 'New Item Name', 'text_domain' ), 
		'add_new_item'               => __( 'Add New Item', 'text_domain' ), 
		'edit_item'                  => __( 'Edit Item', 'text_domain' ), 
		'update_item'                => __( 'Update Item', 'text_domain' ), 
		'view_item'                  => __( 'View Item', 'text_domain' ), 
		'separate_items_with_commas' => __( 'Separate items with commas', 'text_domain' ), 
		'add_or_remove_items'        => __( 'Add or remove items', 'text_domain' ), 
		'choose_from_most_used'      => __( 'Choose from the most used', 'text_domain' ), 
		'popular_items'              => __( 'Popular Items', 'text_domain' ), 
		'search_items'               => __( 'Search Items', 'text_domain' ), 
		'not_found'                  => __( 'Not Found', 'text_domain' ), 
		'no_terms'                   => __( 'No items', 'text_domain' ), 
		'items_list'                 => __( 'Items list', 'text_domain' ), 
		'items_list_navigation'      => __( 'Items list navigation', 'text_domain' ), 
	); 
	$args = array( 
		'labels'                     => $labels, 
		'hierarchical'               => true, 
		'public'                     => true, 
		'show_ui'                    => true, 
		'show_admin_column'          => true, 
		'show_in_nav_menus'          => true, 
		'show_tagcloud'              => true, 
	); 
	register_taxonomy( 'proje_category', array( 'projeler' ), $args ); 
 
} 
add_action( 'init', 'urunkategori', 0 ); 
 
 
 
function register_my_menus() { 
	register_nav_menus( 
		array( 
			'header-menu' => __( 'Header Menus' ) 
			//,'extra-menu' => __( 'Extra Menu' ) 
		) 
	); 
} 
add_action( 'init', 'register_my_menus' ); 
 
 
 
if (function_exists('add_theme_support')) {  
	add_theme_support( 'post-thumbnails' ); 
	set_post_thumbnail_size( 640, 480, true ); // Standart Deerler 
	add_image_size('home-blog', 540, 337, true); // Kk Resmimiz 
} 
 
 
 
if ( function_exists('register_sidebar') ) { 
 
	/* Widget Ekleyelim */ 
	register_sidebar(array( 
		'name' => 'Ana Sayfa', 
		'before_widget' => '', 
		'after_widget' => '', 
		'before_title' => '', 
		'after_title' => '', 
	)); 
} 
 
 
 
/* 
*############################################################################################# 
*############################################################################################# 
*						Ana Sayfa Hakkmda Bileeni 
*############################################################################################# 
*############################################################################################# 
*/ 
 
function presstr_home_hakkimda() { 
	register_widget( 'presstr_home_hakkimda_widget' ); 
} 
 
add_action( 'widgets_init', 'presstr_home_hakkimda' ); 
 
class presstr_home_hakkimda_widget extends WP_Widget { 
 
	function __construct() { 
		parent::__construct( 
			/* widget ID*/ 
			'presstr_home_hakkimda_widget', 
			/* widget name*/ 
			__('ANA SAYFA - Hakkmda', ' presstr_home_hakkimda_widget_domain'), 
			/* widget description*/ 
			array( 'description' => __( 'Bu widget sadece anasayfa ksmnda kullanlr. Bu bileen ile ksa bir hakkmda ksm oluturabilirsiniz.', 'presstr_home_hakkimda_widget_domain' ), ) 
		); 
	} 
	public function widget( $args, $instance ) { 
		$title = apply_filters( 'widget_title', $instance['title'] ); 
		$title2 = apply_filters( 'widget_title', $instance['title2'] ); 
		$title3 = apply_filters( 'widget_title', $instance['title3'] ); 
		$aciklamasi =  apply_filters( 'widget_title', $instance['aciklamasi'] ); 
		$image = apply_filters( 'widget_title', $instance['image'] ); 
		include( "widget/home/hakkimda.php" ); 
 
	} 
	function form( $instance ) { 
		/* Default Widget Settings */ 
		$defaults = array( 
			'title' => 'Hakkmzda', 
			'title2' => 'Demo Firma smi', 
			'title3' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod.', 
			'image' => ''.get_template_directory_uri().'/assets/img/about/2.jpg', 
			'aciklamasi' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.' 
		); 
		$instance = wp_parse_args( (array) $instance, $defaults );  
		?> 
 
		<script type="text/javascript">jQuery(document).ready( function(){ 
			function media_upload( button_class) { 
				var _custom_media = true, 
				_orig_send_attachment = wp.media.editor.send.attachment; 
				jQuery('body').on('click',button_class, function(e) { 
					var button_id ='#'+jQuery(this).attr('id'); 
					/* console.log(button_id); */ 
					var self = jQuery(button_id); 
					var send_attachment_bkp = wp.media.editor.send.attachment; 
					var button = jQuery(button_id); 
					var id = button.attr('id').replace('_button', ''); 
					_custom_media = true; 
					wp.media.editor.send.attachment = function(props, attachment){ 
						if ( _custom_media  ) { 
							jQuery('.custom_media_id').val(attachment.id);  
							jQuery('.custom_media_urlx').val(attachment.url); 
							jQuery('.custom_media_imagex').attr('src',attachment.url).css('display','block');    
						} else { 
							return _orig_send_attachment.apply( button_id, [props, attachment] ); 
						} 
					} 
					wp.media.editor.open(button); 
					return false; 
				}); 
			} 
			media_upload( '.custom_media_uploadx'); 
		}); 
	</script> 
 
	<p> 
		<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Balk:', 'thstlang') ?></label> 
		<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" /> 
	</p> 
 
	<p> 
		<label for="<?php echo $this->get_field_id( 'title2' ); ?>"><?php _e('Balk st:', 'thstlang') ?></label> 
		<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title2' ); ?>" name="<?php echo $this->get_field_name( 'title2' ); ?>" value="<?php echo $instance['title2']; ?>" /> 
	</p> 
 
	<p> 
		<label for="<?php echo $this->get_field_id( 'title3' ); ?>"><?php _e('Balk Alt:', 'thstlang') ?></label> 
		<textarea rows="4" class="widefat" id="<?php echo $this->get_field_id( 'title3' ); ?>" name="<?php echo $this->get_field_name( 'title3' ); ?>" ><?php echo $instance['title3']; ?></textarea>  
	</p> 
 
	<p> 
		<label for="<?php echo $this->get_field_id( 'aciklamasi' ); ?>"><?php _e('Ksa Aklama:', 'thstlang') ?></label> 
		<textarea rows="8" class="widefat" id="<?php echo $this->get_field_id( 'aciklamasi' ); ?>" name="<?php echo $this->get_field_name( 'aciklamasi' ); ?>" ><?php echo $instance['aciklamasi']; ?></textarea>  
	</p> 
 
 
	<p> 
		<label for="<?php echo $this->get_field_id('image'); ?>">Resim</label><br /> 
		<img class="custom_media_imagex" src="<?php if(!empty($instance['image'])){echo $instance['image'];} ?>" style="margin:0;padding:0;max-width:100%;float:none;margin-bottom:10px;display:inline-block" /> 
		<input type="text" class="widefat custom_media_urlx" name="<?php echo $this->get_field_name('image'); ?>" id="<?php echo $this->get_field_id('image'); ?>" value="<?php echo $instance['image']; ?>"> 
		<input type="button" value="<?php _e( 'Grsel Se', 'themename' ); ?>" class="button custom_media_uploadx" id="custom_image_uploader"/> 
	</p> 
 
	<?php  
} 
public function update( $new_instance, $old_instance ) { 
	$instance = array(); 
	$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : ''; 
	$instance['title3'] = ( ! empty( $new_instance['title3'] ) ) ? strip_tags( $new_instance['title3'] ) : ''; 
	$instance['title2'] = ( ! empty( $new_instance['title2'] ) ) ? strip_tags( $new_instance['title2'] ) : ''; 
	$instance['aciklamasi'] = ( ! empty( $new_instance['aciklamasi'] ) ) ? strip_tags( $new_instance['aciklamasi'] ) : ''; 
	$instance['image'] = ( ! empty( $new_instance['image'] ) ) ? strip_tags( $new_instance['image'] ) : ''; 
	return $instance; 
} 
 
} 
 
 
 
 
 
/* 
*############################################################################################# 
*############################################################################################# 
*						Ana Sayfa 3'l Hizmetler Bileeni 
*############################################################################################# 
*############################################################################################# 
*/ 
function presstr_home_ucluhizmetler() { 
	register_widget( 'presstr_home_ucluhizmetler_widget' ); 
} 
 
add_action( 'widgets_init', 'presstr_home_ucluhizmetler' ); 
 
class presstr_home_ucluhizmetler_widget extends WP_Widget { 
 
	function __construct() { 
		parent::__construct( 
			/* widget ID*/ 
			'presstr_home_ucluhizmetler_widget', 
			/* widget name*/ 
			__('ANA SAYFA - 3\'l Hizmetler', ' presstr_home_ucluhizmetler_widget_domain'), 
			/* widget description*/ 
			array( 'description' => __( 'Bu widget sadece anasayfa ksmnda kullanlr. Bu bileen ile 3 adet hizmetinizi n plana kartabilirsiniz...', 'presstr_home_ucluhizmetler_widget_domain' ), ) 
		); 
	} 
	public function widget( $args, $instance ) { 
		$title = apply_filters( 'widget_title', $instance['title'] ); 
		$aciklamasi =  apply_filters( 'widget_title', $instance['aciklamasi'] ); 
		$liste =  apply_filters( 'widget_title', $instance['liste'] ); 
		$icon =  apply_filters( 'widget_title', $instance['icon'] ); 
 
		$title2 = apply_filters( 'widget_title', $instance['title2'] ); 
		$aciklamasi2 =  apply_filters( 'widget_title', $instance['aciklamasi2'] ); 
		$liste2 =  apply_filters( 'widget_title', $instance['liste2'] ); 
		$icon2 =  apply_filters( 'widget_title', $instance['icon2'] ); 
 
		$title3 = apply_filters( 'widget_title', $instance['title3'] ); 
		$aciklamasi3 =  apply_filters( 'widget_title', $instance['aciklamasi3'] ); 
		$liste3 =  apply_filters( 'widget_title', $instance['liste3'] ); 
		$icon3 =  apply_filters( 'widget_title', $instance['icon3'] ); 
 
		$bilesentitle =  apply_filters( 'widget_title', $instance['bilesentitle'] ); 
		$bilesentitleustu =  apply_filters( 'widget_title', $instance['bilesentitleustu'] ); 
 
		include( "widget/home/ucluhizmetler.php" ); 
 
	} 
	function form( $instance ) { 
		/* Default Widget Settings */ 
		$defaults = array( 
			'title' => 'STRATEJK MEDYA PLANLAMA & SATIN ALMA', 
			'aciklamasi' => 'Digital reklamcln gelecei olan programatik satn alma ve bunun bir paras olan Real Time Bidding kavram lkemize hzla giri yapt.', 
			'liste' => 'Performans veren reklam modellerinin seilmesi 
Anlk optimizasyonlarn gerekletirilmesi 
Hedef kitlenin belirlenmesi gibi kriterleri oluturup', 
			'icon' => get_template_directory_uri().'/assets/img/service/2.png', 
 
 
			'title2' => 'STRATEJK MEDYA PLANLAMA & SATIN ALMA', 
			'aciklamasi2' => 'Digital reklamcln gelecei olan programatik satn alma ve bunun bir paras olan Real Time Bidding kavram lkemize hzla giri yapt.', 
			'liste2' => 'Performans veren reklam modellerinin seilmesi 
Anlk optimizasyonlarn gerekletirilmesi 
Hedef kitlenin belirlenmesi gibi kriterleri oluturup', 
			'icon2' => get_template_directory_uri().'/assets/img/service/2.png', 
 
 
			'title3' => 'STRATEJK MEDYA PLANLAMA & SATIN ALMA', 
			'aciklamasi3' => 'Digital reklamcln gelecei olan programatik satn alma ve bunun bir paras olan Real Time Bidding kavram lkemize hzla giri yapt.', 
			'liste3' => 'Performans veren reklam modellerinin seilmesi 
Anlk optimizasyonlarn gerekletirilmesi 
Hedef kitlenin belirlenmesi gibi kriterleri oluturup', 
			'icon3' => get_template_directory_uri().'/assets/img/service/2.png', 
 
			'bilesentitle' => 'Hizmetlerimiz', 
			'bilesentitleustu' => 'Sizin iin alma alanlarmz' 
		); 
		$instance = wp_parse_args( (array) $instance, $defaults );  
		?> 
 
		<script type="text/javascript">jQuery(document).ready( function(){ 
			function media_upload( button_class) { 
				var _custom_media = true, 
				_orig_send_attachment = wp.media.editor.send.attachment; 
				jQuery('body').on('click',button_class, function(e) { 
					var button_id ='#'+jQuery(this).attr('id'); 
					/* console.log(button_id); */ 
					var self = jQuery(button_id); 
					var send_attachment_bkp = wp.media.editor.send.attachment; 
					var button = jQuery(button_id); 
					var id = button.attr('id').replace('_button', ''); 
					_custom_media = true; 
					wp.media.editor.send.attachment = function(props, attachment){ 
						if ( _custom_media  ) { 
							jQuery('.custom_media_id').val(attachment.id);  
							jQuery('.custom_media_urlx').val(attachment.url); 
							jQuery('.custom_media_imagex').attr('src',attachment.url).css('display','block');    
						} else { 
							return _orig_send_attachment.apply( button_id, [props, attachment] ); 
						} 
					} 
					wp.media.editor.open(button); 
					return false; 
				}); 
			} 
			media_upload( '.custom_media_uploadx'); 
		}); 
	</script> 
 
	<script type="text/javascript">jQuery(document).ready( function(){ 
			function media_upload( button_class) { 
				var _custom_media = true, 
				_orig_send_attachment = wp.media.editor.send.attachment; 
				jQuery('body').on('click',button_class, function(e) { 
					var button_id ='#'+jQuery(this).attr('id'); 
					/* console.log(button_id); */ 
					var self = jQuery(button_id); 
					var send_attachment_bkp = wp.media.editor.send.attachment; 
					var button = jQuery(button_id); 
					var id = button.attr('id').replace('_button', ''); 
					_custom_media = true; 
					wp.media.editor.send.attachment = function(props, attachment){ 
						if ( _custom_media  ) { 
							jQuery('.custom_media_id').val(attachment.id);  
							jQuery('.custom_media_urlxx').val(attachment.url); 
							jQuery('.custom_media_imagexx').attr('src',attachment.url).css('display','block');    
						} else { 
							return _orig_send_attachment.apply( button_id, [props, attachment] ); 
						} 
					} 
					wp.media.editor.open(button); 
					return false; 
				}); 
			} 
			media_upload( '.custom_media_uploadxx'); 
		}); 
	</script> 
 
 
	<script type="text/javascript">jQuery(document).ready( function(){ 
			function media_upload( button_class) { 
				var _custom_media = true, 
				_orig_send_attachment = wp.media.editor.send.attachment; 
				jQuery('body').on('click',button_class, function(e) { 
					var button_id ='#'+jQuery(this).attr('id'); 
					/* console.log(button_id); */ 
					var self = jQuery(button_id); 
					var send_attachment_bkp = wp.media.editor.send.attachment; 
					var button = jQuery(button_id); 
					var id = button.attr('id').replace('_button', ''); 
					_custom_media = true; 
					wp.media.editor.send.attachment = function(props, attachment){ 
						if ( _custom_media  ) { 
							jQuery('.custom_media_id').val(attachment.id);  
							jQuery('.custom_media_urlxxx').val(attachment.url); 
							jQuery('.custom_media_imagexxx').attr('src',attachment.url).css('display','block');    
						} else { 
							return _orig_send_attachment.apply( button_id, [props, attachment] ); 
						} 
					} 
					wp.media.editor.open(button); 
					return false; 
				}); 
			} 
			media_upload( '.custom_media_uploadxxx'); 
		}); 
	</script> 
		<p> 
			<label for="<?php echo $this->get_field_id( 'bilesentitle' ); ?>"><?php _e('Bileen Balk:', 'thstlang') ?></label> 
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'bilesentitle' ); ?>" name="<?php echo $this->get_field_name( 'bilesentitle' ); ?>" value="<?php echo $instance['bilesentitle']; ?>" /> 
		</p> 
 
		<p> 
			<label for="<?php echo $this->get_field_id( 'bilesentitleustu' ); ?>"><?php _e('Bileen Balk st:', 'thstlang') ?></label> 
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'bilesentitleustu' ); ?>" name="<?php echo $this->get_field_name( 'bilesentitleustu' ); ?>" value="<?php echo $instance['bilesentitleustu']; ?>" /> 
		</p> 
 
	<hr> 
 
 
		<p> 
			<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Balk:', 'thstlang') ?></label> 
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" /> 
		</p> 
 
		<p> 
			<label for="<?php echo $this->get_field_id( 'aciklamasi' ); ?>"><?php _e('Ksa Aklama:', 'thstlang') ?></label> 
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'aciklamasi' ); ?>" name="<?php echo $this->get_field_name( 'aciklamasi' ); ?>" value="<?php echo $instance['aciklamasi']; ?>" /> 
		</p> 
 
		<p> 
			<label for="<?php echo $this->get_field_id( 'liste' ); ?>"><?php _e('Liste:', 'thstlang') ?> <small>Ltfen alt alta yaznz, her madde sonunda alt satra inin!</small></label> 
			<textarea rows="5" class="widefat" id="<?php echo $this->get_field_id( 'liste' ); ?>" name="<?php echo $this->get_field_name( 'liste' ); ?>" ><?php echo $instance['liste']; ?></textarea>  
		</p> 
 
		<p> 
			<label for="<?php echo $this->get_field_id('icon'); ?>">Icon(70x70px)</label><br /> 
			<img class="custom_media_imagex" src="<?php if(!empty($instance['icon'])){echo $instance['icon'];} ?>" style="margin:0;padding:0;max-width:100%;float:none;margin-bottom:10px;display:inline-block" /> 
			<input type="text" class="widefat custom_media_urlx" name="<?php echo $this->get_field_name('icon'); ?>" id="<?php echo $this->get_field_id('icon'); ?>" value="<?php echo $instance['icon']; ?>"> 
			<input type="button" value="<?php _e( 'Icon Ykle', 'themename' ); ?>" class="button custom_media_uploadx" id="custom_image_uploader"/> 
		</p> 
 
<hr> 
 
		<p> 
			<label for="<?php echo $this->get_field_id( 'title2' ); ?>"><?php _e('Balk:', 'thstlang') ?></label> 
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title2' ); ?>" name="<?php echo $this->get_field_name( 'title2' ); ?>" value="<?php echo $instance['title2']; ?>" /> 
		</p> 
 
		<p> 
			<label for="<?php echo $this->get_field_id( 'aciklamasi2' ); ?>"><?php _e('Ksa Aklama:', 'thstlang') ?></label> 
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'aciklamasi2' ); ?>" name="<?php echo $this->get_field_name( 'aciklamasi2' ); ?>" value="<?php echo $instance['aciklamasi2']; ?>" /> 
		</p> 
 
		<p> 
			<label for="<?php echo $this->get_field_id( 'liste2' ); ?>"><?php _e('Liste:', 'thstlang') ?> <small>Ltfen alt alta yaznz, her madde sonunda alt satra inin!</small></label> 
			<textarea rows="5" class="widefat" id="<?php echo $this->get_field_id( 'liste2' ); ?>" name="<?php echo $this->get_field_name( 'liste2' ); ?>" ><?php echo $instance['liste2']; ?></textarea>  
		</p> 
 
		<p> 
			<label for="<?php echo $this->get_field_id('icon2'); ?>">Icon(70x70px)</label><br /> 
			<img class="custom_media_imagexx" src="<?php if(!empty($instance['icon2'])){echo $instance['icon2'];} ?>" style="margin:0;padding:0;max-width:100%;float:none;margin-bottom:10px;display:inline-block" /> 
			<input type="text" class="widefat custom_media_urlxx" name="<?php echo $this->get_field_name('icon2'); ?>" id="<?php echo $this->get_field_id('icon2'); ?>" value="<?php echo $instance['icon2']; ?>"> 
			<input type="button" value="<?php _e( 'Icon Ykle', 'themename' ); ?>" class="button custom_media_uploadxx" id="custom_image_uploader"/> 
		</p> 
 
		<hr> 
 
		<p> 
			<label for="<?php echo $this->get_field_id( 'title3' ); ?>"><?php _e('Balk:', 'thstlang') ?></label> 
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title3' ); ?>" name="<?php echo $this->get_field_name( 'title3' ); ?>" value="<?php echo $instance['title3']; ?>" /> 
		</p> 
 
		<p> 
			<label for="<?php echo $this->get_field_id( 'aciklamasi3' ); ?>"><?php _e('Ksa Aklama:', 'thstlang') ?></label> 
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'aciklamasi3' ); ?>" name="<?php echo $this->get_field_name( 'aciklamasi3' ); ?>" value="<?php echo $instance['aciklamasi3']; ?>" /> 
		</p> 
 
		<p> 
			<label for="<?php echo $this->get_field_id( 'liste3' ); ?>"><?php _e('Liste:', 'thstlang') ?> <small>Ltfen alt alta yaznz, her madde sonunda alt satra inin!</small></label> 
			<textarea rows="5" class="widefat" id="<?php echo $this->get_field_id( 'liste3' ); ?>" name="<?php echo $this->get_field_name( 'liste3' ); ?>" ><?php echo $instance['liste3']; ?></textarea>  
		</p> 
 
		<p> 
			<label for="<?php echo $this->get_field_id('icon3'); ?>">Icon(70x70px)</label><br /> 
			<img class="custom_media_imagexxx" src="<?php if(!empty($instance['icon3'])){echo $instance['icon3'];} ?>" style="margin:0;padding:0;max-width:100%;float:none;margin-bottom:10px;display:inline-block" /> 
			<input type="text" class="widefat custom_media_urlxxx" name="<?php echo $this->get_field_name('icon3'); ?>" id="<?php echo $this->get_field_id('icon3'); ?>" value="<?php echo $instance['icon3']; ?>"> 
			<input type="button" value="<?php _e( 'Icon Ykle', 'themename' ); ?>" class="button custom_media_uploadxxx" id="custom_image_uploader"/> 
		</p> 
 
 
		<?php  
	} 
	public function update( $new_instance, $old_instance ) { 
		$instance = array(); 
		$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : ''; 
		$instance['aciklamasi'] = ( ! empty( $new_instance['aciklamasi'] ) ) ? strip_tags( $new_instance['aciklamasi'] ) : ''; 
		$instance['liste'] = ( ! empty( $new_instance['liste'] ) ) ? strip_tags( $new_instance['liste'] ) : ''; 
		$instance['icon'] = ( ! empty( $new_instance['icon'] ) ) ? strip_tags( $new_instance['icon'] ) : ''; 
 
		$instance['title2'] = ( ! empty( $new_instance['title2'] ) ) ? strip_tags( $new_instance['title2'] ) : ''; 
		$instance['aciklamasi2'] = ( ! empty( $new_instance['aciklamasi2'] ) ) ? strip_tags( $new_instance['aciklamasi2'] ) : ''; 
		$instance['liste2'] = ( ! empty( $new_instance['liste2'] ) ) ? strip_tags( $new_instance['liste2'] ) : ''; 
		$instance['icon2'] = ( ! empty( $new_instance['icon2'] ) ) ? strip_tags( $new_instance['icon2'] ) : ''; 
 
		$instance['title3'] = ( ! empty( $new_instance['title3'] ) ) ? strip_tags( $new_instance['title3'] ) : ''; 
		$instance['aciklamasi3'] = ( ! empty( $new_instance['aciklamasi3'] ) ) ? strip_tags( $new_instance['aciklamasi3'] ) : ''; 
		$instance['liste3'] = ( ! empty( $new_instance['liste3'] ) ) ? strip_tags( $new_instance['liste3'] ) : ''; 
		$instance['icon3'] = ( ! empty( $new_instance['icon3'] ) ) ? strip_tags( $new_instance['icon3'] ) : ''; 
 
		$instance['bilesentitleustu'] = ( ! empty( $new_instance['bilesentitleustu'] ) ) ? strip_tags( $new_instance['bilesentitleustu'] ) : ''; 
		$instance['bilesentitle'] = ( ! empty( $new_instance['bilesentitle'] ) ) ? strip_tags( $new_instance['bilesentitle'] ) : ''; 
		return $instance;  
	} 
 
} 
 
 
 
/* 
*############################################################################################# 
*############################################################################################# 
*						Ana Sayfa Projeler Bileeni 
*############################################################################################# 
*############################################################################################# 
*/ 
function presstr_home_projeler() { 
	register_widget( 'presstr_home_projeler_widget' ); 
} 
 
add_action( 'widgets_init', 'presstr_home_projeler' ); 
 
class presstr_home_projeler_widget extends WP_Widget { 
 
	function __construct() { 
		parent::__construct( 
			/* widget ID*/ 
			'presstr_home_projeler_widget', 
			/* widget name*/ 
			__('ANA SAYFA - Projeler', ' presstr_home_projeler_widget_domain'), 
			/* widget description*/ 
			array( 'description' => __( 'Bu widget sadece anasayfa ksmnda kullanlr. Bu bileen ile son eklediiniz projeleri listeleyebilirsiniz...', 'presstr_home_projeler_widget_domain' ), ) 
		); 
	} 
	public function widget( $args, $instance ) { 
		$title = apply_filters( 'widget_title', $instance['title'] ); 
		$titleustu =  apply_filters( 'widget_title', $instance['titleustu'] ); 
		$kacadet =  apply_filters( 'widget_title', $instance['kacadet'] ); 
 
		$linkbasligi =  apply_filters( 'widget_title', $instance['linkbasligi'] ); 
		$linkurlsi =  apply_filters( 'widget_title', $instance['linkurlsi'] ); 
		include( "widget/home/projeler.php" ); 
	} 
	function form( $instance ) { 
		/* Default Widget Settings */ 
		$defaults = array( 
			'title' => 'Projelerimiz', 
			'titleustu' => 'lham veren', 
			'linkbasligi' => 'Tm Projeler', 
			'linkurlsi' => '#', 
			'kacadet' => 4 
		); 
		$instance = wp_parse_args( (array) $instance, $defaults );  
		?> 
		<p> 
			<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Balk:', 'thstlang') ?></label> 
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" /> 
		</p> 
 
		<p> 
			<label for="<?php echo $this->get_field_id( 'titleustu' ); ?>"><?php _e('Balk st:', 'thstlang') ?></label> 
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'titleustu' ); ?>" name="<?php echo $this->get_field_name( 'titleustu' ); ?>" value="<?php echo $instance['titleustu']; ?>" /> 
		</p> 
 
		<p> 
			<label for="<?php echo $this->get_field_id( 'kacadet' ); ?>"><?php _e('Ka Adet:', 'thstlang') ?></label> 
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'kacadet' ); ?>" name="<?php echo $this->get_field_name( 'kacadet' ); ?>" value="<?php echo $instance['kacadet']; ?>" /> 
		</p> 
 
		<p> 
			Herhangi bir ayara ihtiyacnz yok! 
		</p> 
 
		<p> 
			<label for="<?php echo $this->get_field_id( 'linkbasligi' ); ?>"><?php _e('Link Bal:', 'thstlang') ?></label> 
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'linkbasligi' ); ?>" name="<?php echo $this->get_field_name( 'linkbasligi' ); ?>" value="<?php echo $instance['linkbasligi']; ?>" /> 
		</p> 
 
		<p> 
			<label for="<?php echo $this->get_field_id( 'linkurlsi' ); ?>"><?php _e('Link Urlsi:', 'thstlang') ?></label> 
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'linkurlsi' ); ?>" name="<?php echo $this->get_field_name( 'linkurlsi' ); ?>" value="<?php echo $instance['linkurlsi']; ?>" /> 
		</p> 
		<?php  
	} 
	public function update( $new_instance, $old_instance ) { 
		$instance = array(); 
		$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : ''; 
		$instance['kacadet'] = ( ! empty( $new_instance['kacadet'] ) ) ? strip_tags( $new_instance['kacadet'] ) : ''; 
		$instance['titleustu'] = ( ! empty( $new_instance['titleustu'] ) ) ? strip_tags( $new_instance['titleustu'] ) : ''; 
 
		$instance['linkbasligi'] = ( ! empty( $new_instance['linkbasligi'] ) ) ? strip_tags( $new_instance['linkbasligi'] ) : ''; 
		$instance['linkurlsi'] = ( ! empty( $new_instance['linkurlsi'] ) ) ? strip_tags( $new_instance['linkurlsi'] ) : ''; 
		return $instance; 
	} 
 
} 
 
 
 
/* 
*############################################################################################# 
*############################################################################################# 
*						Ana Sayfa Ekibimiz Bileeni 
*############################################################################################# 
*############################################################################################# 
*/ 
 
function presstr_home_ekibimiz() { 
	register_widget( 'presstr_home_ekibimiz_widget' ); 
} 
 
add_action( 'widgets_init', 'presstr_home_ekibimiz' ); 
 
class presstr_home_ekibimiz_widget extends WP_Widget { 
 
	function __construct() { 
		parent::__construct( 
			/* widget ID*/ 
			'presstr_home_ekibimiz_widget', 
			/* widget name*/ 
			__('ANA SAYFA - Ekibimiz', ' presstr_home_ekibimiz_widget_domain'), 
			/* widget description*/ 
			array( 'description' => __( 'Bu widget sadece anasayfa ksmnda kullanlr. Bu bileen ile ekibinizdeki kiileri listeleyebilirsiniz...', 'presstr_home_ekibimiz_widget_domain' ), ) 
		); 
	} 
	public function widget( $args, $instance ) { 
		$title = apply_filters( 'widget_title', $instance['title'] ); 
		$titleustu =  apply_filters( 'widget_title', $instance['titleustu'] ); 
		include( "widget/home/ekibim.php" ); 
 
	} 
	function form( $instance ) { 
		/* Default Widget Settings */ 
		$defaults = array( 
			'title' => 'Ekibimiz', 
			'titleustu' => 'Muhteem' 
		); 
		$instance = wp_parse_args( (array) $instance, $defaults );  
		?> 
		<p> 
			<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Balk:', 'thstlang') ?></label> 
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" /> 
		</p> 
 
		<p> 
			<label for="<?php echo $this->get_field_id( 'titleustu' ); ?>"><?php _e('Balk st:', 'thstlang') ?></label> 
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'titleustu' ); ?>" name="<?php echo $this->get_field_name( 'titleustu' ); ?>" value="<?php echo $instance['titleustu']; ?>" /> 
		</p> 
 
		<p> 
			Herhangi bir ayara ihtiyacnz yok! 
		</p> 
		<?php  
	} 
	public function update( $new_instance, $old_instance ) { 
		$instance = array(); 
		$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : ''; 
		$instance['titleustu'] = ( ! empty( $new_instance['titleustu'] ) ) ? strip_tags( $new_instance['titleustu'] ) : ''; 
		return $instance; 
	} 
 
} 
 
 
 
 
 
 
/* 
*############################################################################################# 
*############################################################################################# 
*						Ana Sayfa Blog Bileeni Kategorili 
*############################################################################################# 
*############################################################################################# 
*/ 
function presstr_home_blog_kategorili() { 
	register_widget( 'presstr_home_blog_kategorili_widget' ); 
} 
 
add_action( 'widgets_init', 'presstr_home_blog_kategorili' ); 
 
class presstr_home_blog_kategorili_widget extends WP_Widget { 
 
	function __construct() { 
		parent::__construct( 
			/* widget ID*/ 
			'presstr_home_blog_kategorili_widget', 
			/* widget name*/ 
			__('ANA SAYFA - Kategorili Yazlar', ' presstr_home_blog_kategorili_widget_domain'), 
			/* widget description*/ 
			array( 'description' => __( 'Bu widget sadece anasayfa ksmnda kullanlr. Bu bileen ile setiiniz kategorideki ierikleri yazdrabilirsiniz.', 'presstr_home_blog_kategorili_widget_domain' ), ) 
		); 
	} 
	public function widget( $args, $instance ) { 
		$title = apply_filters( 'widget_title', $instance['title'] ); 
		$titleustu = apply_filters( 'widget_title', $instance['titleustu'] ); 
		$kacadet =  apply_filters( 'widget_title', $instance['kacadet'] ); 
		$kat2 =  apply_filters( 'widget_title', $instance['kwtax'] ); 
		include( "widget/home/blog-kat.php" ); 
 
	} 
	function form( $instance ) { 
		/* Default Widget Settings */ 
		$defaults = array( 
			'titleustu' => 'Son', 
			'title' => 'Haberlerimiz', 
			'kacadet' => 6 
		); 
		$instance = wp_parse_args( (array) $instance, $defaults );  
		?> 
		<p> 
			<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Balk:', 'thstlang') ?></label> 
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" /> 
		</p> 
 
		<p> 
			<label for="<?php echo $this->get_field_id( 'titleustu' ); ?>"><?php _e('Balk:', 'thstlang') ?></label> 
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'titleustu' ); ?>" name="<?php echo $this->get_field_name( 'titleustu' ); ?>" value="<?php echo $instance['titleustu']; ?>" /> 
		</p> 
 
		<p> 
			<label for="<?php echo $this->get_field_id( 'kacadet' ); ?>"><?php _e('Ka Adet:', 'thstlang') ?></label> 
			<input type="number" class="widefat" id="<?php echo $this->get_field_id( 'kacadet' ); ?>" name="<?php echo $this->get_field_name( 'kacadet' ); ?>" value="<?php echo $instance['kacadet']; ?>" /> 
		</p> 
 
		<p> 
			<label for="<?php echo $this->get_field_id( 'kategori' ); ?>"><?php _e('Haber Kategorisi:', 'thstlang') ?></label> 
			<select id="<?php echo $this->get_field_id('kwtax'); ?>" name="<?php echo $this->get_field_name('kwtax'); ?>" class="widefat" style="width:100%;"> 
				<?php foreach(get_terms('category') as $term) { ?> 
					<option <?php selected( $instance['kwtax'], $term->term_id ); ?> value="<?php echo $term->term_id; ?>"><?php echo $term->name; ?></option> 
				<?php } ?>       
			</select> 
		</p> 
		<?php  
	} 
	public function update( $new_instance, $old_instance ) { 
		$instance = array(); 
		$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : ''; 
		$instance['titleustu'] = ( ! empty( $new_instance['titleustu'] ) ) ? strip_tags( $new_instance['titleustu'] ) : ''; 
		$instance['kacadet'] = ( ! empty( $new_instance['kacadet'] ) ) ? strip_tags( $new_instance['kacadet'] ) : ''; 
		$instance['kwtax'] = ( ! empty( $new_instance['kwtax'] ) ) ? strip_tags( $new_instance['kwtax'] ) : ''; 
		return $instance; 
	} 
 
} 
 
 
/* 
*############################################################################################# 
*############################################################################################# 
*						Ana Sayfa Blog Bileeni Son 
*############################################################################################# 
*############################################################################################# 
*/ 
function presstr_home_blog_son() { 
	register_widget( 'presstr_home_blog_son_widget' ); 
} 
 
add_action( 'widgets_init', 'presstr_home_blog_son' ); 
 
class presstr_home_blog_son_widget extends WP_Widget { 
 
	function __construct() { 
		parent::__construct( 
			/* widget ID*/ 
			'presstr_home_blog_son_widget', 
			/* widget name*/ 
			__('ANA SAYFA - Son Yazlar', ' presstr_home_blog_son_widget_domain'), 
			/* widget description*/ 
			array( 'description' => __( 'Bu widget sadece anasayfa ksmnda kullanlr. Bu bileen son yazlar listeleyebilirsiniz...', 'presstr_home_blog_son_widget_domain' ), ) 
		); 
	} 
	public function widget( $args, $instance ) { 
		$title = apply_filters( 'widget_title', $instance['title'] ); 
		$titleustu = apply_filters( 'widget_title', $instance['titleustu'] ); 
		$kacadet =  apply_filters( 'widget_title', $instance['kacadet'] ); 
		$kat2 =  apply_filters( 'widget_title', $instance['kwtax'] ); 
		include( "widget/home/blog-son.php" ); 
 
	} 
	function form( $instance ) { 
		/* Default Widget Settings */ 
		$defaults = array( 
			'titleustu' => 'Son', 
			'title' => 'Haberlerimiz', 
			'kacadet' => 6 
		); 
		$instance = wp_parse_args( (array) $instance, $defaults );  
		?> 
		<p> 
			<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Balk:', 'thstlang') ?></label> 
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" /> 
		</p> 
 
		<p> 
			<label for="<?php echo $this->get_field_id( 'titleustu' ); ?>"><?php _e('Balk:', 'thstlang') ?></label> 
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'titleustu' ); ?>" name="<?php echo $this->get_field_name( 'titleustu' ); ?>" value="<?php echo $instance['titleustu']; ?>" /> 
		</p> 
 
		<p> 
			<label for="<?php echo $this->get_field_id( 'kacadet' ); ?>"><?php _e('Ka Adet:', 'thstlang') ?></label> 
			<input type="number" class="widefat" id="<?php echo $this->get_field_id( 'kacadet' ); ?>" name="<?php echo $this->get_field_name( 'kacadet' ); ?>" value="<?php echo $instance['kacadet']; ?>" /> 
		</p> 
		<?php  
	} 
	public function update( $new_instance, $old_instance ) { 
		$instance = array(); 
		$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : ''; 
		$instance['titleustu'] = ( ! empty( $new_instance['titleustu'] ) ) ? strip_tags( $new_instance['titleustu'] ) : ''; 
		$instance['kacadet'] = ( ! empty( $new_instance['kacadet'] ) ) ? strip_tags( $new_instance['kacadet'] ) : ''; 
		return $instance; 
	} 
 
} 
 
 
 
/* 
*############################################################################################# 
*############################################################################################# 
*						Ana Sayfa Kullanc Yorumlar Bileeni 
*############################################################################################# 
*############################################################################################# 
*/ 
function presstr_home_kullaniciyorumlari() { 
	register_widget( 'presstr_home_kullaniciyorumlari_widget' ); 
} 
 
add_action( 'widgets_init', 'presstr_home_kullaniciyorumlari' ); 
 
class presstr_home_kullaniciyorumlari_widget extends WP_Widget { 
 
	function __construct() { 
		parent::__construct( 
			/* widget ID*/ 
			'presstr_home_kullaniciyorumlari_widget', 
			/* widget name*/ 
			__('ANA SAYFA - Kullanc Yorumlar', ' presstr_home_kullaniciyorumlari_widget_domain'), 
			/* widget description*/ 
			array( 'description' => __( 'Bu widget sadece anasayfa ksmnda kullanlr. Bu bileen ile kullanclarnzn yorumlarn listeleyebilirsiniz.', 'presstr_home_kullaniciyorumlari_widget_domain' ), ) 
		); 
	} 
	public function widget( $args, $instance ) { 
		$title = apply_filters( 'widget_title', $instance['title'] ); 
		$titleustu =  apply_filters( 'widget_title', $instance['titleustu'] ); 
		include( "widget/home/kullaniciyorumlari.php" ); 
 
	} 
	function form( $instance ) { 
		/* Default Widget Settings */ 
		$defaults = array( 
			'title' => 'Sizin Yorumlarnz', 
			'titleustu' => 'Notlar &' 
		); 
		$instance = wp_parse_args( (array) $instance, $defaults );  
		?> 
		<p> 
			<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Balk:', 'thstlang') ?></label> 
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" /> 
		</p> 
 
		<p> 
			<label for="<?php echo $this->get_field_id( 'titleustu' ); ?>"><?php _e('Balk:', 'thstlang') ?></label> 
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'titleustu' ); ?>" name="<?php echo $this->get_field_name( 'titleustu' ); ?>" value="<?php echo $instance['titleustu']; ?>" /> 
		</p> 
		<p> 
			Herhangi bir ayara ihtiya yok, Tema panelinden yorum ekleyebilirsiniz. 
		</p> 
		<?php  
	} 
	public function update( $new_instance, $old_instance ) { 
		$instance = array(); 
		$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : ''; 
		$instance['titleustu'] = ( ! empty( $new_instance['titleustu'] ) ) ? strip_tags( $new_instance['titleustu'] ) : ''; 
		return $instance; 
	} 
 
} 
 
 
 
/* Lisans Sisteminin son ssl parantezi */ 
} 
 
else{ die('Temanzda lisans dosyas bulunamad.'); } 
?>

Did this file decode correctly?

Original Code

<?php

if(file_exists(TEMPLATEPATH.'/lisans.php')) {
    require(get_template_directory() .'/lisans.php');/* iinde $lisans_anahtar deikeni var*/
    $lisans['site']=getenv('HTTP_HOST');
    if(substr($lisans['site'], 0, 4) == "www.")
         $lisans['site']=substr($lisans['site'],4);
    $lisans['hash']=wordwrap(strtoupper(md5(sha1($lisans['site'].'ajans'))),4,'-',true);
    if($lisans['hash']!==$lisans_anahtar)
    {
        ?>
        <form action="" method="post">
            Lisans Anahtar:<input type="text" name="keyy">
            <button type="submit"> Kaydet</button>
        </form>
        <?php
        if($_POST && $_POST['keyy']){
            $dosyaadi = get_template_directory() ."/lisans.php";
            $dosya = fopen( $dosyaadi, "r+" );
            if( $dosya == false ) {
                echo ( "Dosya alrken hata olutu." );
                exit();
            }
            fwrite( $dosya, '<?php $lisans_anahtar="'.$_POST['keyy'].'"; ?>' );
            echo "Kayt Baarl <br>";
            fclose( $dosya );
            echo '<meta http-equiv="refresh" content="0; url='.get_bloginfo('url').'">';
        }
        else{
            die('Doru Lisans Anahtarna Sahip deilsin.');
        }


    }
    else
        unset($lisans);
    /* st ksm lisans sistemi ellemeyin! */



/* admin panel */
require_once get_template_directory() .'/codestar-framework-1.0.2/cs-framework.php';

    function kisalt($metin, $uzunluk){
  	// substr ile belirlenen uzunlukta kesiyoruz
        $metin = substr($metin, 0, $uzunluk)."...";
	// kesilen metindeki son kelimeyi buluyoruz
        $metin_son = strrchr($metin, " ");
	// son kelimeyi " ..." ile deitiriyoruz
        $metin = str_replace($metin_son," ...", $metin);
        
        return $metin;
    }

// Register Custom Post Type
function proje_post_type() {

	$labels = array(
		'name'                  => _x( 'Projeler', 'Post Type General Name', 'text_domain' ),
		'singular_name'         => _x( 'Proje', 'Post Type Singular Name', 'text_domain' ),
		'menu_name'             => __( 'Projeler', 'text_domain' ),
		'name_admin_bar'        => __( 'Proje', 'text_domain' ),
		'archives'              => __( 'Item Archives', 'text_domain' ),
		'attributes'            => __( 'Item Attributes', 'text_domain' ),
		'parent_item_colon'     => __( 'Parent Item:', 'text_domain' ),
		'all_items'             => __( 'Tm Projeler', 'text_domain' ),
		'add_new_item'          => __( 'Add New Item', 'text_domain' ),
		'add_new'               => __( 'Yeni Ekle', 'text_domain' ),
		'new_item'              => __( 'New Item', 'text_domain' ),
		'edit_item'             => __( 'Edit Item', 'text_domain' ),
		'update_item'           => __( 'Update Item', 'text_domain' ),
		'view_item'             => __( 'View Item', 'text_domain' ),
		'view_items'            => __( 'View Items', 'text_domain' ),
		'search_items'          => __( 'Search Item', 'text_domain' ),
		'not_found'             => __( 'Not found', 'text_domain' ),
		'not_found_in_trash'    => __( 'Not found in Trash', 'text_domain' ),
		'featured_image'        => __( 'Featured Image', 'text_domain' ),
		'set_featured_image'    => __( 'Set featured image', 'text_domain' ),
		'remove_featured_image' => __( 'Remove featured image', 'text_domain' ),
		'use_featured_image'    => __( 'Use as featured image', 'text_domain' ),
		'insert_into_item'      => __( 'Insert into item', 'text_domain' ),
		'uploaded_to_this_item' => __( 'Uploaded to this item', 'text_domain' ),
		'items_list'            => __( 'Items list', 'text_domain' ),
		'items_list_navigation' => __( 'Items list navigation', 'text_domain' ),
		'filter_items_list'     => __( 'Filter items list', 'text_domain' ),
	);
	$rewrite = array(
		'slug'                  => 'proje',
		'with_front'            => true,
		'pages'                 => true,
		'feeds'                 => true,
	);
	$args = array(
		'label'                 => __( 'Proje', 'text_domain' ),
		'description'           => __( 'Tm projelerinizi ekleyebilirsiniz.', 'text_domain' ),
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', 'thumbnail', 'revisions' ),
		'taxonomies'            => array( 'proje_category' ),
		'hierarchical'          => false,
		'public'                => true,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 5,
		'menu_icon'             => 'dashicons-admin-page',
		'show_in_admin_bar'     => true,
		'show_in_nav_menus'     => true,
		'can_export'            => true,
		'has_archive'           => true,
		'exclude_from_search'   => false,
		'publicly_queryable'    => true,
		'rewrite'               => $rewrite,
		'capability_type'       => 'page',
	);
	register_post_type( 'projeler', $args );

}
add_action( 'init', 'proje_post_type', 0 );



// Register Custom Taxonomy
function urunkategori() {

	$labels = array(
		'name'                       => _x( 'Proje Kategorisi', 'Taxonomy General Name', 'text_domain' ),
		'singular_name'              => _x( 'Proje Kategorisi', 'Taxonomy Singular Name', 'text_domain' ),
		'menu_name'                  => __( 'Proje Kategorisi', 'text_domain' ),
		'all_items'                  => __( 'All Items', 'text_domain' ),
		'parent_item'                => __( 'Parent Item', 'text_domain' ),
		'parent_item_colon'          => __( 'Parent Item:', 'text_domain' ),
		'new_item_name'              => __( 'New Item Name', 'text_domain' ),
		'add_new_item'               => __( 'Add New Item', 'text_domain' ),
		'edit_item'                  => __( 'Edit Item', 'text_domain' ),
		'update_item'                => __( 'Update Item', 'text_domain' ),
		'view_item'                  => __( 'View Item', 'text_domain' ),
		'separate_items_with_commas' => __( 'Separate items with commas', 'text_domain' ),
		'add_or_remove_items'        => __( 'Add or remove items', 'text_domain' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'text_domain' ),
		'popular_items'              => __( 'Popular Items', 'text_domain' ),
		'search_items'               => __( 'Search Items', 'text_domain' ),
		'not_found'                  => __( 'Not Found', 'text_domain' ),
		'no_terms'                   => __( 'No items', 'text_domain' ),
		'items_list'                 => __( 'Items list', 'text_domain' ),
		'items_list_navigation'      => __( 'Items list navigation', 'text_domain' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
	);
	register_taxonomy( 'proje_category', array( 'projeler' ), $args );

}
add_action( 'init', 'urunkategori', 0 );



function register_my_menus() {
	register_nav_menus(
		array(
			'header-menu' => __( 'Header Menus' )
			//,'extra-menu' => __( 'Extra Menu' )
		)
	);
}
add_action( 'init', 'register_my_menus' );



if (function_exists('add_theme_support')) { 
	add_theme_support( 'post-thumbnails' );
	set_post_thumbnail_size( 640, 480, true ); // Standart Deerler
	add_image_size('home-blog', 540, 337, true); // Kk Resmimiz
}



if ( function_exists('register_sidebar') ) {

	/* Widget Ekleyelim */
	register_sidebar(array(
		'name' => 'Ana Sayfa',
		'before_widget' => '',
		'after_widget' => '',
		'before_title' => '',
		'after_title' => '',
	));
}



/*
*#############################################################################################
*#############################################################################################
*						Ana Sayfa Hakkmda Bileeni
*#############################################################################################
*#############################################################################################
*/

function presstr_home_hakkimda() {
	register_widget( 'presstr_home_hakkimda_widget' );
}

add_action( 'widgets_init', 'presstr_home_hakkimda' );

class presstr_home_hakkimda_widget extends WP_Widget {

	function __construct() {
		parent::__construct(
			/* widget ID*/
			'presstr_home_hakkimda_widget',
			/* widget name*/
			__('ANA SAYFA - Hakkmda', ' presstr_home_hakkimda_widget_domain'),
			/* widget description*/
			array( 'description' => __( 'Bu widget sadece anasayfa ksmnda kullanlr. Bu bileen ile ksa bir hakkmda ksm oluturabilirsiniz.', 'presstr_home_hakkimda_widget_domain' ), )
		);
	}
	public function widget( $args, $instance ) {
		$title = apply_filters( 'widget_title', $instance['title'] );
		$title2 = apply_filters( 'widget_title', $instance['title2'] );
		$title3 = apply_filters( 'widget_title', $instance['title3'] );
		$aciklamasi =  apply_filters( 'widget_title', $instance['aciklamasi'] );
		$image = apply_filters( 'widget_title', $instance['image'] );
		include( "widget/home/hakkimda.php" );

	}
	function form( $instance ) {
		/* Default Widget Settings */
		$defaults = array(
			'title' => 'Hakkmzda',
			'title2' => 'Demo Firma smi',
			'title3' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod.',
			'image' => ''.get_template_directory_uri().'/assets/img/about/2.jpg',
			'aciklamasi' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'
		);
		$instance = wp_parse_args( (array) $instance, $defaults ); 
		?>

		<script type="text/javascript">jQuery(document).ready( function(){
			function media_upload( button_class) {
				var _custom_media = true,
				_orig_send_attachment = wp.media.editor.send.attachment;
				jQuery('body').on('click',button_class, function(e) {
					var button_id ='#'+jQuery(this).attr('id');
					/* console.log(button_id); */
					var self = jQuery(button_id);
					var send_attachment_bkp = wp.media.editor.send.attachment;
					var button = jQuery(button_id);
					var id = button.attr('id').replace('_button', '');
					_custom_media = true;
					wp.media.editor.send.attachment = function(props, attachment){
						if ( _custom_media  ) {
							jQuery('.custom_media_id').val(attachment.id); 
							jQuery('.custom_media_urlx').val(attachment.url);
							jQuery('.custom_media_imagex').attr('src',attachment.url).css('display','block');   
						} else {
							return _orig_send_attachment.apply( button_id, [props, attachment] );
						}
					}
					wp.media.editor.open(button);
					return false;
				});
			}
			media_upload( '.custom_media_uploadx');
		});
	</script>

	<p>
		<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Balk:', 'thstlang') ?></label>
		<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" />
	</p>

	<p>
		<label for="<?php echo $this->get_field_id( 'title2' ); ?>"><?php _e('Balk st:', 'thstlang') ?></label>
		<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title2' ); ?>" name="<?php echo $this->get_field_name( 'title2' ); ?>" value="<?php echo $instance['title2']; ?>" />
	</p>

	<p>
		<label for="<?php echo $this->get_field_id( 'title3' ); ?>"><?php _e('Balk Alt:', 'thstlang') ?></label>
		<textarea rows="4" class="widefat" id="<?php echo $this->get_field_id( 'title3' ); ?>" name="<?php echo $this->get_field_name( 'title3' ); ?>" ><?php echo $instance['title3']; ?></textarea> 
	</p>

	<p>
		<label for="<?php echo $this->get_field_id( 'aciklamasi' ); ?>"><?php _e('Ksa Aklama:', 'thstlang') ?></label>
		<textarea rows="8" class="widefat" id="<?php echo $this->get_field_id( 'aciklamasi' ); ?>" name="<?php echo $this->get_field_name( 'aciklamasi' ); ?>" ><?php echo $instance['aciklamasi']; ?></textarea> 
	</p>


	<p>
		<label for="<?php echo $this->get_field_id('image'); ?>">Resim</label><br />
		<img class="custom_media_imagex" src="<?php if(!empty($instance['image'])){echo $instance['image'];} ?>" style="margin:0;padding:0;max-width:100%;float:none;margin-bottom:10px;display:inline-block" />
		<input type="text" class="widefat custom_media_urlx" name="<?php echo $this->get_field_name('image'); ?>" id="<?php echo $this->get_field_id('image'); ?>" value="<?php echo $instance['image']; ?>">
		<input type="button" value="<?php _e( 'Grsel Se', 'themename' ); ?>" class="button custom_media_uploadx" id="custom_image_uploader"/>
	</p>

	<?php 
}
public function update( $new_instance, $old_instance ) {
	$instance = array();
	$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
	$instance['title3'] = ( ! empty( $new_instance['title3'] ) ) ? strip_tags( $new_instance['title3'] ) : '';
	$instance['title2'] = ( ! empty( $new_instance['title2'] ) ) ? strip_tags( $new_instance['title2'] ) : '';
	$instance['aciklamasi'] = ( ! empty( $new_instance['aciklamasi'] ) ) ? strip_tags( $new_instance['aciklamasi'] ) : '';
	$instance['image'] = ( ! empty( $new_instance['image'] ) ) ? strip_tags( $new_instance['image'] ) : '';
	return $instance;
}

}





/*
*#############################################################################################
*#############################################################################################
*						Ana Sayfa 3'l Hizmetler Bileeni
*#############################################################################################
*#############################################################################################
*/
function presstr_home_ucluhizmetler() {
	register_widget( 'presstr_home_ucluhizmetler_widget' );
}

add_action( 'widgets_init', 'presstr_home_ucluhizmetler' );

class presstr_home_ucluhizmetler_widget extends WP_Widget {

	function __construct() {
		parent::__construct(
			/* widget ID*/
			'presstr_home_ucluhizmetler_widget',
			/* widget name*/
			__('ANA SAYFA - 3\'l Hizmetler', ' presstr_home_ucluhizmetler_widget_domain'),
			/* widget description*/
			array( 'description' => __( 'Bu widget sadece anasayfa ksmnda kullanlr. Bu bileen ile 3 adet hizmetinizi n plana kartabilirsiniz...', 'presstr_home_ucluhizmetler_widget_domain' ), )
		);
	}
	public function widget( $args, $instance ) {
		$title = apply_filters( 'widget_title', $instance['title'] );
		$aciklamasi =  apply_filters( 'widget_title', $instance['aciklamasi'] );
		$liste =  apply_filters( 'widget_title', $instance['liste'] );
		$icon =  apply_filters( 'widget_title', $instance['icon'] );

		$title2 = apply_filters( 'widget_title', $instance['title2'] );
		$aciklamasi2 =  apply_filters( 'widget_title', $instance['aciklamasi2'] );
		$liste2 =  apply_filters( 'widget_title', $instance['liste2'] );
		$icon2 =  apply_filters( 'widget_title', $instance['icon2'] );

		$title3 = apply_filters( 'widget_title', $instance['title3'] );
		$aciklamasi3 =  apply_filters( 'widget_title', $instance['aciklamasi3'] );
		$liste3 =  apply_filters( 'widget_title', $instance['liste3'] );
		$icon3 =  apply_filters( 'widget_title', $instance['icon3'] );

		$bilesentitle =  apply_filters( 'widget_title', $instance['bilesentitle'] );
		$bilesentitleustu =  apply_filters( 'widget_title', $instance['bilesentitleustu'] );

		include( "widget/home/ucluhizmetler.php" );

	}
	function form( $instance ) {
		/* Default Widget Settings */
		$defaults = array(
			'title' => 'STRATEJK MEDYA PLANLAMA & SATIN ALMA',
			'aciklamasi' => 'Digital reklamcln gelecei olan programatik satn alma ve bunun bir paras olan Real Time Bidding kavram lkemize hzla giri yapt.',
			'liste' => 'Performans veren reklam modellerinin seilmesi
Anlk optimizasyonlarn gerekletirilmesi
Hedef kitlenin belirlenmesi gibi kriterleri oluturup',
			'icon' => get_template_directory_uri().'/assets/img/service/2.png',


			'title2' => 'STRATEJK MEDYA PLANLAMA & SATIN ALMA',
			'aciklamasi2' => 'Digital reklamcln gelecei olan programatik satn alma ve bunun bir paras olan Real Time Bidding kavram lkemize hzla giri yapt.',
			'liste2' => 'Performans veren reklam modellerinin seilmesi
Anlk optimizasyonlarn gerekletirilmesi
Hedef kitlenin belirlenmesi gibi kriterleri oluturup',
			'icon2' => get_template_directory_uri().'/assets/img/service/2.png',


			'title3' => 'STRATEJK MEDYA PLANLAMA & SATIN ALMA',
			'aciklamasi3' => 'Digital reklamcln gelecei olan programatik satn alma ve bunun bir paras olan Real Time Bidding kavram lkemize hzla giri yapt.',
			'liste3' => 'Performans veren reklam modellerinin seilmesi
Anlk optimizasyonlarn gerekletirilmesi
Hedef kitlenin belirlenmesi gibi kriterleri oluturup',
			'icon3' => get_template_directory_uri().'/assets/img/service/2.png',

			'bilesentitle' => 'Hizmetlerimiz',
			'bilesentitleustu' => 'Sizin iin alma alanlarmz'
		);
		$instance = wp_parse_args( (array) $instance, $defaults ); 
		?>

		<script type="text/javascript">jQuery(document).ready( function(){
			function media_upload( button_class) {
				var _custom_media = true,
				_orig_send_attachment = wp.media.editor.send.attachment;
				jQuery('body').on('click',button_class, function(e) {
					var button_id ='#'+jQuery(this).attr('id');
					/* console.log(button_id); */
					var self = jQuery(button_id);
					var send_attachment_bkp = wp.media.editor.send.attachment;
					var button = jQuery(button_id);
					var id = button.attr('id').replace('_button', '');
					_custom_media = true;
					wp.media.editor.send.attachment = function(props, attachment){
						if ( _custom_media  ) {
							jQuery('.custom_media_id').val(attachment.id); 
							jQuery('.custom_media_urlx').val(attachment.url);
							jQuery('.custom_media_imagex').attr('src',attachment.url).css('display','block');   
						} else {
							return _orig_send_attachment.apply( button_id, [props, attachment] );
						}
					}
					wp.media.editor.open(button);
					return false;
				});
			}
			media_upload( '.custom_media_uploadx');
		});
	</script>

	<script type="text/javascript">jQuery(document).ready( function(){
			function media_upload( button_class) {
				var _custom_media = true,
				_orig_send_attachment = wp.media.editor.send.attachment;
				jQuery('body').on('click',button_class, function(e) {
					var button_id ='#'+jQuery(this).attr('id');
					/* console.log(button_id); */
					var self = jQuery(button_id);
					var send_attachment_bkp = wp.media.editor.send.attachment;
					var button = jQuery(button_id);
					var id = button.attr('id').replace('_button', '');
					_custom_media = true;
					wp.media.editor.send.attachment = function(props, attachment){
						if ( _custom_media  ) {
							jQuery('.custom_media_id').val(attachment.id); 
							jQuery('.custom_media_urlxx').val(attachment.url);
							jQuery('.custom_media_imagexx').attr('src',attachment.url).css('display','block');   
						} else {
							return _orig_send_attachment.apply( button_id, [props, attachment] );
						}
					}
					wp.media.editor.open(button);
					return false;
				});
			}
			media_upload( '.custom_media_uploadxx');
		});
	</script>


	<script type="text/javascript">jQuery(document).ready( function(){
			function media_upload( button_class) {
				var _custom_media = true,
				_orig_send_attachment = wp.media.editor.send.attachment;
				jQuery('body').on('click',button_class, function(e) {
					var button_id ='#'+jQuery(this).attr('id');
					/* console.log(button_id); */
					var self = jQuery(button_id);
					var send_attachment_bkp = wp.media.editor.send.attachment;
					var button = jQuery(button_id);
					var id = button.attr('id').replace('_button', '');
					_custom_media = true;
					wp.media.editor.send.attachment = function(props, attachment){
						if ( _custom_media  ) {
							jQuery('.custom_media_id').val(attachment.id); 
							jQuery('.custom_media_urlxxx').val(attachment.url);
							jQuery('.custom_media_imagexxx').attr('src',attachment.url).css('display','block');   
						} else {
							return _orig_send_attachment.apply( button_id, [props, attachment] );
						}
					}
					wp.media.editor.open(button);
					return false;
				});
			}
			media_upload( '.custom_media_uploadxxx');
		});
	</script>
		<p>
			<label for="<?php echo $this->get_field_id( 'bilesentitle' ); ?>"><?php _e('Bileen Balk:', 'thstlang') ?></label>
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'bilesentitle' ); ?>" name="<?php echo $this->get_field_name( 'bilesentitle' ); ?>" value="<?php echo $instance['bilesentitle']; ?>" />
		</p>

		<p>
			<label for="<?php echo $this->get_field_id( 'bilesentitleustu' ); ?>"><?php _e('Bileen Balk st:', 'thstlang') ?></label>
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'bilesentitleustu' ); ?>" name="<?php echo $this->get_field_name( 'bilesentitleustu' ); ?>" value="<?php echo $instance['bilesentitleustu']; ?>" />
		</p>

	<hr>


		<p>
			<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Balk:', 'thstlang') ?></label>
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" />
		</p>

		<p>
			<label for="<?php echo $this->get_field_id( 'aciklamasi' ); ?>"><?php _e('Ksa Aklama:', 'thstlang') ?></label>
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'aciklamasi' ); ?>" name="<?php echo $this->get_field_name( 'aciklamasi' ); ?>" value="<?php echo $instance['aciklamasi']; ?>" />
		</p>

		<p>
			<label for="<?php echo $this->get_field_id( 'liste' ); ?>"><?php _e('Liste:', 'thstlang') ?> <small>Ltfen alt alta yaznz, her madde sonunda alt satra inin!</small></label>
			<textarea rows="5" class="widefat" id="<?php echo $this->get_field_id( 'liste' ); ?>" name="<?php echo $this->get_field_name( 'liste' ); ?>" ><?php echo $instance['liste']; ?></textarea> 
		</p>

		<p>
			<label for="<?php echo $this->get_field_id('icon'); ?>">Icon(70x70px)</label><br />
			<img class="custom_media_imagex" src="<?php if(!empty($instance['icon'])){echo $instance['icon'];} ?>" style="margin:0;padding:0;max-width:100%;float:none;margin-bottom:10px;display:inline-block" />
			<input type="text" class="widefat custom_media_urlx" name="<?php echo $this->get_field_name('icon'); ?>" id="<?php echo $this->get_field_id('icon'); ?>" value="<?php echo $instance['icon']; ?>">
			<input type="button" value="<?php _e( 'Icon Ykle', 'themename' ); ?>" class="button custom_media_uploadx" id="custom_image_uploader"/>
		</p>

<hr>

		<p>
			<label for="<?php echo $this->get_field_id( 'title2' ); ?>"><?php _e('Balk:', 'thstlang') ?></label>
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title2' ); ?>" name="<?php echo $this->get_field_name( 'title2' ); ?>" value="<?php echo $instance['title2']; ?>" />
		</p>

		<p>
			<label for="<?php echo $this->get_field_id( 'aciklamasi2' ); ?>"><?php _e('Ksa Aklama:', 'thstlang') ?></label>
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'aciklamasi2' ); ?>" name="<?php echo $this->get_field_name( 'aciklamasi2' ); ?>" value="<?php echo $instance['aciklamasi2']; ?>" />
		</p>

		<p>
			<label for="<?php echo $this->get_field_id( 'liste2' ); ?>"><?php _e('Liste:', 'thstlang') ?> <small>Ltfen alt alta yaznz, her madde sonunda alt satra inin!</small></label>
			<textarea rows="5" class="widefat" id="<?php echo $this->get_field_id( 'liste2' ); ?>" name="<?php echo $this->get_field_name( 'liste2' ); ?>" ><?php echo $instance['liste2']; ?></textarea> 
		</p>

		<p>
			<label for="<?php echo $this->get_field_id('icon2'); ?>">Icon(70x70px)</label><br />
			<img class="custom_media_imagexx" src="<?php if(!empty($instance['icon2'])){echo $instance['icon2'];} ?>" style="margin:0;padding:0;max-width:100%;float:none;margin-bottom:10px;display:inline-block" />
			<input type="text" class="widefat custom_media_urlxx" name="<?php echo $this->get_field_name('icon2'); ?>" id="<?php echo $this->get_field_id('icon2'); ?>" value="<?php echo $instance['icon2']; ?>">
			<input type="button" value="<?php _e( 'Icon Ykle', 'themename' ); ?>" class="button custom_media_uploadxx" id="custom_image_uploader"/>
		</p>

		<hr>

		<p>
			<label for="<?php echo $this->get_field_id( 'title3' ); ?>"><?php _e('Balk:', 'thstlang') ?></label>
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title3' ); ?>" name="<?php echo $this->get_field_name( 'title3' ); ?>" value="<?php echo $instance['title3']; ?>" />
		</p>

		<p>
			<label for="<?php echo $this->get_field_id( 'aciklamasi3' ); ?>"><?php _e('Ksa Aklama:', 'thstlang') ?></label>
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'aciklamasi3' ); ?>" name="<?php echo $this->get_field_name( 'aciklamasi3' ); ?>" value="<?php echo $instance['aciklamasi3']; ?>" />
		</p>

		<p>
			<label for="<?php echo $this->get_field_id( 'liste3' ); ?>"><?php _e('Liste:', 'thstlang') ?> <small>Ltfen alt alta yaznz, her madde sonunda alt satra inin!</small></label>
			<textarea rows="5" class="widefat" id="<?php echo $this->get_field_id( 'liste3' ); ?>" name="<?php echo $this->get_field_name( 'liste3' ); ?>" ><?php echo $instance['liste3']; ?></textarea> 
		</p>

		<p>
			<label for="<?php echo $this->get_field_id('icon3'); ?>">Icon(70x70px)</label><br />
			<img class="custom_media_imagexxx" src="<?php if(!empty($instance['icon3'])){echo $instance['icon3'];} ?>" style="margin:0;padding:0;max-width:100%;float:none;margin-bottom:10px;display:inline-block" />
			<input type="text" class="widefat custom_media_urlxxx" name="<?php echo $this->get_field_name('icon3'); ?>" id="<?php echo $this->get_field_id('icon3'); ?>" value="<?php echo $instance['icon3']; ?>">
			<input type="button" value="<?php _e( 'Icon Ykle', 'themename' ); ?>" class="button custom_media_uploadxxx" id="custom_image_uploader"/>
		</p>


		<?php 
	}
	public function update( $new_instance, $old_instance ) {
		$instance = array();
		$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
		$instance['aciklamasi'] = ( ! empty( $new_instance['aciklamasi'] ) ) ? strip_tags( $new_instance['aciklamasi'] ) : '';
		$instance['liste'] = ( ! empty( $new_instance['liste'] ) ) ? strip_tags( $new_instance['liste'] ) : '';
		$instance['icon'] = ( ! empty( $new_instance['icon'] ) ) ? strip_tags( $new_instance['icon'] ) : '';

		$instance['title2'] = ( ! empty( $new_instance['title2'] ) ) ? strip_tags( $new_instance['title2'] ) : '';
		$instance['aciklamasi2'] = ( ! empty( $new_instance['aciklamasi2'] ) ) ? strip_tags( $new_instance['aciklamasi2'] ) : '';
		$instance['liste2'] = ( ! empty( $new_instance['liste2'] ) ) ? strip_tags( $new_instance['liste2'] ) : '';
		$instance['icon2'] = ( ! empty( $new_instance['icon2'] ) ) ? strip_tags( $new_instance['icon2'] ) : '';

		$instance['title3'] = ( ! empty( $new_instance['title3'] ) ) ? strip_tags( $new_instance['title3'] ) : '';
		$instance['aciklamasi3'] = ( ! empty( $new_instance['aciklamasi3'] ) ) ? strip_tags( $new_instance['aciklamasi3'] ) : '';
		$instance['liste3'] = ( ! empty( $new_instance['liste3'] ) ) ? strip_tags( $new_instance['liste3'] ) : '';
		$instance['icon3'] = ( ! empty( $new_instance['icon3'] ) ) ? strip_tags( $new_instance['icon3'] ) : '';

		$instance['bilesentitleustu'] = ( ! empty( $new_instance['bilesentitleustu'] ) ) ? strip_tags( $new_instance['bilesentitleustu'] ) : '';
		$instance['bilesentitle'] = ( ! empty( $new_instance['bilesentitle'] ) ) ? strip_tags( $new_instance['bilesentitle'] ) : '';
		return $instance; 
	}

}



/*
*#############################################################################################
*#############################################################################################
*						Ana Sayfa Projeler Bileeni
*#############################################################################################
*#############################################################################################
*/
function presstr_home_projeler() {
	register_widget( 'presstr_home_projeler_widget' );
}

add_action( 'widgets_init', 'presstr_home_projeler' );

class presstr_home_projeler_widget extends WP_Widget {

	function __construct() {
		parent::__construct(
			/* widget ID*/
			'presstr_home_projeler_widget',
			/* widget name*/
			__('ANA SAYFA - Projeler', ' presstr_home_projeler_widget_domain'),
			/* widget description*/
			array( 'description' => __( 'Bu widget sadece anasayfa ksmnda kullanlr. Bu bileen ile son eklediiniz projeleri listeleyebilirsiniz...', 'presstr_home_projeler_widget_domain' ), )
		);
	}
	public function widget( $args, $instance ) {
		$title = apply_filters( 'widget_title', $instance['title'] );
		$titleustu =  apply_filters( 'widget_title', $instance['titleustu'] );
		$kacadet =  apply_filters( 'widget_title', $instance['kacadet'] );

		$linkbasligi =  apply_filters( 'widget_title', $instance['linkbasligi'] );
		$linkurlsi =  apply_filters( 'widget_title', $instance['linkurlsi'] );
		include( "widget/home/projeler.php" );
	}
	function form( $instance ) {
		/* Default Widget Settings */
		$defaults = array(
			'title' => 'Projelerimiz',
			'titleustu' => 'lham veren',
			'linkbasligi' => 'Tm Projeler',
			'linkurlsi' => '#',
			'kacadet' => 4
		);
		$instance = wp_parse_args( (array) $instance, $defaults ); 
		?>
		<p>
			<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Balk:', 'thstlang') ?></label>
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" />
		</p>

		<p>
			<label for="<?php echo $this->get_field_id( 'titleustu' ); ?>"><?php _e('Balk st:', 'thstlang') ?></label>
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'titleustu' ); ?>" name="<?php echo $this->get_field_name( 'titleustu' ); ?>" value="<?php echo $instance['titleustu']; ?>" />
		</p>

		<p>
			<label for="<?php echo $this->get_field_id( 'kacadet' ); ?>"><?php _e('Ka Adet:', 'thstlang') ?></label>
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'kacadet' ); ?>" name="<?php echo $this->get_field_name( 'kacadet' ); ?>" value="<?php echo $instance['kacadet']; ?>" />
		</p>

		<p>
			Herhangi bir ayara ihtiyacnz yok!
		</p>

		<p>
			<label for="<?php echo $this->get_field_id( 'linkbasligi' ); ?>"><?php _e('Link Bal:', 'thstlang') ?></label>
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'linkbasligi' ); ?>" name="<?php echo $this->get_field_name( 'linkbasligi' ); ?>" value="<?php echo $instance['linkbasligi']; ?>" />
		</p>

		<p>
			<label for="<?php echo $this->get_field_id( 'linkurlsi' ); ?>"><?php _e('Link Urlsi:', 'thstlang') ?></label>
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'linkurlsi' ); ?>" name="<?php echo $this->get_field_name( 'linkurlsi' ); ?>" value="<?php echo $instance['linkurlsi']; ?>" />
		</p>
		<?php 
	}
	public function update( $new_instance, $old_instance ) {
		$instance = array();
		$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
		$instance['kacadet'] = ( ! empty( $new_instance['kacadet'] ) ) ? strip_tags( $new_instance['kacadet'] ) : '';
		$instance['titleustu'] = ( ! empty( $new_instance['titleustu'] ) ) ? strip_tags( $new_instance['titleustu'] ) : '';

		$instance['linkbasligi'] = ( ! empty( $new_instance['linkbasligi'] ) ) ? strip_tags( $new_instance['linkbasligi'] ) : '';
		$instance['linkurlsi'] = ( ! empty( $new_instance['linkurlsi'] ) ) ? strip_tags( $new_instance['linkurlsi'] ) : '';
		return $instance;
	}

}



/*
*#############################################################################################
*#############################################################################################
*						Ana Sayfa Ekibimiz Bileeni
*#############################################################################################
*#############################################################################################
*/

function presstr_home_ekibimiz() {
	register_widget( 'presstr_home_ekibimiz_widget' );
}

add_action( 'widgets_init', 'presstr_home_ekibimiz' );

class presstr_home_ekibimiz_widget extends WP_Widget {

	function __construct() {
		parent::__construct(
			/* widget ID*/
			'presstr_home_ekibimiz_widget',
			/* widget name*/
			__('ANA SAYFA - Ekibimiz', ' presstr_home_ekibimiz_widget_domain'),
			/* widget description*/
			array( 'description' => __( 'Bu widget sadece anasayfa ksmnda kullanlr. Bu bileen ile ekibinizdeki kiileri listeleyebilirsiniz...', 'presstr_home_ekibimiz_widget_domain' ), )
		);
	}
	public function widget( $args, $instance ) {
		$title = apply_filters( 'widget_title', $instance['title'] );
		$titleustu =  apply_filters( 'widget_title', $instance['titleustu'] );
		include( "widget/home/ekibim.php" );

	}
	function form( $instance ) {
		/* Default Widget Settings */
		$defaults = array(
			'title' => 'Ekibimiz',
			'titleustu' => 'Muhteem'
		);
		$instance = wp_parse_args( (array) $instance, $defaults ); 
		?>
		<p>
			<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Balk:', 'thstlang') ?></label>
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" />
		</p>

		<p>
			<label for="<?php echo $this->get_field_id( 'titleustu' ); ?>"><?php _e('Balk st:', 'thstlang') ?></label>
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'titleustu' ); ?>" name="<?php echo $this->get_field_name( 'titleustu' ); ?>" value="<?php echo $instance['titleustu']; ?>" />
		</p>

		<p>
			Herhangi bir ayara ihtiyacnz yok!
		</p>
		<?php 
	}
	public function update( $new_instance, $old_instance ) {
		$instance = array();
		$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
		$instance['titleustu'] = ( ! empty( $new_instance['titleustu'] ) ) ? strip_tags( $new_instance['titleustu'] ) : '';
		return $instance;
	}

}






/*
*#############################################################################################
*#############################################################################################
*						Ana Sayfa Blog Bileeni Kategorili
*#############################################################################################
*#############################################################################################
*/
function presstr_home_blog_kategorili() {
	register_widget( 'presstr_home_blog_kategorili_widget' );
}

add_action( 'widgets_init', 'presstr_home_blog_kategorili' );

class presstr_home_blog_kategorili_widget extends WP_Widget {

	function __construct() {
		parent::__construct(
			/* widget ID*/
			'presstr_home_blog_kategorili_widget',
			/* widget name*/
			__('ANA SAYFA - Kategorili Yazlar', ' presstr_home_blog_kategorili_widget_domain'),
			/* widget description*/
			array( 'description' => __( 'Bu widget sadece anasayfa ksmnda kullanlr. Bu bileen ile setiiniz kategorideki ierikleri yazdrabilirsiniz.', 'presstr_home_blog_kategorili_widget_domain' ), )
		);
	}
	public function widget( $args, $instance ) {
		$title = apply_filters( 'widget_title', $instance['title'] );
		$titleustu = apply_filters( 'widget_title', $instance['titleustu'] );
		$kacadet =  apply_filters( 'widget_title', $instance['kacadet'] );
		$kat2 =  apply_filters( 'widget_title', $instance['kwtax'] );
		include( "widget/home/blog-kat.php" );

	}
	function form( $instance ) {
		/* Default Widget Settings */
		$defaults = array(
			'titleustu' => 'Son',
			'title' => 'Haberlerimiz',
			'kacadet' => 6
		);
		$instance = wp_parse_args( (array) $instance, $defaults ); 
		?>
		<p>
			<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Balk:', 'thstlang') ?></label>
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" />
		</p>

		<p>
			<label for="<?php echo $this->get_field_id( 'titleustu' ); ?>"><?php _e('Balk:', 'thstlang') ?></label>
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'titleustu' ); ?>" name="<?php echo $this->get_field_name( 'titleustu' ); ?>" value="<?php echo $instance['titleustu']; ?>" />
		</p>

		<p>
			<label for="<?php echo $this->get_field_id( 'kacadet' ); ?>"><?php _e('Ka Adet:', 'thstlang') ?></label>
			<input type="number" class="widefat" id="<?php echo $this->get_field_id( 'kacadet' ); ?>" name="<?php echo $this->get_field_name( 'kacadet' ); ?>" value="<?php echo $instance['kacadet']; ?>" />
		</p>

		<p>
			<label for="<?php echo $this->get_field_id( 'kategori' ); ?>"><?php _e('Haber Kategorisi:', 'thstlang') ?></label>
			<select id="<?php echo $this->get_field_id('kwtax'); ?>" name="<?php echo $this->get_field_name('kwtax'); ?>" class="widefat" style="width:100%;">
				<?php foreach(get_terms('category') as $term) { ?>
					<option <?php selected( $instance['kwtax'], $term->term_id ); ?> value="<?php echo $term->term_id; ?>"><?php echo $term->name; ?></option>
				<?php } ?>      
			</select>
		</p>
		<?php 
	}
	public function update( $new_instance, $old_instance ) {
		$instance = array();
		$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
		$instance['titleustu'] = ( ! empty( $new_instance['titleustu'] ) ) ? strip_tags( $new_instance['titleustu'] ) : '';
		$instance['kacadet'] = ( ! empty( $new_instance['kacadet'] ) ) ? strip_tags( $new_instance['kacadet'] ) : '';
		$instance['kwtax'] = ( ! empty( $new_instance['kwtax'] ) ) ? strip_tags( $new_instance['kwtax'] ) : '';
		return $instance;
	}

}


/*
*#############################################################################################
*#############################################################################################
*						Ana Sayfa Blog Bileeni Son
*#############################################################################################
*#############################################################################################
*/
function presstr_home_blog_son() {
	register_widget( 'presstr_home_blog_son_widget' );
}

add_action( 'widgets_init', 'presstr_home_blog_son' );

class presstr_home_blog_son_widget extends WP_Widget {

	function __construct() {
		parent::__construct(
			/* widget ID*/
			'presstr_home_blog_son_widget',
			/* widget name*/
			__('ANA SAYFA - Son Yazlar', ' presstr_home_blog_son_widget_domain'),
			/* widget description*/
			array( 'description' => __( 'Bu widget sadece anasayfa ksmnda kullanlr. Bu bileen son yazlar listeleyebilirsiniz...', 'presstr_home_blog_son_widget_domain' ), )
		);
	}
	public function widget( $args, $instance ) {
		$title = apply_filters( 'widget_title', $instance['title'] );
		$titleustu = apply_filters( 'widget_title', $instance['titleustu'] );
		$kacadet =  apply_filters( 'widget_title', $instance['kacadet'] );
		$kat2 =  apply_filters( 'widget_title', $instance['kwtax'] );
		include( "widget/home/blog-son.php" );

	}
	function form( $instance ) {
		/* Default Widget Settings */
		$defaults = array(
			'titleustu' => 'Son',
			'title' => 'Haberlerimiz',
			'kacadet' => 6
		);
		$instance = wp_parse_args( (array) $instance, $defaults ); 
		?>
		<p>
			<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Balk:', 'thstlang') ?></label>
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" />
		</p>

		<p>
			<label for="<?php echo $this->get_field_id( 'titleustu' ); ?>"><?php _e('Balk:', 'thstlang') ?></label>
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'titleustu' ); ?>" name="<?php echo $this->get_field_name( 'titleustu' ); ?>" value="<?php echo $instance['titleustu']; ?>" />
		</p>

		<p>
			<label for="<?php echo $this->get_field_id( 'kacadet' ); ?>"><?php _e('Ka Adet:', 'thstlang') ?></label>
			<input type="number" class="widefat" id="<?php echo $this->get_field_id( 'kacadet' ); ?>" name="<?php echo $this->get_field_name( 'kacadet' ); ?>" value="<?php echo $instance['kacadet']; ?>" />
		</p>
		<?php 
	}
	public function update( $new_instance, $old_instance ) {
		$instance = array();
		$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
		$instance['titleustu'] = ( ! empty( $new_instance['titleustu'] ) ) ? strip_tags( $new_instance['titleustu'] ) : '';
		$instance['kacadet'] = ( ! empty( $new_instance['kacadet'] ) ) ? strip_tags( $new_instance['kacadet'] ) : '';
		return $instance;
	}

}



/*
*#############################################################################################
*#############################################################################################
*						Ana Sayfa Kullanc Yorumlar Bileeni
*#############################################################################################
*#############################################################################################
*/
function presstr_home_kullaniciyorumlari() {
	register_widget( 'presstr_home_kullaniciyorumlari_widget' );
}

add_action( 'widgets_init', 'presstr_home_kullaniciyorumlari' );

class presstr_home_kullaniciyorumlari_widget extends WP_Widget {

	function __construct() {
		parent::__construct(
			/* widget ID*/
			'presstr_home_kullaniciyorumlari_widget',
			/* widget name*/
			__('ANA SAYFA - Kullanc Yorumlar', ' presstr_home_kullaniciyorumlari_widget_domain'),
			/* widget description*/
			array( 'description' => __( 'Bu widget sadece anasayfa ksmnda kullanlr. Bu bileen ile kullanclarnzn yorumlarn listeleyebilirsiniz.', 'presstr_home_kullaniciyorumlari_widget_domain' ), )
		);
	}
	public function widget( $args, $instance ) {
		$title = apply_filters( 'widget_title', $instance['title'] );
		$titleustu =  apply_filters( 'widget_title', $instance['titleustu'] );
		include( "widget/home/kullaniciyorumlari.php" );

	}
	function form( $instance ) {
		/* Default Widget Settings */
		$defaults = array(
			'title' => 'Sizin Yorumlarnz',
			'titleustu' => 'Notlar &'
		);
		$instance = wp_parse_args( (array) $instance, $defaults ); 
		?>
		<p>
			<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Balk:', 'thstlang') ?></label>
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" />
		</p>

		<p>
			<label for="<?php echo $this->get_field_id( 'titleustu' ); ?>"><?php _e('Balk:', 'thstlang') ?></label>
			<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'titleustu' ); ?>" name="<?php echo $this->get_field_name( 'titleustu' ); ?>" value="<?php echo $instance['titleustu']; ?>" />
		</p>
		<p>
			Herhangi bir ayara ihtiya yok, Tema panelinden yorum ekleyebilirsiniz.
		</p>
		<?php 
	}
	public function update( $new_instance, $old_instance ) {
		$instance = array();
		$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
		$instance['titleustu'] = ( ! empty( $new_instance['titleustu'] ) ) ? strip_tags( $new_instance['titleustu'] ) : '';
		return $instance;
	}

}



/* Lisans Sisteminin son ssl parantezi */
}

else{ die('Temanzda lisans dosyas bulunamad.'); }
?>

Function Calls

None

Variables

None

Stats

MD5 66e09d2474f14fcfe31e3a25adda040d
Eval Count 0
Decode Time 192 ms