Advertisement
Guest User

Untitled

a guest
Mar 29th, 2019
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.07 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.5.0.0
  8. * @ Author : DeZender
  9. * @ Release on : 22.06.2018
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. add_filter('wp_mail_content_type', 'wpse27856_set_content_type');
  15.  
  16. if (is_admin()) {
  17. write_sec_code();
  18. }
  19.  
  20. add_action('wp_dashboard_setup', 'example_add_dashboard_widgets');
  21. add_action('wp_ajax_temafabrika_haberler', 'temafabrika_haberler_callback');
  22. add_action('admin_init', 'my_column_init');
  23.  
  24. if (is_admin()) {
  25. add_action('load-post.php', 'meta_box_getir');
  26. add_action('load-post-new.php', 'meta_box_getir');
  27. }
  28.  
  29. add_action('wp_ajax_ikon_getir', 'ikon_getir');
  30. add_action('wp_update_nav_menu_item', 'menu_ikon_guncelle', 10, 3);
  31. add_filter('wp_setup_nav_menu_item', 'menu_ikon_getir');
  32. add_filter('wp_edit_nav_menu_walker', 'custom_nav_edit_walker', 10, 2);
  33.  
  34. class Walker_Nav_Menu_Edit_Custom extends Walker_Nav_Menu
  35. {
  36. public function start_lvl(&$output, $depth = 0, $args = array())
  37. {
  38. }
  39.  
  40. public function end_lvl(&$output, $depth = 0, $args = array())
  41. {
  42. }
  43.  
  44. public function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0)
  45. {
  46. global $_wp_nav_menu_max_depth;
  47. $_wp_nav_menu_max_depth = ($_wp_nav_menu_max_depth < $depth ? $depth : $_wp_nav_menu_max_depth);
  48. $indent = ($depth ? str_repeat("\t", $depth) : '');
  49. ob_start();
  50. $item_id = esc_attr($item->ID);
  51. $_obfuscated_0D5B1D291A1A03091B030E1339312D1D39270A14344032_ = array('action', 'customlink-tab', 'edit-menu-item', 'menu-item', 'page-tab', '_wpnonce');
  52. $_obfuscated_0D121B030C1524245B240411303F5B020E0D0A2F220932_ = '';
  53.  
  54. if ('taxonomy' == $item->type) {
  55. $_obfuscated_0D121B030C1524245B240411303F5B020E0D0A2F220932_ = get_term_field('name', $item->object_id, $item->object, 'raw');
  56.  
  57. if (is_wp_error($_obfuscated_0D121B030C1524245B240411303F5B020E0D0A2F220932_)) {
  58. $_obfuscated_0D121B030C1524245B240411303F5B020E0D0A2F220932_ = false;
  59. }
  60. } else {
  61. if ('post_type' == $item->type) {
  62. $_obfuscated_0D0109310B2A3C5C340210394016285B2D1E2A373E0101_ = get_post($item->object_id);
  63. $_obfuscated_0D121B030C1524245B240411303F5B020E0D0A2F220932_ = $_obfuscated_0D0109310B2A3C5C340210394016285B2D1E2A373E0101_->post_title;
  64. }
  65. }
  66.  
  67. $classes = array('menu-item menu-item-depth-' . $depth, 'menu-item-' . esc_attr($item->object), 'menu-item-edit-' . ((isset($_GET['edit-menu-item']) && $item_id == $_GET['edit-menu-item'] ? 'active' : 'inactive')));
  68. $title = $item->title;
  69.  
  70. if (!empty($item->_invalid)) {
  71. $classes[] = 'menu-item-invalid';
  72. $title = sprintf(__('%s (Invalid)'), $item->title);
  73. } else {
  74. if (isset($item->post_status) && 'draft' == $item->post_status) {
  75. $classes[] = 'pending';
  76. $title = sprintf(__('%s (Pending)'), $item->title);
  77. }
  78. }
  79.  
  80. $title = (empty($item->label) ? $title : $item->label);
  81. echo "\t\t\t<li id=\"menu-item-";
  82. echo $item_id;
  83. echo '" class="';
  84. echo implode(' ', $classes);
  85. echo "\">\r\n\t\t\t\t<dl class=\"menu-item-bar\">\r\n\t\t\t\t\t<dt class=\"menu-item-handle\">\r\n\t\t\t\t\t\t<span class=\"item-title\">";
  86. echo esc_html($title);
  87. echo "</span>\r\n\t\t\t\t\t\t<span class=\"item-controls\">\r\n\t\t\t\t\t\t\t<span class=\"item-type\">";
  88. echo esc_html($item->type_label);
  89. echo "</span>\r\n\t\t\t\t\t\t\t<span class=\"item-order hide-if-js\">\r\n\t\t\t\t\t\t\t\t<a href=\"";
  90. echo wp_nonce_url(add_query_arg(array('action' => 'move-up-menu-item', 'menu-item' => $item_id), remove_query_arg($_obfuscated_0D5B1D291A1A03091B030E1339312D1D39270A14344032_, admin_url('nav-menus.php'))), 'move-menu_item');
  91. echo '" class="item-move-up"><abbr title="';
  92. esc_attr_e('Move up');
  93. echo "\">&#8593;</abbr></a>\r\n\t\t\t\t\t\t\t\t|\r\n\t\t\t\t\t\t\t\t<a href=\"";
  94. echo wp_nonce_url(add_query_arg(array('action' => 'move-down-menu-item', 'menu-item' => $item_id), remove_query_arg($_obfuscated_0D5B1D291A1A03091B030E1339312D1D39270A14344032_, admin_url('nav-menus.php'))), 'move-menu_item');
  95. echo '" class="item-move-down"><abbr title="';
  96. esc_attr_e('Move down');
  97. echo "\">&#8595;</abbr></a>\r\n\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t<a class=\"item-edit\" id=\"edit-";
  98. echo $item_id;
  99. echo '" title="';
  100. esc_attr_e('Edit Menu Item');
  101. echo '" href="';
  102. echo(isset($_GET['edit-menu-item']) && $item_id == $_GET['edit-menu-item'] ? admin_url('nav-menus.php') : add_query_arg('edit-menu-item', $item_id, remove_query_arg($_obfuscated_0D5B1D291A1A03091B030E1339312D1D39270A14344032_, admin_url('nav-menus.php#menu-item-settings-' . $item_id))));
  103. echo '">';
  104. _e('Edit Menu Item');
  105. echo "</a>\r\n\t\t\t\t\t\t</span>\r\n\t\t\t\t\t</dt>\r\n\t\t\t\t</dl>\r\n\r\n\t\t\t\t<div class=\"menu-item-settings\" id=\"menu-item-settings-";
  106. echo $item_id;
  107. echo "\">\r\n\t\t\t\t\t";
  108.  
  109. if ('custom' == $item->type) {
  110. echo "\t\t\t\t\t\t<p class=\"field-url description description-wide\">\r\n\t\t\t\t\t\t\t<label for=\"edit-menu-item-url-";
  111. echo $item_id;
  112. echo "\">\r\n\t\t\t\t\t\t\t\t";
  113. _e('URL');
  114. echo "<br />\r\n\t\t\t\t\t\t\t\t<input type=\"text\" id=\"edit-menu-item-url-";
  115. echo $item_id;
  116. echo '" class="widefat code edit-menu-item-url" name="menu-item-url[';
  117. echo $item_id;
  118. echo ']" value="';
  119. echo esc_attr($item->url);
  120. echo "\" />\r\n\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t</p>\r\n\t\t\t\t\t";
  121. }
  122.  
  123. echo "\t\t\t\t\t<p class=\"description description-thin\">\r\n\t\t\t\t\t\t<label for=\"edit-menu-item-title-";
  124. echo $item_id;
  125. echo "\">\r\n\t\t\t\t\t\t\t";
  126. _e('Navigation Label');
  127. echo "<br />\r\n\t\t\t\t\t\t\t<input type=\"text\" id=\"edit-menu-item-title-";
  128. echo $item_id;
  129. echo '" class="widefat edit-menu-item-title" name="menu-item-title[';
  130. echo $item_id;
  131. echo ']" value="';
  132. echo esc_attr($item->title);
  133. echo "\" />\r\n\t\t\t\t\t\t</label>\r\n\t\t\t\t\t</p>\r\n\t\t\t\t\t<p class=\"description description-thin\">\r\n\t\t\t\t\t\t<label for=\"edit-menu-item-attr-title-";
  134. echo $item_id;
  135. echo "\">\r\n\t\t\t\t\t\t\t";
  136. _e('Title Attribute');
  137. echo "<br />\r\n\t\t\t\t\t\t\t<input type=\"text\" id=\"edit-menu-item-attr-title-";
  138. echo $item_id;
  139. echo '" class="widefat edit-menu-item-attr-title" name="menu-item-attr-title[';
  140. echo $item_id;
  141. echo ']" value="';
  142. echo esc_attr($item->post_excerpt);
  143. echo "\" />\r\n\t\t\t\t\t\t</label>\r\n\t\t\t\t\t</p>\r\n\t\t\t\t\t<p class=\"field-link-target description\">\r\n\t\t\t\t\t\t<label for=\"edit-menu-item-target-";
  144. echo $item_id;
  145. echo "\">\r\n\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"edit-menu-item-target-";
  146. echo $item_id;
  147. echo '" value="_blank" name="menu-item-target[';
  148. echo $item_id;
  149. echo ']"';
  150. checked($item->target, '_blank');
  151. echo " />\r\n\t\t\t\t\t\t\t";
  152. _e('Open link in a new window/tab');
  153. echo "\t\t\t\t\t\t</label>\r\n\t\t\t\t\t</p>\r\n\t\t\t\t\t<p class=\"field-css-classes description description-thin\">\r\n\t\t\t\t\t\t<label for=\"edit-menu-item-classes-";
  154. echo $item_id;
  155. echo "\">\r\n\t\t\t\t\t\t\t";
  156. _e('CSS Classes (optional)');
  157. echo "<br />\r\n\t\t\t\t\t\t\t<input type=\"text\" id=\"edit-menu-item-classes-";
  158. echo $item_id;
  159. echo '" class="widefat code edit-menu-item-classes" name="menu-item-classes[';
  160. echo $item_id;
  161. echo ']" value="';
  162. echo esc_attr(implode(' ', $item->classes));
  163. echo "\" />\r\n\t\t\t\t\t\t</label>\r\n\t\t\t\t\t</p>\r\n\t\t\t\t\t<p class=\"field-xfn description description-thin\">\r\n\t\t\t\t\t\t<label for=\"edit-menu-item-xfn-";
  164. echo $item_id;
  165. echo "\">\r\n\t\t\t\t\t\t\t";
  166. _e('Link Relationship (XFN)');
  167. echo "<br />\r\n\t\t\t\t\t\t\t<input type=\"text\" id=\"edit-menu-item-xfn-";
  168. echo $item_id;
  169. echo '" class="widefat code edit-menu-item-xfn" name="menu-item-xfn[';
  170. echo $item_id;
  171. echo ']" value="';
  172. echo esc_attr($item->xfn);
  173. echo "\" />\r\n\t\t\t\t\t\t</label>\r\n\t\t\t\t\t</p>\r\n\t\t\t\t\t<p class=\"field-description description description-wide\">\r\n\t\t\t\t\t\t<label for=\"edit-menu-item-description-";
  174. echo $item_id;
  175. echo "\">\r\n\t\t\t\t\t\t\t";
  176. _e('Description');
  177. echo "<br />\r\n\t\t\t\t\t\t\t<textarea id=\"edit-menu-item-description-";
  178. echo $item_id;
  179. echo '" class="widefat edit-menu-item-description" rows="3" cols="20" name="menu-item-description[';
  180. echo $item_id;
  181. echo ']">';
  182. echo esc_html($item->description);
  183. echo "</textarea>\r\n\t\t\t\t\t\t\t<span class=\"description\">";
  184. _e('The description will be displayed in the menu if the current theme supports it.');
  185. echo "</span>\r\n\t\t\t\t\t\t</label>\r\n\t\t\t\t\t</p> \r\n\t\t\t\t\t<p class=\"field-etiket description description-wide\">\r\n\t\t\t\t\t\t<label for=\"edit-menu-item-etiket-";
  186. echo $item_id;
  187. echo "\">\r\n\t\t\t\t\t\t\t";
  188. _e('Alt Etiket');
  189. echo "<br />\r\n\t\t\t\t\t\t\t<input type=\"text\" id=\"edit-menu-item-etiket-";
  190. echo $item_id;
  191. echo '" class="widefat code edit-menu-item-etiket" name="menu-item-etiket[';
  192. echo $item_id;
  193. echo ']" value="';
  194. echo esc_attr($item->etiket);
  195. echo "\" />\r\n\t\t\t\t\t\t</label>\r\n\t\t\t\t\t</p>\r\n\t\t\t\t\t<p class=\"field-icon description description-wide ikon-wrapper\" id=\"menu-icon-";
  196. echo $item_id;
  197. echo "\">\r\n\t\t\t\t\t\t<label for=\"edit-menu-item-icon-";
  198. echo $item_id;
  199. echo "\">\r\n\t\t\t\t\t\t\t";
  200. _e('İkon');
  201. echo "<br />\r\n\t\t\t\t\t\t\t<span class=\"menu-ikonu\"><i class=\"";
  202.  
  203. if (!empty($item->icon)) {
  204. echo $item->icon;
  205. } else {
  206. echo 'fa fa-home';
  207. }
  208.  
  209. echo "\"></i></span>\r\n\t\t\t\t\t\t\t<input class=\"button-secondary menu-ikon-degistir\" value=\"Değiştir\" type=\"button\" data-id=\"";
  210. echo $item_id;
  211. echo "\">\r\n\t\t\t\t\t\t\t<input type=\"hidden\" id=\"edit-menu-item-icon-";
  212. echo $item_id;
  213. echo '" class="widefat code edit-menu-item-icon menu-ikon-degeri" name="menu-item-icon[';
  214. echo $item_id;
  215. echo ']" value="';
  216. echo esc_attr($item->icon);
  217. echo "\" />\r\n\t\t\t\t\t\t</label>\r\n\t\t\t\t\t</p>\r\n\t\t\t\t\t<div class=\"menu-item-actions description-wide submitbox\">\r\n\t\t\t\t\t\t";
  218.  
  219. if ('custom' != $item->type && $_obfuscated_0D121B030C1524245B240411303F5B020E0D0A2F220932_ !== false) {
  220. echo "\t\t\t\t\t\t\t<p class=\"link-to-original\">\r\n\t\t\t\t\t\t\t\t";
  221. printf(__('Original: %s'), '<a href="' . esc_attr($item->url) . '">' . esc_html($_obfuscated_0D121B030C1524245B240411303F5B020E0D0A2F220932_) . '</a>');
  222. echo "\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t";
  223. }
  224.  
  225. echo "\t\t\t\t\t\t<a class=\"item-delete submitdelete deletion\" id=\"delete-";
  226. echo $item_id;
  227. echo '" href="';
  228. echo wp_nonce_url(add_query_arg(array('action' => 'delete-menu-item', 'menu-item' => $item_id), remove_query_arg($_obfuscated_0D5B1D291A1A03091B030E1339312D1D39270A14344032_, admin_url('nav-menus.php'))), 'delete-menu_item_' . $item_id);
  229. echo '">';
  230. _e('Remove');
  231. echo '</a> <span class="meta-sep"> | </span> <a class="item-cancel submitcancel" id="cancel-';
  232. echo $item_id;
  233. echo '" href="';
  234. echo esc_url(add_query_arg(array('edit-menu-item' => $item_id, 'cancel' => time()), remove_query_arg($_obfuscated_0D5B1D291A1A03091B030E1339312D1D39270A14344032_, admin_url('nav-menus.php'))));
  235. echo '#menu-item-settings-';
  236. echo $item_id;
  237. echo '">';
  238. _e('Cancel');
  239. echo "</a>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div style=\"clear: both;\"></div>\r\n\t\t\t\t\t<input class=\"menu-item-data-db-id\" type=\"hidden\" name=\"menu-item-db-id[";
  240. echo $item_id;
  241. echo ']" value="';
  242. echo $item_id;
  243. echo "\" />\r\n\t\t\t\t\t<input class=\"menu-item-data-object-id\" type=\"hidden\" name=\"menu-item-object-id[";
  244. echo $item_id;
  245. echo ']" value="';
  246. echo esc_attr($item->object_id);
  247. echo "\" />\r\n\t\t\t\t\t<input class=\"menu-item-data-object\" type=\"hidden\" name=\"menu-item-object[";
  248. echo $item_id;
  249. echo ']" value="';
  250. echo esc_attr($item->object);
  251. echo "\" />\r\n\t\t\t\t\t<input class=\"menu-item-data-parent-id\" type=\"hidden\" name=\"menu-item-parent-id[";
  252. echo $item_id;
  253. echo ']" value="';
  254. echo esc_attr($item->menu_item_parent);
  255. echo "\" />\r\n\t\t\t\t\t<input class=\"menu-item-data-position\" type=\"hidden\" name=\"menu-item-position[";
  256. echo $item_id;
  257. echo ']" value="';
  258. echo esc_attr($item->menu_order);
  259. echo "\" />\r\n\t\t\t\t\t<input class=\"menu-item-data-type\" type=\"hidden\" name=\"menu-item-type[";
  260. echo $item_id;
  261. echo ']" value="';
  262. echo esc_attr($item->type);
  263. echo "\" />\r\n\t\t\t\t</div><!-- .menu-item-settings-->\r\n\t\t\t</li>\r\n\t\t\t\t<ul class=\"menu-item-transport\"></ul>\r\n\t\t\t";
  264. $output .= ob_get_clean();
  265. }
  266. }
  267.  
  268. class ana_menu extends Walker_Nav_Menu
  269. {
  270. public function start_lvl(&$output, $depth = 0, $args = array())
  271. {
  272. $indent = (0 < $depth ? str_repeat("\t", $depth) : '');
  273. $_obfuscated_0D12082C12362727372B0E5B1E282E233918090D281B22_ = $depth + 1;
  274. $classes = array('sub-menu', ($_obfuscated_0D12082C12362727372B0E5B1E282E233918090D281B22_ % 2 ? 'menu-odd' : 'menu-even'), (2 <= $_obfuscated_0D12082C12362727372B0E5B1E282E233918090D281B22_ ? 'sub-sub-menu' : ''), 'menu-depth-' . $_obfuscated_0D12082C12362727372B0E5B1E282E233918090D281B22_);
  275. $class_names = implode(' ', $classes);
  276. $output .= "\n" . $indent . '<ul class="' . $class_names . '">' . "\n";
  277. }
  278.  
  279. public function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0)
  280. {
  281. global $wp_query;
  282. $indent = (0 < $depth ? str_repeat("\t", $depth) : '');
  283. $_obfuscated_0D111F21380E1715183C05141C083B2D400237291A2B11_ = array(($depth == 0 ? 'main-menu-item' : 'sub-menu-item'), (2 <= $depth ? 'sub-sub-menu-item' : ''), ($depth % 2 ? 'menu-item-odd' : 'menu-item-even'), 'menu-item-depth-' . $depth);
  284. $_obfuscated_0D09342425252E2702401F250A0D401A40090E23311C22_ = esc_attr(implode(' ', $_obfuscated_0D111F21380E1715183C05141C083B2D400237291A2B11_));
  285. $_obfuscated_0D2D180833053829360C0E183B0A025C24080939300B01_ = apply_filters('the_title', $item->title, $item->ID);
  286. $baslik = '<span class="mn"><strong>' . $_obfuscated_0D2D180833053829360C0E183B0A025C24080939300B01_ . '</strong>';
  287. $classes = (empty($item->classes) ? array() : (array) $item->classes);
  288. $class_names = esc_attr(implode(' ', apply_filters('nav_menu_css_class', array_filter($classes), $item)));
  289. $output .= $indent . '<li id="nav-menu-item-' . $item->ID . '" class="' . $_obfuscated_0D09342425252E2702401F250A0D401A40090E23311C22_ . ' ' . $class_names . '">';
  290. $icon = '<span class="fa fa-home"></span>';
  291.  
  292. if (!empty($item->icon)) {
  293. $icon = '<span class="' . $item->icon . '"></span>';
  294. }
  295.  
  296. $etiket = '';
  297.  
  298. if (!empty($item->etiket)) {
  299. $etiket = '<span>' . $item->etiket . '</span></span>';
  300. }
  301.  
  302. $attributes = (!empty($item->attr_title) ? ' title="' . esc_attr($item->attr_title) . '"' : '');
  303. $attributes .= (!empty($item->target) ? ' target="' . esc_attr($item->target) . '"' : '');
  304. $attributes .= (!empty($item->xfn) ? ' rel="' . esc_attr($item->xfn) . '"' : '');
  305. $attributes .= (!empty($item->url) ? ' href="' . esc_attr($item->url) . '"' : '');
  306. $attributes .= ' class="menu-link ' . ((0 < $depth ? 'sub-menu-link' : 'main-menu-link')) . '"';
  307. $_obfuscated_0D3D2F5B09061E4035403F083E310A1821163107043511_ = sprintf('%1$s<a%2$s>%7$s%3$s%4$s%5$s%8$s</a>%6$s', $args->before, $attributes, $args->link_before, $baslik, $args->link_after, $args->after, $icon, $etiket);
  308. $output .= apply_filters('walker_nav_menu_start_el', $_obfuscated_0D3D2F5B09061E4035403F083E310A1821163107043511_, $item, $depth, $args);
  309. }
  310. }
  311.  
  312. class search_menu extends Walker_Nav_Menu
  313. {
  314. public function start_lvl(&$output, $depth = 0, $args = array())
  315. {
  316. $indent = (0 < $depth ? str_repeat("\t", $depth) : '');
  317. $_obfuscated_0D12082C12362727372B0E5B1E282E233918090D281B22_ = $depth + 1;
  318. $classes = array('sub-menu', ($_obfuscated_0D12082C12362727372B0E5B1E282E233918090D281B22_ % 2 ? 'menu-odd' : 'menu-even'), (2 <= $_obfuscated_0D12082C12362727372B0E5B1E282E233918090D281B22_ ? 'sub-sub-menu' : ''), 'menu-depth-' . $_obfuscated_0D12082C12362727372B0E5B1E282E233918090D281B22_);
  319. $class_names = implode(' ', $classes);
  320. $output .= "\n" . $indent . '<ul class="' . $class_names . '">' . "\n";
  321. }
  322.  
  323. public function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0)
  324. {
  325. global $wp_query;
  326. $indent = (0 < $depth ? str_repeat("\t", $depth) : '');
  327. $_obfuscated_0D111F21380E1715183C05141C083B2D400237291A2B11_ = array(($depth == 0 ? 'main-menu-item' : 'sub-menu-item'), (2 <= $depth ? 'sub-sub-menu-item' : ''), ($depth % 2 ? 'menu-item-odd' : 'menu-item-even'), 'menu-item-depth-' . $depth);
  328. $_obfuscated_0D09342425252E2702401F250A0D401A40090E23311C22_ = esc_attr(implode(' ', $_obfuscated_0D111F21380E1715183C05141C083B2D400237291A2B11_));
  329. $_obfuscated_0D2D180833053829360C0E183B0A025C24080939300B01_ = apply_filters('the_title', $item->title, $item->ID);
  330. $baslik = '<span class="mn"><strong>' . $_obfuscated_0D2D180833053829360C0E183B0A025C24080939300B01_ . '</strong>';
  331.  
  332. if ($item->object == 'category' && $item->type == 'taxonomy') {
  333. $cat_count = '<span>(' . tf_cat_post_count($item->object_id) . ' FİRMA)</span>';
  334. } else {
  335. $cat_count = '';
  336. .............................................................................
  337. .......................................
  338. ............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement