Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.0.8.0
- * @ Author : DeZender
- * @ Release on : 25.09.2017
- * @ Official site : http://DeZender.Net
- *
- */
- function theme_slug_widgets_init()
- {
- $i = 1;
- while ($i <= ot_get_option( 'widget-area-count' )) {
- register_sidebar( array(
- 'name' => $i . ' - Ana Sayfa',
- 'id' => $i . '-anasayfa',
- 'description' => 'Ana Sayfa içerikleri buraya gelecek',
- 'before_widget' => '',
- 'after_widget' => '',
- 'before_title' => '',
- 'after_title' => ''
- ) );
- register_sidebar( array(
- 'name' => $i . ' - Sidebar',
- 'id' => $i . '-sidebar',
- 'description' => 'Ana Sayfa Sidebar içerikleri buraya gelecek',
- 'before_widget' => '<div id="%1$s" class="widget-container %2$s"> ',
- 'after_widget' => '</div></div>',
- 'before_title' => '<div class="widget-title"><span class="title-in">',
- 'after_title' => '</span> <i class="fa fa-chevron-down"></i></div><div class="default-list">'
- ) );
- register_sidebar( array(
- 'name' => $i . ' - Full Ana Sayfa',
- 'id' => $i . '-full',
- 'description' => 'Ana Sayfa içerikleri buraya gelecek',
- 'before_widget' => '',
- 'after_widget' => '',
- 'before_title' => '',
- 'after_title' => ''
- ) );
- ++$i;
- }
- register_sidebar( array(
- 'name' => 'Yazı İçi Sidebar',
- 'id' => 'in-sidebar',
- 'description' => 'Ana Sayfa Sidebar içerikleri buraya gelecek',
- 'before_widget' => '<div id="%1$s" class="widget-container %2$s"> ',
- 'after_widget' => '</div></div>',
- 'before_title' => '<div class="widget-title"><span class="title-in">',
- 'after_title' => '</span> <i class="fa fa-chevron-down"></i></div><div class="default-list">'
- ) );
- register_sidebar( array(
- 'name' => 'Kategori İçi Sidebar',
- 'id' => 'category-in-sidebar',
- 'description' => 'Ana Sayfa Sidebar içerikleri buraya gelecek',
- 'before_widget' => '<div id="%1$s" class="widget-container %2$s"> ',
- 'after_widget' => '</div></div>',
- 'before_title' => '<div class="widget-title"><span class="title-in">',
- 'after_title' => '</span> <i class="fa fa-chevron-down"></i></div><div class="default-list">'
- ) );
- register_sidebar( array(
- 'name' => 'Video İçi Sidebar',
- 'id' => 'video-in-sidebar',
- 'description' => 'Ana Sayfa Sidebar içerikleri buraya gelecek',
- 'before_widget' => '<div id="%1$s" class="widget-container %2$s"> ',
- 'after_widget' => '</div></div>',
- 'before_title' => '<div class="widget-title"><span class="title-in">',
- 'after_title' => '</span> <i class="fa fa-chevron-down"></i></div><div class="default-list">'
- ) );
- }
- function lazy_load()
- {
- $lazy = ot_get_option( 'lazy-pagination' );
- if ($lazy == 'on') {
- require_once CORE . 'lazy-load.php';
- }
- }
- function tek_ecan_title($title, $sep)
- {
- if (is_feed( )) {
- return $title;
- }
- global $page;
- global $paged;
- $title .= get_bloginfo( 'name', 'display' );
- $site_description = get_bloginfo( 'description', 'display' );
- if ($site_description && (is_home( ) || is_front_page( ))) {
- $title .= ' ' . $sep . ' ' . $site_description;
- }
- if (((2 <= $paged) || (2 <= $page)) && !(is_404( ))) {
- $title .= ' ' . $sep . ' ' . sprintf( __( 'Sayfa %s', '_s' ), max( $paged, $page ) );
- }
- return $title;
- }
- function taxonomy_add_new_meta_field()
- {
- 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>';
- }
- function ss_framework_button_sc($atts, $content = NULL)
- {
- extract( shortcode_atts( array(
- 'url' => '',
- 'target' => '_blank',
- 'size' => '',
- 'style' => '',
- 'color' => '',
- 'icon' => ''
- ), $atts ) );
- $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 ) . '">';
- if ($icon != '') {
- $output .= '<i class="fa ' . esc_attr( $icon ) . '"></i> ';
- }
- $output .= $content;
- $output .= '</a>';
- return $output;
- }
- function ss_framework_infobox_sc($atts, $content = NULL)
- {
- extract( shortcode_atts( array( 'color' => '' ), $atts ) );
- return '<div class="infobox-style" style="background-color:' . esc_attr( $color ) . ';">' . do_shortcode( $content ) . '</div>';
- }
- function ss_framework_vurgu_sc($atts, $content = NULL)
- {
- extract( shortcode_atts( array( 'color' => '' ), $atts ) );
- $output = '<span class="label" style="background-color:' . esc_attr( $color ) . ';">';
- $output .= '<b>' . $content . '</b>';
- $output .= '</span>';
- return $output;
- }
- function ss_framework_accordion_sc($atts, $content = NULL)
- {
- extract( shortcode_atts( ) );
- $output = '<ul class="collapsible akordiyon popout collapsible-accordion" data-collapsible="accordion">';
- $output .= do_shortcode( $content );
- $output .= '</ul>';
- return $output;
- }
- function ss_framework_accordion_content_sc($atts, $content = NULL)
- {
- extract( shortcode_atts( array(
- 'title' => '',
- 'active' => '',
- 'icon' => ''
- ), $atts ) );
- $output = '<li>';
- $output .= '<div class="collapsible-header ' . esc_attr( $active ) . '"><i class="' . esc_attr( $icon ) . '" ></i> ' . esc_attr( $title ) . '</div>';
- $output .= '<div class="collapsible-body"><p>' . do_shortcode( $content ) . '</p></div>';
- $output .= '</li>';
- return $output;
- }
- function register_shortcodes_button($buttons)
- {
- array_push( $buttons, '|', 'ss_framework_shortcodes' );
- return $buttons;
- }
- function add_shortcodes_tinymce_plugin($plugin_array)
- {
- $plugin_array['ss_framework_shortcodes'] = get_template_directory_uri( ) . '/functions/tinymce/tinymce.js';
- return $plugin_array;
- }
- function add_shortcodes_button()
- {
- if (!(current_user_can( 'edit_posts' )) && !(current_user_can( 'edit_pages' ))) {
- return;
- }
- if (get_user_option( 'rich_editing' ) == 'true') {
- add_filter( 'mce_external_plugins', 'add_shortcodes_tinymce_plugin' );
- add_filter( 'mce_buttons', 'register_shortcodes_button' );
- }
- }
- /** Enqueue Color Picker **/
- function colorpicker_enqueue()
- {
- wp_enqueue_style( 'wp-color-picker' );
- wp_enqueue_script( 'colorpicker-js', get_stylesheet_directory_uri( ) . '/scripts/colorpicker.js', array( 'wp-color-picker' ) );
- }
- function responsive_embed($content)
- {
- $content = str_replace( '<iframe', '<div class="responsive-youtube"><iframe', $content );
- $content = str_replace( '</iframe>', '</iframe></div>', $content );
- return $content;
- }
- function taxonomy_edit_meta_field($term)
- {
- $t_id = $term->term_id;
- ...............................................................................
- ........................................
- ..................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement