Advertisement
Guest User

Untitled

a guest
Mar 16th, 2016
643
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 65.67 KB | None | 0 0
  1. <?php
  2.  
  3. ${"GLOBALS"}["lyucwuflpij"] = "posttags";
  4. ${"GLOBALS"}["mjerlibga"] = "counter";
  5. ${"GLOBALS"}["rfwqoybxowv"] = "total";
  6. ${"GLOBALS"}["ercrbledv"] = "postid";
  7. ${"GLOBALS"}["wrxkbyfon"] = "val";
  8. ${"GLOBALS"}["fcgbmqgyvw"] = "mydata";
  9. ${"GLOBALS"}["qxbwkbolzylp"] = "nonce";
  10. ${"GLOBALS"}["obhydqtgeyw"] = "k";
  11. ${"GLOBALS"}["rgosdwqdhpjl"] = "sidebar_pos";
  12. ${"GLOBALS"}["nikgtnh"] = "key";
  13. ${"GLOBALS"}["txjhugrxjqnc"] = "value";
  14. ${"GLOBALS"}["wbrtrxh"] = "bgkolor";
  15. ${"GLOBALS"}["alphhjzvwkch"] = "backkolor";
  16. ${"GLOBALS"}["hqmjxegtymfb"] = "borkolor";
  17. ${"GLOBALS"}["jyngbykt"] = "kolor";
  18. ${"GLOBALS"}["xpehkoi"] = "has_url";
  19. ${"GLOBALS"}["mubjtmebusr"] = "next_id";
  20. ${"GLOBALS"}["oelcmnvvarv"] = "attachment_id";
  21. ${"GLOBALS"}["mxiplpjo"] = "attachment_ids";
  22. ${"GLOBALS"}["hhytfkwgjwd"] = "next_attachment_url";
  23. ${"GLOBALS"}["lxhotsj"] = "current_category";
  24. ${"GLOBALS"}["mbestgop"] = "class";
  25. ${"GLOBALS"}["xfpvnkpykeo"] = "show_count";
  26. ${"GLOBALS"}["uydmjz"] = "name";
  27. ${"GLOBALS"}["nelbmiguquqk"] = "feed";
  28. ${"GLOBALS"}["rvfmdwhyy"] = "feed_image";
  29. ${"GLOBALS"}["assjjrr"] = "use_desc_for_title";
  30. ${"GLOBALS"}["fgngit"] = "category";
  31. ${"GLOBALS"}["nmmdpbocusk"] = "lclass";
  32. ${"GLOBALS"}["hxepegtjkq"] = "children";
  33. ${"GLOBALS"}["vmrokehjhw"] = "cat_name";
  34. ${"GLOBALS"}["kteghcgwn"] = "max_depth";
  35. ${"GLOBALS"}["agbdusvft"] = "children_elements";
  36. ${"GLOBALS"}["bktuawxgxrkl"] = "element";
  37. ${"GLOBALS"}["pbotqqrwz"] = "output";
  38. ${"GLOBALS"}["bmbdqwhj"] = "withul";
  39. ${"GLOBALS"}["hrujwh"] = "attributes";
  40. ${"GLOBALS"}["nqhjrszgtb"] = "caret";
  41. ${"GLOBALS"}["wbcodxbr"] = "item";
  42. ${"GLOBALS"}["jwdsnvp"] = "classes";
  43. ${"GLOBALS"}["miautzi"] = "depth_classes";
  44. ${"GLOBALS"}["nfvtvhlb"] = "class_names";
  45. ${"GLOBALS"}["crhpvrh"] = "display_depth";
  46. ${"GLOBALS"}["cikoselgwx"] = "indent";
  47. ${"GLOBALS"}["hdwnuueoxkl"] = "no";
  48. ${"GLOBALS"}["fgjdktwgvdl"] = "pop_posts";
  49. ${"GLOBALS"}["nfviqff"] = "popularposts";
  50. ${"GLOBALS"}["jrnceraq"] = "orig_post";
  51. ${"GLOBALS"}["voeemxfnoaw"] = "lastPosts";
  52. ${"GLOBALS"}["nmcakaolevjg"] = "numberOfPosts";
  53. ${"GLOBALS"}["axkdgu"] = "filesize";
  54. ${"GLOBALS"}["iyndamlhw"] = "dimension";
  55. ${"GLOBALS"}["qaujbiwmdyie"] = "content";
  56. ${"GLOBALS"}["fknzlvpu"] = "categories";
  57. ${"GLOBALS"}["vcshqkn"] = "thumbid";
  58. ${"GLOBALS"}["tgkfxhpk"] = "rating";
  59. ${"GLOBALS"}["kkpssulrxrcc"] = "times";
  60. ${"GLOBALS"}["mmbnfyd"] = "view";
  61. ${"GLOBALS"}["ljwxkcrbdru"] = "views";
  62. ${"GLOBALS"}["gcceptbfdiy"] = "count_key";
  63. ${"GLOBALS"}["nuvdjslmjs"] = "post_id";
  64. ${"GLOBALS"}["kpdezpv"] = "count";
  65. ${"GLOBALS"}["ihorfoljd"] = "f";
  66. ${"GLOBALS"}["qcccokcdg"] = "d";
  67. ${"GLOBALS"}["wjpgqxdnys"] = "n";
  68. ${"GLOBALS"}["tkvziqj"] = "sep";
  69. ${"GLOBALS"}["dndszhneij"] = "form";
  70. ${"GLOBALS"}["sqkpgerji"] = "bignum";
  71. ${"GLOBALS"}["mroymgh"] = "this_post";
  72. ${"GLOBALS"}["qoblhhe"] = "posts";
  73. ${"GLOBALS"}["ohvcypytv"] = "post";
  74. ${"GLOBALS"}["quslxxpc"] = "related_posts";
  75. ${"GLOBALS"}["emfztxm"] = "karatok";
  76. ${"GLOBALS"}["lxxzuxbind"] = "tag_arr";
  77. ${"GLOBALS"}["vjiechhdzjw"] = "tags";
  78. ${"GLOBALS"}["avuwsok"] = "link";
  79. ${"GLOBALS"}["pystddz"] = "fallback_menu";
  80. ${"GLOBALS"}["xijhybdb"] = "css";
  81. ${"GLOBALS"}["shxptnrlbk"] = "src";
  82. ${"GLOBALS"}["pxxjzr"] = "page";
  83. ${"GLOBALS"}["hpiife"] = "paged";
  84. ${"GLOBALS"}["nspuksccxq"] = "site_description";
  85. ${"GLOBALS"}["qlwxzsb"] = "title";
  86. ${"GLOBALS"}["argcdibzqbvy"] = "seplocation";
  87. ${"GLOBALS"}["mmnwti"] = "depth";
  88. ${"GLOBALS"}["mwuavv"] = "args";
  89. ${"GLOBALS"}["abtzfeswmfy"] = "bgauthemail";
  90. ${"GLOBALS"}["vveilkrjsg"] = "sidebar";
  91. include (TEMPLATEPATH . "/includes/post-data.php");
  92. include (TEMPLATEPATH . "/includes/breadcrumbs.php");
  93. include (TEMPLATEPATH . "/includes/widgets.php");
  94. include (TEMPLATEPATH . "/admin/license/license.php");
  95.  
  96. function karatok_ahoy()
  97. {
  98.     add_action("init", "karatok_head_cleanup");
  99.     add_filter("wp_title", "rw_title", 10, 3);
  100.     add_filter("the_generator", "karatok_rss_version");
  101.     add_filter("wp_head", "karatok_remove_wp_widget_recent_comments_style", 1);
  102.     add_action("wp_head", "karatok_remove_recent_comments_style", 1);
  103.     add_filter("gallery_style", "karatok_gallery_style");
  104.     add_action("wp_enqueue_scripts", "karatok_scripts_and_styles", 999);
  105.     karatok_theme_support();
  106.     add_action("widgets_init", "karatok_register_sidebars");
  107.     add_filter("the_content", "karatok_filter_ptags_on_images");
  108.     add_filter("get_search_form", "karatok_wpsearch");
  109.     add_filter("excerpt_more", "karatok_excerpt_more");
  110. }
  111. add_action("after_setup_theme", "karatok_ahoy");
  112. ${"GLOBALS"}["qvehod"] = "content_width";
  113. if (! isset(${${"GLOBALS"}["qvehod"]})) {
  114.     $fyhukug = "content_width";
  115.     ${$fyhukug} = 640;
  116. }
  117.  
  118. function karatok_register_sidebars()
  119. {
  120.     ${"GLOBALS"}["evmodg"] = "karatok";
  121.     global $karatok;
  122.     register_sidebar(array(
  123.         "id" => "sidebar",
  124.         "name" => __("Sidebar", "karatok"),
  125.         "description" => __("The is primary sidebar.", "karatok"),
  126.         "before_widget" => "<div id=\"%1\$s\" class=\"widget %2\$s\">",
  127.         "after_widget" => "</div>",
  128.         "before_title" => "<h4 class=\"widgettitle\">",
  129.         "after_title" => "</h4>"
  130.     ));
  131.     if (is_array(${${"GLOBALS"}["evmodg"]}["sidebars"]["sidebar"])) {
  132.         ${"GLOBALS"}["gfnbaxiuyn"] = "karatok";
  133.         $urgmvykjrgio = "sidebar";
  134.         foreach (${${"GLOBALS"}["gfnbaxiuyn"]}["sidebars"]["sidebar"] as ${$urgmvykjrgio}) {
  135.             $fkdnwwl = "sidebar";
  136.             register_sidebar(array(
  137.                 "id" => sanitize_title(${${"GLOBALS"}["vveilkrjsg"]}),
  138.                 "name" => __(${$fkdnwwl}, "karatok"),
  139.                 "before_widget" => "<div id=\"%1\$s\" class=\"widget %2\$s\">",
  140.                 "after_widget" => "</div>",
  141.                 "before_title" => "<h4 class=\"widgettitle\">",
  142.                 "after_title" => "</h4>"
  143.             ));
  144.         }
  145.     }
  146. }
  147.  
  148. function karatok_comments($comment, $args, $depth)
  149. {
  150.     ${"GLOBALS"}["mdxcyfnmat"] = "comment";
  151.     $GLOBALS["comment"] = ${${"GLOBALS"}["mdxcyfnmat"]};
  152.     echo "  <div id=\"comment-";
  153.     ${"GLOBALS"}["wphbiwuft"] = "args";
  154.     comment_ID();
  155.     echo "\" ";
  156.     comment_class("cf");
  157.     echo ">\n    <article  class=\"cf\">\n      <header class=\"comment-author\">\n        ";
  158.     ${${"GLOBALS"}["abtzfeswmfy"]} = get_comment_author_email();
  159.     echo "        <img src=\"http://www.gravatar.com/avatar/";
  160.     echo md5(${${"GLOBALS"}["abtzfeswmfy"]});
  161.     echo "?s=40\" class=\"avatar avatar-48 photo\" height=\"40\" width=\"40\"/>\n        ";
  162.     echo "        ";
  163.     printf(__("<cite class=\"fn\">%1\$s</cite> %2\$s", "karatok"), get_comment_author_link(), edit_comment_link(__("(Edit)", "karatok"), "  ", ""));
  164.     echo "        <time datetime=\"";
  165.     echo comment_time("Y-m-j");
  166.     echo "\"><a href=\"";
  167.     echo htmlspecialchars(get_comment_link($comment->comment_ID));
  168.     echo "\">";
  169.     comment_time(__("F jS, Y", "karatok"));
  170.     echo " </a></time>\n\n      </header>\n      ";
  171.     if ($comment->comment_approved == "0") {
  172.         echo "        <div class=\"alert alert-info\">\n          <p>";
  173.         _e("Your comment is awaiting moderation.", "karatok");
  174.         echo "</p>\n        </div>\n      ";
  175.     }
  176.     echo "\n      <section class=\"comment_content cf\">\n        ";
  177.     comment_text();
  178.     echo "      </section>\n      ";
  179.     comment_reply_link(array_merge(${${"GLOBALS"}["mwuavv"]}, array(
  180.         "depth" => ${${"GLOBALS"}["mmnwti"]},
  181.         "max_depth" => ${${"GLOBALS"}["wphbiwuft"]}["max_depth"]
  182.     )));
  183.     echo "    </article>\n";
  184. }
  185.  
  186. function karatok_head_cleanup()
  187. {
  188.     remove_action("wp_head", "rsd_link");
  189.     remove_action("wp_head", "wlwmanifest_link");
  190.     remove_action("wp_head", "index_rel_link");
  191.     remove_action("wp_head", "parent_post_rel_link", 10, 0);
  192.     remove_action("wp_head", "start_post_rel_link", 10, 0);
  193.     remove_action("wp_head", "adjacent_posts_rel_link_wp_head", 10, 0);
  194.     remove_action("wp_head", "wp_generator");
  195.     add_filter("style_loader_src", "karatok_remove_wp_ver_css_js", 9999);
  196.     add_filter("script_loader_src", "karatok_remove_wp_ver_css_js", 9999);
  197. }
  198.  
  199. function rw_title($title, $sep, $seplocation)
  200. {
  201.     $smjvdibr = "title";
  202.     $rnqybjejbsg = "site_description";
  203.     global $page, $paged;
  204.     if (is_feed())
  205.         return ${$smjvdibr};
  206.     if ("right" == ${${"GLOBALS"}["argcdibzqbvy"]}) {
  207.         ${${"GLOBALS"}["qlwxzsb"]} .= get_bloginfo("name");
  208.     } else {
  209.         ${"GLOBALS"}["qvfxhr"] = "title";
  210.         ${${"GLOBALS"}["qlwxzsb"]} = get_bloginfo("name") . ${${"GLOBALS"}["qvfxhr"]};
  211.     }
  212.     ${${"GLOBALS"}["nspuksccxq"]} = get_bloginfo("description", "display");
  213.     if (${$rnqybjejbsg} && (is_home() || is_front_page())) {
  214.         $llxkqzahfc = "title";
  215.         ${$llxkqzahfc} .= " {$sep} {$site_description}";
  216.     }
  217.     ${"GLOBALS"}["oulfutx"] = "title";
  218.     if (${${"GLOBALS"}["hpiife"]} >= 2 || ${${"GLOBALS"}["pxxjzr"]} >= 2) {
  219.         $xwheichhxwjt = "page";
  220.         ${${"GLOBALS"}["qlwxzsb"]} .= " {$sep} " . sprintf(__("Page %s", "dbt"), max(${${"GLOBALS"}["hpiife"]}, ${$xwheichhxwjt}));
  221.     }
  222.     return ${${"GLOBALS"}["oulfutx"]};
  223. }
  224.  
  225. function karatok_rss_version()
  226. {
  227.     return "";
  228. }
  229.  
  230. function karatok_remove_wp_ver_css_js($src)
  231. {
  232.     $lvxpgcbz = "src";
  233.     ${"GLOBALS"}["ehksako"] = "src";
  234.     ${"GLOBALS"}["gcluucss"] = "src";
  235.     if (strpos(${$lvxpgcbz}, "ver="))
  236.         ${${"GLOBALS"}["gcluucss"]} = remove_query_arg("ver", ${${"GLOBALS"}["shxptnrlbk"]});
  237.     return ${${"GLOBALS"}["ehksako"]};
  238. }
  239.  
  240. function karatok_remove_wp_widget_recent_comments_style()
  241. {
  242.     if (has_filter("wp_head", "wp_widget_recent_comments_style")) {
  243.         remove_filter("wp_head", "wp_widget_recent_comments_style");
  244.     }
  245. }
  246.  
  247. function karatok_remove_recent_comments_style()
  248. {
  249.     global $wp_widget_factory;
  250.     if (isset($wp_widget_factory->widgets["WP_Widget_Recent_Comments"])) {
  251.         remove_action("wp_head", array(
  252.             $wp_widget_factory->widgets["WP_Widget_Recent_Comments"],
  253.             "recent_comments_style"
  254.         ));
  255.     }
  256. }
  257.  
  258. function karatok_gallery_style($css)
  259. {
  260.     return preg_replace("!<style type='text/css'>(.*?)</style>!s", "", ${${"GLOBALS"}["xijhybdb"]});
  261. }
  262.  
  263. function karatok_scripts_and_styles()
  264. {
  265.     global $wp_styles;
  266.     if (! is_admin()) {
  267.         wp_register_script("karatok-modernizr", get_stylesheet_directory_uri() . "/library/js/libs/modernizr.custom.min.js", array(), "2.5.3", false);
  268.         wp_register_style("karatok-stylesheet", get_stylesheet_directory_uri() . "/library/css/style.css", array(), "", "all");
  269.         wp_register_style("karatok-ie-only", get_stylesheet_directory_uri() . "/library/css/ie.css", array(), "");
  270.         if (is_singular() and comments_open() and (get_option("thread_comments") == 1)) {
  271.             wp_enqueue_script("comment-reply");
  272.         }
  273.         wp_register_script("walah-js", get_stylesheet_directory_uri() . "/library/js/walah.js", array(
  274.             "jquery"
  275.         ), "", true);
  276.         wp_enqueue_script("sharrre", get_template_directory_uri() . "/library/js/sharrre.js", array(
  277.             "jquery"
  278.         ), "", true);
  279.         wp_enqueue_script("all-libs", get_template_directory_uri() . "/library/js/all.libs.js", array(
  280.             "jquery"
  281.         ), "", true);
  282.         wp_enqueue_script("karatok-modernizr");
  283.         wp_enqueue_style("karatok-stylesheet");
  284.         wp_enqueue_style("karatok-ie-only");
  285.         $wp_styles->add_data("karatok-ie-only", "conditional", "lt IE 9");
  286.         wp_enqueue_script("jquery");
  287.         wp_enqueue_script("walah-js");
  288.         wp_localize_script("walah-js", "karatok", array(
  289.             "url" => admin_url("admin-ajax.php"),
  290.             "nonce" => wp_create_nonce("karatok-nonce")
  291.         ));
  292.     }
  293. }
  294.  
  295. function karatok_theme_support()
  296. {
  297.     add_theme_support("post-thumbnails");
  298.     add_image_size("thumbnail", 100, 70, true);
  299.     add_image_size("medium", 223, 160, true);
  300.     add_image_size("large", 469, 304, true);
  301.     add_theme_support("custom-background", array(
  302.         "default-image" => "",
  303.         "default-color" => "",
  304.         "wp-head-callback" => "_custom_background_cb",
  305.         "admin-head-callback" => "",
  306.         "admin-preview-callback" => ""
  307.     ));
  308.     add_theme_support("automatic-feed-links");
  309.     add_theme_support("menus");
  310.     add_theme_support("html5", array(
  311.         "search-form",
  312.         "comment-form",
  313.         "comment-list"
  314.     ));
  315.     register_nav_menus(array(
  316.         "main-nav" => __("The Main Menu", "karatok"),
  317.         "footer-links" => __("Footer Links", "karatok")
  318.     ));
  319. }
  320.  
  321. function karatok_main_nav()
  322. {
  323.     wp_nav_menu(array(
  324.         "container" => false,
  325.         "container_class" => "menu cf",
  326.         "menu" => __("The Main Menu", "karatok"),
  327.         "menu_class" => "nav cf sf-menu sf-arrows",
  328.         "theme_location" => "main-nav",
  329.         "before" => "",
  330.         "after" => "",
  331.         "link_before" => "",
  332.         "link_after" => "",
  333.         "depth" => 0,
  334.         "fallback_cb" => "karatok_main_nav_fallback",
  335.         "walker" => new SJ_WALKER()
  336.     ));
  337. }
  338.  
  339. function karatok_footer_links()
  340. {
  341.     wp_nav_menu(array(
  342.         "container" => "",
  343.         "container_class" => "footer-links cf",
  344.         "menu" => __("Footer Menu", "karatok"),
  345.         "menu_class" => "cf",
  346.         "theme_location" => "footer-links",
  347.         "before" => "",
  348.         "after" => "",
  349.         "link_before" => "",
  350.         "link_after" => "",
  351.         "depth" => 0,
  352.         "fallback_cb" => "karatok_footer_links_fallback"
  353.     ));
  354. }
  355.  
  356. function karatok_main_nav_fallback()
  357. {
  358.     ${${"GLOBALS"}["pystddz"]} = wp_page_menu(array(
  359.         "show_home" => true,
  360.         "menu_class" => "",
  361.         "include" => "",
  362.         "exclude" => "",
  363.         "echo" => false,
  364.         "link_before" => "",
  365.         "link_after" => ""
  366.     ));
  367.     echo str_replace("<ul>", "<ul class=\"nav cf sf-menu sf-arrows\">", ${${"GLOBALS"}["pystddz"]});
  368. }
  369.  
  370. function karatok_footer_links_fallback()
  371. {}
  372. add_action("after_switch_theme", "karatok_flush_rewrite_rules");
  373.  
  374. function karatok_flush_rewrite_rules()
  375. {
  376.     flush_rewrite_rules();
  377. }
  378.  
  379. function karatok_custom_blog_post()
  380. {
  381.     register_post_type("custom_type", array(
  382.         "labels" => array(
  383.             "name" => __("Blog", "karatok"),
  384.             "singular_name" => __("Blog", "karatok"),
  385.             "all_items" => __("All Blog Posts", "karatok"),
  386.             "add_new" => __("Add New", "karatok"),
  387.             "add_new_item" => __("Add New Blog", "karatok"),
  388.             "edit" => __("Edit", "karatok"),
  389.             "edit_item" => __("Edit Blog Post", "karatok"),
  390.             "new_item" => __("New Blog Post", "karatok"),
  391.             "view_item" => __("View Blog Post", "karatok"),
  392.             "search_items" => __("Search Blog Post", "karatok"),
  393.             "not_found" => __("Nothing found in the Database.", "karatok"),
  394.             "not_found_in_trash" => __("Nothing found in Trash", "karatok"),
  395.             "parent_item_colon" => ""
  396.         ),
  397.         "description" => __("This is the example blog post type", "karatok"),
  398.         "public" => true,
  399.         "publicly_queryable" => true,
  400.         "exclude_from_search" => false,
  401.         "show_ui" => true,
  402.         "query_var" => true,
  403.         "menu_position" => 8,
  404.         "menu_icon" => get_stylesheet_directory_uri() . "/library/images/custom-post-icon.png",
  405.         "rewrite" => array(
  406.             "slug" => "blog",
  407.             "with_front" => false
  408.         ),
  409.         "has_archive" => "blog",
  410.         "capability_type" => "post",
  411.         "hierarchical" => false,
  412.         "supports" => array(
  413.             "title",
  414.             "editor",
  415.             "author",
  416.             "thumbnail",
  417.             "excerpt",
  418.             "trackbacks",
  419.             "custom-fields",
  420.             "comments",
  421.             "revisions",
  422.             "sticky"
  423.         )
  424.     ));
  425.     register_taxonomy_for_object_type("custom_cat", "custom_type");
  426.     register_taxonomy_for_object_type("custom_tag", "custom_type");
  427. }
  428. add_action("init", "karatok_custom_blog_post");
  429. register_taxonomy("custom_cat", array(
  430.     "custom_type"
  431. ), array(
  432.     "hierarchical" => true,
  433.     "labels" => array(
  434.         "name" => __("Blog Categories", "karatok"),
  435.         "singular_name" => __("Blog Category", "karatok"),
  436.         "search_items" => __("Search Blog Categories", "karatok"),
  437.         "all_items" => __("All Blog Categories", "karatok"),
  438.         "parent_item" => __("Parent Blog Category", "karatok"),
  439.         "parent_item_colon" => __("Parent Blog Category:", "karatok"),
  440.         "edit_item" => __("Edit Blog Category", "karatok"),
  441.         "update_item" => __("Update Blog Category", "karatok"),
  442.         "add_new_item" => __("Add New Blog Category", "karatok"),
  443.         "new_item_name" => __("New Blog Category Name", "karatok")
  444.     ),
  445.     "show_admin_column" => true,
  446.     "show_ui" => true,
  447.     "rewrite" => array(
  448.         "slug" => "blog/category",
  449.         "with_front" => false
  450.     )
  451. ));
  452. register_taxonomy("custom_tag", array(
  453.     "custom_type"
  454. ), array(
  455.     "hierarchical" => false,
  456.     "labels" => array(
  457.         "name" => __("Blog Tags", "karatok"),
  458.         "singular_name" => __("Blog Tag", "karatok"),
  459.         "search_items" => __("Search Blog Tags", "karatok"),
  460.         "all_items" => __("All Blog Tags", "karatok"),
  461.         "parent_item" => __("Parent Blog Tag", "karatok"),
  462.         "parent_item_colon" => __("Parent Blog Tag:", "karatok"),
  463.         "edit_item" => __("Edit Blog Tag", "karatok"),
  464.         "update_item" => __("Update Blog Tag", "karatok"),
  465.         "add_new_item" => __("Add New Blog Tag", "karatok"),
  466.         "new_item_name" => __("New Blog Tag Name", "karatok")
  467.     ),
  468.     "show_admin_column" => true,
  469.     "show_ui" => true,
  470.     "rewrite" => array(
  471.         "slug" => "blog/tag",
  472.         "with_front" => false
  473.     )
  474. ));
  475.  
  476. function karatok_get_the_author_posts_link()
  477. {
  478.     $qfafqqhepqy = "authordata";
  479.     $iejurpiqfh = "link";
  480.     global $authordata;
  481.     if (! is_object(${$qfafqqhepqy}))
  482.         return false;
  483.     ${$iejurpiqfh} = sprintf("<a href=\"%1\$s\" title=\"%2\$s\">%3\$s</a>", get_author_posts_url($authordata->ID, $authordata->user_nicename), esc_attr(sprintf(__("Posts by %s"), get_the_author())), get_the_author());
  484.     return ${${"GLOBALS"}["avuwsok"]};
  485. }
  486.  
  487. function karatok_related_posts()
  488. {
  489.     global $karatok, $post;
  490.     $xsryivgypfwj = "karatok";
  491.     echo "<div id=\"karatok-related-tag\" class=\"related-wallpapers cf\">";
  492.     echo "<h3>" . ${$xsryivgypfwj}["judulrelatedtag"] . "</h3>";
  493.     ${${"GLOBALS"}["vjiechhdzjw"]} = wp_get_post_tags($post->ID);
  494.     ${"GLOBALS"}["bccbtomwjnr"] = "tags";
  495.     if (${${"GLOBALS"}["bccbtomwjnr"]}) {
  496.         $drrdrujut = "tag";
  497.         $yixorlonqk = "args";
  498.         $jfdugfh = "post";
  499.         ${"GLOBALS"}["wuaiymi"] = "tag_arr";
  500.         ${"GLOBALS"}["fnqurikq"] = "args";
  501.         foreach (${${"GLOBALS"}["vjiechhdzjw"]} as ${$drrdrujut}) {
  502.             ${${"GLOBALS"}["lxxzuxbind"]} .= $tag->slug . ",";
  503.         }
  504.         $khkidpsadkg = "related_posts";
  505.         ${$yixorlonqk} = array(
  506.             "tag" => ${${"GLOBALS"}["wuaiymi"]},
  507.             "numberposts" => ${${"GLOBALS"}["emfztxm"]}["jumlahrelatedtag"],
  508.             "post__not_in" => array(
  509.                 $post->ID
  510.             )
  511.         );
  512.         ${$khkidpsadkg} = get_posts(${${"GLOBALS"}["fnqurikq"]});
  513.         foreach (${${"GLOBALS"}["quslxxpc"]} as ${$jfdugfh}) {
  514.             setup_postdata(${${"GLOBALS"}["ohvcypytv"]});
  515.             get_template_part("entry", "content");
  516.         }
  517.     } else {
  518.         echo "<p class=\"no_related_post\">" . __("No Related Wallpapers Yet!", "karatok") . "</p>";
  519.     }
  520.     wp_reset_postdata();
  521.     echo "</div>";
  522. }
  523.  
  524. function karatok_related_posts_Category()
  525. {
  526.     ${"GLOBALS"}["ycrtqxdr"] = "karatok";
  527.     global $karatok, $post;
  528.     echo "<div id=\"karatok-related-cat\" class=\"related-wallpapers cf\">";
  529.     ${"GLOBALS"}["tpcbrp"] = "category";
  530.     $jofoykqlnftg = "category";
  531.     $ncrnueiubqj = "this_post";
  532.     echo "<h3>" . ${${"GLOBALS"}["ycrtqxdr"]}["judulrelatedcat"] . "</h3>";
  533.     ${$jofoykqlnftg} = get_the_category();
  534.     ${$ncrnueiubqj} = $post->ID;
  535.     ${${"GLOBALS"}["qoblhhe"]} = get_posts("numberposts=" . ${${"GLOBALS"}["emfztxm"]}["jumlahrelatedcat"] . "&orderby=rand&category=" . ${${"GLOBALS"}["tpcbrp"]}[0]->cat_ID . "&exclude=" . ${${"GLOBALS"}["mroymgh"]});
  536.     foreach (${${"GLOBALS"}["qoblhhe"]} as ${${"GLOBALS"}["ohvcypytv"]}) {
  537.         get_template_part("entry", "content");
  538.     }
  539.     wp_reset_postdata();
  540.     echo "</div>";
  541. }
  542.  
  543. function karatok_page_navi()
  544. {
  545.     ${"GLOBALS"}["zshpvcfm"] = "bignum";
  546.     global $wp_query;
  547.     $zknoibgpdvo = "bignum";
  548.     ${${"GLOBALS"}["sqkpgerji"]} = 999999999;
  549.     if ($wp_query->max_num_pages <= 1)
  550.         return;
  551.     echo "<nav class=\"pagination\">";
  552.     echo paginate_links(array(
  553.         "base" => str_replace(${${"GLOBALS"}["zshpvcfm"]}, "%#%", esc_url(get_pagenum_link(${$zknoibgpdvo}))),
  554.         "format" => "",
  555.         "current" => max(1, get_query_var("paged")),
  556.         "total" => $wp_query->max_num_pages,
  557.         "prev_text" => "&larr;",
  558.         "next_text" => "&rarr;",
  559.         "type" => "list",
  560.         "end_size" => 3,
  561.         "mid_size" => 3
  562.     ));
  563.     echo "</nav>";
  564. }
  565.  
  566. function karatok_filter_ptags_on_images($content)
  567. {
  568.     $gfcdkkmxt = "content";
  569.     return preg_replace("/<p>\\s*(<a .*>)?\\s*(<img .* \\/>)\\s*(<\/a>)?\s*<\/p>/iU", "\1\2\\3", ${$gfcdkkmxt});
  570. }
  571.  
  572. function karatok_excerpt_more($more)
  573. {
  574.     global $post;
  575.     return "...  <a class=\"excerpt-read-more\" href=\"" . get_permalink($post->ID) . "\" title=\"" . __("Read ", "karatok") . get_the_title($post->ID) . "\">" . __("Read more &raquo;
  576. ", "karatok") . "</a>";
  577. }
  578.  
  579. function karatok_wpsearch($form)
  580. {
  581.     $ximqhteiw = "form";
  582.     ${${"GLOBALS"}["dndszhneij"]} = "<form role=\"search\" method=\"get\" id=\"searchform\" action=\"" . home_url("/") . "\" >\n\t<label class=\"screen-reader-text\" for=\"s\">" . __("", "karatok") . "</label>\n\t<input type=\"text\" value=\"" . get_search_query() . "\" name=\"s\" id=\"s\" placeholder=\"" . esc_attr__("Search...", "karatok") . "\" />\n\t<input type=\"submit\" id=\"searchsubmit\" class=\"button\" value=\"" . esc_attr__("Search") . "\" />\n\t</form>";
  583.     return ${$ximqhteiw};
  584. }
  585.  
  586. function karatok_count_format($n, $point = '.', $sep = ',')
  587. {
  588.     $xupgwsdm = "n";
  589.     ${"GLOBALS"}["edbjyywl"] = "n";
  590.     ${"GLOBALS"}["bqmvvtcjjrv"] = "f";
  591.     ${"GLOBALS"}["ahekkvlcj"] = "n";
  592.     ${"GLOBALS"}["uuiignacph"] = "d";
  593.     $ksyurevjcij = "point";
  594.     if (${${"GLOBALS"}["ahekkvlcj"]} < 0) {
  595.         return 0;
  596.     }
  597.     ${"GLOBALS"}["ypwbpnkgww"] = "d";
  598.     if (${${"GLOBALS"}["edbjyywl"]} < 1000) {
  599.         ${"GLOBALS"}["kmxxjyw"] = "n";
  600.         $ltpssnisy = "point";
  601.         return number_format(${${"GLOBALS"}["kmxxjyw"]}, 0, ${$ltpssnisy}, ${${"GLOBALS"}["tkvziqj"]});
  602.     }
  603.     ${"GLOBALS"}["ihebbtxwkmh"] = "f";
  604.     ${${"GLOBALS"}["uuiignacph"]} = ${${"GLOBALS"}["wjpgqxdnys"]} < 1000000 ? 1000 : 1000000;
  605.     ${${"GLOBALS"}["bqmvvtcjjrv"]} = round(${$xupgwsdm} / ${${"GLOBALS"}["qcccokcdg"]}, 1);
  606.     return number_format(${${"GLOBALS"}["ihorfoljd"]}, ${${"GLOBALS"}["ihorfoljd"]} - intval(${${"GLOBALS"}["ihebbtxwkmh"]}) ? 1 : 0, ${$ksyurevjcij}, ${${"GLOBALS"}["tkvziqj"]}) . (${${"GLOBALS"}["ypwbpnkgww"]} == 1000 ? "K" : "M");
  607. }
  608.  
  609. function karatok_set_post_views()
  610. {
  611.     ${"GLOBALS"}["llgokpbahyt"] = "post_id";
  612.     $wstqbqegtnt = "count_key";
  613.     $llwgyxnftyb = "count";
  614.     $jhfvyry = "count";
  615.     if (! is_single())
  616.         return;
  617.     $yahaupgqwn = "count";
  618.     if (empty(${${"GLOBALS"}["llgokpbahyt"]})) {
  619.         $wriesb = "post_id";
  620.         global $post;
  621.         ${$wriesb} = $post->ID;
  622.     }
  623.     ${"GLOBALS"}["fbeybbudtr"] = "count_key";
  624.     ${$wstqbqegtnt} = "karatok_views";
  625.     ${${"GLOBALS"}["kpdezpv"]} = get_post_meta(${${"GLOBALS"}["nuvdjslmjs"]}, ${${"GLOBALS"}["fbeybbudtr"]}, true);
  626.     ${$yahaupgqwn} = ${${"GLOBALS"}["kpdezpv"]} ? ${$llwgyxnftyb} : 0;
  627.     update_post_meta(${${"GLOBALS"}["nuvdjslmjs"]}, ${${"GLOBALS"}["gcceptbfdiy"]}, ${$jhfvyry} + 1);
  628. }
  629. add_action("wp_head", "karatok_set_post_views");
  630.  
  631. function karatok_get_post_views($post_id, $views = 0)
  632. {
  633.     ${"GLOBALS"}["uvnjtwjyoxut"] = "count_key";
  634.     $nklhmqthm = "count_key";
  635.     $svbzcdkvxg = "view";
  636.     $ighainqn = "count";
  637.     $dpwmwafki = "post_id";
  638.     $gzskkdcj = "count";
  639.     ${${"GLOBALS"}["uvnjtwjyoxut"]} = "karatok_views";
  640.     ${$gzskkdcj} = get_post_meta(${$dpwmwafki}, ${$nklhmqthm}, true);
  641.     if (${${"GLOBALS"}["kpdezpv"]} == "") {
  642.         ${"GLOBALS"}["sflryhb"] = "count_key";
  643.         $xqvpmrvm = "post_id";
  644.         update_post_meta(${$xqvpmrvm}, ${${"GLOBALS"}["sflryhb"]}, 1);
  645.         ${${"GLOBALS"}["kpdezpv"]} = 1;
  646.     }
  647.     if (${${"GLOBALS"}["ljwxkcrbdru"]})
  648.         ${${"GLOBALS"}["mmbnfyd"]} = (${${"GLOBALS"}["kpdezpv"]} > 1) ? " views" : " view";
  649.     ${$ighainqn} = karatok_count_format(${${"GLOBALS"}["kpdezpv"]}) . ${$svbzcdkvxg};
  650.     return ${${"GLOBALS"}["kpdezpv"]};
  651. }
  652.  
  653. function karatok_get_post_download($post_id, $times = 0)
  654. {
  655.     ${"GLOBALS"}["lnwruscx"] = "post_id";
  656.     $bynqoouu = "count";
  657.     ${$bynqoouu} = get_post_meta(${${"GLOBALS"}["lnwruscx"]}, "karatok_download", true);
  658.     ${"GLOBALS"}["jgbctyy"] = "time";
  659.     ${${"GLOBALS"}["kpdezpv"]} = ${${"GLOBALS"}["kpdezpv"]} ? ${${"GLOBALS"}["kpdezpv"]} : 0;
  660.     $yvlmyyvsoe = "time";
  661.     if (${${"GLOBALS"}["kkpssulrxrcc"]})
  662.         ${$yvlmyyvsoe} = (${${"GLOBALS"}["kpdezpv"]} > 1) ? " times" : " time";
  663.     ${${"GLOBALS"}["kpdezpv"]} = karatok_count_format(${${"GLOBALS"}["kpdezpv"]}) . ${${"GLOBALS"}["jgbctyy"]};
  664.     return ${${"GLOBALS"}["kpdezpv"]};
  665. }
  666.  
  667. function karatok_get_post_rating($post_id)
  668. {
  669.     $gfskzduljs = "rating";
  670.     ${${"GLOBALS"}["tgkfxhpk"]} = get_post_meta(get_the_ID(), "karatok_rating", true);
  671.     return ${$gfskzduljs} ? karatok_count_format(${${"GLOBALS"}["tgkfxhpk"]}) : 0;
  672. }
  673.  
  674. function karatok_get_single_desc()
  675. {
  676.     $jvcycriuihz = "content";
  677.     $wyhlcxlqp = "karatok";
  678.     global $post, $karatok;
  679.     $vvprvgbooxop = "content";
  680.     ${$vvprvgbooxop} = ${$wyhlcxlqp}["masukinkonten"];
  681.     if (${$jvcycriuihz}) {
  682.         ${"GLOBALS"}["rxibysfl"] = "title";
  683.         ${"GLOBALS"}["yttrdvqukxn"] = "title";
  684.         $knculdnqezyx = "content";
  685.         ${"GLOBALS"}["rogwzsfw"] = "content";
  686.         $jtlkjderaj = "metadata";
  687.         ${"GLOBALS"}["srmxzjmm"] = "category";
  688.         ${"GLOBALS"}["flcplysjgu"] = "content";
  689.         ${${"GLOBALS"}["vcshqkn"]} = get_post_thumbnail_id($post->ID);
  690.         ${${"GLOBALS"}["rxibysfl"]} = get_the_title($post->ID);
  691.         ${"GLOBALS"}["ceksfl"] = "thumbid";
  692.         $sjcyyx = "dimension";
  693.         $dfufkjkilr = "filesize";
  694.         ${$jtlkjderaj} = wp_get_attachment_metadata(${${"GLOBALS"}["ceksfl"]});
  695.         ${$sjcyyx} = "{$metadata['width']}x{$metadata['height']}";
  696.         $txqrhyotalyf = "category";
  697.         ${$dfufkjkilr} = filesize(get_attached_file(${${"GLOBALS"}["vcshqkn"]}));
  698.         $oeyiwmcmyfec = "content";
  699.         ${${"GLOBALS"}["fknzlvpu"]} = get_the_category($post->ID);
  700.         $lvgumjillai = "content";
  701.         ${${"GLOBALS"}["srmxzjmm"]} = ${${"GLOBALS"}["fknzlvpu"]}[0]->cat_name;
  702.         $coescichjup = "content";
  703.         ${"GLOBALS"}["dzwvtdpnwtx"] = "tag";
  704.         ${"GLOBALS"}["ldhagsaiedwm"] = "tags";
  705.         foreach (get_the_tags($post->ID) as ${${"GLOBALS"}["dzwvtdpnwtx"]}) {
  706.             ${"GLOBALS"}["ewvkhy"] = "tags";
  707.             ${${"GLOBALS"}["ewvkhy"]}[] = $tag->name;
  708.         }
  709.         ${${"GLOBALS"}["rogwzsfw"]} = str_replace("{title}", ${${"GLOBALS"}["yttrdvqukxn"]}, ${${"GLOBALS"}["flcplysjgu"]});
  710.         ${${"GLOBALS"}["qaujbiwmdyie"]} = str_replace("{category}", ${$txqrhyotalyf}, ${$knculdnqezyx});
  711.         ${${"GLOBALS"}["qaujbiwmdyie"]} = str_replace("{tag}", implode(", ", ${${"GLOBALS"}["ldhagsaiedwm"]}), ${${"GLOBALS"}["qaujbiwmdyie"]});
  712.         ${$oeyiwmcmyfec} = str_replace("{dimension}", ${${"GLOBALS"}["iyndamlhw"]}, ${$lvgumjillai});
  713.         ${$coescichjup} = str_replace("{filesize}", size_format(${${"GLOBALS"}["axkdgu"]}), ${${"GLOBALS"}["qaujbiwmdyie"]});
  714.         return ${${"GLOBALS"}["qaujbiwmdyie"]};
  715.     }
  716. }
  717.  
  718. function karatok_last_posts($numberOfPosts = 5, $thumb = true)
  719. {
  720.     $injuspmbiqcq = "orig_post";
  721.     $awpbky = "post";
  722.     global $post;
  723.     ${"GLOBALS"}["fcqujdq"] = "lastPosts";
  724.     ${"GLOBALS"}["hazjkbmv"] = "post";
  725.     ${$injuspmbiqcq} = ${$awpbky};
  726.     ${${"GLOBALS"}["fcqujdq"]} = get_posts("no_found_rows=1&suppress_filters=0&numberposts=" . ${${"GLOBALS"}["nmcakaolevjg"]});
  727.     foreach (${${"GLOBALS"}["voeemxfnoaw"]} as ${${"GLOBALS"}["ohvcypytv"]}) {
  728.         $flqali = "post";
  729.         setup_postdata(${$flqali});
  730.         echo "\t<li>\n\t\t<article ";
  731.         post_class("recent-widget cf");
  732.         echo " role=\"article\">\n\t\t\t<a href=\"";
  733.         the_permalink();
  734.         echo "\" rel=\"bookmark\" title=\"";
  735.         the_title_attribute();
  736.         echo "\">\n\t\t\t\t<div class=\"entry-thumb\">\n\t\t\t\t\t";
  737.         the_post_thumbnail("thumbnail");
  738.         echo "<span class=\"iamoverlay\"></span>\n\t\t\t\t</div>\n\t\t\t\t<h3 class=\"widget-title\">";
  739.         the_title();
  740.         echo "</h3>\n\t\t\t</a><h4 class=\"kategori-kecil\">";
  741.         printf(__("%1\$s", "karatok"), get_the_category_list(", "));
  742.         echo "</h4>\n\t\t</article>\n\t</li>\n";
  743.     }
  744.     ${${"GLOBALS"}["hazjkbmv"]} = ${${"GLOBALS"}["jrnceraq"]};
  745. }
  746.  
  747. function karatok_popular_posts($pop_posts = 5, $thumb = true)
  748. {
  749.     $tpewkfpm = "post";
  750.     global $post;
  751.     ${${"GLOBALS"}["jrnceraq"]} = ${$tpewkfpm};
  752.     ${${"GLOBALS"}["nfviqff"]} = new WP_Query(array(
  753.         "posts_per_page" => ${${"GLOBALS"}["fgjdktwgvdl"]},
  754.         "meta_key" => "karatok_views",
  755.         "orderby" => "meta_value_num",
  756.         "order" => "DESC",
  757.         "post_type" => "post",
  758.         "post_status" => "publish",
  759.         "no_found_rows" => 1,
  760.         "ignore_sticky_posts" => 1
  761.     ));
  762.     while ($popularposts->have_posts()) {
  763.         $popularposts->the_post();
  764.         echo "\n\t\t\t\t<article ";
  765.         post_class("m6 tl4 popular-widget cf");
  766.         echo " role=\"article\">\n\t\t\t\t<a href=\"";
  767.         the_permalink();
  768.         echo "\" title=\"";
  769.         the_title();
  770.         echo "\" rel=\"bookmark\">\n\t\t\t\t\t<div class=\"entry-thumb\">\n\t\t\t\t\t\t";
  771.         ${"GLOBALS"}["hugixwvtcry"] = "no";
  772.         the_post_thumbnail("medium");
  773.         echo "\t\t\t\t\t\t<div class=\"widget-ImgAttr\">\n\t\t\t\t\t\t\t<span>";
  774.         echo ++ ${${"GLOBALS"}["hugixwvtcry"]};
  775.         echo "</span>\n\t\t\t\t\t\t\t<div class=\"outsider\">\n\t\t\t\t\t\t\t<span class=\"download\">";
  776.         echo karatok_get_post_download(get_the_ID());
  777.         echo " <i class=\"fa fa-download\"></i></span>\n\t\t\t\t\t\t\t<span class=\"views\">";
  778.         echo karatok_get_post_views(get_the_ID());
  779.         echo " <i class=\"fa fa-eye\"></i></span>\n\t\t\t\t\t\t\t<span class=\"rating\">";
  780.         echo get_post_meta(get_the_ID(), "karatok_rating", true);
  781.         echo " <i class=\"fa fa-star\"></i></span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t";
  782.         echo "\t\t\t\t</a>\n\t\t\t\t</article>\n\n\t";
  783.     }
  784.     ${${"GLOBALS"}["ohvcypytv"]} = ${${"GLOBALS"}["jrnceraq"]};
  785. }
  786.  
  787. function karatok_top_rated($pop_posts = 5, $thumb = true)
  788. {
  789.     $jjcpsigqsce = "post";
  790.     global $post;
  791.     $wliltqqdkly = "pop_posts";
  792.     ${${"GLOBALS"}["jrnceraq"]} = ${${"GLOBALS"}["ohvcypytv"]};
  793.     ${"GLOBALS"}["ovscsfi"] = "popularposts";
  794.     ${${"GLOBALS"}["ovscsfi"]} = new WP_Query(array(
  795.         "posts_per_page" => ${$wliltqqdkly},
  796.         "meta_key" => "karatok_rating",
  797.         "orderby" => "meta_value_num",
  798.         "order" => "DESC",
  799.         "post_type" => "post",
  800.         "post_status" => "publish",
  801.         "no_found_rows" => 1,
  802.         "ignore_sticky_posts" => 1
  803.     ));
  804.     while ($popularposts->have_posts()) {
  805.         $popularposts->the_post();
  806.         echo "\n\t\t\t\t<article ";
  807.         post_class("m6 tl4 rated-widget cf");
  808.         echo " role=\"article\">\n\t\t\t\t<a href=\"";
  809.         the_permalink();
  810.         echo "\" title=\"";
  811.         the_title();
  812.         echo "\" rel=\"bookmark\">\n\t\t\t\t\t<div class=\"entry-thumb\">\n\t\t\t\t\t\t";
  813.         the_post_thumbnail("medium");
  814.         echo "\t\t\t\t\t\t<div class=\"widget-ImgAttr\">\n\t\t\t\t\t\t\t<span>";
  815.         echo ++ ${${"GLOBALS"}["hdwnuueoxkl"]};
  816.         echo "</span>\n\t\t\t\t\t\t\t<span class=\"rating\">";
  817.         echo get_post_meta(get_the_ID(), "karatok_rating", true);
  818.         echo " <i class=\"fa fa-star\"></i></span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t";
  819.         echo "\t\t\t\t</a>\n\t\t\t\t</article>\n\n\t";
  820.     }
  821.     ${$jjcpsigqsce} = ${${"GLOBALS"}["jrnceraq"]};
  822. }
  823.  
  824. function karatok_top_downloaded($pop_posts = 5, $thumb = true)
  825. {
  826.     $ccycihewndy = "orig_post";
  827.     ${"GLOBALS"}["jcrxuehexyf"] = "pop_posts";
  828.     $imrxmxx = "orig_post";
  829.     $fnhmtv = "popularposts";
  830.     global $post;
  831.     ${$ccycihewndy} = ${${"GLOBALS"}["ohvcypytv"]};
  832.     ${$fnhmtv} = new WP_Query(array(
  833.         "posts_per_page" => ${${"GLOBALS"}["jcrxuehexyf"]},
  834.         "meta_key" => "karatok_download",
  835.         "orderby" => "meta_value_num",
  836.         "order" => "DESC",
  837.         "post_type" => "post",
  838.         "post_status" => "publish",
  839.         "no_found_rows" => 1,
  840.         "ignore_sticky_posts" => 1
  841.     ));
  842.     while ($popularposts->have_posts()) {
  843.         $popularposts->the_post();
  844.         echo "\n\t\t\t\t<article ";
  845.         post_class("m6 tl4 downloaded-widget cf");
  846.         echo " role=\"article\">\n\t\t\t\t<a href=\"";
  847.         the_permalink();
  848.         echo "\" title=\"";
  849.         the_title();
  850.         echo "\" rel=\"bookmark\">\n\t\t\t\t\t<div class=\"entry-thumb\">\n\t\t\t\t\t\t";
  851.         the_post_thumbnail("medium");
  852.         echo "\t\t\t\t\t\t<div class=\"widget-ImgAttr\">\n\t\t\t\t\t\t\t<span>";
  853.         echo ++ ${${"GLOBALS"}["hdwnuueoxkl"]};
  854.         echo "</span>\n\t\t\t\t\t\t\t<span class=\"download\">";
  855.         echo karatok_get_post_download(get_the_ID());
  856.         echo " <i class=\"fa fa-download\"></i></span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t";
  857.         echo "\t\t\t\t</a>\n\t\t\t\t</article>\n\n\t";
  858.     }
  859.     ${${"GLOBALS"}["ohvcypytv"]} = ${$imrxmxx};
  860. }
  861.  
  862. function karatok_random_posts($numberOfPosts = 5, $thumb = true)
  863. {
  864.     $sojifnxcj = "orig_post";
  865.     $jyqezecuuuqb = "orig_post";
  866.     $rxxxwfwbott = "post";
  867.     global $post;
  868.     $ikxvijjtrfvc = "post";
  869.     ${$jyqezecuuuqb} = ${$ikxvijjtrfvc};
  870.     ${${"GLOBALS"}["voeemxfnoaw"]} = get_posts("orderby=rand&no_found_rows=1&suppress_filters=0&numberposts=" . ${${"GLOBALS"}["nmcakaolevjg"]});
  871.     foreach (${${"GLOBALS"}["voeemxfnoaw"]} as ${$rxxxwfwbott}) {
  872.         setup_postdata(${${"GLOBALS"}["ohvcypytv"]});
  873.         echo "\n\t\t<article ";
  874.         post_class("random-widget cf");
  875.         echo " role=\"article\">\n\t\t\t<a href=\"";
  876.         the_permalink();
  877.         echo "\" title=\"";
  878.         the_title();
  879.         echo "\" rel=\"bookmark\">\n\t\t\t\t<div class=\"masukin-gambar\">\n\t\t\t\t\t";
  880.         the_post_thumbnail("thumbnail");
  881.         echo "\t\t\t\t</div>\n\t\t\t\t";
  882.         echo "\t\t\t</a>\n\t\t</article>\n\n";
  883.     }
  884.     ${${"GLOBALS"}["ohvcypytv"]} = ${$sojifnxcj};
  885. }
  886.  
  887. class SJ_WALKER extends Walker_Nav_Menu
  888. {
  889.  
  890.     function start_lvl(&$output, $depth)
  891.     {
  892.         ${"GLOBALS"}["mgbvsxytn"] = "display_depth";
  893.         $kqvfflarggl = "output";
  894.         $dnlzdwbk = "display_depth";
  895.         $fludpepykp = "display_depth";
  896.         ${${"GLOBALS"}["cikoselgwx"]} = (${${"GLOBALS"}["mmnwti"]} > 0 ? str_repeat("\t", ${${"GLOBALS"}["mmnwti"]}) : "");
  897.         $kfqxhctzhl = "classes";
  898.         ${"GLOBALS"}["unjgbivgtue"] = "classes";
  899.         ${${"GLOBALS"}["mgbvsxytn"]} = (${${"GLOBALS"}["mmnwti"]} + 1);
  900.         $yjwjrrlu = "class_names";
  901.         ${$kfqxhctzhl} = array(
  902.             "sub-menu sb-submenu",
  903.             (${${"GLOBALS"}["crhpvrh"]} % 2 ? "menu-odd" : "menu-even"),
  904.             (${$dnlzdwbk} >= 2 ? "sub-sub-menu" : ""),
  905.             "menu-depth-" . ${$fludpepykp}
  906.         );
  907.         ${${"GLOBALS"}["nfvtvhlb"]} = implode(" ", ${${"GLOBALS"}["unjgbivgtue"]});
  908.         ${$kqvfflarggl} .= "\n" . ${${"GLOBALS"}["cikoselgwx"]} . "<ul class=\"" . ${$yjwjrrlu} . "\">" . "\n";
  909.     }
  910.  
  911.     function start_el(&$output, $item, $depth, $args)
  912.     {
  913.         ${"GLOBALS"}["cuvunbuik"] = "classes";
  914.         ${"GLOBALS"}["znbqoexdws"] = "item";
  915.         $dwsolzphgk = "depth_class_names";
  916.         ${"GLOBALS"}["phfqjvektau"] = "depth_classes";
  917.         ${"GLOBALS"}["bluhufcwd"] = "args";
  918.         ${"GLOBALS"}["blddwpfhpihd"] = "output";
  919.         $bzroewvc = "indent";
  920.         $gwvcujph = "depth_class_names";
  921.         $nmadhijg = "item_output";
  922.         ${"GLOBALS"}["sgxmbek"] = "depth";
  923.         $voqqrkhc = "depth";
  924.         global $wp_query;
  925.         $khjrbsh = "class_names";
  926.         $gurxxtmtwr = "description";
  927.         $mxfagg = "depth";
  928.         ${${"GLOBALS"}["cikoselgwx"]} = (${$voqqrkhc} > 0 ? str_repeat("\t", ${${"GLOBALS"}["sgxmbek"]}) : "");
  929.         ${${"GLOBALS"}["phfqjvektau"]} = array(
  930.             (${${"GLOBALS"}["mmnwti"]} == 0 ? "main-menu-item" : "sub-menu-item"),
  931.             (${$mxfagg} >= 2 ? "sub-sub-menu-item" : ""),
  932.             (${${"GLOBALS"}["mmnwti"]} % 2 ? "menu-item-odd" : "menu-item-even"),
  933.             "menu-item-depth-" . ${${"GLOBALS"}["mmnwti"]}
  934.         );
  935.         ${$dwsolzphgk} = esc_attr(implode(" ", ${${"GLOBALS"}["miautzi"]}));
  936.         ${${"GLOBALS"}["cuvunbuik"]} = empty($item->classes) ? array() : (array) $item->classes;
  937.         ${"GLOBALS"}["wislxxfvooh"] = "attributes";
  938.         ${"GLOBALS"}["ggiqwznnlf"] = "attributes";
  939.         ${"GLOBALS"}["pphtnzdnccs"] = "withul";
  940.         ${$khjrbsh} = esc_attr(implode(" ", apply_filters("nav_menu_css_class", array_filter(${${"GLOBALS"}["jwdsnvp"]}), ${${"GLOBALS"}["wbcodxbr"]})));
  941.         ${${"GLOBALS"}["blddwpfhpihd"]} .= ${$bzroewvc} . "<li class=\"" . ${$gwvcujph} . " " . ${${"GLOBALS"}["nfvtvhlb"]} . "\">";
  942.         $pofeqkfghf = "description";
  943.         ${${"GLOBALS"}["pphtnzdnccs"]} = $item->hasChildren ? " sf-with-ul " : "";
  944.         ${${"GLOBALS"}["nqhjrszgtb"]} = $item->hasChildren ? "<i class=\"fa fa-angle-down\"></i>" : "";
  945.         ${"GLOBALS"}["yncxyjyn"] = "depth";
  946.         $kvrrxnpwfpdh = "item_output";
  947.         ${${"GLOBALS"}["wislxxfvooh"]} = ! empty($item->attr_title) ? " title=\"" . esc_attr($item->attr_title) . "\"" : "";
  948.         ${${"GLOBALS"}["hrujwh"]} .= ! empty($item->target) ? " target=\"" . esc_attr($item->target) . "\"" : "";
  949.         ${${"GLOBALS"}["hrujwh"]} .= ! empty($item->xfn) ? " rel=\"" . esc_attr($item->xfn) . "\"" : "";
  950.         ${${"GLOBALS"}["hrujwh"]} .= ! empty($item->url) ? " href=\"" . esc_attr($item->url) . "\"" : "";
  951.         ${${"GLOBALS"}["ggiqwznnlf"]} .= " class=\"menu-link " . ${${"GLOBALS"}["bmbdqwhj"]} . " " . (${${"GLOBALS"}["yncxyjyn"]} > 0 ? "sub-menu-link" : "main-menu-link") . "\"";
  952.         ${$gurxxtmtwr} = (! empty($item->description) and 0 == ${${"GLOBALS"}["mmnwti"]}) ? "<small class=\"nav_desc\">" . esc_attr($item->description) . "</small>" : "";
  953.         ${${"GLOBALS"}["qlwxzsb"]} = apply_filters("the_title", $item->title, $item->ID);
  954.         ${$nmadhijg} = $args->before . "<a$attributes>" . $args->link_before . ${${"GLOBALS"}["qlwxzsb"]} . "</a>" . ${${"GLOBALS"}["nqhjrszgtb"]} . $args->link_after . ${$pofeqkfghf} . $args->after;
  955.         ${${"GLOBALS"}["pbotqqrwz"]} .= apply_filters("walker_nav_menu_start_el", ${$kvrrxnpwfpdh}, ${${"GLOBALS"}["znbqoexdws"]}, ${${"GLOBALS"}["mmnwti"]}, ${${"GLOBALS"}["bluhufcwd"]});
  956.     }
  957.  
  958.     function display_element($element, &$children_elements, $max_depth, $depth = 0, $args, &$output)
  959.     {
  960.         $bjuuejbac = "children_elements";
  961.         $kycddidkl = "depth";
  962.         $oxpefvllot = "children_elements";
  963.         $hxcoqyrodv = "args";
  964.         $kowlhl = "output";
  965.         $element->hasChildren = isset(${$oxpefvllot}[$element->ID]) && ! empty(${$bjuuejbac}[$element->ID]);
  966.         return parent::display_element(${${"GLOBALS"}["bktuawxgxrkl"]}, ${${"GLOBALS"}["agbdusvft"]}, ${${"GLOBALS"}["kteghcgwn"]}, ${$kycddidkl}, ${$hxcoqyrodv}, ${$kowlhl});
  967.     }
  968. }
  969.  
  970. class K_Walker_Category extends Walker_Category
  971. {
  972.  
  973.     function start_el(&$output, $category, $depth = 0, $args = array(), $id = 0)
  974.     {
  975.         ${"GLOBALS"}["mcnbhpemkrlq"] = "args";
  976.         ${"GLOBALS"}["yiqbeauvnpv"] = "cat_name";
  977.         $iqdcsacqo = "cat_name";
  978.         extract(${${"GLOBALS"}["mcnbhpemkrlq"]});
  979.         $isrthrg = "link";
  980.         $ambojob = "link";
  981.         ${"GLOBALS"}["thbskly"] = "category";
  982.         ${${"GLOBALS"}["yiqbeauvnpv"]} = esc_attr($category->name);
  983.         $pofahkunyh = "category";
  984.         ${"GLOBALS"}["sfvnqpjvuf"] = "feed";
  985.         ${"GLOBALS"}["fttgcrnedcj"] = "lclass";
  986.         ${${"GLOBALS"}["vmrokehjhw"]} = apply_filters("list_cats", ${$iqdcsacqo}, ${${"GLOBALS"}["thbskly"]});
  987.         ${${"GLOBALS"}["hxepegtjkq"]} = get_terms($category->taxonomy, array(
  988.             "parent" => $category->term_id,
  989.             "hide_empty" => false
  990.         ));
  991.         if (${${"GLOBALS"}["hxepegtjkq"]})
  992.             ${${"GLOBALS"}["fttgcrnedcj"]} = " <i class=\"fa fa-angle-down\"></i> ";
  993.         else
  994.             ${${"GLOBALS"}["nmmdpbocusk"]} = "";
  995.         $pblrgl = "link";
  996.         ${$isrthrg} = "<a href=\"" . esc_url(get_term_link(${${"GLOBALS"}["fgngit"]})) . "\" ";
  997.         if (${${"GLOBALS"}["assjjrr"]} == 0 || empty($category->description))
  998.             ${${"GLOBALS"}["avuwsok"]} .= "title=\"" . esc_attr(sprintf(__("View all posts filed under %s"), ${${"GLOBALS"}["vmrokehjhw"]})) . "\"";
  999.         else
  1000.             ${$ambojob} .= "title=\"" . esc_attr(strip_tags(apply_filters("category_description", $category->description, ${$pofahkunyh}))) . "\"";
  1001.         ${${"GLOBALS"}["avuwsok"]} .= ">";
  1002.         ${${"GLOBALS"}["avuwsok"]} .= ${${"GLOBALS"}["vmrokehjhw"]} . "</a>" . ${${"GLOBALS"}["nmmdpbocusk"]};
  1003.         if (! empty(${${"GLOBALS"}["rvfmdwhyy"]}) || ! empty(${${"GLOBALS"}["sfvnqpjvuf"]})) {
  1004.             ${"GLOBALS"}["lucuqitizkp"] = "link";
  1005.             ${"GLOBALS"}["tibjgkwttuqi"] = "link";
  1006.             ${"GLOBALS"}["pnvhbxtmml"] = "feed";
  1007.             ${${"GLOBALS"}["lucuqitizkp"]} .= " ";
  1008.             if (empty(${${"GLOBALS"}["rvfmdwhyy"]}))
  1009.                 ${${"GLOBALS"}["avuwsok"]} .= "(";
  1010.             $dtsgsooh = "feed_type";
  1011.             $cfpqzxm = "link";
  1012.             ${${"GLOBALS"}["avuwsok"]} .= "<a href=\"" . esc_url(get_term_feed_link($category->term_id, $category->taxonomy, ${$dtsgsooh})) . "\"";
  1013.             ${"GLOBALS"}["qirkffsnfr"] = "name";
  1014.             if (empty(${${"GLOBALS"}["pnvhbxtmml"]})) {
  1015.                 ${"GLOBALS"}["nlfwbktgcrt"] = "cat_name";
  1016.                 ${"GLOBALS"}["kbkfrgbvk"] = "alt";
  1017.                 ${${"GLOBALS"}["kbkfrgbvk"]} = " alt=\"" . sprintf(__("Feed for all posts filed under %s"), ${${"GLOBALS"}["nlfwbktgcrt"]}) . "\"";
  1018.             } else {
  1019.                 $fusxuyntbik = "alt";
  1020.                 ${"GLOBALS"}["iheptlxkx"] = "title";
  1021.                 ${"GLOBALS"}["ihlvfu"] = "feed";
  1022.                 ${${"GLOBALS"}["qlwxzsb"]} = " title=\"" . ${${"GLOBALS"}["ihlvfu"]} . "\"";
  1023.                 ${$fusxuyntbik} = " alt=\"" . ${${"GLOBALS"}["nelbmiguquqk"]} . "\"";
  1024.                 ${${"GLOBALS"}["uydmjz"]} = ${${"GLOBALS"}["nelbmiguquqk"]};
  1025.                 ${${"GLOBALS"}["avuwsok"]} .= ${${"GLOBALS"}["iheptlxkx"]};
  1026.             }
  1027.             ${${"GLOBALS"}["tibjgkwttuqi"]} .= ">";
  1028.             if (empty(${${"GLOBALS"}["rvfmdwhyy"]}))
  1029.                 ${$cfpqzxm} .= ${${"GLOBALS"}["qirkffsnfr"]};
  1030.             else
  1031.                 ${${"GLOBALS"}["avuwsok"]} .= "<img src='$feed_image'$alt$title" . " />";
  1032.             ${${"GLOBALS"}["avuwsok"]} .= "</a>";
  1033.             if (empty(${${"GLOBALS"}["rvfmdwhyy"]}))
  1034.                 ${${"GLOBALS"}["avuwsok"]} .= ")";
  1035.         }
  1036.         if (! empty(${${"GLOBALS"}["xfpvnkpykeo"]}))
  1037.             ${$pblrgl} .= " <span class=\"caTslide_count\">" . intval($category->count) . "</span>";
  1038.         if ("list" == ${${"GLOBALS"}["mwuavv"]}["style"]) {
  1039.             $xjvbcr = "output";
  1040.             ${"GLOBALS"}["kdfkvixflxxo"] = "class";
  1041.             ${$xjvbcr} .= "\t<li";
  1042.             ${${"GLOBALS"}["mbestgop"]} = "cat-item cat-item-" . $category->term_id;
  1043.             if (! empty(${${"GLOBALS"}["lxhotsj"]})) {
  1044.                 ${"GLOBALS"}["zsqlyodiam"] = "class";
  1045.                 ${"GLOBALS"}["xkbrgjqvcnou"] = "current_category";
  1046.                 ${"GLOBALS"}["bcodanwz"] = "_current_category";
  1047.                 ${"GLOBALS"}["gwocxd"] = "current_category";
  1048.                 ${${"GLOBALS"}["bcodanwz"]} = get_term(${${"GLOBALS"}["xkbrgjqvcnou"]}, $category->taxonomy);
  1049.                 if ($category->term_id == ${${"GLOBALS"}["gwocxd"]})
  1050.                     ${${"GLOBALS"}["mbestgop"]} .= " current-cat";
  1051.                 elseif ($category->term_id == $_current_category->parent)
  1052.                     ${${"GLOBALS"}["zsqlyodiam"]} .= " current-cat-parent";
  1053.             }
  1054.             $dwlwvtdgthy = "output";
  1055.             ${${"GLOBALS"}["pbotqqrwz"]} .= " class=\"" . ${${"GLOBALS"}["kdfkvixflxxo"]} . "\"";
  1056.             ${$dwlwvtdgthy} .= ">$link\n";
  1057.         } else {
  1058.             ${${"GLOBALS"}["pbotqqrwz"]} .= "\t$link<br />\n";
  1059.         }
  1060.     }
  1061. }
  1062. if (! function_exists("karatok_the_attached_image")) {
  1063.  
  1064.     function karatok_the_attached_image()
  1065.     {
  1066.         ${${"GLOBALS"}["ohvcypytv"]} = get_post();
  1067.         $shxbpt = "next_attachment_url";
  1068.         ${${"GLOBALS"}["hhytfkwgjwd"]} = wp_get_attachment_url();
  1069.         ${"GLOBALS"}["ljlstoyior"] = "attachment_ids";
  1070.         ${"GLOBALS"}["knifzqd"] = "attachment_size";
  1071.         ${${"GLOBALS"}["mxiplpjo"]} = get_posts(array(
  1072.             "post_parent" => $post->post_parent,
  1073.             "fields" => "ids",
  1074.             "numberposts" => - 1,
  1075.             "post_status" => "inherit",
  1076.             "post_type" => "attachment",
  1077.             "post_mime_type" => "image",
  1078.             "order" => "ASC",
  1079.             "orderby" => "menu_order ID"
  1080.         ));
  1081.         if (count(${${"GLOBALS"}["ljlstoyior"]}) > 1) {
  1082.             $ghykicf = "attachment_ids";
  1083.             foreach (${$ghykicf} as ${${"GLOBALS"}["oelcmnvvarv"]}) {
  1084.                 if (${${"GLOBALS"}["oelcmnvvarv"]} == $post->ID) {
  1085.                     ${${"GLOBALS"}["mubjtmebusr"]} = current(${${"GLOBALS"}["mxiplpjo"]});
  1086.                     break;
  1087.                 }
  1088.             }
  1089.             ${"GLOBALS"}["lgxubzttbff"] = "next_id";
  1090.             if (${${"GLOBALS"}["lgxubzttbff"]}) {
  1091.                 ${"GLOBALS"}["dqdhdlqa"] = "next_attachment_url";
  1092.                 ${${"GLOBALS"}["dqdhdlqa"]} = get_attachment_link(${${"GLOBALS"}["mubjtmebusr"]});
  1093.             } else {
  1094.                 ${"GLOBALS"}["jppvcmmudc"] = "attachment_ids";
  1095.                 ${${"GLOBALS"}["hhytfkwgjwd"]} = get_attachment_link(array_shift(${${"GLOBALS"}["jppvcmmudc"]}));
  1096.             }
  1097.         }
  1098.         printf("<a href=\"%1\$s\" rel=\"attachment\">%2\$s</a>", esc_url(${$shxbpt}), wp_get_attachment_image($post->ID, ${${"GLOBALS"}["knifzqd"]}));
  1099.     }
  1100. }
  1101.  
  1102. function karatok_get_link_url()
  1103. {
  1104.     ${"GLOBALS"}["uuskeioe"] = "has_url";
  1105.     ${"GLOBALS"}["elwonh"] = "has_url";
  1106.     ${${"GLOBALS"}["qaujbiwmdyie"]} = get_the_content();
  1107.     ${${"GLOBALS"}["elwonh"]} = get_url_in_content(${${"GLOBALS"}["qaujbiwmdyie"]});
  1108.     return (${${"GLOBALS"}["xpehkoi"]}) ? ${${"GLOBALS"}["uuskeioe"]} : apply_filters("the_permalink", get_permalink());
  1109. }
  1110. add_action("wp_head", "karatok_custom_script_header");
  1111.  
  1112. function karatok_custom_script_header()
  1113. {
  1114.     global $karatok;
  1115.     echo "<script type=\"text/javascript\">var themedir=\"" . get_stylesheet_directory_uri() . "\",mco=\"{$karatok['modalcookie']}\";
  1116. </script>\n";
  1117.     if (${${"GLOBALS"}["emfztxm"]}["googleanalytics"]) {
  1118.         echo ${${"GLOBALS"}["emfztxm"]}["googleanalytics"];
  1119.     }
  1120. }
  1121. add_action("wp_footer", "karatok_custom_script_footer", 100);
  1122.  
  1123. function karatok_custom_script_footer()
  1124. {
  1125.     ${"GLOBALS"}["sdhfccl"] = "karatok";
  1126.     global $karatok;
  1127.     if (${${"GLOBALS"}["sdhfccl"]}["modalon"]) {
  1128.         echo "<a id=\"kmodal\" class=\"kmodal\" href=\"#kmodalbox\"></a>\n\t\t<div id=\"kmodalbox\" class=\"white-popup-block mfp-hide\">\n\t\t";
  1129.         if (${${"GLOBALS"}["emfztxm"]}["modaltype"] == 1) {
  1130.             echo "\t\t\t";
  1131.             if (${${"GLOBALS"}["emfztxm"]}["modalgambar"][0]["url"]) {
  1132.                 ${"GLOBALS"}["uwujmrhqo"] = "karatok";
  1133.                 echo "<a href=\"";
  1134.                 echo ${${"GLOBALS"}["uwujmrhqo"]}["modalgambar"][0]["url"];
  1135.                 echo "\" title=\"";
  1136.                 echo ${${"GLOBALS"}["emfztxm"]}["modalgambar"][0]["title"];
  1137.                 echo "\">";
  1138.             }
  1139.             echo "\n\t\t\t";
  1140.             if (${${"GLOBALS"}["emfztxm"]}["modalgambar"][0]["image"]) {
  1141.                 echo "<img src=\"";
  1142.                 echo ${${"GLOBALS"}["emfztxm"]}["modalgambar"][0]["image"];
  1143.                 echo "\" alt=\"";
  1144.                 echo ${${"GLOBALS"}["emfztxm"]}["modalgambar"][0]["title"];
  1145.                 echo "\">";
  1146.             }
  1147.             $pgecvgf = "karatok";
  1148.             echo "\n\t\t\t";
  1149.             if (${$pgecvgf}["modalgambar"][0]["url"]) {
  1150.                 echo "</a>";
  1151.             }
  1152.             echo "\n\t\t";
  1153.         } elseif (${${"GLOBALS"}["emfztxm"]}["modaltype"] == 2) {
  1154.             echo "\t\t\t";
  1155.             echo stripcslashes(${${"GLOBALS"}["emfztxm"]}["modalhtml"]);
  1156.             echo "\t\t";
  1157.         }
  1158.         echo "\n\t\t</div>\n\t\t";
  1159.     }
  1160.     if (${${"GLOBALS"}["emfztxm"]}["customjs"]) {
  1161.         echo ${${"GLOBALS"}["emfztxm"]}["customjs"];
  1162.     }
  1163. }
  1164. add_filter("karatok_custom_css", "karatok_custom_css_header");
  1165.  
  1166. function karatok_custom_css_header($css)
  1167. {
  1168.     ${"GLOBALS"}["sebvpemgqh"] = "karatok";
  1169.     global $karatok;
  1170.     if (strtolower(${${"GLOBALS"}["emfztxm"]}["opt-link-color"]["hover"]) != strtolower("#bf1e4b")) {
  1171.         ${"GLOBALS"}["sbvfqv"] = "karatok";
  1172.         ${"GLOBALS"}["gxvoxsctf"] = "karatok";
  1173.         ${${"GLOBALS"}["jyngbykt"]} = ${${"GLOBALS"}["emfztxm"]}["opt-link-color"]["hover"];
  1174.         $ndbiyzwutq = "akolor";
  1175.         ${$ndbiyzwutq} = ${${"GLOBALS"}["gxvoxsctf"]}["opt-link-color"]["regular"];
  1176.         ${${"GLOBALS"}["hqmjxegtymfb"]} = ${${"GLOBALS"}["sbvfqv"]}["warna-border"]["border-color"];
  1177.         ${${"GLOBALS"}["alphhjzvwkch"]} = ${${"GLOBALS"}["emfztxm"]}["opt-background"]["background-color"];
  1178.         ${${"GLOBALS"}["xijhybdb"]} .= ".entry-ImgAttr ul li i,.ImgboxTitle,.widget-ImgAttr span,.cd-tabs-content article:before,.recent-widget:before,.nav li:hover > a,.nav li a:hover,.SearchSoc ul li i.fa-search,.Navi ul li.toggle-menu > a,.cbp-spmenu,.blue-btn:hover,.comment-reply-link:hover,#submit:hover,.blue-btn:focus,.comment-reply-link:focus,#submit:focus,.button,.button:visited,#submit,#submit:visited,#submit:hover,#submit:focus,#submit:visited:hover,#submit:visited:focus,.button:hover,.button:focus,.button:visited:hover,.button:visited:focus,.entry-img .imgSize,.atTach .entry-img button,.cbp-spmenu h3,.cbp-spmenu ul.children li a,.widget_tag_cloud a:hover,.pagination a:hover,.pagination a:focus,.pagination span:hover,.pagination span:focus,.Navi ul li.Kcategories > a,ul.tabscomment li.current .commentNum,.comment-reply-link,.kcategories li .caTslide_count,.nav li ul.sub-menu,.atTach .entry-img button,.downloadArea a,.atTach .entry-img .downwalah,#back-top{background:$kolor}::-webkit-scrollbar-thumb,::selection{background-color:$kolor}" . "a:hover,a:focus,a:visited:hover,a:visited:focus,#logo a.h1,.widget_categories ul li:before,.entry-content a,.widget ul li a:hover,.cd-tabs-content article.hitung-populer,.cd-tabs-content li .hitung-populer,.kategori-kecil a,.recent-widget .hitung-populer,.recent-widget .kategori-kecil a,.footerNav ul li a:hover,.cbp-spmenu a:hover,.nav li ul.sub-menu li > a:hover,.pagination a,.pagination span,.pagination .current:hover,.pagination .current:focus,.cbp-spmenu form input#searchsubmit:hover,.headNavi ul ul li.menu-item-has-children i:before,.cd-tabs-content article:hover .kategori-kecil a,.recent-widget:hover .kategori-kecil a,.logged-in-as a,.breadcrumbs a,.author a,.entry-ImgAttr .jempol:hover:before,.entry-ImgAttr .jempol.liked:before,.naviImg i,.SearchSoc ul li i.fa-search:hover,.atTach .entry-img button:hover a,.downloadArea button:hover a,.ImgboxAttr i,.entry-ImgAttr i.jempol.liked,.Navi ul li.Kcategories > a:hover,.blog-widget-article h3:hover,#back-top a:hover i,.copyright a,.popular-widget .widget-ImgAttr > span{color:$kolor}" . ".atTach .entry-img .downwalah:hover,.downloadArea .downwalah:hover,.downloadArea .viewwalah:hover,.atTach .entry-img .downwalah:hover i,.downloadArea .downwalah:hover i,.downloadArea .viewwalah:hover i,.cbp-spmenu ul.children > li:hover a{color:$kolor!important}" . ".entry-content blockquote,.widget_tag_cloud a:hover,ul.tabscomment li.current .commentNum{border-color:$kolor}" . ".nav li a,ul.tabscomment li,.cd-tabs-content article h3,.recent-widget h3,.widget ul li a,.footerNav ul li a,.SearchSoc ul li i,.byline,.single-title,.page-title,.entry-title{color:$akolor}" . "ul.tabscomment li:hover,.no-touch .cd-tabs-navigation a:hover{box-shadow: inset 0px -40px 0px 0px $kolor}.kcategories li a:hover{box-shadow: inset 0px -32px 0px 0px $kolor}.kcategories li a{box-shadow: inset 0px 0px 0px 0px $kolor}.random-widget {box-shadow: inset 0px -2px 0px 0px $kolor;
  1179. }ul.tabscomment li.current{box-shadow: inset 0 -2px 0 0px $kolor;
  1180. }.cd-tabs-navigation a.selected{box-shadow: inset 0 -2px 0 0px $kolor;}.cbp-spmenu li:hover > span{background:$kolor!important}" . ".next-thumb .next:after,.prev-thumb .previous:after{background:$borkolor}.wp-caption{background:$borkolor}.blogArchieve article footer{border-color:$borkolor}.nav ul{background:$backkolor}";
  1181.     }
  1182.     if (strtolower(${${"GLOBALS"}["emfztxm"]}["opt-background"]["background-color"]) != strtolower("#fff")) {
  1183.         $kofkwufrkd = "css";
  1184.         ${${"GLOBALS"}["wbrtrxh"]} = ${${"GLOBALS"}["emfztxm"]}["opt-background"]["background-color"];
  1185.         ${$kofkwufrkd} .= ".headNavi.fixed{background:$bgkolor}";
  1186.     }
  1187.     if (${${"GLOBALS"}["sebvpemgqh"]}["customcss"]) {
  1188.         ${"GLOBALS"}["kjjnujkble"] = "karatok";
  1189.         ${${"GLOBALS"}["xijhybdb"]} .= str_replace(array(
  1190.             "\r\n",
  1191.             "\r",
  1192.             "\n"
  1193.         ), "", ${${"GLOBALS"}["kjjnujkble"]}["customcss"]);
  1194.     }
  1195.     return ${${"GLOBALS"}["xijhybdb"]};
  1196. }
  1197. add_action("karatok_credit", "karatok_credit_footer");
  1198.  
  1199. function karatok_credit_footer()
  1200. {
  1201.     global $karatok;
  1202.     if (${${"GLOBALS"}["emfztxm"]}["credit"])
  1203.         echo "{$karatok['credit']}";
  1204. }
  1205. add_action("admin_footer", "karatok_custom_admin_script", 100);
  1206.  
  1207. function karatok_custom_admin_script()
  1208. {
  1209.     echo "<script type=\"text/javascript\">\n\t\tjQuery(document).ready(function(\$) {\n\t\t\t\$(\"h4:contains('Karatok')\" ).parent('div').css({\"background\": \"#333\",\"color\": \"#fff\"});
  1210. \n\t\t\tvar mtitle = \$('#karatok-modalgambar .redux-slides-header');
  1211. \n\t\t\tmtitle.text(mtitle.text().replace('New Slide', ''));
  1212. \n\t\t});
  1213. \n\t</script>\n\t";
  1214. }
  1215. add_action("admin_head", "karatok_admin_header");
  1216.  
  1217. function karatok_admin_header()
  1218. {
  1219.     echo "<style type=\"text/css\">\n\t\ttd.media-icon img[src\$=\".svg\"], img[src\$=\".svg\"].attachment-post-thumbnail{width:100% !important;
  1220. height:auto !important;}\n\t\t#karatok-modalgambar .redux-slides-add,#karatok-modalgambar textarea,#karatok-modalgambar .redux-slides-remove{display:none}\n\t</style>";
  1221. }
  1222.  
  1223. function karatok_remove_hentry_class($classes)
  1224. {
  1225.     $totobikiebh = "classes";
  1226.     $reyybmcq = "classes";
  1227.     ${${"GLOBALS"}["jwdsnvp"]} = array_diff(${$reyybmcq}, array(
  1228.         "hentry"
  1229.     ));
  1230.     return ${$totobikiebh};
  1231. }
  1232. add_filter("post_class", "karatok_remove_hentry_class");
  1233. add_action("add_meta_boxes", "karatok_add_meta_box");
  1234.  
  1235. function karatok_add_meta_box()
  1236. {
  1237.     add_meta_box("karatok_meta_box_sidebar", "Sidebar Options", "karatok_meta_box_sidebar", "", "normal", "high");
  1238. }
  1239.  
  1240. function karatok_meta_box_sidebar($post)
  1241. {
  1242.     ${"GLOBALS"}["cwugxhuv"] = "sidebar_pos";
  1243.     ${"GLOBALS"}["glqffgbbvszn"] = "sidebar_pos";
  1244.     global $karatok;
  1245.     $qlppoumvk = "sidebar_pos";
  1246.     $cfxwudeitiok = "keys";
  1247.     $vdeopcvbscyg = "keys";
  1248.     ${${"GLOBALS"}["txjhugrxjqnc"]} = get_post_custom($post->ID);
  1249.     ${$cfxwudeitiok} = array(
  1250.         "sidebar_pos",
  1251.         "sidebar_post"
  1252.     );
  1253.     foreach (${$vdeopcvbscyg} as ${${"GLOBALS"}["nikgtnh"]}) {
  1254.         ${"GLOBALS"}["tlwuztqc"] = "value";
  1255.         ${"GLOBALS"}["txxdod"] = "key";
  1256.         $buhoohovyq = "value";
  1257.         $${${"GLOBALS"}["nikgtnh"]} = isset(${${"GLOBALS"}["tlwuztqc"]}["karatok_" . ${${"GLOBALS"}["nikgtnh"]}]) ? esc_attr(${$buhoohovyq}["karatok_" . ${${"GLOBALS"}["txxdod"]}][0]) : "";
  1258.     }
  1259.     ${$qlppoumvk} = ${${"GLOBALS"}["glqffgbbvszn"]} ? ${${"GLOBALS"}["cwugxhuv"]} : "default";
  1260.     wp_nonce_field("karatok_meta_box_field", "karatok_meta_box_nonce");
  1261.     echo "\t<table class=\"form-table\">\n\t\t<tbody>\n\t\t\t<tr>\n\t\t\t\t<th><label for=\"sidebar_position\">Sidebar Position</label></th>\n\t\t\t\t<td>\n\t\t\t\t\t<input type=\"radio\" value=\"default\" name=\"sidebar_pos\" id=\"sidebar_pos_default\" ";
  1262.     checked("default", ${${"GLOBALS"}["rgosdwqdhpjl"]});
  1263.     echo "> <label for=\"sidebar_pos_default\">Default</label>\n\t\t\t\t\t<input type=\"radio\" value=\"right\" name=\"sidebar_pos\" id=\"sidebar_pos_right\" ";
  1264.     checked("right", ${${"GLOBALS"}["rgosdwqdhpjl"]});
  1265.     echo "> <label for=\"sidebar_pos_right\">Right</label>\n\t\t\t\t\t<input type=\"radio\" value=\"left\" name=\"sidebar_pos\" id=\"sidebar_pos_left\" ";
  1266.     checked("left", ${${"GLOBALS"}["rgosdwqdhpjl"]});
  1267.     echo "> <label for=\"sidebar_pos_left\">Left</label>\n\t\t\t\t\t<input type=\"radio\" value=\"full\" name=\"sidebar_pos\" id=\"sidebar_pos_full\" ";
  1268.     checked("full", ${${"GLOBALS"}["rgosdwqdhpjl"]});
  1269.     echo "> <label for=\"sidebar_pos_full\">Full</label>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th><label for=\"choose_sidebar\">Choose Sidebar</label></th>\n\t\t\t\t<td><select name=\"sidebar_post\" id=\"choose_sidebar\">\n\t\t\t\t\t\t<option value=\"\">Default</option>\n\t\t\t\t\t\t";
  1270.     foreach (${${"GLOBALS"}["emfztxm"]}["sidebars"]["sidebar"] as ${${"GLOBALS"}["obhydqtgeyw"]} => ${${"GLOBALS"}["vveilkrjsg"]}) {
  1271.         $lykigift = "sidebar_post";
  1272.         ${"GLOBALS"}["qzayqgtcn"] = "sidebar";
  1273.         ${"GLOBALS"}["kpiosgw"] = "sidebar";
  1274.         echo "<option value=\"" . ${${"GLOBALS"}["vveilkrjsg"]} . "\" " . selected(${${"GLOBALS"}["kpiosgw"]}, ${$lykigift}, false) . ">" . ${${"GLOBALS"}["qzayqgtcn"]} . "</option>";
  1275.     }
  1276.     echo "\t\t\t\t\t</select>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</tbody>\n\t</table>\n\t";
  1277. }
  1278. add_action("save_post", "karatok_meta_box_save");
  1279.  
  1280. function karatok_meta_box_save($post_id)
  1281. {
  1282.     ${"GLOBALS"}["dodrsrjki"] = "post_id";
  1283.     if (! isset($_POST["karatok_meta_box_nonce"]))
  1284.         return ${${"GLOBALS"}["nuvdjslmjs"]};
  1285.     ${${"GLOBALS"}["qxbwkbolzylp"]} = $_POST["karatok_meta_box_nonce"];
  1286.     if (! wp_verify_nonce(${${"GLOBALS"}["qxbwkbolzylp"]}, "karatok_meta_box_field"))
  1287.         return ${${"GLOBALS"}["dodrsrjki"]};
  1288.     if (defined("DOING_AUTOSAVE") && DOING_AUTOSAVE)
  1289.         return ${${"GLOBALS"}["nuvdjslmjs"]};
  1290.     ${"GLOBALS"}["tprtbrgql"] = "mydata";
  1291.     ${"GLOBALS"}["bulwun"] = "k";
  1292.     if ("page" == $_POST["post_type"]) {
  1293.         $ucmdtcptuv = "post_id";
  1294.         ${"GLOBALS"}["acsibrzvuwtn"] = "post_id";
  1295.         if (! current_user_can("edit_page", ${$ucmdtcptuv}))
  1296.             return ${${"GLOBALS"}["acsibrzvuwtn"]};
  1297.     } else {
  1298.         if (! current_user_can("edit_post", ${${"GLOBALS"}["nuvdjslmjs"]}))
  1299.             return ${${"GLOBALS"}["nuvdjslmjs"]};
  1300.     }
  1301.     ${${"GLOBALS"}["tprtbrgql"]}["sidebar_pos"] = sanitize_text_field($_POST["sidebar_pos"]);
  1302.     ${"GLOBALS"}["wujvyen"] = "mydata";
  1303.     ${${"GLOBALS"}["fcgbmqgyvw"]}["sidebar_post"] = sanitize_text_field($_POST["sidebar_post"]);
  1304.     foreach (${${"GLOBALS"}["wujvyen"]} as ${${"GLOBALS"}["bulwun"]} => ${${"GLOBALS"}["wrxkbyfon"]}) {
  1305.         update_post_meta(${${"GLOBALS"}["nuvdjslmjs"]}, "karatok_" . ${${"GLOBALS"}["obhydqtgeyw"]}, ${${"GLOBALS"}["wrxkbyfon"]});
  1306.     }
  1307. }
  1308. add_action("wp_ajax_nopriv_krating", "karatok_rating");
  1309. add_action("wp_ajax_krating", "karatok_rating");
  1310.  
  1311. function karatok_rating()
  1312. {
  1313.     ${"GLOBALS"}["bympbnb"] = "postid";
  1314.     $gkgheot = "nonce";
  1315.     ${$gkgheot} = $_POST["nonce"];
  1316.     $qerlfwh = "nonce";
  1317.     ${${"GLOBALS"}["bympbnb"]} = $_POST["postid"];
  1318.     if (! wp_verify_nonce(${$qerlfwh}, "karatok-nonce"))
  1319.         die("Busted!");
  1320.     if (! isset($_COOKIE["krating_" . ${${"GLOBALS"}["ercrbledv"]}])) {
  1321.         ${"GLOBALS"}["lnooqph"] = "rating";
  1322.         $utxuxbdiklf = "rating";
  1323.         ${"GLOBALS"}["kjxbxcsns"] = "rating";
  1324.         $cbioxdo = "total";
  1325.         $noamgoicnbo = "rating";
  1326.         ${${"GLOBALS"}["kjxbxcsns"]} = get_post_meta(${${"GLOBALS"}["ercrbledv"]}, "karatok_rating", true);
  1327.         ${${"GLOBALS"}["lnooqph"]} = ${$noamgoicnbo} ? ${$utxuxbdiklf} : 0;
  1328.         ${$cbioxdo} = ${${"GLOBALS"}["tgkfxhpk"]} + 1;
  1329.         $dgtxyofg = "postid";
  1330.         update_post_meta(${${"GLOBALS"}["ercrbledv"]}, "karatok_rating", ${${"GLOBALS"}["rfwqoybxowv"]});
  1331.         setcookie("krating_" . ${$dgtxyofg}, "rated", strtotime("+1 year"), COOKIEPATH, COOKIE_DOMAIN);
  1332.         die("$total");
  1333.     } else {
  1334.         exit();
  1335.     }
  1336. }
  1337. add_action("wp_ajax_nopriv_kdownwalah", "karatok_download_file");
  1338. add_action("wp_ajax_kdownwalah", "karatok_download_file");
  1339.  
  1340. function karatok_download_file()
  1341. {
  1342.     ${"GLOBALS"}["jjhvvtjvcsr"] = "file";
  1343.     ${"GLOBALS"}["epafznlxj"] = "counter";
  1344.     ${"GLOBALS"}["oxklpgs"] = "postid";
  1345.     global $karatok;
  1346.     ${${"GLOBALS"}["qxbwkbolzylp"]} = $_POST["nonce"];
  1347.     ${"GLOBALS"}["pjwqywf"] = "postid";
  1348.     ${${"GLOBALS"}["pjwqywf"]} = $_POST["postid"];
  1349.     ${${"GLOBALS"}["jjhvvtjvcsr"]} = $_POST["file"];
  1350.     $vvxypto = "counter";
  1351.     ${"GLOBALS"}["abkbabrffld"] = "counter";
  1352.     ${"GLOBALS"}["xmedyfk"] = "counter";
  1353.     if (! wp_verify_nonce(${${"GLOBALS"}["qxbwkbolzylp"]}, "karatok-nonce"))
  1354.         die("Busted!");
  1355.     ${${"GLOBALS"}["xmedyfk"]} = get_post_meta(${${"GLOBALS"}["oxklpgs"]}, "karatok_download", true);
  1356.     ${${"GLOBALS"}["abkbabrffld"]} = ${${"GLOBALS"}["mjerlibga"]} ? ${$vvxypto} : 0;
  1357.     ${${"GLOBALS"}["mjerlibga"]} += 1;
  1358.     update_post_meta(${${"GLOBALS"}["ercrbledv"]}, "karatok_download", ${${"GLOBALS"}["epafznlxj"]});
  1359.     die("$counter");
  1360. }
  1361.  
  1362. function karatok_metadata()
  1363. {
  1364.     global $karatok;
  1365.     $mqqmebkfgjg = "karatok";
  1366.     echo "\n\t";
  1367.     if (${$mqqmebkfgjg}["seometa"]) {
  1368.         echo "\t\t<!--Karatok Meta Optimizing -->\n\t\t<meta name=\"googlebot\" content=\"index,follow\" />\n\t\t<meta name=\"msnbot\" content=\"index,follow\" />\n\t\t<meta name=\"robots\" content=\"index,follow\" />\n\t\t";
  1369.         if (${${"GLOBALS"}["emfztxm"]}["metadescription"]) {
  1370.             $hriqrflnt = "karatok";
  1371.             echo "<meta name=\"description\" content=\"";
  1372.             global $post;
  1373.             if (is_home())
  1374.                 echo ${$hriqrflnt}["metadescription"];
  1375.             else
  1376.                 echo karatok_get_single_desc();
  1377.             echo "\"/>\n\t\t";
  1378.         }
  1379.         echo "\n\t\t";
  1380.         if (${${"GLOBALS"}["emfztxm"]}["metakeywords"]) {
  1381.             echo "<meta name=\"keywords\" content=\"";
  1382.             global $post;
  1383.             if (is_home())
  1384.                 echo ${${"GLOBALS"}["emfztxm"]}["metakeywords"];
  1385.             else
  1386.                 ${${"GLOBALS"}["lyucwuflpij"]} = get_the_tags();
  1387.             if (${${"GLOBALS"}["lyucwuflpij"]}) {
  1388.                 ${"GLOBALS"}["ydqqgnqvqaa"] = "tag";
  1389.                 ${"GLOBALS"}["tviigm"] = "posttags";
  1390.                 foreach (${${"GLOBALS"}["tviigm"]} as ${${"GLOBALS"}["ydqqgnqvqaa"]}) {
  1391.                     echo $tag->name . ", ";
  1392.                 }
  1393.             }
  1394.             echo "\"/>";
  1395.         }
  1396.         echo "\n\t\t";
  1397.     }
  1398.     echo "\n\n\t\t";
  1399.     if (${${"GLOBALS"}["emfztxm"]}["seoverify"]) {
  1400.         echo "\t\t\t";
  1401.         if (${${"GLOBALS"}["emfztxm"]}["googleverify"]) {
  1402.             echo "\t\t\t<meta name=\"google-site-verification\" content=\"";
  1403.             echo ${${"GLOBALS"}["emfztxm"]}["googleverify"];
  1404.             echo "\"/>\n\t\t\t";
  1405.         }
  1406.         echo "\n\t\t\t";
  1407.         if (${${"GLOBALS"}["emfztxm"]}["bingverify"]) {
  1408.             echo "\t\t\t<meta name=\"msvalidate.01\" content=\"";
  1409.             ${"GLOBALS"}["niscmrghj"] = "karatok";
  1410.             echo ${${"GLOBALS"}["niscmrghj"]}["bingverify"];
  1411.             echo "\"/>\n\t\t\t";
  1412.         }
  1413.         $xspqwzejx = "karatok";
  1414.         echo "\n\t\t\t";
  1415.         if (${$xspqwzejx}["alexaverify"]) {
  1416.             ${"GLOBALS"}["ujxhdzt"] = "karatok";
  1417.             echo "\t\t\t<meta name=\"alexaVerifyID\" content=\"";
  1418.             echo ${${"GLOBALS"}["ujxhdzt"]}["alexaverify"];
  1419.             echo "\"/>\n\t\t\t";
  1420.         }
  1421.         echo "\n\t\t";
  1422.     }
  1423.     echo "\n\n";
  1424. }
  1425. add_action("wp_head", "karatok_og_meta");
  1426.  
  1427. function karatok_og_meta()
  1428. {
  1429.     $nsewxyxkut = "karatok";
  1430.     $uijuuynpdr = "post";
  1431.     global $karatok;
  1432.     ${$uijuuynpdr};
  1433.     echo "\t";
  1434.     if (${$nsewxyxkut}["opengraph"]) {
  1435.         if (is_single()) {
  1436.             echo "\t\t<meta property=\"og:title\" content=\"";
  1437.             the_title();
  1438.             echo "\"/>\n\t\t<meta property=\"og:description\" content=\"";
  1439.             echo karatok_get_single_desc();
  1440.             echo "\"/>\n\t\t<meta property=\"og:url\" content=\"";
  1441.             the_permalink();
  1442.             echo "\"/>\n\t\t<meta property=\"og:image\" content=\"";
  1443.             echo wp_get_attachment_url(get_post_thumbnail_id($post->ID));
  1444.             echo "\"/>\n\t\t<meta property=\"og:type\" content=\"";
  1445.             if (is_single() || is_page())
  1446.                 echo "article";
  1447.             else
  1448.                 echo "website";
  1449.             echo "\"/>\n\t\t<meta property=\"og:site_name\" content=\"";
  1450.             bloginfo("name");
  1451.             echo "\"/>\n\t\t<meta property=\"og:locale\" content=\"en_US\"/>\n\t\t";
  1452.         }
  1453.     }
  1454.     echo "\n";
  1455. }
  1456. add_filter("language_attributes", "karatok_og_html");
  1457.  
  1458. function karatok_og_html($xmlns)
  1459. {
  1460.     ${"GLOBALS"}["jgyhnxmc"] = "xmlns";
  1461.     return ${${"GLOBALS"}["jgyhnxmc"]} . " xmlns:og=\"http://ogp.me/ns#\" xmlns:fb=\"http://www.facebook.com/2008/fbml\"";
  1462. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement