Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2021
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.1.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 29.08.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function dalgamenu()
  15. {
  16. register_nav_menus(['ust-menu' => __('Ust Menu')]);
  17. }
  18.  
  19. function custom_excerpt_length($length)
  20. {
  21. return 18;
  22. }
  23.  
  24. require_once 'content/menu.php';
  25. add_action('init', 'dalgamenu');
  26. include_once 'ek-functions.php';
  27. add_filter('img_caption_shortcode_width', '__return_false');
  28. add_filter('excerpt_length', 'custom_excerpt_length', 999);
  29. add_theme_support('post-thumbnails', ['post']);
  30. add_theme_support('post-thumbnails', ['page']);
  31. remove_action('wp_head', 'wp_print_scripts');
  32. remove_action('wp_head', 'wp_print_head_scripts', 9);
  33. remove_action('wp_head', 'wp_enqueue_scripts', 1);
  34. add_action('wp_footer', 'wp_print_scripts', 5);
  35. add_action('wp_footer', 'wp_enqueue_scripts', 5);
  36. add_action('wp_footer', 'wp_print_head_scripts', 5);
  37.  
  38. if (function_exists('register_sidebar')) {
  39. register_sidebar(['name' => 'Kategori Sidebar', 'id' => 'kategori-sidebar', 'description' => 'Kategoriler için sidebar', 'before_widget' => '<div id="%1$s">', 'after_widget' => '</div>', 'before_title' => '<h3>', 'after_title' => '</h3>']);
  40. }
  41.  
  42. if (function_exists('register_sidebar')) {
  43. register_sidebar(['name' => 'Reklam Alanı 250x250', 'id' => 'reklam-sidebar', 'description' => 'Bu reklam alanına soldaki METİN yazan bileşenlerden koyup reklam kodunuzu içine koyabilirsiniz. (Sohbet girişi yanında gözükür.)', 'before_widget' => '<div id="%1$s">', 'after_widget' => '</div>', 'before_title' => '<h3>', 'after_title' => '</h3>']);
  44. }
  45.  
  46. if (file_exists(TEMPLATEPATH . '/lisans.php')) {
  47. require 'lisans.php';
  48. $lisans['site'] = getenv('HTTP_HOST');
  49.  
  50. if (substr($lisans['site'], 0, 4) == 'www.') {
  51. $lisans['site'] = substr($lisans['site'], 4);
  52. }
  53.  
  54. $lisans['hash'] = wordwrap(strtoupper(md5(crc32($lisans['site']))), 6, '2', true);
  55.  
  56. if ($lisans['hash'] !== $sohbet_temalari) {
  57. exit('<h3 style="color:red;">Lisans anahtarı bu site için geçersizdir.</h3><br>Lisans anahtarı almak için <b style="color:blue;">sohbettemasi.com</b> sitesini ziyaret ediniz.');
  58. }
  59. else {
  60. unset($lisans);
  61. }
  62.  
  63. function getPostViews($postID)
  64. {
  65. $count_key = 'post_views_count';
  66. $count = get_post_meta($postID, $count_key, true);
  67.  
  68. if ($count == '') {
  69. delete_post_meta($postID, $count_key);
  70. add_post_meta($postID, $count_key, '0');
  71. ..................................................................................
  72. .................................................
  73. ....................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement