Guest User

Untitled

a guest
Dec 25th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 3.0.8.0
  8. * @ Author : DeZender
  9. * @ Release on : 25.09.2017
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function get_domain($url)
  15. {
  16. $pieces = parse_url( $url );
  17. $domain = ((isset( $pieces['host'] ) ? $pieces['host'] : ''));
  18.  
  19. if (preg_match( '/(?P<domain>[a-z0-9][a-z0-9\\-]{1,63}\\.[a-z\\.]{2,6})$/i', $domain, $regs )) {
  20. return $regs['domain'];
  21. }
  22. }
  23.  
  24. function nonSongCats()
  25. {
  26. return '-' . str_replace( ',', ',-', xoption( 'nonSongCats' ) );
  27. }
  28.  
  29. function add_nofollow_cat($text)
  30. {
  31. $text = str_replace( 'rel="category tag"', '', $text );
  32. return $text;
  33. }
  34.  
  35. function adminBarMenu()
  36. {
  37. global $wp_admin_bar;
  38. if (!(is_super_admin( )) || !(is_admin_bar_showing( ))) {
  39. return;
  40. }
  41.  
  42. $wp_admin_bar->add_menu( array(
  43. 'id' => 'artists',
  44. 'title' => 'Sanatçılar',
  45. 'href' => get_bloginfo( 'url' ) . '/wp-admin/edit-tags.php?taxonomy=sanatci'
  46. ) );
  47. $wp_admin_bar->add_menu( array(
  48. 'id' => 'themesettings',
  49. 'title' => 'Safir Panel - Tema Ayarları',
  50. 'href' => get_bloginfo( 'url' ) . '/wp-admin/admin.php?page=themeoptions.php'
  51. ) );
  52. }
  53.  
  54. function register_my_menus()
  55. {
  56. register_nav_menus( array( 'topmenu' => 'Üst Menü' ) );
  57. register_nav_menus( array( 'mainmenu' => 'Ana Menü' ) );
  58. register_nav_menus( array( 'footermenu' => 'Alt Menü' ) );
  59. }
  60.  
  61. function remove_pages_from_search()
  62. {
  63. global $wp_post_types;
  64. $wp_post_types['page']->exclude_from_search = true;
  65. .......................................................................
  66. ................................
  67. .......
Advertisement
Add Comment
Please, Sign In to add comment