daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest Oct 8th, 2017 461 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version         :   3.0.8.0
  8. * @ Author          :   DeZender
  9. * @ Release on      :   25.09.2017
  10. * @ Official site   :   http://DeZender.Net
  11. *
  12. */
  13.  
  14. class meta_box_ekle
  15. {
  16.     public function __construct()
  17.     {
  18.         add_action( 'add_meta_boxes', array(
  19.             $this,
  20.             'add_meta_box'
  21.         ) );
  22.         add_action( 'save_post', array(
  23.             $this,
  24.             'save'
  25.         ) );
  26.     }
  27.  
  28.     public function add_meta_box($post_type)
  29.     {
  30.         $_obfuscate_DR89KDQvMwkxNx8IJwYxCgsOCQEOXDI = array(
  31.             'post',
  32.             'haberler',
  33.             'etkinlikler',
  34.             'ilanlar',
  35.             'urunler',
  36.             'videolar'
  37.         );
  38.  
  39.         if (in_array( $post_type, $_obfuscate_DR89KDQvMwkxNx8IJwYxCgsOCQEOXDI )) {
  40.             if ($post_type == 'post') {
  41.                 add_meta_box( 'secenekler', __( 'Firma Özellikleri', 'film' ), array(
  42.                     $_obfuscate_DTQeBhgtIwwyKi8NBCgTPlsIDxkvPiI,
  43.                     'render_meta_box_content'
  44.                 ), $post_type, 'advanced', 'high' );
  45.             }
  46.  
  47.             if ($post_type == 'haberler') {
  48.                 add_meta_box( 'secenekler', __( 'Haber Özellikleri', 'film' ), array(
  49.                     $_obfuscate_DTQeBhgtIwwyKi8NBCgTPlsIDxkvPiI,
  50.                     'render_meta_box_content'
  51.                 ), $post_type, 'advanced', 'high' );
  52.             }
  53.  
  54.             if ($post_type == 'etkinlikler') {
  55.                 add_meta_box( 'secenekler', __( 'Etkinlik Özellikleri', 'film' ), array(
  56.                     $_obfuscate_DTQeBhgtIwwyKi8NBCgTPlsIDxkvPiI,
  57.                     'render_meta_box_content'
  58.                 ), $post_type, 'advanced', 'high' );
  59.             }
  60.  
  61.             if ($post_type == 'ilanlar') {
  62.                 add_meta_box( 'secenekler', __( 'İlan Özellikleri', 'film' ), array(
  63.                     $_obfuscate_DTQeBhgtIwwyKi8NBCgTPlsIDxkvPiI,
  64.                     'render_meta_box_content'
  65.                 ), $post_type, 'advanced', 'high' );
  66.             }
  67.  
  68.             if ($post_type == 'urunler') {
  69.                 add_meta_box( 'secenekler', __( 'Ürün Özellikleri', 'film' ), array(
  70.                     $_obfuscate_DTQeBhgtIwwyKi8NBCgTPlsIDxkvPiI,
  71.                     'render_meta_box_content'
  72.                 ), $post_type, 'advanced', 'high' );
  73.             }
  74.  
  75.             if ($post_type == 'videolar') {
  76.                 add_meta_box( 'secenekler', __( 'Video Özellikleri', 'film' ), array(
  77.                     $_obfuscate_DTQeBhgtIwwyKi8NBCgTPlsIDxkvPiI,
  78.                     'render_meta_box_content'
  79.                 ), $post_type, 'advanced', 'high' );
  80.             }
  81.         }
  82.     }
  83.  
  84.     public function save($post_id)
  85.     {
  86.         $post_id = intval( $_POST['post_ID'] );
  87.  
  88.         if (!(isset( $_POST['guvenlik_kontrolu'] ))) {
  89.             return $post_id;
  90.         }
  91.  
  92.         $_obfuscate_DRg4JzMbEhcoByUnGzEbKFwvHSoqDyI = $_POST['guvenlik_kontrolu'];
  93.  
  94.         if (!(wp_verify_nonce( $_obfuscate_DRg4JzMbEhcoByUnGzEbKFwvHSoqDyI, 'guvenlik_kontrolcusu' ))) {
  95.             return $post_id;
  96.         }
  97.  
  98.         if (defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE) {
  99.             return $post_id;
  100.         }
  101.  
  102.         if ('page' == $_POST['post_type']) {
  103.             if (!(current_user_can( 'edit_page', $post_id ))) {
  104.                 return $post_id;
  105.  
  106.                 if (!(current_user_can( 'edit_post', $post_id ))) {
  107.                     return $post_id;
  108.                 }
  109.             }
  110.         }
  111.          else {
  112.             return $post_id;
  113.         }
  114.  
  115.         global $wpdb;
  116.         if ((($_POST['post_type'] == 'post') || ($_POST['post_type'] == 'urunler')) && isset( $_FILES['resimler']['name'] ) && (0 < count( $_FILES['resimler']['name'] ))) {
  117.             require_once ABSPATH . 'wp-admin/includes/image.php';
  118.  
  119.             foreach ($_FILES['resimler']['name'] as $_obfuscate_DR4UJhI_PAUPLQENBxIKHgcTCS45KCI => $_obfuscate_DS0ILyUBFjsSERQIJDxcWw8lCQQ1CwE) {
  120.                 $_obfuscate_DTs2NDYvJzQlCjweGTQNEzcuHkAaQDI = explode( '.', $_obfuscate_DS0ILyUBFjsSERQIJDxcWw8lCQQ1CwE );
  121.                 $_obfuscate_DTs2NDYvJzQlCjweGTQNEzcuHkAaQDI = end( $_obfuscate_DTs2NDYvJzQlCjweGTQNEzcuHkAaQDI );
  122.                 $_obfuscate_DRUjPwoOEx8DPRc3CQslMT8EMR0GIwE = sanitize_title( $_POST['post_title'] ) . '.' . $_obfuscate_DTs2NDYvJzQlCjweGTQNEzcuHkAaQDI;
  123.                 $_obfuscate_DRclLRMGNRc2LRUNBhkrMD8GCB0hOxE = wp_check_filetype( basename( $_obfuscate_DRUjPwoOEx8DPRc3CQslMT8EMR0GIwE ), NULL );
  124.                 $_obfuscate_DRQTECoUHBEpKDkEKBgpGzUvERsKCzI = wp_upload_bits( $_obfuscate_DRUjPwoOEx8DPRc3CQslMT8EMR0GIwE, $_obfuscate_DRclLRMGNRc2LRUNBhkrMD8GCB0hOxE, file_get_contents( $_FILES['resimler']['tmp_name'][$_obfuscate_DR4UJhI_PAUPLQENBxIKHgcTCS45KCI] ) );
  125.  
  126.                 if (empty( $_obfuscate_DRQTECoUHBEpKDkEKBgpGzUvERsKCzI['error'] )) {
  127.                     $_obfuscate_DR0ZCBczNywlGTY3FFwuMR8ZKls5PzI = array(
  128.                         'guid'           => $_obfuscate_DRQTECoUHBEpKDkEKBgpGzUvERsKCzI['url'],
  129.                         'post_mime_type' => $_obfuscate_DRclLRMGNRc2LRUNBhkrMD8GCB0hOxE['type'],
  130.                         'post_title'     => preg_replace( '/\\.[^.]+$/', '', basename( $_obfuscate_DRUjPwoOEx8DPRc3CQslMT8EMR0GIwE ) ),
  131.                         'post_content'   => '',
  132.                         'post_status'    => 'inherit'
  133.                     );
  134.                     $_obfuscate_DSI3PC0TWz0PBBIOJygUPTweGBQVERE = wp_insert_attachment( $_obfuscate_DR0ZCBczNywlGTY3FFwuMR8ZKls5PzI, $_obfuscate_DRQTECoUHBEpKDkEKBgpGzUvERsKCzI['file'], $post_id );
  135.                     $_obfuscate_DRYnQA8BAQoSOSUbFgkINwRbPCYlWzI = wp_generate_attachment_metadata( $_obfuscate_DSI3PC0TWz0PBBIOJygUPTweGBQVERE, $_obfuscate_DRQTECoUHBEpKDkEKBgpGzUvERsKCzI['file'] );
  136.                     wp_update_attachment_metadata( $_obfuscate_DSI3PC0TWz0PBBIOJygUPTweGBQVERE, $_obfuscate_DRYnQA8BAQoSOSUbFgkINwRbPCYlWzI );
  137.                 }
  138.             }
  139.         }
  140.  
  141.         if ($_POST['post_type'] == 'post') {
  142.             update_post_meta( $post_id, 'bilgi', $_POST['bilgi'] );
  143.  
  144.             if (!(isset( $_POST['harita']['kullan'] ))) {
  145.                 $_POST['harita']['kullan'] = 0;
  146.             }
  147.  
  148.             update_post_meta( $post_id, 'harita', $_POST['harita'] );
  149.             update_post_meta( $post_id, 'gold', strtotime( $_POST['gold'] ) );
  150.             update_post_meta( $post_id, 'vitrin', strtotime( $_POST['vitrin'] ) );
  151.  
  152.             if ($_POST['harita']['sehir']) {
  153.                 $_obfuscate_DQE1Bz0bMQkdCTQJwFAMA8ODsSBxE = $wpdb->get_row( 'SELECT adi FROM ' . $wpdb->prefix . 'rehber_iller WHERE id = \'' . intval( $_POST['harita']['sehir'] ) . '\'', 'ARRAY_A' );
  154.                 update_post_meta( $post_id, 'sehir', $_obfuscate_DQE1Bz0bMQkdCTQJwFAMA8ODsSBxE['adi'] );
  155.             }
  156.  
  157.             if ($_POST['harita']['ilce']) {
  158.                 $_obfuscate_DQcNNAwWFyklNxE3MA0cOxw3KT8vMDI = $wpdb->get_row( 'SELECT adi FROM ' . $wpdb->prefix . 'rehber_ilceler WHERE id = \'' . intval( $_POST['harita']['ilce'] ) . '\'', 'ARRAY_A' );
  159.                 update_post_meta( $post_id, 'ilce', $_obfuscate_DQcNNAwWFyklNxE3MA0cOxw3KT8vMDI['adi'] );
  160.             }
  161.         }
  162.          else if ($_POST['post_type'] == 'ilanlar') {
  163.             update_post_meta( $post_id, 'tur', $_POST['tur'] );
  164.         }
  165.          else if ($_POST['post_type'] == 'urunler') {
  166.             update_post_meta( $post_id, 'bilgi', $_POST['bilgi'] );
  167.         }
  168.          else if ($_POST['post_type'] == 'haberler') {
  169.             if (isset( $_POST['slider'] )) {
  170.                 update_post_meta( $post_id, 'slider', $_POST['slider'] );
  171.             }
  172.  
  173.             if (!(empty( $_FILES['slider_resim']['name'] ))) {
  174.                 $_obfuscate_DTs2NDYvJzQlCjweGTQNEzcuHkAaQDI = uzanti_getir( $_FILES['slider_resim']['name'] );
  175.  
  176.                 if (in_array( $_obfuscate_DTs2NDYvJzQlCjweGTQNEzcuHkAaQDI, array(
  177.                     'jpg',
  178.                     'jpeg',
  179.                     'png'
  180.                 ) )) {
  181.                     $_obfuscate_DSYdXDcoPSMxAg83KVwEHz81AgsrNQE = wp_upload_dir(  );
  182.                     $_obfuscate_DR07EBg5PAQYDRQKASMlDwEuODwoExE = $_obfuscate_DSYdXDcoPSMxAg83KVwEHz81AgsrNQE['basedir'] . '/slider/';
  183.  
  184.                     if (!(file_exists( $_obfuscate_DR07EBg5PAQYDRQKASMlDwEuODwoExE ))) {
  185.                         wp_mkdir_p( $_obfuscate_DR07EBg5PAQYDRQKASMlDwEuODwoExE );
  186.                     }
  187.  
  188.                     move_uploaded_file( $_FILES['slider_resim']['tmp_name'], $_obfuscate_DR07EBg5PAQYDRQKASMlDwEuODwoExE . $post_id . '.jpg' );
  189.                 }
  190.             }
  191.         }
  192.          else if ($_POST['post_type'] == 'etkinlikler') {
  193.             update_post_meta( $post_id, 'bilgi', $_POST['bilgi'] );
  194.         }
  195.  
  196.         if ($_POST['post_type'] != 'post') {
  197.             if (empty( $_POST['aitfirma'] )) {
  198.                 $wpdb->query( $wpdb->prepare( 'UPDATE ' . $wpdb->prefix . 'posts SET post_parent = 0, post_author = %d WHERE ID = %d', get_current_user_id(  ), $post_id ) );
  199.             }
  200.              else if (0 < $_POST['pparent']) {
  201.                 $_obfuscate_DT0zJT0fKxdbBh0vKikYChkYMCExHzI = get_post( $_POST['pparent'] );
  202.  
  203.                 if ($_obfuscate_DT0zJT0fKxdbBh0vKikYChkYMCExHzI) {
  204.                     $wpdb->query( $wpdb->prepare( 'UPDATE ' . $wpdb->prefix . 'posts SET post_parent = %d, post_author = %d WHERE ID = %d', $_obfuscate_DT0zJT0fKxdbBh0vKikYChkYMCExHzI->ID, $_obfuscate_DT0zJT0fKxdbBh0vKikYChkYMCExHzI->post_author, $post_id ) );
  205.                 }
  206.             }
  207.         }
  208.     }
  209.  
  210.     public function render_meta_box_content($post)
  211.     {
  212.         global $wpdb;
  213.         wp_nonce_field( 'guvenlik_kontrolcusu', 'guvenlik_kontrolu' );
  214.  
  215.         if ($post->post_type != 'post') {
  216.             $_obfuscate_DTc7Lj4yFiQNMD0ZKRQzXDMcBwgCBzI = get_post( $post->post_parent );
  217.             echo "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Ait Olduğu Firma', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="text" name="aitfirma" id="aitfirma" value="' . ((0 < $post->post_parent ? esc_attr( $_obfuscate_DTc7Lj4yFiQNMD0ZKRQzXDMcBwgCBzI->post_title ) : '')) . '" size="60" />' . "\r\n\t\t\t\t\t" . '- Boş bırakırsanız ait olduğu firma devredışı bırakılır ve haberin yazarı olarak siz ayarlanırsınız.' . "\r\n\t\t\t\t\t" . '<input type="hidden" name="pparent" value="' . ((0 < $post->post_parent ? $post->post_parent : '')) . '" id="pparent" />' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<script type="text/javascript">' . "\r\n\t\t\t\t\t\t" . '   var cache = {};' . "\r\n\t\t\t\t\t\t" . 'jQuery( "#aitfirma" ).autocomplete({' . "\r\n\t\t\t\t\t\t\t" . 'delay: 200,' . "\r\n\t\t\t\t\t\t" . '  minLength: 2,' . "\r\n\t\t\t\t\t\t" . '  source: function( request, response ) {' . "\r\n\t\t\t\t\t\t\t" . 'var term = request.term;' . "\r\n\t\t\t\t\t\t\t" . 'if ( term in cache ) {' . "\r\n\t\t\t\t\t\t\t" . '  response( cache[ term ] );' . "\r\n\t\t\t\t\t\t\t" . '  return;' . "\r\n\t\t\t\t\t\t\t" . '}' . "\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t" . 'jQuery.ajax({' . "\r\n\t\t\t\t\t\t\t\t" . 'url: "' . home_url( 'callback' ) . '",' . "\r\n\t\t\t\t\t\t\t\t" . 'data: { text: jQuery("#aitfirma").val(), islem: "firma_auto" },' . "\r\n\t\t\t\t\t\t\t\t" . 'type: "POST",' . "\r\n\t\t\t\t\t\t\t\t" . 'dataType: "json",' . "\r\n\t\t\t\t\t\t\t\t" . 'success: function(data) {' . "\r\n\t\t\t\t\t\t\t\t" . '  cache[ term ] = data;' . "\r\n\t\t\t\t\t\t\t\t" . '  response( data );' . "\r\n\t\t\t\t\t\t\t\t" . '}' . "\r\n\t\t\t\t\t\t\t" . '});' . "\r\n\t\t\t\t\t\t" . '  },' . "\r\n\t\t\t\t\t\t\t" . 'select: function( event, ui ) {' . "\r\n\t\t\t\t\t\t\t\t" . 'jQuery(\'#aitfirma\').val(ui.item.value);' . "\r\n\t\t\t\t\t\t\t\t" . 'jQuery(\'#pparent\').val(ui.item.id);' . "\r\n\t\t\t\t\t\t\t\t" . 'return false;' . "\r\n\t\t\t\t\t\t\t" . '}' . "\r\n\t\t\t\t\t\t" . '});' . "\r\n\t\t\t\t" . '</script>' . "\r\n\t\t\t\t";
  218.         }
  219.  
  220.         if (($post->post_type == 'post') || ($post->post_type == 'urunler')) {
  221.             echo "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( '' . (($post->post_type == 'post' ? 'Firma' : 'Ürün')) . ' Resimleri', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="file" multiple name="resimler[]" /> - CTRL ile birden fazla dosya seçebilirsiniz. Tek seferde çok fazla dosya yüklemeniz hatalara sebep olabilir.' . "\r\n\t\t\t\t\t";
  222.             $_obfuscate_DTICLDUUKCQCBj8XEAUeCjwbHBQ3KTI = get_attached_media( 'image', $post->ID );
  223.             $_obfuscate_DRsJOQ8cIREuGgMFCQwmESoMETQENCI = get_post_thumbnail_id( $_obfuscate_DUAbJAUoKAYoBRAeQC4FDwMGDxk_BAE );
  224.  
  225.             if (0 < count( $_obfuscate_DTICLDUUKCQCBj8XEAUeCjwbHBQ3KTI )) {
  226.                 echo '<ul class="image-ui-list list-with-option">';
  227.  
  228.                 foreach ($_obfuscate_DTICLDUUKCQCBj8XEAUeCjwbHBQ3KTI as $_obfuscate_DTAaJkAmKwQtDgUUKBsyPTYZMjUlJRE) {
  229.                     echo "\r\n\t\t\t\t\t\t\t" . '<li>' . "\r\n\t\t\t\t\t\t\t\t" . '<img class="thumb-image" src="' . resim_getir( wp_get_attachment_url( $_obfuscate_DTAaJkAmKwQtDgUUKBsyPTYZMjUlJRE->ID ), '120x120', 'image' ) . '" alt="Fotoğraf" />' . "\r\n\t\t\t\t\t\t\t\t" . '<div class="thumb-butonlar ' . (($_obfuscate_DTAaJkAmKwQtDgUUKBsyPTYZMjUlJRE->ID != $_obfuscate_DRsJOQ8cIREuGgMFCQwmESoMETQENCI ? 'ikili' : 'tekli')) . '">' . "\r\n\t\t\t\t\t\t\t\t\t" . '<a href="#" class="fotograf-sil" data-id="' . $_obfuscate_DTAaJkAmKwQtDgUUKBsyPTYZMjUlJRE->ID . '"><i class="fa fa-trash"></i></a>' . "\r\n\t\t\t\t\t\t\t\t\t" . '<a href="#" title="Ana Resim Yap" class="anaresim-yap ' . (($_obfuscate_DTAaJkAmKwQtDgUUKBsyPTYZMjUlJRE->ID == $_obfuscate_DRsJOQ8cIREuGgMFCQwmESoMETQENCI ? 'passive' : '')) . '" data-post="' . $post->ID . '" data-id="' . $_obfuscate_DTAaJkAmKwQtDgUUKBsyPTYZMjUlJRE->ID . '"><i class="fa fa-home"></i></a>' . "\r\n\t\t\t\t\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\t\t\t" . '</li>' . "\r\n\t\t\t\t\t\t\t";
  230.                 }
  231.  
  232.                 echo '</ul><div style="clear: both;"></div>';
  233.             }
  234.  
  235.             echo "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t" . '<script type="text/javascript">' . "\r\n\t\t\t\t" . 'jQuery(document).ready(function() {' . "\r\n\t\t\t\t\t" . 'jQuery(\'.fotograf-sil\').live(\'click\', function() {' . "\r\n\t\t\t\t\t\t" . '$ths = jQuery(this);' . "\r\n\t\t\t\t\t\t" . 'if (confirm(\'Bu fotoğrafı silmek istediğinize emin misiniz?\')) {' . "\r\n\t\t\t\t\t\t\t" . 'jQuery.ajax({' . "\r\n\t\t\t\t\t\t\t\t" . 'url: \'' . home_url( 'callback' ) . '\',' . "\r\n\t\t\t\t\t\t\t\t" . 'type: \'POST\',' . "\r\n\t\t\t\t\t\t\t\t" . 'dataType: \'json\',' . "\r\n\t\t\t\t\t\t\t\t" . 'data: { attach_id: $ths.data().id, islem: "fotograf-sil-admin" },' . "\r\n\t\t\t\t\t\t\t\t" . 'success: function(json) {' . "\r\n\t\t\t\t\t\t\t\t\t" . 'if (json.status == \'success\')' . "\r\n\t\t\t\t\t\t\t\t\t\t" . '$ths.closest(\'li\').fadeOut(400, function() { jQuery(this).remove(); });' . "\r\n\t\t\t\t\t\t\t\t\t" . 'else' . "\r\n\t\t\t\t\t\t\t\t\t\t" . 'alert(json.msg);' . "\r\n\t\t\t\t\t\t\t\t" . '}' . "\r\n\t\t\t\t\t\t\t" . '});' . "\r\n\t\t\t\t\t\t" . '}' . "\r\n\t\t\t\t\t\t" . 'return false;' . "\r\n\t\t\t\t\t" . '});' . "\r\n\t\t\t\t\t" . 'jQuery(\'.anaresim-yap\').live(\'click\', function() {' . "\r\n\t\t\t\t\t\t" . '$ths = jQuery(this);' . "\r\n\t\t\t\t\t\t" . 'if (confirm(\'Bu fotoğrafı ana resim yapmak istediğinize emin misiniz?\')) {' . "\r\n\t\t\t\t\t\t\t" . 'jQuery.ajax({' . "\r\n\t\t\t\t\t\t\t\t" . 'url: \'' . home_url( 'callback' ) . '\',' . "\r\n\t\t\t\t\t\t\t\t" . 'type: \'POST\',' . "\r\n\t\t\t\t\t\t\t\t" . 'dataType: \'json\',' . "\r\n\t\t\t\t\t\t\t\t" . 'data: { attach_id: $ths.data().id, islem: "anaresim-yap-admin", post_id: $ths.data().post },' . "\r\n\t\t\t\t\t\t\t\t" . 'success: function(json) {' . "\r\n\t\t\t\t\t\t\t\t\t" . 'if (json.status == \'success\') {' . "\r\n\t\t\t\t\t\t\t\t\t\t" . '$ths.closest(\'ul\').find(\'.anaresim-yap.passive\').removeClass(\'passive\');' . "\r\n\t\t\t\t\t\t\t\t\t\t" . '$ths.addClass(\'passive\');' . "\r\n\t\t\t\t\t\t\t\t\t\t" . '$ths.closest(\'ul\').find(\'.tekli\').removeClass(\'tekli\').addClass(\'ikili\');' . "\r\n\t\t\t\t\t\t\t\t\t\t" . '$ths.closest(\'.thumb-butonlar\').addClass(\'tekli\').removeClass(\'ikili\');' . "\r\n\t\t\t\t\t\t\t\t\t\t" . 'alert("Ana resim ayarlandı");' . "\r\n\t\t\t\t\t\t\t\t\t" . '} else' . "\r\n\t\t\t\t\t\t\t\t\t\t" . 'alert(json.msg);' . "\r\n\t\t\t\t\t\t\t\t" . '}' . "\r\n\t\t\t\t\t\t\t" . '});' . "\r\n\t\t\t\t\t\t" . '}' . "\r\n\t\t\t\t\t\t" . 'return false;' . "\r\n\t\t\t\t\t" . '});' . "\r\n\t\t\t\t" . '});' . "\r\n\t\t\t\t" . '</script>';
  236.         }
  237.  
  238.         if ($post->post_type == 'ilanlar') {
  239.             echo "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'İlan Türü', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<select name="tur">';
  240.             $_obfuscate_DTAOPSkNKyYXKwIcJgoUJDYKKS4BAyI = array(
  241.                 'Alış',
  242.                 'Satış',
  243.                 'Takas',
  244.                 'Personel',
  245.                 'Kiralama',
  246.                 'Diğer (Hizmet, Servis)',
  247.                 'Kampanya',
  248.                 'Bayilik'
  249.             );
  250.             $_obfuscate_DRI9EQUJLgICCCQBCidbBRolHRI9AyI = get_post_meta( $post->ID, 'tur', true );
  251.  
  252.             foreach ($_obfuscate_DTAOPSkNKyYXKwIcJgoUJDYKKS4BAyI as $_obfuscate_DSczDRE0Iz4SMy4mNDI7NgccPy83DjI) {
  253.                 echo '<option value="' . $_obfuscate_DSczDRE0Iz4SMy4mNDI7NgccPy83DjI . '" ' . ((isset( $_obfuscate_DRI9EQUJLgICCCQBCidbBRolHRI9AyI ) && ($_obfuscate_DRI9EQUJLgICCCQBCidbBRolHRI9AyI == $_obfuscate_DSczDRE0Iz4SMy4mNDI7NgccPy83DjI) ? 'selected' : '')) . '>' . $_obfuscate_DSczDRE0Iz4SMy4mNDI7NgccPy83DjI . '</option>';
  254.             }
  255.  
  256.             echo '</select>' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t";
  257.         }
  258.  
  259.         if ($post->post_type == 'videolar') {
  260.             echo '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<strong>Video embed kodunu içerik alanına girebilirsiniz.</strong>' . "\r\n\t\t\t\t" . '</div>';
  261.         }
  262.  
  263.         if ($post->post_type == 'urunler') {
  264.             $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE = get_post_meta( $post->ID, 'bilgi', true );
  265.             echo "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Ürün Kodu', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="text" name="bilgi[kod]" value="' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['kod'] ) ? esc_attr( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['kod'] ) : '')) . '" size="40" />' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Birim Fiyatı', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="text" name="bilgi[fiyat]" value="' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['fiyat'] ) ? esc_attr( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['fiyat'] ) : '')) . '" size="40" maxlength="20" />' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t\r\n\t\t\t";
  266.         }
  267.  
  268.         if ($post->post_type == 'haberler') {
  269.             $_obfuscate_DQgeJDs1JCMsFwMTPCwfDxFbIgwFEyI = get_post_meta( $post->ID, 'slider', true );
  270.  
  271.             echo "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Slider\'da Göster.', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<select name="slider">' . "\r\n\t\t\t\t\t\t" . '<option value="0">Hayır</option>' . "\r\n\t\t\t\t\t\t" . '<option value="1" ' . ((isset( $_obfuscate_DQgeJDs1JCMsFwMTPCwfDxFbIgwFEyI ) && ($_obfuscate_DQgeJDs1JCMsFwMTPCwfDxFbIgwFEyI == 1) ? 'selected' : '')) . '>Evet</option>' . "\r\n\t\t\t\t\t" . '</select>' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Slider Resmi', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="file" name="slider_resim" value="" /> - Genişlik: 840px, Yükseklik: 300px genişliğinde olmalıdır.' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t";
  272.         }
  273.          else if ($post->post_type == 'etkinlikler') {
  274.             $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE = get_post_meta( $post->ID, 'bilgi', true );
  275.             echo "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Etkinlik Tarihi', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="text" name="bilgi[tarih]" value="' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['tarih'] ) ? esc_attr( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['tarih'] ) : '')) . '" size="40" maxlength="20" />' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Etkinlik Yeri', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="text" name="bilgi[yer]" value="' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['yer'] ) ? esc_attr( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['yer'] ) : '')) . '" size="40" maxlength="100" />' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Web Sitesi', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="text" name="bilgi[web]" value="' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['web'] ) ? esc_attr( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['web'] ) : '')) . '" size="40" maxlength="255" />' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Organizatör', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="text" name="bilgi[org]" value="' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['org'] ) ? esc_attr( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['org'] ) : '')) . '" size="40" maxlength="255" />' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t";
  276.         }
  277.          else if ($post->post_type == 'post') {
  278.             $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE = get_post_meta( $post->ID, 'bilgi', true );
  279.             $_obfuscate_DRUFIzUeMhc9FygPFB8IAiIiEBQOMDI = get_post_meta( $post->ID, 'gold', true );
  280.             $_obfuscate_DRczJgM9PS8MHCIROx0eB1w2OzQcAzI = get_post_meta( $post->ID, 'vitrin', true );
  281.             $_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI = get_post_meta( $post->ID, 'harita', true );
  282.             $_obfuscate_DSYdXDcoPSMxAg83KVwEHz81AgsrNQE = wp_upload_dir(  );
  283.             $_obfuscate_DSk5GBgeExoNNRQBPycqPwERCQQxDBE = $_obfuscate_DSYdXDcoPSMxAg83KVwEHz81AgsrNQE['basedir'] . '/arkaplan/';
  284.  
  285.             if (isset( $_GET['islem'] ) && ($_GET['islem'] == 'resimsil')) {
  286.                 if (is_file( $_obfuscate_DSk5GBgeExoNNRQBPycqPwERCQQxDBE . $post->ID . '.jpg' )) {
  287.                     unlink( $_obfuscate_DSk5GBgeExoNNRQBPycqPwERCQQxDBE . $post->ID . '.jpg' );
  288.                     exit( header( 'location: ' . home_url( 'wp-admin/post.php?post=' . $post->ID . '&action=edit' ) ) );
  289.                 }
  290.             }
  291.  
  292.             echo "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Gold Üyelik Bitiş Tarihi', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="text" name="gold" value="' . ((isset( $_obfuscate_DRUFIzUeMhc9FygPFB8IAiIiEBQOMDI ) && (time(  ) < $_obfuscate_DRUFIzUeMhc9FygPFB8IAiIiEBQOMDI) ? date( 'd.m.Y H:i', $_obfuscate_DRUFIzUeMhc9FygPFB8IAiIiEBQOMDI ) : '')) . '" size="40" maxlength="20" /> - Gold üyeliğini devredışı bırakmak için boş bırakın. Örnek: ' . date( 'd.m.Y H:i' ) . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Vitrin Özelliği Bitiş Tarihi', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="text" name="vitrin" value="' . ((isset( $_obfuscate_DRczJgM9PS8MHCIROx0eB1w2OzQcAzI ) && (time(  ) < $_obfuscate_DRczJgM9PS8MHCIROx0eB1w2OzQcAzI) ? date( 'd.m.Y H:i', $_obfuscate_DRczJgM9PS8MHCIROx0eB1w2OzQcAzI ) : '')) . '" size="40" maxlength="20" /> - Vitrin özelliğini devredışı bırakmak için boş bırakın. Örnek: ' . date( 'd.m.Y H:i' ) . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Firma Telefon No.', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="text" name="bilgi[telefon]" value="' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['telefon'] ) ? esc_attr( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['telefon'] ) : '')) . '" size="40" maxlength="20" />' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Firma Faks No.', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="text" name="bilgi[faks]" value="' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['faks'] ) ? esc_attr( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['faks'] ) : '')) . '" size="40" maxlength="20" />' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Firma GSM No.', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="text" name="bilgi[gsm]" value="' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['gsm'] ) ? esc_attr( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['gsm'] ) : '')) . '" size="40" maxlength="20" />' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Firma E-posta Adresi', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="text" name="bilgi[email]" value="' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['email'] ) ? esc_attr( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['email'] ) : '')) . '" size="40" />' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Firma Web Sitesi', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="text" name="bilgi[web]" value="' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['web'] ) ? esc_attr( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['web'] ) : '')) . '" size="40" />' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Facebook Sayfa URL', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="text" name="bilgi[social][facebook]" value="' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['social']['facebook'] ) ? esc_attr( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['social']['facebook'] ) : '')) . '" size="40" />' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Twitter Profil URL', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="text" name="bilgi[social][twitter]" value="' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['social']['twitter'] ) ? esc_attr( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['social']['twitter'] ) : '')) . '" size="40" />' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'LinkedIn Profil URL', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="text" name="bilgi[social][linkedin]" value="' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['social']['linkedin'] ) ? esc_attr( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['social']['linkedin'] ) : '')) . '" size="40" />' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Kuruluş Yılı', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="number" name="bilgi[kurulus]" value="' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['kurulus'] ) ? esc_attr( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['kurulus'] ) : date( 'Y' ))) . '" size="4" />' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'İşletme Türü', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<select name="bilgi[tur]">' . "\r\n\t\t\t\t\t\t" . '<option ' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['tur'] ) && ($_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['tur'] == 'Şahıs Firması') ? 'selected="selected"' : '')) . '>Şahıs Firması</option>' . "\r\n\t\t\t\t\t\t" . '<option ' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['tur'] ) && ($_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['tur'] == 'Anonim Şirketi') ? 'selected="selected"' : '')) . '>Anonim Şirketi</option>' . "\r\n\t\t\t\t\t\t" . '<option ' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['tur'] ) && ($_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['tur'] == 'Limited Şirketi') ? 'selected="selected"' : '')) . '>Limited Şirketi</option>' . "\r\n\t\t\t\t\t\t" . '<option ' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['tur'] ) && ($_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['tur'] == 'Komandit Şirketler') ? 'selected="selected"' : '')) . '>Komandit Şirketler</option>' . "\r\n\t\t\t\t\t\t" . '<option ' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['tur'] ) && ($_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['tur'] == 'Kolektif Şirketler') ? 'selected="selected"' : '')) . '>Kolektif Şirketler</option>' . "\r\n\t\t\t\t\t" . '</select>' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Yetkili Kişi', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="text" name="bilgi[yetkili]" value="' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['yetkili'] ) ? esc_attr( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['yetkili'] ) : '')) . '" size="40" />' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Yetkili Pozisyonu', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="text" name="bilgi[yetkilipos]" value="' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['yetkilipos'] ) ? esc_attr( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['yetkilipos'] ) : '')) . '" size="40" />' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Yıllık Ciro', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<select name="bilgi[ciro]">' . "\r\n\t\t\t\t\t\t" . '<option ' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['ciro'] ) && ($_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['ciro'] == '250.000 TL ve altı') ? 'selected="selected"' : '')) . '>250.000 TL ve altı</option>' . "\r\n\t\t\t\t\t\t" . '<option ' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['ciro'] ) && ($_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['ciro'] == '250.000 TL - 500.000 TL') ? 'selected="selected"' : '')) . '>250.000 TL - 500.000 TL</option>' . "\r\n\t\t\t\t\t\t" . '<option ' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['ciro'] ) && ($_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['ciro'] == '500.000 TL - 1.000.000 TL') ? 'selected="selected"' : '')) . '>500.000 TL - 1.000.000 TL</option>' . "\r\n\t\t\t\t\t\t" . '<option ' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['ciro'] ) && ($_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['ciro'] == '1.000.000 TL - 2.500.000 TL') ? 'selected="selected"' : '')) . '>1.000.000 TL - 2.500.000 TL</option>' . "\r\n\t\t\t\t\t\t" . '<option ' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['ciro'] ) && ($_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['ciro'] == '2.500.000 TL - 5.000.000 TL') ? 'selected="selected"' : '')) . '>2.500.000 TL - 5.000.000 TL</option>' . "\r\n\t\t\t\t\t\t" . '<option ' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['ciro'] ) && ($_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['ciro'] == '5.000.000 TL - 10.000.000 TL') ? 'selected="selected"' : '')) . '>5.000.000 TL - 10.000.000 TL</option>' . "\r\n\t\t\t\t\t\t" . '<option ' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['ciro'] ) && ($_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['ciro'] == '10.000.000 TL - 50.000.000 TL') ? 'selected="selected"' : '')) . '>10.000.000 TL - 50.000.000 TL</option>' . "\r\n\t\t\t\t\t\t" . '<option ' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['ciro'] ) && ($_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['ciro'] == '50.000.000 TL - 100.000.000 TL') ? 'selected="selected"' : '')) . '>50.000.000 TL - 100.000.000 TL</option>' . "\r\n\t\t\t\t\t\t" . '<option ' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['ciro'] ) && ($_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['ciro'] == '100.000.000 TL ve üzeri') ? 'selected="selected"' : '')) . '>100.000.000 TL ve üzeri</option>' . "\r\n\t\t\t\t\t" . '</select>' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Çalışan Sayısı', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<select name="bilgi[calisan]">' . "\r\n\t\t\t\t\t\t" . '<option ' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['calisan'] ) && ($_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['calisan'] == '5 ve altı') ? 'selected="selected"' : '')) . '>5 ve altı</option>' . "\r\n\t\t\t\t\t\t" . '<option ' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['calisan'] ) && ($_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['calisan'] == '5 - 10 kişi') ? 'selected="selected"' : '')) . '>5 - 10 kişi</option>' . "\r\n\t\t\t\t\t\t" . '<option ' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['calisan'] ) && ($_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['calisan'] == '11 - 50 kişi') ? 'selected="selected"' : '')) . '>11 - 50 kişi</option>' . "\r\n\t\t\t\t\t\t" . '<option ' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['calisan'] ) && ($_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['calisan'] == '51 - 100 kişi') ? 'selected="selected"' : '')) . '>51 - 100 kişi</option>' . "\r\n\t\t\t\t\t\t" . '<option ' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['calisan'] ) && ($_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['calisan'] == '100\'den fazla') ? 'selected="selected"' : '')) . '>100\'den fazla</option>' . "\r\n\t\t\t\t\t" . '</select>' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Çalışma Saatleri', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="text" name="bilgi[calisma]" value="' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['calisma'] ) ? esc_attr( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['calisma'] ) : '')) . '" size="40" />' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Servis Saatleri', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="text" name="bilgi[servis]" value="' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['servis'] ) ? esc_attr( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['servis'] ) : '')) . '" size="40" />' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Servis Yerleri', 'wpfirma' ) . '</span>:';
  293.  
  294.             echo "\r\n\t\t\t\t\t\t" . '<select name="bilgi[servisyer]" class="select-ui">' . "\r\n\t\t\t\t\t\t\t" . '<option value="">-- HİÇBİRİ --</option>' . "\r\n\t\t\t\t\t\t\t" . '<option value="TÜRKİYE" ' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['servisyer'] ) && ($_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['servisyer'] == 'TÜRKİYE') ? 'selected' : '')) . '>TÜRKİYE</option>';
  295.             $_obfuscate_DSgXPgtbNyc2Jw0DDTQTETkfEAYJwE = $wpdb->get_results( 'SELECT * FROM ' . $wpdb->prefix . 'rehber_iller ORDER BY adi ASC', 'ARRAY_A' );
  296.  
  297.             foreach ($_obfuscate_DSgXPgtbNyc2Jw0DDTQTETkfEAYJwE as $_obfuscate_DRMmAiseCVs9Kz83QClbKSk2PBFcBiI) {
  298.                 echo "\r\n\t\t\t\t\t\t\t\t" . '<option value="' . $_obfuscate_DRMmAiseCVs9Kz83QClbKSk2PBFcBiI['adi'] . '" ' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['servisyer'] ) && ($_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['servisyer'] == $_obfuscate_DRMmAiseCVs9Kz83QClbKSk2PBFcBiI['adi']) ? 'selected' : '')) . '>' . $_obfuscate_DRMmAiseCVs9Kz83QClbKSk2PBFcBiI['adi'] . '</option>' . "\r\n\t\t\t\t\t\t\t\t";
  299.             }
  300.  
  301.             echo "\r\n\t\t\t\t\t\t" . '</select>' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Şehir', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<select name="harita[sehir]" id="sehir">'.'<option value="">-- Seçiniz --</option>';
  302.             $_obfuscate_DSgXPgtbNyc2Jw0DDTQTETkfEAYJwE = $wpdb->get_results( 'SELECT * FROM ' . $wpdb->prefix . 'rehber_iller ORDER BY adi ASC', 'ARRAY_A' );
  303.  
  304.             foreach ($_obfuscate_DSgXPgtbNyc2Jw0DDTQTETkfEAYJwE as $_obfuscate_DQE1Bz0bMQkdCTQJwFAMA8ODsSBxE) {
  305.                 echo '<option value="' . $_obfuscate_DQE1Bz0bMQkdCTQJwFAMA8ODsSBxE['id'] . '" ' . ((isset( $_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['sehir'] ) && ($_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['sehir'] == $_obfuscate_DQE1Bz0bMQkdCTQJwFAMA8ODsSBxE['id']) ? 'selected' : '')) . '>' . $_obfuscate_DQE1Bz0bMQkdCTQJwFAMA8ODsSBxE['adi'] . '</option>';
  306.             }
  307.  
  308.             echo "\r\n\t\t\t\t\t" . '</select>' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'İlçe', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<select name="harita[ilce]" id="ilceler">';
  309.  
  310.             if (isset( $_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['sehir'] ) && (0 < $_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['sehir'])) {
  311.                 $_obfuscate_DSgXPgtbNyc2Jw0DDTQTETkfEAYJwE = $wpdb->get_results( 'SELECT * FROM ' . $wpdb->prefix . 'rehber_ilceler WHERE il_id = \'' . intval( $_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['sehir'] ) . '\' ORDER BY adi ASC', 'ARRAY_A' );
  312.  
  313.                 foreach ($_obfuscate_DSgXPgtbNyc2Jw0DDTQTETkfEAYJwE as $_obfuscate_DQcNNAwWFyklNxE3MA0cOxw3KT8vMDI) {
  314.                     echo '<option value="' . $_obfuscate_DQcNNAwWFyklNxE3MA0cOxw3KT8vMDI['id'] . '" ' . ((isset( $_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['ilce'] ) && ($_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['ilce'] == $_obfuscate_DQcNNAwWFyklNxE3MA0cOxw3KT8vMDI['id']) ? 'selected' : '')) . '>' . $_obfuscate_DQcNNAwWFyklNxE3MA0cOxw3KT8vMDI['adi'] . '</option>';
  315.                 }
  316.             }
  317.              else {
  318.                 echo "\r\n\t\t\t\t\t\t\t" . '<option value="">-- Önce Şehir Seçiniz --</option>' . "\r\n\t\t\t\t\t\t";
  319.             }
  320.  
  321.             echo "\r\n\t\t\t\t\t" . '</select>' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Firma Adresi.', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<textarea name="harita[adres]" id="adres">' . ((isset( $_obfuscate_DSk2DSIvPB8Ph4vPAc5OTwIDT9bHwE['telefon'] ) ? esc_attr( $_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['adres'] ) : '')) . '</textarea>' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow">' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Harita Özelliği', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<label><input type="checkbox" name="harita[kullan]" id="haritakullan" value="1" ' . ((!(isset( $_obfuscate_DS0LKhcaCzwSBzdAPxk8XAw_DB44HhE['kullan'] )) || (isset( $_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['kullan'] ) && ($_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['kullan'] == 1)) ? 'checked' : '')) . ' /> Harita özelliği kullanılsın</label>' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow haritarow" ' . ((!(isset( $_obfuscate_DS0LKhcaCzwSBzdAPxk8XAw_DB44HhE['kullan'] )) || (isset( $_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['kullan'] ) && ($_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['kullan'] == 1)) ? '' : 'style="display: none;"')) . '>' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Harita X Koordinatı', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="text" name="harita[lat]" id="lat" value="' . ((isset( $_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['lat'] ) && !(empty( $_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['lat'] )) ? esc_attr( $_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['lat'] ) : '39.9476478239225')) . '" size="40" />' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div class="dirow haritarow" ' . ((!(isset( $_obfuscate_DS0LKhcaCzwSBzdAPxk8XAw_DB44HhE['kullan'] )) || (isset( $_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['kullan'] ) && ($_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['kullan'] == 1)) ? '' : 'style="display: none;"')) . '>' . "\r\n\t\t\t\t\t" . '<span class="dispan">' . __( 'Harita Y Koordinatı', 'wpfirma' ) . '</span>:' . "\r\n\t\t\t\t\t" . '<input type="text" name="harita[lng]" id="lng" value="' . ((isset( $_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['lng'] ) && !(empty( $_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['lng'] )) ? esc_attr( $_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['lng'] ) : '32.8546142578125')) . '" size="40" />' . "\r\n\t\t\t\t" . '</div>' . "\r\n\t\t\t\t" . '<div id="firmagmap" class="haritarow" style="width: 100%; height: 350px; ' . ((!(isset( $_obfuscate_DS0LKhcaCzwSBzdAPxk8XAw_DB44HhE['kullan'] )) || (isset( $_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['kullan'] ) && ($_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['kullan'] == 1)) ? '' : 'display: none;')) . '"></div>' . "\r\n\t\t\t\t" . '<input type="hidden" name="harita[zoom]" value="' . ((isset( $_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['zoom'] ) && !(empty( $_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['zoom'] )) ? $_obfuscate_DRkHCiJcKgY4MiwqIyMuFyk7Ei8lGCI['zoom'] : 10)) . '" id="zoom" />';
  322.             $_obfuscate_DSgbNzEOLBs8NDkGNh49LAsBDAE7AzI = get_option( 'opt_genel', false );
  323.  
  324.             echo "\r\n\t\t\t\t" . '<script src="//maps.google.com/maps/api/js?key=' . ((isset( $_obfuscate_DSgbNzEOLBs8NDkGNh49LAsBDAE7AzI['gmaps'] ) && !(empty( $_obfuscate_DSgbNzEOLBs8NDkGNh49LAsBDAE7AzI['gmaps'] )) ? $_obfuscate_DSgbNzEOLBs8NDkGNh49LAsBDAE7AzI['gmaps'] : 'AIzaSyBVcau87V1yIV36FdQpBwchNm64GXX6lbs')) . '" type="text/javascript"></script>' . "\r\n\t\t\t\t" . '<script type="text/javascript">' . "\r\n\t\t\t\t\t" . 'jQuery(\'#sehir\').change(function() {' . "\r\n\t\t\t\t\t\t" . 'jQuery.ajax({' . "\r\n\t\t\t\t\t\t\t" . 'url: \'' . home_url( 'callback' ) . '\',' . "\r\n\t\t\t\t\t\t\t" . 'type: \'POST\',' . "\r\n\t\t\t\t\t\t\t" . 'data: { il: jQuery(\'#sehir\').val(), islem: \'ilcegetir\' },' . "\r\n\t\t\t\t\t\t\t" . 'success: function(msg) {' . "\r\n\t\t\t\t\t\t\t\t" . 'jQuery(\'#ilceler\').html(msg);' . "\r\n\t\t\t\t\t\t\t" . '}' . "\r\n\t\t\t\t\t\t" . '});' . "\r\n\t\t\t\t\t" . '});' . "\r\n\t\t\t\t\t\r\n\t\t\t\t\t" . 'var geocoder;' . "\r\n\t\t\t\t\t" . 'var map;' . "\r\n\t\t\t\t\t" . 'var marker;' . "\r\n\t\t\t\t\t" . 'function map_setup() {' . "\r\n\t\t\t\t\t\t" . 'if (jQuery(\'#haritakullan\').prop("checked") != true)' . "\r\n\t\t\t\t\t\t\t" . 'return false;' . "\r\n\t\t\t\t\t\t" . ' geocoder = new google.maps.Geocoder();' . "\r\n\t\t\t\t\t\t" . '  var latlng = new google.maps.LatLng(jQuery(\'#lat\').val(), jQuery(\'#lng\').val());' . "\r\n\t\t\t\t\t\t" . '  var options = {' . "\r\n\t\t\t\t\t\t\t" . '  zoom: Math.ceil(jQuery(\'#zoom\').val()),' . "\r\n\t\t\t\t\t\t\t" . '  center: latlng,' . "\r\n\t\t\t\t\t\t\t" . '  mapTypeId: google.maps.MapTypeId.ROADMAP,' . "\r\n\t\t\t\t\t\t\t" . '  draggableCursor: "crosshair",' . "\r\n\t\t\t\t\t\t\t" . '  scrollwheel: true,' . "\r\n\t\t\t\t\t\t\t" . '  streetViewControl: false' . "\r\n\t\t\t\t\t\t\t" . '};' . "\r\n\t\t\t\t\t\t" . '  map = new google.maps.Map(document.getElementById("firmagmap"), options);' . "\r\n\t\t\t\t\t\t\t" . 'google.maps.event.addListener(map,"click", function(location)' . "\r\n\t\t\t\t\t\t" . '  {' . "\r\n\t\t\t\t\t\t\t" . 'marker.setPosition(location.latLng);' . "\r\n\t\t\t\t\t\t\t" . 'jQuery("#lat").val(location.latLng.lat());' . "\r\n\t\t\t\t\t\t\t" . 'jQuery("#lng").val(location.latLng.lng());' . "\r\n\t\t\t\t\t\t" . '  });' . "\r\n\t\t\t\t\t\t" . '  google.maps.event.addListener(map,\'zoom_changed\', function(oldLevel, newLevel)' . "\r\n\t\t\t\t\t\t" . '  {' . "\r\n\t\t\t\t\t\t\t" . 'jQuery("#zoom").val(map.getZoom());' . "\r\n\t\t\t\t\t\t" . '  });' . "\r\n\t\t\t\t\t\t" . '  ' . "\r\n\t\t\t\t\t\t\t" . 'marker = new google.maps.Marker({' . "\r\n\t\t\t\t\t\t\t" . '  position: latlng,' . "\r\n\t\t\t\t\t\t\t" . '  map: map});' . "\r\n\t\t\t\t\t\t\t" . '  ' . "\r\n\t\t\t\t\t\t" . 'var adrinput = document.getElementById(\'adres\');' . "\r\n\t\t\t\t\t" . '}' . "\r\n\t\t\t\t\t\t" . ' var initListener;' . "\r\n\t\t\t\t\t\t" . '  function GotoLatLong()' . "\r\n\t\t\t\t\t\t" . '  {' . "\r\n\t\t\t\t\t\t\t" . 'if (jQuery("#lat").val() != "" && jQuery("#lng").val() != "") {' . "\r\n\t\t\t\t\t\t\t" . ' var lat = jQuery("#lat").val();' . "\r\n\t\t\t\t\t\t\t" . '  var lng = jQuery("#lng").val();' . "\r\n\t\t\t\t\t\t\t" . '  var latLong = new google.maps.LatLng(lat, lng);' . "\r\n\t\t\t\t\t\t\t" . '  ShowLatLong(latLong);' . "\r\n\t\t\t\t\t\t\t" . '  map.setCenter(latLong);' . "\r\n\t\t\t\t\t\t\t" . '}' . "\r\n\t\t\t\t\t\t" . '  }' . "\r\n\t\t\t\t\t\t" . '  ' . "\r\n\t\t\t\t\t\t" . '  function codeAddress() {' . "\r\n\t\t\t\t\t\t\t" . '  var address = document.getElementById(\'adres\').value;' . "\r\n\t\t\t\t\t\t\t" . '  geocoder.geocode( { \'address\': address}, function(results, status) {' . "\r\n\t\t\t\t\t\t\t\t" . 'if (status == google.maps.GeocoderStatus.OK) {' . "\r\n\t\t\t\t\t\t\t\t" . '  map.setCenter(results[0].geometry.location);' . "\r\n\t\t\t\t\t\t\t\t\t" . 'marker.setPosition(results[0].geometry.location);' . "\r\n\t\t\t\t\t\t\t\t\t" . 'jQuery("#lat").val(results[0].geometry.location.lat());' . "\r\n\t\t\t\t\t\t\t\t\t" . 'jQuery("#lng").val(results[0].geometry.location.lng());' . "\r\n\t\t\t\t\t\t\t\t" . '} else {' . "\r\n\t\t\t\t\t\t\t\t" . '  alert(\'Geocode was not successful for the following reason: \' + status);' . "\r\n\t\t\t\t\t\t\t\t" . '}' . "\r\n\t\t\t\t\t\t\t" . '  });' . "\r\n\t\t\t\t\t\t\t" . '}' . "\r\n\t\t\t\t\t" . 'map_setup();' . "\r\n\t\t\t\t\t" . 'jQuery(\'#adres\').change(function() {' . "\r\n\t\t\t\t\t\t" . 'if (confirm(\'Harita girdiğiniz adrese göre güncellensin mi?\'))' . "\r\n\t\t\t\t\t\t\t" . 'codeAddress();' . "\r\n\t\t\t\t\t" . '});' . "\r\n\t\t\t\t\t" . 'jQuery(\'#lat, #lng\').change(function() {' . "\r\n\t\t\t\t\t\t" . '$latlng = new google.maps.LatLng(jQuery(\'#lat\').val(), jQuery(\'#lng\').val());' . "\r\n\t\t\t\t\t\t" . 'map.setCenter($latlng);' . "\r\n\t\t\t\t\t\t" . 'marker.setPosition($latlng);' . "\r\n\t\t\t\t\t" . '});' . "\r\n\t\t\t\t\t" . 'jQuery(\'#haritakullan\').change(function() {' . "\r\n\t\t\t\t\t\t" . 'if (jQuery(this).prop("checked") == true) {' . "\r\n\t\t\t\t\t\t\t" . 'jQuery(\'.haritarow\').show();' . "\r\n\t\t\t\t\t\t\t" . 'map_setup();' . "\r\n\t\t\t\t\t\t" . '} else {' . "\r\n\t\t\t\t\t\t\t" . 'jQuery(\'.haritarow\').hide();' . "\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t" . '}' . "\r\n\t\t\t\t\t" . '});' . "\r\n\t\t\t\t" . '</script>' . "\r\n\t\t\t";
  325.         }
  326.  
  327.         echo "\r\n\t\t\t\t" . '<script>' . "\r\n\t\t\t\t\t" . 'jQuery(\'#post\').attr("enctype", "multipart/form-data");' . "\r\n\t\t\t\t" . '</script>';
  328.     }
  329. }
  330.  
  331. class Walker_Nav_Menu_Edit_Custom
  332. {
  333.     public function start_lvl(&$output)
  334.     {
  335.     }
  336.  
  337.     public function end_lvl(&$output)
  338.     {
  339.     }
  340.  
  341.     public function start_el(&$output, $item, $depth, $args)
  342.     {
  343.         global $_wp_nav_menu_max_depth;
  344.         $_wp_nav_menu_max_depth = (($_wp_nav_menu_max_depth < $depth ? $depth : $_wp_nav_menu_max_depth));
  345.         $_obfuscate_DUAFD1sTMAonEgIMDioXBcVAwM3BBE = (($depth ? str_repeat( "\t", $depth ) : ''));
  346.         ob_start(  );
  347.         $_obfuscate_DTskChIvFxcULxMXBx8SDh8GCi8LEjI = esc_attr( $item->ID );
  348.         $_obfuscate_DRYaMxkGITwEBTcdKwI7DDIKERwxBAE = array(
  349.             'action',
  350.             'customlink-tab',
  351.             'edit-menu-item',
  352.             'menu-item',
  353.             'page-tab',
  354.             '_wpnonce'
  355.         );
  356.         $_obfuscate_DTw8Kx8HxM5CB0iPBswWzAFFEAvBgE = '';
  357.  
  358.         if ('taxonomy' == $item->type) {
  359.             $_obfuscate_DTw8Kx8HxM5CB0iPBswWzAFFEAvBgE = get_term_field( 'name', $item->object_id, $item->object, 'raw' );
  360.  
  361.             if (is_wp_error( $_obfuscate_DTw8Kx8HxM5CB0iPBswWzAFFEAvBgE )) {
  362.                 $_obfuscate_DTw8Kx8HxM5CB0iPBswWzAFFEAvBgE = false;
  363.             }
  364.         }
  365.          else if ('post_type' == $item->type) {
  366.             $_obfuscate_DQcXNBINHBMXAgYiNCMpBhIyMwY9FQE = get_post( $item->object_id );
  367.             $_obfuscate_DTw8Kx8HxM5CB0iPBswWzAFFEAvBgE = $_obfuscate_DQcXNBINHBMXAgYiNCMpBhIyMwY9FQE->post_title;
  368.         }
  369.  
  370.         $_obfuscate_DSIjDEAkQA0UHQwYDD4QByYHPw0eDiI = array(
  371.             'menu-item menu-item-depth-' . $depth,
  372.             'menu-item-' . esc_attr( $item->object ),
  373.             'menu-item-edit-' . ((isset( $_GET['edit-menu-item'] ) && ($_obfuscate_DTskChIvFxcULxMXBx8SDh8GCi8LEjI == $_GET['edit-menu-item']) ? 'active' : 'inactive'))
  374.         );
  375.         $_obfuscate_DShcQC0fPj0PFDgnLRUMFSoRPw0DDTI = $item->title;
  376.  
  377.         if (!(empty( $item->_invalid ))) {
  378.             $_obfuscate_DSIjDEAkQA0UHQwYDD4QByYHPw0eDiI[] = 'menu-item-invalid';
  379.             $_obfuscate_DShcQC0fPj0PFDgnLRUMFSoRPw0DDTI = sprintf( __( '%s (Invalid)' ), $item->title );
  380.         }
  381.          else if (isset( $item->post_status ) && ('draft' == $item->post_status)) {
  382.             $_obfuscate_DSIjDEAkQA0UHQwYDD4QByYHPw0eDiI[] = 'pending';
  383. .......................................................................
  384. ............................
  385. .........
RAW Paste Data
Top