Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.0.7.0
- * @ Author : DeZender
- * @ Release on : 22.06.2017
- * @ Official site : http://DeZender.Net
- *
- */
- add_action( 'init', 'lisans' );
- require_once 'cs-admin/cs-framework.php';
- include_once 'metabox.php';
- add_action( 'init', 'create_my_taxonomies', 0 );
- add_theme_support( 'post-thumbnails' );
- if (function_exists( 'add_image_size' )) {
- add_image_size( 'indexSlider', 572, 322, true );
- add_image_size( 'blog-kucuk', 226, 127, true );
- add_image_size( 'program-kucuk', 75, 75, true );
- }
- add_filter( 'pre_get_posts', 'SearchFilter' );
- the_post_thumbnail( );
- register_nav_menus( array( 'topmenu' => 'Üst Menu' ) );
- register_nav_menus( array( 'mobilmenu' => 'Mobil Menü' ) );
- register_nav_menus( array( 'footermenu' => 'Footer Menu' ) );
- register_nav_menus( array( 'fixedmenu' => 'Fixed Sol Menü' ) );
- add_filter( 'excerpt_length', 'my_excerpt_length' );
- add_action( 'wp_footer', 'comment_validation_init' );
- function lisans()
- {
- include 'lisans.php';
- $domain = $_SERVER['HTTP_HOST'];
- $domain = str_replace( 'www.', '', $domain );
- $random = 'bir654tema321';
- $h = '' . $random . '_' . $domain . '';
- $hash = md5( $h );
- if ($lisans != $hash) {
- echo 'Bu Tema Lisanssızdır. Lisansını almak için [email protected] mail adresinden iletişime geçebilirsiniz.';
- exit( );
- }
- }
- function create_my_taxonomies()
- {
- register_taxonomy( 'blogetiket', 'post', array(
- 'hierarchical' => false,
- 'label' => 'Blog Etiket',
- 'query_var' => true,
- 'rewrite' => true
- ) );
- }
- function kategori_id()
- {
- global $wp_query;
- if (is_category( ) || is_single( )) {
- $cat_ID = get_query_var( 'cat' );
- }
- return $cat_ID;
- }
- function SearchFilter($query)
- {
- if ($query->is_search && !($query->is_admin)) {
- $query->set( 'post_type', 'post' );
- }
- return $query;
- }
- function getPostViews($postID)
- {
- $count_key = 'post_views_count';
- $count = get_post_meta( $postID, $count_key, true );
- if ($count == '') {
- delete_post_meta( $postID, $count_key );
- ..................................................................................
- ..............................................
- ......................
Advertisement
Add Comment
Please, Sign In to add comment