daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest Apr 11th, 2018 87 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. function theme_slug_widgets_init()
  15. {
  16.     $i = 1;
  17.  
  18.     while ($i <= ot_get_option( 'widget-area-count' )) {
  19.         register_sidebar( array(
  20.             'name'          => $i . ' - Ana Sayfa',
  21.             'id'            => $i . '-anasayfa',
  22.             'description'   => 'Ana Sayfa içerikleri buraya gelecek',
  23.             'before_widget' => '',
  24.             'after_widget'  => '',
  25.             'before_title'  => '',
  26.             'after_title'   => ''
  27.         ) );
  28.         register_sidebar( array(
  29.             'name'          => $i . ' - Sidebar',
  30.             'id'            => $i . '-sidebar',
  31.             'description'   => 'Ana Sayfa Sidebar içerikleri buraya gelecek',
  32.             'before_widget' => '<div id="%1$s" class="widget-container %2$s"> ',
  33.             'after_widget'  => '</div></div>',
  34.             'before_title'  => '<div class="widget-title"><span class="title-in">',
  35.             'after_title'   => '</span> <i class="fa fa-chevron-down"></i></div><div class="default-list">'
  36.         ) );
  37.         register_sidebar( array(
  38.             'name'          => $i . ' - Full Ana Sayfa',
  39.             'id'            => $i . '-full',
  40.             'description'   => 'Ana Sayfa içerikleri buraya gelecek',
  41.             'before_widget' => '',
  42.             'after_widget'  => '',
  43.             'before_title'  => '',
  44.             'after_title'   => ''
  45.         ) );
  46.         ++$i;
  47.     }
  48.  
  49.     register_sidebar( array(
  50.         'name'          => 'Yazı İçi Sidebar',
  51.         'id'            => 'in-sidebar',
  52.         'description'   => 'Ana Sayfa Sidebar içerikleri buraya gelecek',
  53.         'before_widget' => '<div id="%1$s" class="widget-container %2$s"> ',
  54.         'after_widget'  => '</div></div>',
  55.         'before_title'  => '<div class="widget-title"><span class="title-in">',
  56.         'after_title'   => '</span> <i class="fa fa-chevron-down"></i></div><div class="default-list">'
  57.     ) );
  58.     register_sidebar( array(
  59.         'name'          => 'Kategori İçi Sidebar',
  60.         'id'            => 'category-in-sidebar',
  61.         'description'   => 'Ana Sayfa Sidebar içerikleri buraya gelecek',
  62.         'before_widget' => '<div id="%1$s" class="widget-container %2$s"> ',
  63.         'after_widget'  => '</div></div>',
  64.         'before_title'  => '<div class="widget-title"><span class="title-in">',
  65.         'after_title'   => '</span> <i class="fa fa-chevron-down"></i></div><div class="default-list">'
  66.     ) );
  67.     register_sidebar( array(
  68.         'name'          => 'Video İçi Sidebar',
  69.         'id'            => 'video-in-sidebar',
  70.         'description'   => 'Ana Sayfa Sidebar içerikleri buraya gelecek',
  71.         'before_widget' => '<div id="%1$s" class="widget-container %2$s"> ',
  72.         'after_widget'  => '</div></div>',
  73.         'before_title'  => '<div class="widget-title"><span class="title-in">',
  74.         'after_title'   => '</span> <i class="fa fa-chevron-down"></i></div><div class="default-list">'
  75.     ) );
  76. }
  77.  
  78. function lazy_load()
  79. {
  80.     $lazy = ot_get_option( 'lazy-pagination' );
  81.  
  82.     if ($lazy == 'on') {
  83.         require_once CORE . 'lazy-load.php';
  84.     }
  85. }
  86.  
  87. function tek_ecan_title($title, $sep)
  88. {
  89.     if (is_feed(  )) {
  90.         return $title;
  91.     }
  92.  
  93.     global $page;
  94.     global $paged;
  95.     $title .= get_bloginfo( 'name', 'display' );
  96.     $site_description = get_bloginfo( 'description', 'display' );
  97.     if ($site_description && (is_home(  ) || is_front_page(  ))) {
  98.         $title .= ' ' . $sep . ' ' . $site_description;
  99.     }
  100.  
  101.     if (((2 <= $paged) || (2 <= $page)) && !(is_404(  ))) {
  102.         $title .= ' ' . $sep . ' ' . sprintf( __( 'Sayfa %s', '_s' ), max( $paged, $page ) );
  103.     }
  104.  
  105.     return $title;
  106. }
  107.  
  108. function taxonomy_add_new_meta_field()
  109. {
  110.     echo '<div class="form-field">'.'<label for="term_meta[icon]">Kategoi İkonu : </label>'.'<input type="text" name="term_meta[icon]" id="term_meta[icon]" value="" placeholder="Örnek: fa fa-bars">'.'<p class="description">İkon isimlerini <a href="http://fontawesome.io/icons/"><strong>http://fontawesome.io/icons/</strong></a> sitesinden öğrenebilirsiniz.</p>'.'</div>';
  111. }
  112.  
  113. function ss_framework_button_sc($atts, $content = NULL)
  114. {
  115.     extract( shortcode_atts( array(
  116.         'url'    => '',
  117.         'target' => '_blank',
  118.         'size'   => '',
  119.         'style'  => '',
  120.         'color'  => '',
  121.         'icon'   => ''
  122.     ), $atts ) );
  123.     $output = '<a class="short-button btn waves-effect waves-light ' . esc_attr( $size ) . ' ' . esc_attr( $style ) . '" href="' . esc_url( $url ) . '" target="' . esc_attr( $target ) . '" style="background-color:' . esc_attr( $color ) . '">';
  124.  
  125.     if ($icon != '') {
  126.         $output .= '<i class="fa ' . esc_attr( $icon ) . '"></i> ';
  127.     }
  128.  
  129.     $output .= $content;
  130.     $output .= '</a>';
  131.     return $output;
  132. }
  133.  
  134. function ss_framework_infobox_sc($atts, $content = NULL)
  135. {
  136.     extract( shortcode_atts( array( 'color' => '' ), $atts ) );
  137.     return '<div class="infobox-style" style="background-color:' . esc_attr( $color ) . ';">' . do_shortcode( $content ) . '</div>';
  138. }
  139.  
  140. function ss_framework_vurgu_sc($atts, $content = NULL)
  141. {
  142.     extract( shortcode_atts( array( 'color' => '' ), $atts ) );
  143.     $output = '<span class="label" style="background-color:' . esc_attr( $color ) . ';">';
  144.     $output .= '<b>' . $content . '</b>';
  145.     $output .= '</span>';
  146.     return $output;
  147. }
  148.  
  149. function ss_framework_accordion_sc($atts, $content = NULL)
  150. {
  151.     extract( shortcode_atts(  ) );
  152.     $output = '<ul class="collapsible akordiyon  popout collapsible-accordion" data-collapsible="accordion">';
  153.     $output .= do_shortcode( $content );
  154.     $output .= '</ul>';
  155.     return $output;
  156. }
  157.  
  158. function ss_framework_accordion_content_sc($atts, $content = NULL)
  159. {
  160.     extract( shortcode_atts( array(
  161.         'title'  => '',
  162.         'active' => '',
  163.         'icon'   => ''
  164.     ), $atts ) );
  165.     $output = '<li>';
  166.     $output .= '<div class="collapsible-header ' . esc_attr( $active ) . '"><i class="' . esc_attr( $icon ) . '" ></i> ' . esc_attr( $title ) . '</div>';
  167.     $output .= '<div class="collapsible-body"><p>' . do_shortcode( $content ) . '</p></div>';
  168.     $output .= '</li>';
  169.     return $output;
  170. }
  171.  
  172. function register_shortcodes_button($buttons)
  173. {
  174.     array_push( $buttons, '|', 'ss_framework_shortcodes' );
  175.     return $buttons;
  176. }
  177.  
  178. function add_shortcodes_tinymce_plugin($plugin_array)
  179. {
  180.     $plugin_array['ss_framework_shortcodes'] = get_template_directory_uri(  ) . '/functions/tinymce/tinymce.js';
  181.     return $plugin_array;
  182. }
  183.  
  184. function add_shortcodes_button()
  185. {
  186.     if (!(current_user_can( 'edit_posts' )) && !(current_user_can( 'edit_pages' ))) {
  187.         return;
  188.     }
  189.  
  190.     if (get_user_option( 'rich_editing' ) == 'true') {
  191.         add_filter( 'mce_external_plugins', 'add_shortcodes_tinymce_plugin' );
  192.         add_filter( 'mce_buttons', 'register_shortcodes_button' );
  193.     }
  194. }
  195.  
  196. /** Enqueue Color Picker **/
  197. function colorpicker_enqueue()
  198. {
  199.     wp_enqueue_style( 'wp-color-picker' );
  200.     wp_enqueue_script( 'colorpicker-js', get_stylesheet_directory_uri(  ) . '/scripts/colorpicker.js', array( 'wp-color-picker' ) );
  201. }
  202.  
  203. function responsive_embed($content)
  204. {
  205.     $content = str_replace( '<iframe', '<div class="responsive-youtube"><iframe', $content );
  206.     $content = str_replace( '</iframe>', '</iframe></div>', $content );
  207.     return $content;
  208. }
  209.  
  210. function taxonomy_edit_meta_field($term)
  211. {
  212.     $t_id = $term->term_id;
  213. ...............................................................................
  214. ........................................
  215. ..................
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top