WordPress.org

Make WordPress Themes


Ignore:
Location:
supernews/1.2.0
Files:
40 added
77 edited

Legend:

Unmodified
Added
Removed
  • supernews/1.2.0/404.php

    r83131 r83131  
    55 * @link https://codex.wordpress.org/Creating_an_Error_404_Page 
    66 * 
    7  * @package AcmeThemes 
     7 * @package Acme Themes 
    88 * @subpackage SuperNews 
    99 */ 
     
    3030        </main><!-- #main --> 
    3131    </div><!-- #primary --> 
    32 <?php get_footer(); ?> 
     32<?php get_footer(); 
  • supernews/1.2.0/acmethemes/core.php

    r83131 r83131  
    5858         */ 
    5959        add_theme_support( 'html5', array( 
    60             'search-form', 
    61             'comment-form', 
    62             'comment-list', 
    6360            'gallery', 
    6461            'caption', 
     
    9087 */ 
    9188function supernews_scripts() { 
     89    global $supernews_customizer_all_values; 
    9290    /*bxslider css*/ 
    9391    wp_enqueue_style( 'bxslider', get_template_directory_uri() . '/assets/library/bxslider/css/jquery.bxslider.min.css', array(), '4.2.5' ); 
     
    9795 
    9896    /*Font-Awesome-master*/ 
    99     wp_enqueue_style( 'fontawesome', get_template_directory_uri() . '/assets/library/Font-Awesome/css/font-awesome.min.css', array(), '4.5.0' ); 
     97    wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/assets/library/Font-Awesome/css/font-awesome.min.css', array(), '4.5.0' ); 
    10098 
    10199    wp_enqueue_style( 'supernews-style', get_stylesheet_uri() ); 
     
    110108    wp_enqueue_script('bxslider', get_template_directory_uri() . '/assets/library/bxslider/js/jquery.bxslider.min.js', array('jquery'), '4.2.5', 1); 
    111109    wp_enqueue_script('slicknav', get_template_directory_uri() . '/assets/library/SlickNav/jquery.slicknav.min.js', array('jquery'), '1.0.7', 1); 
     110 
     111    if( 1 == $supernews_customizer_all_values['supernews-enable-sticky-sidebar'] ){ 
     112        wp_enqueue_script('theia-sticky-sidebar', get_template_directory_uri() . '/assets/library/theia-sticky-sidebar/theia-sticky-sidebar.js', array('jquery'), '1.4.0', 1); 
     113    } 
     114 
    112115    wp_enqueue_script('supernews-custom', get_template_directory_uri() . '/assets/js/supernews-custom.js', array('jquery'), '1.0.1', 1); 
    113116 
     
    123126function supernews_admin_scripts( $hook ) { 
    124127 
    125     if ( 'widgets.php' == $hook ) { 
    126         wp_enqueue_media(); 
    127         wp_enqueue_script( 'supernews-widgets-script', get_template_directory_uri() . '/assets/js/acme-widget.js', array( 'jquery' ), '1.0.0' ); 
    128     } 
     128    wp_enqueue_media(); 
     129    wp_enqueue_script( 'supernews-widgets-script', get_template_directory_uri() . '/assets/js/acme-widget.js', array( 'jquery' ), '1.0.0' ); 
    129130 
    130131} 
     
    144145 
    145146/** 
     147 * Load custom header. 
     148 */ 
     149$supernews_custom_header = supernews_file_directory('acmethemes/core/custom-header.php'); 
     150require $supernews_custom_header; 
     151 
     152 
     153/** 
    146154 * Load Jetpack compatibility file. 
    147155 */ 
  • supernews/1.2.0/acmethemes/core/extras.php

    r83131 r83131  
    55 * Eventually, some of the functionality here could be replaced by core features. 
    66 * 
    7  * @package AcmeThemes 
     7 * @package Acme Themes 
    88 * @subpackage SuperNews 
    99 */ 
  • supernews/1.2.0/acmethemes/core/jetpack.php

    r83131 r83131  
    55 * @link https://jetpack.me/ 
    66 * 
    7  * @package AcmeThemes 
     7 * @package Acme Themes 
    88 * @subpackage SuperNews 
    99 */ 
  • supernews/1.2.0/acmethemes/core/template-tags.php

    r83131 r83131  
    55 * Eventually, some of the functionality here could be replaced by core features. 
    66 * 
    7  * @package AcmeThemes 
     7 * @package Acme Themes 
    88 * @subpackage SuperNews 
    99 */ 
     
    2727 
    2828    $posted_on = sprintf( 
    29         esc_html_x( '%s', 'post date', 'supernews' ), 
     29        '%s', 
    3030        '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark"><i class="fa fa-calendar"></i>' . $time_string . '</a>' 
    3131    ); 
    3232 
    3333    $byline = sprintf( 
    34         esc_html_x( '%s', 'post author', 'supernews' ), 
     34        '%s', 
    3535        '<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '"><i class="fa fa-user"></i>' . esc_html( get_the_author() ) . '</a></span>' 
    3636    ); 
     
    5151        $tags_list = get_the_tag_list( '', esc_html__( ', ', 'supernews' ) ); 
    5252        if ( $tags_list ) { 
    53             printf( '<span class="tags-links"><i class="fa fa-tags"></i>' . esc_html__( '%1$s', 'supernews' ) . '</span>', $tags_list ); // WPCS: XSS OK. 
     53            printf( '<span class="tags-links"><i class="fa fa-tags"></i>%1$s</span>', $tags_list ); // WPCS: XSS OK. 
    5454        } 
    5555    } 
     
    121121    } 
    122122endif; 
    123  
    124  
    125123add_action( 'edit_category', 'supernews_category_transient_flusher' ); 
    126124add_action( 'save_post',     'supernews_category_transient_flusher' ); 
  • supernews/1.2.0/acmethemes/customizer/custom-controls.php

    r83131 r83131  
    44    /** 
    55     * Custom Control for category dropdown 
    6      * @package AcmeThemes 
     6     * @package Acme Themes 
    77     * @subpackage SuperNews 
    88     * @since 1.0.0 
     
    4848        } 
    4949    } 
    50     endif; 
     50endif; 
    5151 
    5252if ( class_exists( 'WP_Customize_Control' ) && ! class_exists( 'Supernews_Customize_Post_Dropdown_Control' )): 
     
    5454    /** 
    5555     * Custom Control for post dropdown 
    56      * @package AcmeThemes 
     56     * @package Acme Themes 
    5757     * @subpackage SuperNews 
    5858     * @since 1.0.0 
     
    112112    /** 
    113113     * Custom Control for html display 
    114      *  * @package AcmeThemes  * @subpackage SuperNews 
     114     *  * @package Acme Themes  * @subpackage SuperNews 
    115115     * @since 1.0.0 
    116116     * 
     
    135135         * 
    136136         */ 
    137         public function render_content() { 
    138             if ( empty( $this->description ) ) { 
    139                 return; 
    140             } 
    141             ?> 
    142             <div class="supernews-customize-customize-message"> 
    143                 <?php echo wp_kses_post($this->description); ?> 
    144             </div> <!-- .supernews-customize-customize-message --> 
    145             <?php 
    146         } 
     137        public function render_content() { 
     138            if ( empty( $this->description ) ) { 
     139                return; 
     140            } 
     141            $allowed_html = array( 
     142                'a' => array( 
     143                    'href' => array(), 
     144                    'title' => array(), 
     145                    'data-section' => array(), 
     146                    'class' => array(), 
     147                    'target' => array(), 
     148                ), 
     149                'hr' => array(), 
     150                'br' => array(), 
     151                'em' => array(), 
     152                'strong' => array(), 
     153            ); 
     154            ?> 
     155            <div class="supermag-customize-customize-message"> 
     156                <?php 
     157                echo wp_kses( $this->description , $allowed_html ) 
     158                ?> 
     159            </div> <!-- .supermag-customize-customize-message --> 
     160            <?php 
     161        } 
    147162    } 
    148163endif; 
  • supernews/1.2.0/acmethemes/customizer/customizer-core.php

    r83131 r83131  
    33 * Header logo/text display options alternative 
    44 * 
    5  * @since supernews 1.0.2 
     5 * @since SuperNews 1.0.2 
    66 * 
    77 * @param null 
     
    2222 
    2323/** 
     24 * Header Display Options 
     25 * 
     26 * @since SuperNews 1.2.0 
     27 * 
     28 * @param null 
     29 * @return array $supernews_header_date_format 
     30 * 
     31 */ 
     32if ( !function_exists('supernews_header_date_format') ) : 
     33    function supernews_header_date_format() { 
     34        $supernews_header_date_format =  array( 
     35            'default' => __( 'Default', 'supernews' ), 
     36            'wp-date-format' => __( 'From WordPress Date Setting', 'supernews' ) 
     37        ); 
     38        return apply_filters( 'supernews_header_date_format', $supernews_header_date_format ); 
     39    } 
     40endif; 
     41 
     42/** 
     43 * Header Media Position options 
     44 * 
     45 * @since SuperNews 1.2.0 
     46 * 
     47 * @param null 
     48 * @return array $supernews_header_media_position 
     49 * 
     50 */ 
     51if ( !function_exists('supernews_header_media_position') ) : 
     52    function supernews_header_media_position() { 
     53        $supernews_header_media_position =  array( 
     54            'very-top' => __( 'Very Top', 'supernews' ), 
     55            'above-logo' => __( 'Above Site Identity', 'supernews' ), 
     56            'above-menu' => __( 'Below Site Identity and Above Menu', 'supernews' ), 
     57            'below-menu' => __( 'Below Menu', 'supernews' ) 
     58        ); 
     59        return apply_filters( 'supernews_header_media_position', $supernews_header_media_position ); 
     60    } 
     61endif; 
     62 
     63/** 
     64 * Header Ads display options 
     65 * 
     66 * @since SuperNews 1.0.3 
     67 * 
     68 * @param null 
     69 * @return array 
     70 * 
     71 */ 
     72if ( !function_exists('supernews_header_ads_display_options') ) : 
     73    function supernews_header_ads_display_options() { 
     74        $supernews_related_posts_display_options =  array( 
     75            'hide'  => __( 'Hide', 'supernews' ), 
     76            'show' => __( 'Show', 'supernews' ) 
     77        ); 
     78        return apply_filters( 'supernews_related_posts_display_options', $supernews_related_posts_display_options ); 
     79    } 
     80endif; 
     81 
     82/** 
     83 * Header Site identity and ads display options 
     84 * 
     85 * @since SuperNews 1.0.5 
     86 * 
     87 * @param null 
     88 * @return array $supernews_header_logo_menu_display_position 
     89 * 
     90 */ 
     91if ( !function_exists('supernews_header_logo_menu_display_position') ) : 
     92    function supernews_header_logo_menu_display_position() { 
     93        $supernews_header_logo_menu_display_position =  array( 
     94            'left-logo-right-ads' => __( 'Left Logo and Right Ads', 'supernews' ), 
     95            'right-logo-left-ads' => __( 'Right Logo and Left Ads', 'supernews' ), 
     96            'center-logo-below-ads' => __( 'Center Logo and Below Ads', 'supernews' ) 
     97        ); 
     98        return apply_filters( 'supernews_header_logo_menu_display_position', $supernews_header_logo_menu_display_position ); 
     99    } 
     100endif; 
     101 
     102/** 
    24103 * Sidebar layout options 
    25104 * 
    26  * @since supernews 1.0.0 
     105 * @since SuperNews 1.0.0 
    27106 * 
    28107 * @param null 
     
    41120endif; 
    42121 
    43  
    44122/** 
    45123 * Blog layout options 
    46124 * 
    47  * @since supernews 1.0.0 
     125 * @since SuperNews 1.0.0 
    48126 * 
    49127 * @param null 
     
    64142 * Related posts layout options 
    65143 * 
    66  * @since supernews 1.0.0 
     144 * @since SuperNews 1.0.0 
    67145 * 
    68146 * @param null 
     
    82160 
    83161/** 
     162 * Blog Archive Display Options 
     163 * 
     164 * @since SuperNews 1.2.0 
     165 * 
     166 * @param null 
     167 * @return array 
     168 * 
     169 */ 
     170if ( !function_exists('supernews_blog_archive_category_display_options') ) : 
     171    function supernews_blog_archive_category_display_options() { 
     172        $supernews_blog_archive_category_display_options =  array( 
     173            'default'  => __( 'Default', 'supernews' ), 
     174            'cat-color'  => __( 'Categories with Color', 'supernews' ) 
     175        ); 
     176        return apply_filters( 'supernews_blog_archive_category_display_options', $supernews_blog_archive_category_display_options ); 
     177    } 
     178endif; 
     179 
     180/** 
     181 * Related Post Display From Options 
     182 * 
     183 * @since SuperNews 1.2.0 
     184 * 
     185 * @param null 
     186 * @return array 
     187 * 
     188 */ 
     189if ( !function_exists('supernews_related_post_display_from') ) : 
     190    function supernews_related_post_display_from() { 
     191        $supernews_related_post_display_from =  array( 
     192            'cat'  => __( 'Related Posts From Categories', 'supernews' ), 
     193            'tag'  => __( 'Related Posts From Tags', 'supernews' ) 
     194        ); 
     195        return apply_filters( 'supernews_related_post_display_from', $supernews_related_post_display_from ); 
     196    } 
     197endif; 
     198 
     199/** 
     200 * Blog layout options 
     201 * 
     202 * @since SuperNews 1.2.0 
     203 * 
     204 * @param null 
     205 * @return array $supernews_get_image_sizes_options 
     206 * 
     207 */ 
     208if ( !function_exists('supernews_get_image_sizes_options') ) : 
     209    function supernews_get_image_sizes_options( $add_disable = false ) { 
     210        global $_wp_additional_image_sizes; 
     211        $choices = array(); 
     212        if ( true == $add_disable ) { 
     213            $choices['disable'] = __( 'No Image', 'supernews' ); 
     214        } 
     215        foreach ( array( 'thumbnail', 'medium', 'large' ) as $key => $_size ) { 
     216            $choices[ $_size ] = $_size . ' ('. get_option( $_size . '_size_w' ) . 'x' . get_option( $_size . '_size_h' ) . ')'; 
     217        } 
     218        $choices['full'] = __( 'full (original)', 'supernews' ); 
     219        if ( ! empty( $_wp_additional_image_sizes ) && is_array( $_wp_additional_image_sizes ) ) { 
     220 
     221            foreach ($_wp_additional_image_sizes as $key => $size ) { 
     222                $choices[ $key ] = $key . ' ('. $size['width'] . 'x' . $size['height'] . ')'; 
     223            } 
     224 
     225        } 
     226        return apply_filters( 'supernews_get_image_sizes_options', $choices ); 
     227    } 
     228endif; 
     229 
     230/** 
    84231 *  Default Theme layout options 
    85232 * 
    86  * @since supernews 1.0.0 
     233 * @since SuperNews 1.0.0 
    87234 * 
    88235 * @param null 
     
    97244            'supernews-feature-cat'  => 0, 
    98245            'supernews-enable-feature'  => '', 
     246            'supernews-feature-slider-enable'  => '', 
    99247 
    100248            /*header options*/ 
    101249            'supernews-header-logo'  => '', 
    102250            'supernews-header-id-display-opt' => 'title-and-tagline', 
     251 
    103252            'supernews-show-date'  => 1, 
     253            'supernews-header-date-format'  => 'default', 
     254 
    104255            'supernews-breaking-news-title'  => __( 'Breaking News', 'supernews' ), 
    105256            'supernews-enable-breaking-news'  => '', 
     257 
    106258            'supernews-facebook-url'  => '', 
    107259            'supernews-twitter-url'  => '', 
    108260            'supernews-youtube-url'  => '', 
    109             'supernews-enable-social'  => '', 
    110             'supernews-header-main-banner-ads'  => '', 
    111             'supernews-header-main-banner-ads-link'  => '', 
     261            'supernews-instagram-url'        => '', 
     262            'supernews-google-plus-url'  => '', 
     263            'supernews-pinterest-url'        => '', 
     264            'supernews-enable-social'  => 0, 
     265 
     266            'supernews-enable-sticky-menu'  => '', 
     267 
     268            'supernews-header-media-position'  => 'above-menu', 
     269            'supernews-header-media-customizer-link'  => '', 
     270            'supernews-header-image-link'  => esc_url( home_url() ), 
     271            'supernews-header-image-link-new-tab'  => '', 
     272 
     273            'supernews-header-main-show-banner-ads'  => 'show', 
     274            'supernews-header-main-banner-ads'  => get_template_directory_uri()."/assets/img/supernews-default-ad.jpg", 
     275            'supernews-header-main-banner-ads-link'  => 'https://www.acmethemes.com/themes/supernews/', 
     276            'supernews-header-logo-ads-display-position'  => 'left-logo-right-ads', 
     277 
    112278            'supernews-header-show-search'  => 1, 
    113279 
     
    115281            'supernews-footer-copyright'  => __( '&copy; All Right Reserved', 'supernews' ), 
    116282 
    117             /*layout/design options*/ 
     283            /*blog layout*/ 
     284            'supernews-blog-archive-image-layout' => 'full', 
     285            'supernews-blog-archive-more-text'  => __( 'Read More', 'supernews' ), 
     286 
     287            /*layout/design options*/ 
    118288            'supernews-sidebar-layout'  => 'right-sidebar', 
     289            'supernews-front-page-sidebar-layout'  => 'right-sidebar', 
     290            'supernews-archive-sidebar-layout'  => 'right-sidebar', 
     291 
     292            'supernews-enable-sticky-sidebar'  => 1, 
    119293            'supernews-blog-archive-layout'  => 'show-image', 
     294 
    120295            'supernews-primary-color'  => '#f73838', 
     296            'supernews-cat-hover-color'  => '#2d2d2d', 
     297 
    121298            'supernews-custom-css'  => '', 
    122299 
    123             /*single related post options*/ 
     300            /*single post options*/ 
    124301            'supernews-show-related'  => 1, 
     302            'supernews-related-title'  => __( 'Related posts', 'supernews' ), 
     303            'supernews-related-post-display-from'  => 'cat', 
     304            'supernews-single-image-layout'  => 'full', 
    125305 
    126306            /*theme options*/ 
     
    130310            'supernews-side-image-message'  => '', 
    131311 
     312            'supernews-hide-front-page-content'  => '', 
     313 
     314            'supernews-you-are-here-text'  => __( 'You are here', 'supernews' ), 
    132315            /*Reset*/ 
    133316            'supernews-reset-options'  => '0', 
     
    139322endif; 
    140323 
    141  
    142324/** 
    143325 *  Get theme options 
    144326 * 
    145  * @since supernews 1.0.0 
     327 * @since SuperNews 1.0.0 
    146328 * 
    147329 * @param null 
     
    160342            return $supernews_default_theme_options; 
    161343        } 
    162  
    163     } 
    164 endif; 
     344    } 
     345endif; 
  • supernews/1.2.0/acmethemes/customizer/customizer.php

    r83131 r83131  
    33 * SuperNews Theme Customizer. 
    44 * 
    5  * @package AcmeThemes 
     5 * @package Acme Themes 
    66 * @subpackage SuperNews 
    77 */ 
     
    8686    $wp_customize->remove_panel('header_image'); 
    8787    $wp_customize->remove_control('header_textcolor'); 
     88 
     89    /*sorting core and widget for ease of theme use*/ 
     90    $supernews_home_section = $wp_customize->get_section( 'sidebar-widgets-supernews-home' ); 
     91    if ( ! empty( $supernews_home_section ) ) { 
     92        $supernews_home_section->panel = ''; 
     93        $supernews_home_section->title = __( 'Home Main Content Area ', 'supernews' ); 
     94        $supernews_home_section->priority = 80; 
     95    } 
    8896} 
    8997add_action( 'customize_register', 'supernews_customize_register' ); 
     
    140148} 
    141149add_action( 'after_setup_theme', 'supernews_update_check' ); 
     150 
     151/** 
     152 * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. 
     153 */ 
     154function supernews_customize_controls_scripts() { 
     155    wp_enqueue_script( 'supernews-customizer-controls', get_template_directory_uri() . '/acmethemes/core/js/customizer-controls.js', array( 'customize-preview' ), '1.1.0', true ); 
     156} 
     157add_action( 'customize_controls_enqueue_scripts', 'supernews_customize_controls_scripts' ); 
  • supernews/1.2.0/acmethemes/customizer/design-options/blog-layout.php

    r83131 r83131  
    2424    'type'      => 'select' 
    2525) ); 
     26 
     27/*blog image size*/ 
     28$wp_customize->add_setting( 'supernews_theme_options[supernews-blog-archive-image-layout]', array( 
     29    'capability'        => 'edit_theme_options', 
     30    'default'           => $defaults['supernews-blog-archive-image-layout'], 
     31    'sanitize_callback' => 'supernews_sanitize_select' 
     32) ); 
     33$choices = supernews_get_image_sizes_options(); 
     34$wp_customize->add_control( 'supernews_theme_options[supernews-blog-archive-image-layout]', array( 
     35    'choices'   => $choices, 
     36    'label'     => __( 'Image Layout Options', 'supernews' ), 
     37    'section'   => 'supernews-design-blog-layout-option', 
     38    'settings'  => 'supernews_theme_options[supernews-blog-archive-image-layout]', 
     39    'type'      => 'select', 
     40) ); 
     41 
     42/*Read More Text*/ 
     43$wp_customize->add_setting( 'supernews_theme_options[supernews-blog-archive-more-text]', array( 
     44    'capability'        => 'edit_theme_options', 
     45    'default'           => $defaults['supernews-blog-archive-more-text'], 
     46    'sanitize_callback' => 'sanitize_text_field' 
     47) ); 
     48$wp_customize->add_control( 'supernews_theme_options[supernews-blog-archive-more-text]', array( 
     49    'label'     => __( 'Read More Text', 'supernews' ), 
     50    'section'   => 'supernews-design-blog-layout-option', 
     51    'settings'  => 'supernews_theme_options[supernews-blog-archive-more-text]', 
     52    'type'      => 'text' 
     53) ); 
  • supernews/1.2.0/acmethemes/customizer/design-options/colors-options.php

    r83131 r83131  
    88    'panel'          => 'supernews-design-panel' 
    99) ); 
     10 
    1011/*Primary color*/ 
    1112$wp_customize->add_setting( 'supernews_theme_options[supernews-primary-color]', array( 
     
    1415    'sanitize_callback' => 'sanitize_hex_color' 
    1516) ); 
    16 $wp_customize->add_control( 'supernews_theme_options[supernews-primary-color]', array( 
    17     'label'     => __( 'Primary Color', 'supernews' ), 
    18     'section'   => 'colors', 
    19     'settings'  => 'supernews_theme_options[supernews-primary-color]', 
    20     'type'      => 'color' 
    21 ) ); 
     17 
     18$wp_customize->add_control( 
     19    new WP_Customize_Color_Control( 
     20        $wp_customize, 
     21        'supernews_theme_options[supernews-primary-color]', 
     22        array( 
     23            'label'     => __( 'Primary Color', 'supernews' ), 
     24            'section'   => 'colors', 
     25            'settings'  => 'supernews_theme_options[supernews-primary-color]', 
     26            'type'      => 'color' 
     27        ) 
     28    ) 
     29); 
  • supernews/1.2.0/acmethemes/customizer/design-options/design-panel.php

    r83131 r83131  
    22/*adding theme options panel*/ 
    33$wp_customize->add_panel( 'supernews-design-panel', array( 
    4     'priority'       => 190, 
     4    'priority'       => 90, 
    55    'capability'     => 'edit_theme_options', 
    66    'theme_supports' => '', 
     
    88) ); 
    99 
     10 
    1011/* 
    1112* file for sidebar layout 
    1213*/ 
    13 $supernews_customizer_sidebar_layout_file_path = supernews_file_directory('acmethemes/customizer/design-options/sidebar-layout.php'); 
    14 require $supernews_customizer_sidebar_layout_file_path; 
     14require_once supernews_file_directory('acmethemes/customizer/design-options/sidebar-layout.php'); 
     15 
     16/* 
     17* file for front page sidebar layout options 
     18*/ 
     19require_once supernews_file_directory('acmethemes/customizer/design-options/front-page-sidebar-layout.php'); 
     20 
     21/* 
     22* file for front archive sidebar layout options 
     23*/ 
     24require_once supernews_file_directory('acmethemes/customizer/design-options/archive-sidebar-layout.php'); 
     25 
     26/* 
     27* Category color options 
     28*/ 
     29require_once supernews_file_directory('acmethemes/customizer/design-options/colors-cats.php'); 
     30 
     31/* 
     32* file for sticky sidebar 
     33*/ 
     34require_once supernews_file_directory('acmethemes/customizer/design-options/sticky-sidebar.php'); 
    1535 
    1636/* 
  • supernews/1.2.0/acmethemes/customizer/feature-section/feature-category.php

    r83131 r83131  
    22/*adding sections for category section in front page*/ 
    33$wp_customize->add_section( 'supernews-feature-category', array( 
    4     'priority'       => 10, 
     4    'priority'       => 20, 
    55    'capability'     => 'edit_theme_options', 
    66    'theme_supports' => '', 
     
    2929    ) 
    3030); 
     31 
     32/*enable slider*/ 
     33$wp_customize->add_setting( 'supernews_theme_options[supernews-feature-slider-enable]', array( 
     34    'capability'        => 'edit_theme_options', 
     35    'default'           => $defaults['supernews-feature-slider-enable'], 
     36    'sanitize_callback' => 'supernews_sanitize_checkbox' 
     37) ); 
     38$wp_customize->add_control( 'supernews_theme_options[supernews-feature-slider-enable]', array( 
     39    'label'     => __( 'Enable Slider Mode', 'supernews' ), 
     40    'description'=> __( 'You should have more than 5 posts in a selected category', 'supernews' ), 
     41    'section'   => 'supernews-feature-category', 
     42    'settings'  => 'supernews_theme_options[supernews-feature-slider-enable]', 
     43    'type'      => 'checkbox', 
     44    'priority'  => 90 
     45) ); 
  • supernews/1.2.0/acmethemes/customizer/feature-section/feature-enable.php

    r83131 r83131  
    22/*adding sections for enabling feature section in front page*/ 
    33$wp_customize->add_section( 'supernews-enable-feature', array( 
    4     'priority'       => 30, 
     4    'priority'       => 10, 
    55    'capability'     => 'edit_theme_options', 
    66    'theme_supports' => '', 
  • supernews/1.2.0/acmethemes/customizer/feature-section/feature-panel.php

    r83131 r83131  
    22/*adding feature options panel*/ 
    33$wp_customize->add_panel( 'supernews-feature-panel', array( 
    4     'priority'       => 105, 
     4    'priority'       => 70, 
    55    'capability'     => 'edit_theme_options', 
    66    'theme_supports' => '', 
  • supernews/1.2.0/acmethemes/customizer/footer-section/footer-section.php

    r83131 r83131  
    22/*adding sections for footer options*/ 
    33$wp_customize->add_section( 'supernews-footer-option', array( 
    4     'priority'       => 170, 
     4    'priority'       => 80, 
    55    'capability'     => 'edit_theme_options', 
    66    'theme_supports' => '', 
  • supernews/1.2.0/acmethemes/customizer/header-options/ad-option.php

    r83131 r83131  
    22/*adding sections for header ad */ 
    33$wp_customize->add_section( 'supernews-header-ad-option', array( 
    4     'priority'       => 40, 
    5     'capability'     => 'edit_theme_options', 
    6     'theme_supports' => '', 
    7     'title'          => __( 'Header Advertisement', 'supernews' ), 
    8     'panel'          => 'supernews-header-panel' 
     4    'priority'       => 20, 
     5    'capability'     => 'edit_theme_options', 
     6    'theme_supports' => '', 
     7    'title'          => __( 'Header Advertisement', 'supernews' ), 
     8    'description'    => sprintf( __( ' Now you can put %1$s Advertisement by Using Widgets %2$s', 'supernews' ), '<a href="#" class="at-customizer" data-section="sidebar-widgets-supernews-header">','</a>' ), 
     9    'panel'          => 'supernews-header-panel' 
     10) ); 
     11 
     12/*show ad*/ 
     13$wp_customize->add_setting( 'supernews_theme_options[supernews-header-main-show-banner-ads]', array( 
     14    'capability'        => 'edit_theme_options', 
     15    'default'           => $defaults['supernews-header-main-show-banner-ads'], 
     16    'sanitize_callback' => 'sanitize_text_field' 
     17) ); 
     18$choices = supernews_header_ads_display_options(); 
     19$wp_customize->add_control( 'supernews_theme_options[supernews-header-main-show-banner-ads]', array( 
     20    'choices'   => $choices, 
     21    'label'     => __( 'Advertisement Show Option', 'supernews' ), 
     22    'section'   => 'supernews-header-ad-option', 
     23    'settings'  => 'supernews_theme_options[supernews-header-main-show-banner-ads]', 
     24    'type'      => 'select', 
     25    'priority'  => 1 
    926) ); 
    1027 
    1128/*header ad img*/ 
    1229$wp_customize->add_setting( 'supernews_theme_options[supernews-header-main-banner-ads]', array( 
    13     'capability'        => 'edit_theme_options', 
    14     'default'           => $defaults['supernews-header-main-banner-ads'], 
    15     'sanitize_callback' => 'supernews_sanitize_image' 
     30    'capability'        => 'edit_theme_options', 
     31    'default'           => $defaults['supernews-header-main-banner-ads'], 
     32    'sanitize_callback' => 'supernews_sanitize_image' 
    1633) ); 
    1734$wp_customize->add_control( 
    18     new WP_Customize_Image_Control( 
    19         $wp_customize, 
    20         'supernews_theme_options[supernews-header-main-banner-ads]', 
    21         array( 
    22             'label'     => __( 'Header Ad Image', 'supernews' ), 
    23             'section'   => 'supernews-header-ad-option', 
    24             'settings'  => 'supernews_theme_options[supernews-header-main-banner-ads]', 
    25             'type'      => 'image', 
    26             'priority'  => 10, 
    27             'description' => __( 'Recommended image size of 728*90', 'supernews' ) 
     35    new WP_Customize_Image_Control( 
     36        $wp_customize, 
     37        'supernews_theme_options[supernews-header-main-banner-ads]', 
     38        array( 
     39            'label'     => __( 'Header Ad Image', 'supernews' ), 
     40            'section'   => 'supernews-header-ad-option', 
     41            'settings'  => 'supernews_theme_options[supernews-header-main-banner-ads]', 
     42            'type'      => 'image', 
     43            'priority'  => 10, 
     44            'description' => __( 'Recommended image size of 728*90', 'supernews' ) 
    2845 
    29         ) 
    30     ) 
     46        ) 
     47    ) 
    3148); 
    3249 
    3350/*header ad img link*/ 
    3451$wp_customize->add_setting( 'supernews_theme_options[supernews-header-main-banner-ads-link]', array( 
    35     'capability'        => 'edit_theme_options', 
    36     'default'           => $defaults['supernews-header-main-banner-ads-link'], 
    37     'sanitize_callback' => 'esc_url_raw', 
     52    'capability'        => 'edit_theme_options', 
     53    'default'           => $defaults['supernews-header-main-banner-ads-link'], 
     54    'sanitize_callback' => 'esc_url_raw', 
    3855) ); 
    3956$wp_customize->add_control( 'supernews_theme_options[supernews-header-main-banner-ads-link]', array( 
    40     'label'     => __( 'Header Ad Image Link', 'supernews' ), 
    41     'section'   => 'supernews-header-ad-option', 
    42     'settings'  => 'supernews_theme_options[supernews-header-main-banner-ads-link]', 
    43     'type'      => 'url', 
    44     'priority'  => 20 
     57    'label'     => __( 'Header Ad Image Link', 'supernews' ), 
     58    'section'   => 'supernews-header-ad-option', 
     59    'settings'  => 'supernews_theme_options[supernews-header-main-banner-ads-link]', 
     60    'type'      => 'url', 
     61    'priority'  => 20 
    4562) ); 
  • supernews/1.2.0/acmethemes/customizer/header-options/header-date.php

    r83131 r83131  
    2323    'priority'  => 10 
    2424) ); 
     25 
     26/*date format*/ 
     27$wp_customize->add_setting( 'supernews_theme_options[supernews-header-date-format]', array( 
     28    'capability'        => 'edit_theme_options', 
     29    'default'           => $defaults['supernews-header-date-format'], 
     30    'sanitize_callback' => 'supernews_sanitize_select' 
     31) ); 
     32$choices = supernews_header_date_format(); 
     33$wp_customize->add_control( 'supernews_theme_options[supernews-header-date-format]', array( 
     34    'choices'   => $choices, 
     35    'label'     => __( 'Date Format', 'supernews' ), 
     36    'section'   => 'supernews-header-date', 
     37    'settings'  => 'supernews_theme_options[supernews-header-date-format]', 
     38    'type'      => 'select', 
     39    'priority'  => 20 
     40) ); 
  • supernews/1.2.0/acmethemes/customizer/header-options/header-logo.php

    r83131 r83131  
    2424} 
    2525 
    26  
    2726/*header logo/text display options*/ 
    2827$wp_customize->add_setting( 'supernews_theme_options[supernews-header-id-display-opt]', array( 
  • supernews/1.2.0/acmethemes/customizer/header-options/header-news.php

    r83131 r83131  
    77    'title'          => __( 'Breaking News Options', 'supernews' ), 
    88    'panel'          => 'supernews-header-panel' 
     9) ); 
     10 
     11/*header news enable*/ 
     12$wp_customize->add_setting( 'supernews_theme_options[supernews-enable-breaking-news]', array( 
     13    'capability'        => 'edit_theme_options', 
     14    'default'           => $defaults['supernews-enable-breaking-news'], 
     15    'sanitize_callback' => 'supernews_sanitize_checkbox' 
     16) ); 
     17$wp_customize->add_control( 'supernews_theme_options[supernews-enable-breaking-news]', array( 
     18    'label'     => __( 'Enable Breaking News', 'supernews' ), 
     19    'section'   => 'supernews-header-news', 
     20    'settings'  => 'supernews_theme_options[supernews-enable-breaking-news]', 
     21    'type'      => 'checkbox', 
     22    'priority'  => 10 
    923) ); 
    1024 
     
    2236    'priority'  => 10 
    2337) ); 
    24  
    25 /*header news enable*/ 
    26 $wp_customize->add_setting( 'supernews_theme_options[supernews-enable-breaking-news]', array( 
    27     'capability'        => 'edit_theme_options', 
    28     'default'           => $defaults['supernews-enable-breaking-news'], 
    29     'sanitize_callback' => 'supernews_sanitize_checkbox' 
    30 ) ); 
    31 $wp_customize->add_control( 'supernews_theme_options[supernews-enable-breaking-news]', array( 
    32     'label'     => __( 'Enable Breaking News', 'supernews' ), 
    33     'section'   => 'supernews-header-news', 
    34     'settings'  => 'supernews_theme_options[supernews-enable-breaking-news]', 
    35     'type'      => 'checkbox', 
    36     'priority'  => 10 
    37 ) ); 
  • supernews/1.2.0/acmethemes/customizer/header-options/header-panel.php

    r83131 r83131  
    22/*adding header options panel*/ 
    33$wp_customize->add_panel( 'supernews-header-panel', array( 
    4     'priority'       => 160, 
     4    'priority'       => 30, 
    55    'capability'     => 'edit_theme_options', 
    66    'theme_supports' => '', 
     
    4545require $supernews_customizer_header_search_option_file_path; 
    4646 
     47/* 
     48* file for header menu options 
     49*/ 
     50require_once supernews_file_directory('acmethemes/customizer/header-options/site-identity-placement.php'); 
    4751 
     52/* 
     53* file for header media display option 
     54*/ 
     55require_once supernews_file_directory('acmethemes/customizer/header-options/header-media-display-options.php'); 
    4856 
     57/* 
     58* file for menu options 
     59*/ 
     60require_once supernews_file_directory('acmethemes/customizer/header-options/menu-option.php'); 
     61 
  • supernews/1.2.0/acmethemes/customizer/header-options/social-options.php

    r83131 r83131  
    22/*adding sections for header social options */ 
    33$wp_customize->add_section( 'supernews-header-social', array( 
    4     'priority'       => 50, 
    5     'capability'     => 'edit_theme_options', 
    6     'theme_supports' => '', 
    7     'title'          => __( 'Social Options', 'supernews' ), 
    8     'panel'          => 'supernews-header-panel' 
     4    'priority'       => 20, 
     5    'capability'     => 'edit_theme_options', 
     6    'theme_supports' => '', 
     7    'title'          => __( 'Social Options', 'supernews' ), 
     8    'panel'          => 'supernews-header-panel' 
     9) ); 
     10 
     11/*enable social*/ 
     12$wp_customize->add_setting( 'supernews_theme_options[supernews-enable-social]', array( 
     13    'capability'        => 'edit_theme_options', 
     14    'default'           => $defaults['supernews-enable-social'], 
     15    'sanitize_callback' => 'supernews_sanitize_checkbox', 
     16) ); 
     17$wp_customize->add_control( 'supernews_theme_options[supernews-enable-social]', array( 
     18    'label'     => __( 'Enable social', 'supernews' ), 
     19    'section'   => 'supernews-header-social', 
     20    'settings'  => 'supernews_theme_options[supernews-enable-social]', 
     21    'type'      => 'checkbox', 
     22    'priority'  => 10 
    923) ); 
    1024 
    1125/*facebook url*/ 
    1226$wp_customize->add_setting( 'supernews_theme_options[supernews-facebook-url]', array( 
    13     'capability'        => 'edit_theme_options', 
    14     'default'           => $defaults['supernews-facebook-url'], 
    15     'sanitize_callback' => 'esc_url_raw', 
     27    'capability'        => 'edit_theme_options', 
     28    'default'           => $defaults['supernews-facebook-url'], 
     29    'sanitize_callback' => 'esc_url_raw', 
    1630) ); 
    1731$wp_customize->add_control( 'supernews_theme_options[supernews-facebook-url]', array( 
    18     'label'     => __( 'Facebook url', 'supernews' ), 
    19     'section'   => 'supernews-header-social', 
    20     'settings'  => 'supernews_theme_options[supernews-facebook-url]', 
    21     'type'      => 'url', 
    22     'priority'  => 20 
     32    'label'     => __( 'Facebook url', 'supernews' ), 
     33    'section'   => 'supernews-header-social', 
     34    'settings'  => 'supernews_theme_options[supernews-facebook-url]', 
     35    'type'      => 'url', 
     36    'priority'  => 20 
    2337) ); 
    2438 
    2539/*twitter url*/ 
    2640$wp_customize->add_setting( 'supernews_theme_options[supernews-twitter-url]', array( 
    27     'capability'        => 'edit_theme_options', 
    28     'default'           => $defaults['supernews-twitter-url'], 
    29     'sanitize_callback' => 'esc_url_raw', 
     41    'capability'        => 'edit_theme_options', 
     42    'default'           => $defaults['supernews-twitter-url'], 
     43    'sanitize_callback' => 'esc_url_raw', 
    3044) ); 
    3145$wp_customize->add_control( 'supernews_theme_options[supernews-twitter-url]', array( 
    32     'label'     => __( 'Twitter url', 'supernews' ), 
    33     'section'   => 'supernews-header-social', 
    34     'settings'  => 'supernews_theme_options[supernews-twitter-url]', 
    35     'type'      => 'url', 
    36     'priority'  => 25 
     46    'label'     => __( 'Twitter url', 'supernews' ), 
     47    'section'   => 'supernews-header-social', 
     48    'settings'  => 'supernews_theme_options[supernews-twitter-url]', 
     49    'type'      => 'url', 
     50    'priority'  => 25 
    3751) ); 
    3852 
    3953/*youtube url*/ 
    4054$wp_customize->add_setting( 'supernews_theme_options[supernews-youtube-url]', array( 
    41     'capability'        => 'edit_theme_options', 
    42     'default'           => $defaults['supernews-youtube-url'], 
    43     'sanitize_callback' => 'esc_url_raw', 
     55    'capability'        => 'edit_theme_options', 
     56    'default'           => $defaults['supernews-youtube-url'], 
     57    'sanitize_callback' => 'esc_url_raw', 
    4458) ); 
    4559$wp_customize->add_control( 'supernews_theme_options[supernews-youtube-url]', array( 
    46     'label'     => __( 'Youtube url', 'supernews' ), 
    47     'section'   => 'supernews-header-social', 
    48     'settings'  => 'supernews_theme_options[supernews-youtube-url]', 
    49     'type'      => 'url', 
    50     'priority'  => 25 
     60    'label'     => __( 'Youtube url', 'supernews' ), 
     61    'section'   => 'supernews-header-social', 
     62    'settings'  => 'supernews_theme_options[supernews-youtube-url]', 
     63    'type'      => 'url', 
     64    'priority'  => 25 
    5165) ); 
    5266 
    53 /*enable social*/ 
    54 $wp_customize->add_setting( 'supernews_theme_options[supernews-enable-social]', array( 
    55     'capability'        => 'edit_theme_options', 
    56     'default'           => $defaults['supernews-enable-social'], 
    57     'sanitize_callback' => 'supernews_sanitize_checkbox', 
     67 
     68/*Instagram url*/ 
     69$wp_customize->add_setting( 'supernews_theme_options[supernews-instagram-url]', array( 
     70    'capability'        => 'edit_theme_options', 
     71    'default'           => $defaults['supernews-instagram-url'], 
     72    'sanitize_callback' => 'esc_url_raw', 
    5873) ); 
    59 $wp_customize->add_control( 'supernews_theme_options[supernews-enable-social]', array( 
    60     'label'     => __( 'Enable social', 'supernews' ), 
    61     'section'   => 'supernews-header-social', 
    62     'settings'  => 'supernews_theme_options[supernews-enable-social]', 
    63     'type'      => 'checkbox', 
    64     'priority'  => 30 
     74$wp_customize->add_control( 'supernews_theme_options[supernews-instagram-url]', array( 
     75    'label'     => __( 'Instagram url', 'supernews' ), 
     76    'section'   => 'supernews-header-social', 
     77    'settings'  => 'supernews_theme_options[supernews-instagram-url]', 
     78    'type'      => 'url', 
     79    'priority'  => 30 
    6580) ); 
     81 
     82/*@since Version: 1.3.1 
     83 * google plusurl*/ 
     84$wp_customize->add_setting( 'supernews_theme_options[supernews-google-plus-url]', array( 
     85    'capability'        => 'edit_theme_options', 
     86    'default'           => $defaults['supernews-google-plus-url'], 
     87    'sanitize_callback' => 'esc_url_raw' 
     88) ); 
     89$wp_customize->add_control( 'supernews_theme_options[supernews-google-plus-url]', array( 
     90    'label'     => __( 'Google Plus Url', 'supernews' ), 
     91    'section'   => 'supernews-header-social', 
     92    'settings'  => 'supernews_theme_options[supernews-google-plus-url]', 
     93    'type'      => 'url', 
     94    'priority'  => 70 
     95) ); 
     96 
     97/*Pinterest  url*/ 
     98$wp_customize->add_setting( 'supernews_theme_options[supernews-pinterest-url]', array( 
     99    'capability'        => 'edit_theme_options', 
     100    'default'           => $defaults['supernews-pinterest-url'], 
     101    'sanitize_callback' => 'esc_url_raw', 
     102) ); 
     103$wp_customize->add_control( 'supernews_theme_options[supernews-pinterest-url]', array( 
     104    'label'     => __( 'Pinterest url', 'supernews' ), 
     105    'section'   => 'supernews-header-social', 
     106    'settings'  => 'supernews_theme_options[supernews-pinterest-url]', 
     107    'type'      => 'url', 
     108    'priority'  => 35 
     109) ); 
  • supernews/1.2.0/acmethemes/customizer/options/breadcrumb.php

    r83131 r83131  
    2323    'priority'  => 10 
    2424) ); 
     25 
     26/*Read More Text*/ 
     27$wp_customize->add_setting( 'supernews_theme_options[supernews-you-are-here-text]', array( 
     28    'capability'        => 'edit_theme_options', 
     29    'default'           => $defaults['supernews-you-are-here-text'], 
     30    'sanitize_callback' => 'sanitize_text_field' 
     31) ); 
     32$wp_customize->add_control( 'supernews_theme_options[supernews-you-are-here-text]', array( 
     33    'label'     => __( 'You are here Text', 'supernews' ), 
     34    'section'   => 'supernews-breadcrumb-options', 
     35    'settings'  => 'supernews_theme_options[supernews-you-are-here-text]', 
     36    'type'      => 'text' 
     37) ); 
  • supernews/1.2.0/acmethemes/customizer/options/options-panel.php

    r83131 r83131  
    88    'description'    => __( 'Customize your awesome site with theme options ', 'supernews' ) 
    99) ); 
     10 
     11/* 
     12* file for front page 
     13*/ 
     14require_once supernews_file_directory('acmethemes/customizer/options/front-page.php'); 
    1015 
    1116/* 
  • supernews/1.2.0/acmethemes/customizer/options/options-reset.php

    r83131 r83131  
    77 * @return void 
    88 * 
    9  * @since supernews 1.0.0 
     9 * @since SuperNews 1.0.0 
    1010 */ 
    1111if ( ! function_exists( 'supernews_reset_db_options' ) ) : 
     
    1515endif; 
    1616 
    17 function supernews_reset_setting_callback( $input, $setting ){ 
    18     // Ensure input is a slug. 
    19     $input = sanitize_text_field( $input ); 
    20     if( '0' == $input ){ 
    21         return '0'; 
    22     } 
     17function supernews_reset_db_setting( ){ 
     18    $supernews_customizer_all_values = supernews_get_theme_options(); 
     19    $input = $supernews_customizer_all_values['supernews-reset-options']; 
     20    if( '0' == $input ){ 
     21        return; 
     22    } 
    2323    $supernews_default_theme_options = supernews_get_default_theme_options(); 
    2424    $supernews_get_theme_options = get_theme_mod( 'supernews_theme_options'); 
     
    3838    } 
    3939} 
     40add_action( 'customize_save_after','supernews_reset_db_setting' ); 
     41 
    4042/*adding sections for Reset Options*/ 
    4143$wp_customize->add_section( 'supernews-reset-options', array( 
     
    5052    'capability'        => 'edit_theme_options', 
    5153    'default'           => $defaults['supernews-reset-options'], 
    52     'sanitize_callback' => 'supernews_reset_setting_callback', 
     54    'sanitize_callback' => 'supernews_sanitize_select', 
    5355    'transport'         => 'postMessage' 
    5456) ); 
  • supernews/1.2.0/acmethemes/customizer/sanitize-functions.php

    r83131 r83131  
    2323 * Sanitizing the checkbox 
    2424 * 
    25  * @since supernews 1.0.0 
     25 * @since SuperNews 1.0.0 
    2626 * 
    2727 * @param $checked 
     
    4141 * @see wp_check_filetype() https://developer.wordpress.org/reference/functions/wp_check_filetype/ 
    4242 * 
    43  * @since supernews 1.0.0 
     43 * @since SuperNews 1.0.0 
    4444 * 
    4545 * @param string $image Image filename. 
     
    7070endif; 
    7171 
    72  
    7372/** 
    7473 * Sanitizing the page/post 
    7574 * 
    76  * @since supernews 1.0.0 
     75 * @since SuperNews 1.0.0 
    7776 * 
    7877 * @param $input user input value 
     
    9291 * Sanitizing the select callback example 
    9392 * 
    94  * @since supernews 1.0.0 
     93 * @since SuperNews 1.0.0 
    9594 * 
    9695 * @see sanitize_key()               https://developer.wordpress.org/reference/functions/sanitize_key/ 
  • supernews/1.2.0/acmethemes/customizer/single-posts/single-post-section.php

    r83131 r83131  
    22/*adding sections for Single post options*/ 
    33$wp_customize->add_section( 'supernews-single-post', array( 
    4     'priority'       => 200, 
     4    'priority'       => 90, 
    55    'capability'     => 'edit_theme_options', 
    66    'theme_supports' => '', 
     
    88) ); 
    99 
    10 /*show rlated posts*/ 
     10/*single image layout*/ 
     11$wp_customize->add_setting( 'supernews_theme_options[supernews-single-image-layout]', array( 
     12    'capability'        => 'edit_theme_options', 
     13    'default'           => $defaults['supernews-single-image-layout'], 
     14    'sanitize_callback' => 'supernews_sanitize_select' 
     15) ); 
     16$choices = supernews_get_image_sizes_options(1); 
     17$wp_customize->add_control( 'supernews_theme_options[supernews-single-image-layout]', array( 
     18    'choices'   => $choices, 
     19    'label'     => __( 'Image Layout Options', 'supernews' ), 
     20    'section'   => 'supernews-single-post', 
     21    'settings'  => 'supernews_theme_options[supernews-single-image-layout]', 
     22    'type'      => 'select', 
     23    'priority'  => 20 
     24) ); 
     25 
     26/*show related posts*/ 
    1127$wp_customize->add_setting( 'supernews_theme_options[supernews-show-related]', array( 
    1228    'capability'        => 'edit_theme_options', 
     
    1935    'settings'  => 'supernews_theme_options[supernews-show-related]', 
    2036    'type'      => 'checkbox', 
    21     'priority'  => 10 
     37    'priority'  => 30 
    2238) ); 
     39 
     40/*Related title*/ 
     41$wp_customize->add_setting( 'supernews_theme_options[supernews-related-title]', array( 
     42    'capability'        => 'edit_theme_options', 
     43    'default'           => $defaults['supernews-related-title'], 
     44    'sanitize_callback' => 'sanitize_text_field' 
     45) ); 
     46$wp_customize->add_control( 'supernews_theme_options[supernews-related-title]', array( 
     47    'label'     => __( 'Related Posts title', 'supernews' ), 
     48    'section'   => 'supernews-single-post', 
     49    'settings'  => 'supernews_theme_options[supernews-related-title]', 
     50    'type'      => 'text', 
     51    'priority'  => 40 
     52) ); 
     53 
     54/*related post by tag or category*/ 
     55$wp_customize->add_setting( 'supernews_theme_options[supernews-related-post-display-from]', array( 
     56    'capability'        => 'edit_theme_options', 
     57    'default'           => $defaults['supernews-related-post-display-from'], 
     58    'sanitize_callback' => 'supernews_sanitize_select' 
     59) ); 
     60$choices = supernews_related_post_display_from(); 
     61$wp_customize->add_control( 'supernews_theme_options[supernews-related-post-display-from]', array( 
     62    'choices'   => $choices, 
     63    'label'     => __( 'Related Post Display From Options', 'supernews' ), 
     64    'section'   => 'supernews-single-post', 
     65    'settings'  => 'supernews_theme_options[supernews-related-post-display-from]', 
     66    'type'      => 'select', 
     67    'priority'  => 50 
     68) ); 
  • supernews/1.2.0/acmethemes/functions.php

    r83131 r83131  
    33 * List down the post category 
    44 * 
    5  * @since supernews 1.0.0 
     5 * @since SuperNews 1.0.0 
    66 * 
    77 * @param int $post_id 
     
    2222            $output .= '<span class="cat-links">'; 
    2323            foreach($categories as $category) { 
    24                 $output .= '<a href="'.esc_url( get_category_link( $category->term_id ) ).'"  rel="category tag">'.esc_html( $category->cat_name ).'</a>'.$separator; 
     24                $output .= '<a class="at-cat-item-'.esc_attr($category->term_id).'" href="'.esc_url( get_category_link( $category->term_id ) ).'"  rel="category tag">'.esc_html( $category->cat_name ).'</a>'.$separator; 
    2525            } 
    2626            $output .='</span>'; 
     
    3434 * Callback functions for comments 
    3535 * 
    36  * @since supernews 1.0.0 
     36 * @since SuperNews 1.0.0 
    3737 * 
    3838 * @param $comment 
     
    8484        <?php if ('div' != $args['style']) : ?> 
    8585            </div> 
    86         <?php endif; ?> 
    87         <?php 
     86        <?php endif; 
    8887    } 
    8988endif; 
     
    9291 * Date display functions 
    9392 * 
    94  * @since supernews 1.0.0 
     93 * @since SuperNews 1.0.0 
     94 * edited 1.5.0 
    9595 * 
    9696 * @param string $format 
     
    9999 */ 
    100100if ( ! function_exists( 'supernews_date_display' ) ) : 
    101     function supernews_date_display( $format = 'l, F j, Y') { 
    102         echo esc_html( date_i18n( $format ,time() ) ); 
    103     } 
     101    function supernews_date_display( $format = 'l, F j, Y') { 
     102        $supernews_customizer_all_values = supernews_get_theme_options(); 
     103        if( 'default' == $supernews_customizer_all_values['supernews-header-date-format'] ){ 
     104            echo esc_html( date_i18n( $format ) ); 
     105        } 
     106        else{ 
     107            echo date_i18n(get_option('date_format')); 
     108        } 
     109    } 
    104110endif; 
    105111 
     
    107113 * Select sidebar according to the options saved 
    108114 * 
    109  * @since supernews 1.0.0 
     115 * @since SuperNews 1.0.0 
    110116 * 
    111117 * @param null 
     
    114120 */ 
    115121if ( !function_exists('supernews_sidebar_selection') ) : 
    116     function supernews_sidebar_selection( ) { 
    117         global $supernews_customizer_all_values; 
    118         if( 
    119             'left-sidebar' == $supernews_customizer_all_values['supernews-sidebar-layout'] || 
    120             'no-sidebar' == $supernews_customizer_all_values['supernews-sidebar-layout'] 
    121         ){ 
    122             $supernewsbody_global_class = $supernews_customizer_all_values['supernews-sidebar-layout']; 
    123         } 
    124         else{ 
    125             $supernewsbody_global_class= 'right-sidebar'; 
    126         } 
    127         return $supernewsbody_global_class; 
    128     } 
     122    function supernews_sidebar_selection( ) { 
     123        wp_reset_postdata(); 
     124        $supernews_customizer_all_values = supernews_get_theme_options(); 
     125        global $post; 
     126        if( 
     127            isset( $supernews_customizer_all_values['supernews-sidebar-layout'] ) && 
     128            ( 
     129                'left-sidebar' == $supernews_customizer_all_values['supernews-sidebar-layout'] || 
     130                'both-sidebar' == $supernews_customizer_all_values['supernews-sidebar-layout'] || 
     131                'no-sidebar' == $supernews_customizer_all_values['supernews-sidebar-layout'] 
     132            ) 
     133        ){ 
     134            $supernews_body_global_class = $supernews_customizer_all_values['supernews-sidebar-layout']; 
     135        } 
     136        else{ 
     137            $supernews_body_global_class= 'right-sidebar'; 
     138        } 
     139 
     140        if( is_front_page() ){ 
     141            if( isset( $supernews_customizer_all_values['supernews-front-page-sidebar-layout'] ) ){ 
     142                if( 
     143                    'right-sidebar' == $supernews_customizer_all_values['supernews-front-page-sidebar-layout'] || 
     144                    'left-sidebar' == $supernews_customizer_all_values['supernews-front-page-sidebar-layout'] || 
     145                    'both-sidebar' == $supernews_customizer_all_values['supernews-front-page-sidebar-layout'] || 
     146                    'no-sidebar' == $supernews_customizer_all_values['supernews-front-page-sidebar-layout'] 
     147                ){ 
     148                    $supernews_body_classes = $supernews_customizer_all_values['supernews-front-page-sidebar-layout']; 
     149                } 
     150                else{ 
     151                    $supernews_body_classes = $supernews_body_global_class; 
     152                } 
     153            } 
     154            else{ 
     155                $supernews_body_classes= $supernews_body_global_class; 
     156            } 
     157        } 
     158        elseif (is_singular() && isset( $post->ID )) { 
     159            $post_class = get_post_meta( $post->ID, 'supernews_sidebar_layout', true ); 
     160            if ( 'default-sidebar' != $post_class ){ 
     161                if ( $post_class ) { 
     162                    $supernews_body_classes = $post_class; 
     163                } else { 
     164                    $supernews_body_classes = $supernews_body_global_class; 
     165                } 
     166            } 
     167            else{ 
     168                $supernews_body_classes = $supernews_body_global_class; 
     169            } 
     170 
     171        } 
     172        elseif ( is_archive() ) { 
     173            if( isset( $supernews_customizer_all_values['supernews-archive-sidebar-layout'] ) ){ 
     174                $supernews_archive_sidebar_layout = $supernews_customizer_all_values['supernews-archive-sidebar-layout']; 
     175                if( 
     176                    'right-sidebar' == $supernews_archive_sidebar_layout || 
     177                    'left-sidebar' == $supernews_archive_sidebar_layout || 
     178                    'both-sidebar' == $supernews_archive_sidebar_layout || 
     179                    'no-sidebar' == $supernews_archive_sidebar_layout 
     180                ){ 
     181                    $supernews_body_classes = $supernews_archive_sidebar_layout; 
     182                } 
     183                else{ 
     184                    $supernews_body_classes = $supernews_body_global_class; 
     185                } 
     186            } 
     187            else{ 
     188                $supernews_body_classes= $supernews_body_global_class; 
     189            } 
     190        } 
     191        else { 
     192            $supernews_body_classes = $supernews_body_global_class; 
     193        } 
     194        return $supernews_body_classes; 
     195    } 
    129196endif; 
    130197 
     
    132199 * Return content of fixed lenth 
    133200 * 
    134  * @since supernews 1.0.0 
     201 * @since SuperNews 1.0.0 
    135202 * 
    136203 * @param string $supernews_content 
     
    152219 */ 
    153220if( ! function_exists( 'supernews_breadcrumbs' ) ): 
    154     function supernews_breadcrumbs() { 
    155         wp_reset_postdata(); 
    156         global $post; 
    157         $trans_here = __( 'You are here', 'supernews' ); 
    158         $trans_home = __( 'Home', 'supernews' ); 
    159         $search_result_text = __( 'Search Results for ', 'supernews' ); 
    160  
    161         $showOnHome = 0; // 1 - show breadcrumbs on the homepage, 0 - don't show 
    162         $delimiter = '<span class="bread_arrow"> > </span>'; // delimiter between crumbs 
    163         $home = $trans_home; // text for the 'Home' link 
    164         $showHomeLink = 1; 
    165  
    166         $showCurrent = 1; // 1 - show current post/page title in breadcrumbs, 0 - don't show 
    167         $before = '<span class="current">'; // tag before the current crumb 
    168         $after = '</span>'; // tag after the current crumb 
    169  
    170         $homeLink = esc_url( home_url() ); 
    171  
    172         if (is_home() || is_front_page()) { 
    173  
    174             if ($showOnHome == 1) echo '<div id="supernews-breadcrumbs"><div class="breadcrumb-container"><a href="' . $homeLink . '">' . $home . '</a></div></div>'; 
    175  
    176         } else { 
    177             if($showHomeLink == 1){ 
    178                 echo '<div id="supernews-breadcrumbs" class="clearfix"><span class="breadcrumb">'.esc_attr( $trans_here ).'</span><div class="breadcrumb-container"><a href="' . $homeLink . '">' . $home . '</a> ' . $delimiter . ' '; 
    179             } else { 
    180                 echo '<div id="supernews-breadcrumbs" class="clearfix"><span class="breadcrumb">'.esc_attr( $trans_here ).'</span><div class="breadcrumb-container">' . $home . ' ' . $delimiter . ' '; 
    181             } 
    182  
    183             if ( is_category() ) { 
    184                 $thisCat = get_category(get_query_var('cat'), false); 
    185                 if ($thisCat->parent != 0) echo get_category_parents($thisCat->parent, TRUE, ' ' . $delimiter . ' '); 
    186                 echo $before .  single_cat_title('', false) . $after; 
    187  
    188             } elseif ( is_search() ) { 
    189                 echo $before . $search_result_text.' "' . get_search_query() . '"' . $after; 
    190  
    191             } elseif ( is_day() ) { 
    192                 echo '<a href="' . esc_url( get_year_link( get_the_time('Y') ) ) . '">' . get_the_time('Y') . '</a> ' . $delimiter . ' '; 
    193                 echo '<a href="' . esc_url( get_month_link( get_the_time('Y'), get_the_time('m')) ) . '">' . get_the_time('F') . '</a> ' . $delimiter . ' '; 
    194                 echo $before . get_the_time('d') . $after; 
    195  
    196             } elseif ( is_month() ) { 
    197                 echo '<a href="' . esc_url( get_year_link( get_the_time('Y') ) ) . '">' . get_the_time('Y') . '</a> ' . $delimiter . ' '; 
    198                 echo $before . get_the_time('F') . $after; 
    199  
    200             } elseif ( is_year() ) { 
    201                 echo $before . get_the_time('Y') . $after; 
    202  
    203             } elseif ( is_single() && !is_attachment() ) { 
    204                 if ( get_post_type() != 'post' ) { 
    205                     $post_type = get_post_type_object(get_post_type()); 
    206                     $slug = $post_type->rewrite; 
    207                     echo '<a href="' . $homeLink . '/' . $slug['slug'] . '/">' . $post_type->labels->singular_name . '</a>'; 
    208                     if ($showCurrent == 1) echo ' ' . $delimiter . ' ' . $before . get_the_title() . $after; 
    209                 } else { 
    210                     $cat = get_the_category(); 
    211                     if( $cat ){ 
    212                         $cat = $cat[0]; 
    213                         $cats = get_category_parents($cat, TRUE, ' ' . $delimiter . ' '); 
    214                         if ($showCurrent == 0) $cats = preg_replace("#^(.+)\s$delimiter\s$#", "$1", $cats); 
    215                         echo $cats; 
    216                     } 
    217  
    218                     if ($showCurrent == 1) echo $before . get_the_title() . $after; 
    219                 } 
    220  
    221             } elseif ( !is_single() && !is_page() && get_post_type() != 'post' && !is_404() ) { 
    222                 $post_type = get_post_type_object(get_post_type()); 
    223                 echo $before . $post_type->labels->singular_name . $after; 
    224  
    225             } elseif ( is_attachment() ) { 
    226                 $parent = get_post($post->post_parent); 
    227                 $cat = get_the_category($parent->ID); 
    228                 if( $cat ){ 
    229                     $cat = $cat[0]; 
    230                     echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' '); 
    231                 } 
    232                 echo '<a href="' . esc_url( get_permalink($parent) ) . '">' . $parent->post_title . '</a>'; 
    233                 if ($showCurrent == 1) echo ' ' . $delimiter . ' ' . $before . get_the_title() . $after; 
    234  
    235             } elseif ( is_page() && !$post->post_parent ) { 
    236                 if ($showCurrent == 1) echo $before . get_the_title() . $after; 
    237  
    238             } elseif ( is_page() && $post->post_parent ) { 
    239                 $parent_id  = $post->post_parent; 
    240                 $breadcrumbs = array(); 
    241                 while ($parent_id) { 
    242                     $page = get_post($parent_id); 
    243                     $breadcrumbs[] = '<a href="' . esc_url( get_permalink($page->ID) ). '">' . get_the_title($page->ID) . '</a>'; 
    244                     $parent_id  = $page->post_parent; 
    245                 } 
    246                 $breadcrumbs = array_reverse($breadcrumbs); 
    247                 for ($i = 0; $i < count($breadcrumbs); $i++) { 
    248                     echo $breadcrumbs[$i]; 
    249                     if ($i != count($breadcrumbs)-1) echo ' ' . $delimiter . ' '; 
    250                 } 
    251                 if ($showCurrent == 1) echo ' ' . $delimiter . ' ' . $before . get_the_title() . $after; 
    252  
    253             } elseif ( is_tag() ) { 
    254                 echo $before . __( 'Posts tagged', 'supernews' ).' "' . single_tag_title('', false) . '"' . $after; 
    255  
    256             } elseif ( is_author() ) { 
    257                 global $author; 
    258                 $userdata = get_userdata($author); 
    259                 echo $before . __( 'Author', 'supernews' ).': ' . $userdata->display_name . $after; 
    260  
    261             } elseif ( is_404() ) { 
    262                 echo $before . __( 'Error 404', 'supernews' ) . $after; 
    263             } 
    264             else { 
    265  
    266             } 
    267             if ( get_query_var('paged') ) { 
    268                 if ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() ) echo ' ('; 
    269                 echo __('Page' , 'supernews') . ' ' . get_query_var('paged'); 
    270                 if ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() ) echo ')'; 
    271             } 
    272             echo '</div></div>'; 
    273         } 
    274     } 
    275 endif; 
     221    function supernews_breadcrumbs() { 
     222        $supernews_customizer_all_values = supernews_get_theme_options(); 
     223        if ( ! function_exists( 'breadcrumb_trail' ) ) { 
     224            require_once supernews_file_directory('acmethemes/library/breadcrumbs/breadcrumbs.php'); 
     225        } 
     226        $breadcrumb_args = array( 
     227            'container'   => 'div', 
     228            'show_browse' => false 
     229        ); 
     230        $supernews_you_are_here_text = $supernews_customizer_all_values['supernews-you-are-here-text']; 
     231        if( !empty( $supernews_you_are_here_text ) ){ 
     232            $supernews_you_are_here_text = "<span class='breadcrumb'>".$supernews_you_are_here_text."</span>"; 
     233        } 
     234 
     235        echo "<div class='breadcrumbs clearfix'>".$supernews_you_are_here_text."<div id='supernews-breadcrumbs'>"; 
     236        breadcrumb_trail( $breadcrumb_args ); 
     237        echo "</div></div><div class='clear'></div>"; 
     238    } 
     239endif; 
  • supernews/1.2.0/acmethemes/hooks/comment-forms.php

    r83131 r83131  
    33 * Comment Form 
    44 * 
    5  * @since supernews 1.0.0 
     5 * @since SuperNews 1.0.0 
    66 * 
    77 * @param array $form 
     
    1515        $required = get_option('require_name_email'); 
    1616        $req = $required ? 'aria-required="true"' : ''; 
    17         $form['fields']['author'] = '<p class="comment-form-author"><label for="author"></label><input id="author" name="author" type="text" placeholder="'.__( 'Name', 'supernews' ).'" value="" size="30" ' . $req . '/></p>'; 
    18         $form['fields']['email'] = '<p class="comment-form-email"><label for="email"></label> <input id="email" name="email" type="email" value="" placeholder="'.__( 'Email', 'supernews' ).'" size="30"' . $req . '/></p>'; 
    19         $form['fields']['url'] = '<p class="comment-form-url"><label for="url"></label> <input id="url" name="url" placeholder="'.__( 'Website URL', 'supernews' ).'" type="url" value="" size="30" /></p>'; 
    20         $form['comment_field'] = '<p class="comment-form-comment"><label for="comment"></label> <textarea id="comment" name="comment" placeholder="'.__( 'Comment', 'supernews' ).'" cols="45" rows="8" aria-required="true"></textarea></p>'; 
     17        $form['fields']['author'] = '<p class="comment-form-author"><label for="author"></label><input id="author" name="author" type="text" placeholder="'.esc_attr__( 'Name', 'supernews' ).'" value="" size="30" ' . $req . '/></p>'; 
     18        $form['fields']['email'] = '<p class="comment-form-email"><label for="email"></label> <input id="email" name="email" type="email" value="" placeholder="'.esc_attr__( 'Email', 'supernews' ).'" size="30"' . $req . '/></p>'; 
     19        $form['fields']['url'] = '<p class="comment-form-url"><label for="url"></label> <input id="url" name="url" placeholder="'.esc_attr__( 'Website URL', 'supernews' ).'" type="url" value="" size="30" /></p>'; 
     20        $form['comment_field'] = '<p class="comment-form-comment"><label for="comment"></label> <textarea id="comment" name="comment" placeholder="'.esc_attr__( 'Comment', 'supernews' ).'" cols="45" rows="8" aria-required="true"></textarea></p>'; 
    2121        $form['comment_notes_before'] = ''; 
    2222        $form['label_submit'] = __( 'Add Comment', 'supernews' ); 
  • supernews/1.2.0/acmethemes/hooks/dynamic-css.php

    r83131 r83131  
    33 * Dynamic css 
    44 * 
    5  * @since supernews 1.0.0 
     5 * @since SuperNews 1.0.0 
    66 * 
    77 * @param null 
     
    1515        global $supernews_customizer_all_values; 
    1616        /*Color options */ 
    17         $supernews_primary_color = $supernews_customizer_all_values['supernews-primary-color']; 
     17        $supernews_primary_color = esc_attr( $supernews_customizer_all_values['supernews-primary-color'] ); 
    1818 
    1919        $custom_css = ''; 
     
    111111                } 
    112112            }"; 
     113 
     114        /*category color*/ 
     115        /*category color options*/ 
     116        $args = array( 
     117            'orderby' => 'id', 
     118            'hide_empty' => 0 
     119        ); 
     120        $categories = get_categories( $args ); 
     121        $wp_category_list = array(); 
     122        $i = 1; 
     123        foreach ($categories as $category_list ) { 
     124            $wp_category_list[$category_list->cat_ID] = $category_list->cat_name; 
     125 
     126            $cat_color = 'cat-'.esc_attr( get_cat_id($wp_category_list[$category_list->cat_ID]) ); 
     127            $cat_hover_color = 'cat-hover-'.esc_attr( get_cat_id($wp_category_list[$category_list->cat_ID]) ); 
     128 
     129            if( isset( $supernews_customizer_all_values[$cat_color] )){ 
     130                $cat_color = $supernews_customizer_all_values[$cat_color]; 
     131                if( !empty( $cat_color )){ 
     132                    $custom_css .= " 
     133                    .cat-links .at-cat-item-{$category_list->cat_ID}{ 
     134                    background: {$cat_color}!important; 
     135                    color : #fff!important; 
     136                    } 
     137                    "; 
     138 
     139                    /*widget tittle*/ 
     140                    $custom_css .= " 
     141                    .at-cat-color-wrap-{$category_list->cat_ID} .widget-title::before, 
     142                    body.category-{$category_list->cat_ID} .page-header .page-title::before 
     143                    { 
     144                     border-bottom: 3px solid {$cat_color}; 
     145                    } 
     146                    "; 
     147                    $custom_css .= " 
     148                    .at-cat-color-wrap-{$category_list->cat_ID} .widget-title, 
     149                     body.category-{$category_list->cat_ID} .page-header .page-title 
     150                    { 
     151                     border-bottom: 1px solid {$cat_color}; 
     152                    }"; 
     153                } 
     154            } 
     155            else{ 
     156                $custom_css .= " 
     157                    .cat-links .at-cat-item-{$category_list->cat_ID}{ 
     158                    background: {$supernews_primary_color}!important; 
     159                    color : #fff!important; 
     160                    } 
     161                    "; 
     162            } 
     163            if( isset( $supernews_customizer_all_values[$cat_hover_color] )){ 
     164                $cat_hover_color = $supernews_customizer_all_values[$cat_hover_color]; 
     165                if( !empty( $cat_hover_color )){ 
     166                    $custom_css .= " 
     167                    .cat-links .at-cat-item-{$category_list->cat_ID}:hover{ 
     168                    background: {$cat_hover_color}!important; 
     169                    color : #fff!important; 
     170                    } 
     171                    "; 
     172                } 
     173            } 
     174            else{ 
     175                $custom_css .= " 
     176                    .cat-links .at-cat-item-{$category_list->cat_ID}:hover{ 
     177                    background: #2d2d2d!important; 
     178                    color : #fff!important; 
     179                    } 
     180                    "; 
     181            } 
     182            $i++; 
     183        } 
     184        /*category color end*/ 
     185 
    113186        /*custom css*/ 
    114187        $supernews_custom_css = wp_strip_all_tags ( $supernews_customizer_all_values['supernews-custom-css'] ); 
  • supernews/1.2.0/acmethemes/hooks/excerpts.php

    r83131 r83131  
    33 * Excerpt length 90 return 
    44 * 
    5  * @since supernews 1.0.0 
     5 * @since SuperNews 1.0.0 
    66 * 
    77 * @param null 
     
    1010 */ 
    1111if ( !function_exists('supernews_alter_excerpt') ) : 
    12     function supernews_alter_excerpt(){ 
     12    function supernews_alter_excerpt( $length ){ 
     13        if( is_admin() ){ 
     14            return $length; 
     15        } 
    1316        return 90; 
    1417    } 
     
    2023 * Add ... for more view 
    2124 * 
    22  * @since supernews 1.0.0 
     25 * @since SuperNews 1.0.0 
    2326 * 
    2427 * @param null 
     
    2831 
    2932if ( !function_exists('supernews_excerpt_more') ) : 
    30     function supernews_excerpt_more($more) { 
     33    function supernews_excerpt_more( $more ) { 
     34        if( is_admin() ){ 
     35            return $more; 
     36        } 
    3137        return '...'; 
    3238    } 
  • supernews/1.2.0/acmethemes/hooks/footer.php

    r83131 r83131  
    33 * content and content wrapper end 
    44 * 
    5  * @since supernews 1.0.0 
     5 * @since SuperNews 1.0.0 
    66 * 
    77 * @param null 
     
    2323 * Footer content 
    2424 * 
    25  * @since supernews 1.0.0 
     25 * @since SuperNews 1.0.0 
    2626 * 
    2727 * @param null 
     
    3434 
    3535        global $supernews_customizer_all_values; 
     36        if( is_active_sidebar( 'full-width-footer' ) ) : 
     37            dynamic_sidebar( 'full-width-footer' ); 
     38        endif; 
    3639        ?> 
    3740        <div class="clearfix"></div> 
     
    4548                                    <?php dynamic_sidebar( 'footer-col-one' ); ?> 
    4649                                </div> 
    47                             <?php endif; ?> 
    48                             <?php if( is_active_sidebar( 'footer-col-two' ) ) : ?> 
     50                            <?php endif; 
     51                            if( is_active_sidebar( 'footer-col-two' ) ) : ?> 
    4952                                <div class="footer-sidebar acme-col-3"> 
    5053                                    <?php dynamic_sidebar( 'footer-col-two' ); ?> 
    5154                                </div> 
    52                             <?php endif; ?> 
    53                             <?php if( is_active_sidebar( 'footer-col-three' ) ) : ?> 
     55                            <?php endif; 
     56                            if( is_active_sidebar( 'footer-col-three' ) ) : ?> 
    5457                                <div class="footer-sidebar acme-col-3"> 
    5558                                    <?php dynamic_sidebar( 'footer-col-three' ); ?> 
     
    7073                        <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'supernews' ) ); ?>"><?php printf( esc_html__( 'Proudly powered by %s', 'supernews' ), 'WordPress' ); ?></a> 
    7174                        <span class="sep"> | </span> 
    72                         <?php printf( esc_html__( 'Theme: %1$s by %2$s.', 'supernews' ), 'SuperNews', '<a href="http://www.acmethemes.com/">AcmeThemes</a>' ); ?> 
     75                        <?php printf( esc_html__( 'Theme: %1$s by %2$s', 'supernews' ), 'SuperNews', '<a href="https://www.acmethemes.com/">AcmeThemes</a>' ); ?> 
    7376                    </div><!-- .site-info --> 
    7477                    <div class="clearfix"></div> 
     
    8487 * Page end 
    8588 * 
    86  * @since supernews 1.0.0 
     89 * @since SuperNews 1.0.0 
    8790 * 
    8891 * @param null 
  • supernews/1.2.0/acmethemes/hooks/front-page.php

    r83131 r83131  
    33 * Front page hook for all WordPress Conditions 
    44 * 
    5  * @since supernews 1.0.0 
     5 * @since SuperNews 1.0.0 
    66 * 
    77 * @param null 
     
    1212 
    1313    function supernews_front_page() { 
     14        $supernews_customizer_all_values = supernews_get_theme_options(); 
     15        ?> 
     16        <div id="primary" class="content-area"> 
     17            <main id="main" class="site-main"> 
     18                <?php 
     19                if( is_active_sidebar( 'supernews-home' ) ){ 
     20                    dynamic_sidebar( 'supernews-home' ); 
     21                } 
    1422 
    15         if ( 'posts' == get_option( 'show_on_front' ) ) { 
    16             include( get_home_template() ); 
    17         } 
    18         elseif( is_active_sidebar( 'supernews-home' ) ){ 
    19             ?> 
    20             <div id="primary" class="content-area"> 
    21                 <main id="main" class="site-main"> 
    22                     <?php 
    23                     dynamic_sidebar( 'supernews-home' ); 
    24                     ?> 
    25                 </main> 
    26                 <!-- #main --> 
    27             </div><!-- #primary --> 
    28             <?php 
    29         } 
    30         else { 
    31             include( get_page_template() ); 
    32         } 
     23                echo "<div class='clearfix'></div>"; 
     24                if ( 1 != $supernews_customizer_all_values['supernews-hide-front-page-content'] ){ 
     25                    if ( 'posts' == get_option( 'show_on_front' ) ) { 
     26                        if ( have_posts() ) : 
     27                            /* Start the Loop */ 
     28                            while ( have_posts() ) : the_post(); 
    3329 
     30                                /* 
     31                                 * Include the Post-Format-specific template for the content. 
     32                                 * If you want to override this in a child theme, then include a file 
     33                                 * called content-___.php (where ___ is the Post Format name) and that will be used instead. 
     34                                 */ 
     35                                get_template_part( 'template-parts/content', get_post_format() ); 
     36                            endwhile; 
     37                            the_posts_navigation(); 
     38                        else : 
     39                            get_template_part( 'template-parts/content', 'none' ); 
     40                        endif; 
     41                    } 
     42                    else { 
     43                        while ( have_posts() ) : the_post(); 
     44                            get_template_part( 'template-parts/content', 'page' ); 
     45 
     46                            // If comments are open or we have at least one comment, load up the comment template. 
     47                            if ( comments_open() || get_comments_number() ) : 
     48                                comments_template(); 
     49                            endif; 
     50                        endwhile; // End of the loop. 
     51                    } 
     52                } 
     53                ?> 
     54            </main> 
     55            <!-- #main --> 
     56        </div><!-- #primary --> 
     57        <?php 
    3458    } 
    3559endif; 
  • supernews/1.2.0/acmethemes/hooks/header.php

    r83131 r83131  
    33 * Setting global variables for all theme options saved values 
    44 * 
    5  * @since supernews 1.0.0 
     5 * @since SuperNews 1.0.0 
    66 * 
    77 * @param null 
     
    2323 * Doctype Declaration 
    2424 * 
    25  * @since supernews 1.0.0 
     25 * @since SuperNews 1.0.0 
    2626 * 
    2727 * @param null 
     
    4141 * Code inside head tage but before wp_head funtion 
    4242 * 
    43  * @since supernews 1.0.0 
     43 * @since SuperNews 1.0.0 
    4444 * 
    4545 * @param null 
     
    6363 * Add body class 
    6464 * 
    65  * @since supernews 1.0.0 
     65 * @since SuperNews 1.0.0 
    6666 * 
    6767 * @param null 
     
    7676            $supernewsbody_classes[] = 'blog-no-image'; 
    7777        } 
     78        if( 1 == $supernews_customizer_all_values['supernews-enable-sticky-sidebar'] ){ 
     79            $supernewsbody_classes[] = 'at-sticky-sidebar'; 
     80        } 
     81        $supernews_header_logo_menu_display_position = $supernews_customizer_all_values['supernews-header-logo-ads-display-position']; 
     82        $supernewsbody_classes[] = esc_attr( $supernews_header_logo_menu_display_position ); 
     83 
    7884        $supernewsbody_classes[] = supernews_sidebar_selection(); 
    7985 
     
    8793 * Page start 
    8894 * 
    89  * @since supernews 1.0.0 
     95 * @since SuperNews 1.0.0 
    9096 * 
    9197 * @param null 
     
    106112 * Skip to content 
    107113 * 
    108  * @since supernews 1.0.0 
     114 * @since SuperNews 1.0.0 
    109115 * 
    110116 * @param null 
     
    126132 * Main header 
    127133 * 
    128  * @since supernews 1.0.0 
     134 * @since SuperNews 1.0.0 
    129135 * 
    130136 * @param null 
     
    136142    function supernews_header() { 
    137143        global $supernews_customizer_all_values; 
     144        $supernews_header_media_position = $supernews_customizer_all_values['supernews-header-media-position']; 
     145        if( 'very-top' == $supernews_header_media_position ){ 
     146            supernews_header_markup(); 
     147        } 
    138148        ?> 
    139149        <header id="masthead" class="site-header"> 
     
    165175            <div class="header-wrapper clearfix"> 
    166176                <div class="header-container"> 
     177                    <?php 
     178                    if( 'above-logo' == $supernews_header_media_position ){ 
     179                        supernews_header_markup(); 
     180                    } 
     181                    ?> 
    167182                    <div class="wrapper site-branding clearfix"> 
    168183                        <?php if ( 'disable' != $supernews_customizer_all_values['supernews-header-id-display-opt'] ):?> 
     
    201216                        <?php endif;?><!--supernews-header-id-display-opt--> 
    202217                        <?php 
    203                         if ( !empty( $supernews_customizer_all_values['supernews-header-main-banner-ads'] )): 
    204                             $supernews_header_main_banner_ads_link = $supernews_customizer_all_values['supernews-header-main-banner-ads-link']; 
    205                             ?> 
     218                        if ( (!empty( $supernews_customizer_all_values['supernews-header-main-banner-ads'] ) && 'hide' != $supernews_customizer_all_values['supernews-header-main-show-banner-ads'] ) || 
     219                             is_active_sidebar( 'supernews-header' ) ): 
     220                            $supernews_header_main_banner_ads_link = $supernews_customizer_all_values['supernews-header-main-banner-ads-link']; 
     221                            ?> 
    206222                            <div class="header-ads float-right"> 
    207                                 <a href="<?php echo esc_url( $supernews_header_main_banner_ads_link ); ?>" target="_blank"> 
    208                                     <img src="<?php echo esc_url( $supernews_customizer_all_values['supernews-header-main-banner-ads'] )?>" alt="<?php esc_html_e('Banner Ads','supernews');?>"> 
    209                                 </a> 
     223                                <?php 
     224                                if (!empty( $supernews_customizer_all_values['supernews-header-main-banner-ads'] ) && 'hide' != $supernews_customizer_all_values['supernews-header-main-show-banner-ads'] ){ 
     225                                    ?> 
     226                                    <a href="<?php echo esc_url( $supernews_header_main_banner_ads_link ); ?>" target="_blank"> 
     227                                        <img src="<?php echo esc_url( $supernews_customizer_all_values['supernews-header-main-banner-ads'] )?>"> 
     228                                    </a> 
     229                                    <?php 
     230                                } 
     231 
     232                                if( is_active_sidebar( 'supernews-header' ) ) : 
     233                                    dynamic_sidebar( 'supernews-header' ); 
     234                                endif; 
     235                                ?> 
    210236                            </div> 
    211237                        <?php endif; ?> 
    212238                        <div class="clearfix"></div> 
    213239                    </div> 
    214                     <nav id="site-navigation" class="main-navigation clearfix"> 
     240                    <?php 
     241                    if( 'above-menu' == $supernews_header_media_position ){ 
     242                        supernews_header_markup(); 
     243                    } 
     244                    $supernews_enable_sticky_menu =''; 
     245                    if( 1 == $supernews_customizer_all_values['supernews-enable-sticky-menu'] ) { 
     246                        $supernews_enable_sticky_menu = ' supernews-enable-sticky-menu '; 
     247                    } 
     248                    ?> 
     249                    <nav id="site-navigation" class="main-navigation <?php echo $supernews_enable_sticky_menu;?> clearfix"> 
    215250                        <div class="header-main-menu wrapper clearfix"> 
    216251                            <?php 
    217                             if( has_nav_menu( 'primary' ) ){ 
    218                                 ?> 
    219                                 <?php wp_nav_menu(array('theme_location' => 'primary','container' => 'div', 'container_class' => 'acmethemes-nav')); ?> 
    220                                 <?php 
    221                             } 
    222                             else{ 
    223                                 ?> 
    224                                 <div style="color: #ffffff;padding: 10px"> 
    225                                     <?php esc_html_e('Goto Appearance > Menus -: for setting up menu ','supernews'); ?> 
    226                                 </div> 
    227                                 <?php 
    228                             } 
     252                            wp_nav_menu(array('theme_location' => 'primary','container' => 'div', 'container_class' => 'acmethemes-nav')); 
    229253                            if ( 1 == $supernews_customizer_all_values['supernews-enable-social'] ) { 
    230254                                /*Social Sharing*/ 
    231255                                /** 
    232256                                 * supernews_action_social_links 
    233                                  * @since supernews 1.0.0 
     257                                 * @since SuperNews 1.0.0 
    234258                                 * 
    235259                                 * @hooked supernews_social_links -  10 
     
    242266                        <div class="responsive-slick-menu clearfix"></div> 
    243267                    </nav> 
     268                    <?php 
     269                    if( 'below-menu' == $supernews_header_media_position ){ 
     270                        supernews_header_markup(); 
     271                    } 
     272                    ?> 
    244273                    <!-- #site-navigation --> 
    245274                </div> 
     
    257286 * Before main content 
    258287 * 
    259  * @since supernews 1.0.0 
     288 * @since SuperNews 1.0.0 
    260289 * 
    261290 * @param null 
     
    307336            /** 
    308337             * supernews_action_feature_slider 
    309              * @since supernews 1.0.0 
     338             * @since SuperNews 1.0.0 
    310339             * 
    311340             * @hooked supernews_feature_slider -  0 
     
    321350    <div id="<?php echo esc_attr( $supernews_content_id ); ?>" class="site-content"> 
    322351    <?php 
    323         if( 1 == $supernews_customizer_all_values['supernews-show-breadcrumb'] ){ 
     352        if( 1 == $supernews_customizer_all_values['supernews-show-breadcrumb'] && !is_front_page()){ 
    324353            supernews_breadcrumbs(); 
    325354        } 
  • supernews/1.2.0/acmethemes/hooks/related-posts.php

    r83131 r83131  
    33 * Display related posts from same category 
    44 * 
    5  * @since supernews 1.0.0 
     5 * @since SuperNews 1.0.0 
    66 * 
    77 * @param int $post_id 
     
    1414 
    1515        global $supernews_customizer_all_values; 
    16         if( 0 == $supernews_customizer_all_values['supernews-show-related'] ){ 
    17             return; 
    18         } 
    19         $categories = get_the_category( $post_id ); 
    20         if ($categories) { 
    21             $category_ids = array(); 
    22             foreach ($categories as $category) { 
    23                 $category_ids[] = $category->term_id; 
    24             } 
    25             ?> 
    26             <h2 class="widget-title"> 
    27                 <?php esc_html_e('Related posts', 'supernews'); ?> 
    28             </h2> 
     16        if( 0 == $supernews_customizer_all_values['supernews-show-related'] ){ 
     17            return; 
     18        } 
     19        $supernews_cat_post_args = array( 
     20            'post__not_in' => array($post_id), 
     21            'post_type' => 'post', 
     22            'posts_per_page'      => 3, 
     23            'post_status'         => 'publish', 
     24            'ignore_sticky_posts' => true 
     25        ); 
     26        $supernews_related_post_display_from = $supernews_customizer_all_values['supernews-related-post-display-from']; 
     27 
     28        if( 'tag' == $supernews_related_post_display_from ){ 
     29 
     30            $tags = get_post_meta( $post_id, 'related-posts', true ); 
     31            if ( !$tags ) { 
     32                $tags = wp_get_post_tags( $post_id, array('fields'=>'ids' ) ); 
     33                $supernews_cat_post_args['tag__in'] = $tags; 
     34            } 
     35            else { 
     36                $supernews_cat_post_args['tag_slug__in'] = explode(',', $tags); 
     37            } 
     38 
     39        } 
     40        else{ 
     41 
     42            $cats = get_post_meta( $post_id, 'related-posts', true ); 
     43            if ( !$cats ) { 
     44                $cats = wp_get_post_categories( $post_id, array('fields'=>'ids' ) ); 
     45                $supernews_cat_post_args['category__in'] = $cats; 
     46            } 
     47            else { 
     48                $supernews_cat_post_args['cat'] = $cats; 
     49            } 
     50 
     51        } 
     52        $supernews_featured_query = new WP_Query($supernews_cat_post_args); 
     53        if( $supernews_featured_query->have_posts() ){ 
     54            $supernews_related_title = $supernews_customizer_all_values['supernews-related-title']; 
     55            if( !empty( $supernews_related_title ) ){ 
     56                ?> 
     57                <h2 class="widget-title"> 
     58                    <?php echo esc_html( $supernews_related_title ); ?> 
     59                </h2> 
     60                <?php 
     61            } 
     62            ?> 
    2963            <ul class="featured-entries-col featured-related-posts"> 
    30                 <?php 
    31                 $supernews_cat_post_args = array( 
    32                     'category__in' => $category_ids, 
    33                     'post__not_in' => array($post_id), 
    34                     'post_type' => 'post', 
    35                     'posts_per_page'      => 3, 
    36                     'post_status'         => 'publish', 
    37                     'ignore_sticky_posts' => true 
    38                 ); 
    39                 $supernews_featured_query = new WP_Query($supernews_cat_post_args); 
    40  
     64                <?php 
    4165                while ( $supernews_featured_query->have_posts() ) : $supernews_featured_query->the_post(); 
    42                     $supernews_blog_no_image = ''; 
    43                     if( !has_post_thumbnail() ) { 
    44                         $supernews_blog_no_image = 'blog-no-image'; 
    45                     } 
    46                     ?> 
     66                    $supernews_blog_no_image = ''; 
     67                    if( !has_post_thumbnail() ) { 
     68                        $supernews_blog_no_image = 'blog-no-image'; 
     69                    } 
     70                    ?> 
    4771                    <li class="acme-col-3 <?php echo $supernews_blog_no_image; ?>"> 
    4872                        <!--post thumbnal options--> 
    49                         <?php 
    50                         if( has_post_thumbnail() ): 
    51                             ?> 
     73                        <?php 
     74                        if( has_post_thumbnail() ): 
     75                            ?> 
    5276                            <div class="post-thumb"> 
    5377                                <a href="<?php the_permalink(); ?>"> 
    54                                     <?php the_post_thumbnail( 'thumbnail' );?> 
     78                                    <?php the_post_thumbnail( 'thumbnail' );?> 
    5579                                </a> 
    56                                 <?php supernews_list_category(); ?> 
     80                                <?php supernews_list_category(); ?> 
    5781                            </div><!-- .post-thumb--> 
    58                             <?php 
    59                             endif; 
    60                         ?> 
     82                            <?php 
     83                        endif; 
     84                        ?> 
    6185                        <div class="post-content"> 
    6286                            <header class="entry-header"> 
    63                                 <?php the_title( sprintf( '<h4 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h4>' ); ?> 
     87                                <?php the_title( sprintf( '<h4 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h4>' ); ?> 
    6488                                <div class="entry-meta"> 
    65                                     <?php if ( 'post' === get_post_type() ) : ?> 
    66                                         <?php supernews_posted_on(); ?> 
    67                                     <?php endif; ?> 
    68                                     <?php supernews_entry_footer(); ?> 
     89                                    <?php if ( 'post' === get_post_type() ) : ?> 
     90                                        <?php supernews_posted_on(); ?> 
     91                                    <?php endif; ?> 
     92                                    <?php supernews_entry_footer(); ?> 
    6993                                </div><!-- .entry-meta --> 
    7094                            </header><!-- .entry-header --> 
    7195                            <div class="entry-content"> 
    72                                 <?php 
    73                                 $content = supernews_words_count( get_the_excerpt() ); 
    74                                 echo '<div class="details">'. esc_html( $content ).'</div>'; 
    75                                 ?> 
     96                                <?php 
     97                                $content = supernews_words_count( get_the_excerpt() ); 
     98                                echo '<div class="details">'. esc_html( $content ).'</div>'; 
     99                                ?> 
    76100                            </div><!-- .entry-content --> 
    77101                        </div> 
    78102                    </li> 
    79                     <?php 
    80                 endwhile; 
    81                 wp_reset_query(); 
    82                 ?> 
     103                    <?php 
     104                endwhile; 
     105                wp_reset_postdata(); 
     106                ?> 
    83107            </ul> 
    84108            <div class="clearfix"></div> 
  • supernews/1.2.0/acmethemes/hooks/slider-selection.php

    r83131 r83131  
    33 * Display default slider 
    44 * 
    5  * @since supernews 1.0.0 
     5 * @since SuperNews 1.0.0 
    66 * 
    77 * @param int $post_id 
     
    3535 * Featured Slider display 
    3636 * 
    37  * @since Supernews 1.0.0 
     37 * @since SuperNews 1.0.0 
    3838 * 
    3939 * @param null 
     
    4141 */ 
    4242 
     43if ( ! function_exists( 'supernews_display_feature_section' ) ) : 
     44 
     45    function supernews_display_feature_section( ){ 
     46 
     47        global $supernews_customizer_all_values; 
     48 
     49        $supernews_feature_cat = $supernews_customizer_all_values['supernews-feature-cat']; 
     50 
     51        $sticky = get_option( 'sticky_posts' ); 
     52        $supernews_cat_post_args = array( 
     53            'posts_per_page'      => 5, 
     54            'no_found_rows'       => true, 
     55            'post_status'         => 'publish', 
     56            'ignore_sticky_posts' => true, 
     57            'post__not_in' => $sticky 
     58        ); 
     59        if( 0 != $supernews_feature_cat ){ 
     60            $supernews_cat_post_args['cat'] = $supernews_feature_cat; 
     61        } 
     62        $slider_query = new WP_Query($supernews_cat_post_args); 
     63        if ($slider_query->have_posts()): 
     64 
     65            $post_count = $slider_query->post_count; 
     66            $remaining_posts = $post_count; 
     67            $fixed = ''; 
     68            if( $remaining_posts < 3 ){ 
     69                $fixed = 'fix remain-'.$remaining_posts; 
     70            } 
     71 
     72            $i = 1; 
     73            $col = 'no-media acme-col-2'; 
     74            $total_posts = $slider_query->post_count; 
     75            while ($slider_query->have_posts()): $slider_query->the_post(); 
     76                if (has_post_thumbnail()) { 
     77                    $image_url = wp_get_attachment_image_src(get_post_thumbnail_id(), 'medium'); 
     78                } else { 
     79                    $image_url[0] = get_template_directory_uri() . '/assets/img/no-image-660-365.png'; 
     80                } 
     81                if( $i > 5 ){ 
     82                    $i = 1; 
     83                } 
     84                if( $i > 2 ){ 
     85                    $col = 'no-media acme-col-3'; 
     86                } 
     87                if( $total_posts < 5 ){ 
     88                    if( 1 == $total_posts ){ 
     89                        $col = 'no-media acme-col-1'; 
     90                    } 
     91                    elseif( $total_posts % 2 == 0 ){ 
     92                        $col = 'no-media acme-col-2'; 
     93                    } 
     94                    elseif( 3 == $total_posts ){ 
     95                        $col = 'no-media acme-col-2'; 
     96                        if( $i < 2 ){ 
     97                            $col = 'no-media acme-col-1'; 
     98                        } 
     99                    } 
     100                } 
     101                ?> 
     102                <div class="single-unit <?php echo $col.' '.$fixed; ?>" style="background-image:url(<?php echo esc_url( $image_url[0] ); ?>);"> 
     103                    <a class="at-overlay" href="<?php the_permalink()?>"> 
     104                    </a> 
     105                    <div class="slider-desc"> 
     106                        <div class="above-slider-details"> 
     107                            <?php 
     108                            supernews_list_category(); 
     109                            ?> 
     110                        </div> 
     111                        <div class="slider-details"> 
     112                            <a href="<?php the_permalink()?>"> 
     113                                <div class="slide-title"> 
     114                                    <?php the_title(); ?> 
     115                                </div> 
     116                            </a> 
     117                        </div> 
     118                        <div class="below-slider-details"> 
     119                            <?php supernews_posted_on(); ?> 
     120                            <?php supernews_entry_footer(); ?> 
     121                        </div> 
     122                    </div> 
     123                </div> 
     124                <?php 
     125                $i++; 
     126            endwhile; 
     127            wp_reset_postdata(); 
     128        else: 
     129            supernews_default_featured(); 
     130        endif; 
     131 
     132    } 
     133endif; 
     134 
     135/** 
     136 * Featured Slider display 
     137 * 
     138 * @since SuperNews 1.2.0 
     139 * 
     140 * @param null 
     141 * @return void 
     142 */ 
     143 
    43144if ( ! function_exists( 'supernews_display_feature_slider' ) ) : 
    44145 
    45     function supernews_display_feature_slider( ){ 
    46  
    47         global $supernews_customizer_all_values; 
    48         $supernews_feature_cat = $supernews_customizer_all_values['supernews-feature-cat']; 
    49         if ( 0 != $supernews_feature_cat ) { 
    50             $supernews_cat_post_args = array( 
    51                 'cat'                 => $supernews_feature_cat, 
    52                 'posts_per_page'      => 5, 
    53                 'no_found_rows'       => true, 
    54                 'post_status'         => 'publish', 
    55                 'ignore_sticky_posts' => true 
    56             ); 
    57             $slider_query = new WP_Query($supernews_cat_post_args); 
    58             if ($slider_query->have_posts()): 
    59                 $i = 1; 
    60                 $col = 'no-media acme-col-2'; 
    61                 $total_posts = $slider_query->post_count; 
    62                 while ($slider_query->have_posts()): $slider_query->the_post(); 
    63                     if (has_post_thumbnail()) { 
    64                         $image_url = wp_get_attachment_image_src(get_post_thumbnail_id(), 'medium'); 
    65                     } else { 
    66                         $image_url[0] = get_template_directory_uri() . '/assets/img/no-image-660-365.png'; 
    67                     } 
    68                     if( $i > 5 ){ 
    69                         $i = 1; 
    70                     } 
    71                     if( $i > 2 ){ 
    72                         $col = 'no-media acme-col-3'; 
    73                     } 
    74                     if( $total_posts < 5 ){ 
    75                         if( 1 == $total_posts ){ 
    76                             $col = 'no-media acme-col-1'; 
    77                         } 
    78                         elseif( $total_posts % 2 == 0 ){ 
    79                             $col = 'no-media acme-col-2'; 
    80                         } 
    81                         elseif( 3 == $total_posts ){ 
    82                             $col = 'no-media acme-col-2'; 
    83                             if( $i < 2 ){ 
    84                                 $col = 'no-media acme-col-1'; 
    85                             } 
    86                         } 
    87                     } 
    88                     ?> 
    89                     <div class="<?php echo $col; ?>" style="background-image:url(<?php echo esc_url( $image_url[0] ); ?>);"> 
    90                         <a class="at-overlay" href="<?php the_permalink()?>"> 
    91                         </a> 
    92                         <div class="slider-desc"> 
    93                             <div class="above-slider-details"> 
    94                                 <?php 
    95                                 supernews_list_category(); 
    96                                 ?> 
    97                             </div> 
    98                             <div class="slider-details"> 
    99                                 <a href="<?php the_permalink()?>"> 
    100                                     <div class="slide-title"> 
    101                                         <?php the_title(); ?> 
    102                                     </div> 
    103                                 </a> 
    104                             </div> 
    105                             <div class="below-slider-details"> 
    106                                 <?php supernews_posted_on(); ?> 
    107                                 <?php supernews_entry_footer(); ?> 
    108                             </div> 
     146    function supernews_display_feature_slider( ){ 
     147 
     148        global $supernews_customizer_all_values; 
     149        $supernews_feature_cat = $supernews_customizer_all_values['supernews-feature-cat']; 
     150 
     151        $total_posts = 20; 
     152        $sticky = get_option( 'sticky_posts' ); 
     153 
     154        $supernews_cat_post_args = array( 
     155            'posts_per_page'      => $total_posts, 
     156            'no_found_rows'       => true, 
     157            'post_status'         => 'publish', 
     158            'ignore_sticky_posts' => true, 
     159            'post__not_in' => $sticky 
     160        ); 
     161        if( 0 != $supernews_feature_cat ){ 
     162            $supernews_cat_post_args['cat'] = $supernews_feature_cat; 
     163        } 
     164        $slider_query = new WP_Query($supernews_cat_post_args); 
     165 
     166        if ($slider_query->have_posts()): 
     167            $i = 1; 
     168            $j = 1; 
     169 
     170            $post_count = $slider_query->post_count; 
     171            $remaining_posts = $post_count; 
     172 
     173            $current_slide_number = 1; 
     174            $supernews_slider_display_options = 5; 
     175 
     176            $total_posts = $supernews_slider_display_options; 
     177 
     178            if( $supernews_slider_display_options > $remaining_posts ){ 
     179                $total_posts = $remaining_posts; 
     180            } 
     181 
     182            $fixed =''; 
     183            if( $remaining_posts < $supernews_slider_display_options ){ 
     184                $fixed = 'fix remain-'.$remaining_posts; 
     185            } 
     186 
     187            echo "<div class='at-unique-slide ".$fixed."'>"; 
     188            while ($slider_query->have_posts()): $slider_query->the_post(); 
     189                if (has_post_thumbnail()) { 
     190                    $image_url = wp_get_attachment_image_src(get_post_thumbnail_id(), 'medium'); 
     191                } else { 
     192                    $image_url[0] = get_template_directory_uri() . '/assets/img/no-image-660-365.png'; 
     193                } 
     194                if( $j > $supernews_slider_display_options ){ 
     195                    if( $supernews_slider_display_options == 1 || $j % $supernews_slider_display_options == 1 ){ 
     196                        $current_slide_number = $current_slide_number + 1; 
     197                        $remaining_posts = $remaining_posts - $supernews_slider_display_options; 
     198                        if( $supernews_slider_display_options > $remaining_posts ){ 
     199                            $total_posts = $remaining_posts; 
     200                        } 
     201                        $fixed =''; 
     202                        if( $remaining_posts < $supernews_slider_display_options ){ 
     203                            $fixed = 'fix remain-'.$remaining_posts; 
     204                        } 
     205                        $i = 1; 
     206                        echo "</div><div class='at-unique-slide ".$fixed."'>"; 
     207                    } 
     208                } 
     209                $col = 'acme-col-1'; 
     210                if( 1 == $total_posts ){ 
     211                    $col = 'at-extra-height acme-col-1'; 
     212                } 
     213                elseif( 2 == $total_posts ){ 
     214                    $col = 'acme-col-2'; 
     215                } 
     216                elseif( 3 == $total_posts ){ 
     217                    $col = 'acme-col-2'; 
     218                    if( $i == 3 ){ 
     219                        echo "<div class='clearfix'></div>"; 
     220                        $col = 'acme-col-1'; 
     221                    } 
     222                } 
     223                elseif( 4 == $total_posts ){ 
     224                    $col = 'acme-col-2'; 
     225                } 
     226                elseif( 5 == $total_posts ){ 
     227                    $col = 'acme-col-2'; 
     228                    if( $i > 2 ){ 
     229                        $col = 'acme-col-3'; 
     230                    } 
     231                } 
     232                elseif( 6 == $total_posts ){ 
     233                    $col = 'acme-col-3'; 
     234                } 
     235                ?> 
     236                <div class="no-media-query at-slide-unit <?php echo $col.' atsi-'.$i; ?>" style="background-image:url(<?php echo esc_url( $image_url[0] ); ?>);"> 
     237                    <a class="at-overlay" href="<?php the_permalink()?>"></a> 
     238                    <div class="slider-desc"> 
     239                        <div class="above-slider-details"> 
     240                            <?php 
     241                            supernews_list_category(); 
     242                            ?> 
     243                        </div> 
     244                        <div class="slider-details"> 
     245                            <a href="<?php the_permalink()?>"> 
     246                                <div class="slide-title"> 
     247                                    <?php the_title(); ?> 
     248                                </div> 
     249                            </a> 
     250                        </div> 
     251                        <div class="below-slider-details"> 
     252                            <?php supernews_posted_on(); ?> 
     253                            <?php supernews_entry_footer(); ?> 
    109254                        </div> 
    110255                    </div> 
    111                 <?php 
    112                 $i++; 
    113                 endwhile; 
    114                 wp_reset_postdata();?> 
    115             <?php endif; ?> 
    116         <?php 
    117         } 
    118         else{ 
    119             supernews_default_featured(); 
    120         } 
    121     } 
     256 
     257                </div> 
     258                <?php 
     259                $i++; 
     260                $j++; 
     261            endwhile; 
     262            echo "</div>";/*at-unique-slide at-custom-slide*/ 
     263            wp_reset_postdata(); 
     264        else: 
     265            supernews_default_featured(); 
     266        endif; 
     267    } 
    122268endif; 
    123269/** 
    124270 * Display related posts from same category 
    125271 * 
    126  * @since supernews 1.0.0 
     272 * @since SuperNews 1.0.0 
    127273 * 
    128274 * @param int $post_id 
     
    132278if ( !function_exists('supernews_feature_slider') ) : 
    133279    function supernews_feature_slider() { 
    134         ?> 
    135         <div class="slider-section"> 
    136             <div class="home-bxslider"> 
    137                 <?php supernews_display_feature_slider(); ?> 
    138             </div> 
    139         </div> 
    140         <?php 
     280        global $supernews_customizer_all_values; 
     281        $supernews_feature_slider_enable = $supernews_customizer_all_values['supernews-feature-slider-enable']; 
     282        if( 1 == $supernews_feature_slider_enable ){ 
     283            $class = 'home-bxslider at-home-slider'; 
     284            echo ' <div class="slider-section top-right at-slider-5">'; 
     285        } 
     286        else{ 
     287            $class = 'home-bxslider at-feature-section'; 
     288            echo ' <div class="slider-section">'; 
     289        } 
     290        ?> 
     291 
     292 
     293        <div class="<?php echo $class; ?>"> 
     294            <?php 
     295            if( 1 == $supernews_feature_slider_enable ){ 
     296                supernews_display_feature_slider(); 
     297            } 
     298            else{ 
     299                supernews_display_feature_section(); 
     300            } 
     301            ?> 
     302        </div> 
     303        <?php 
     304        echo '</div>'; 
    141305    } 
    142306endif; 
  • supernews/1.2.0/acmethemes/hooks/social-links.php

    r83131 r83131  
    33 * Display Social Links 
    44 * 
    5  * @since supernews 1.0.0 
     5 * @since SuperNews 1.0.0 
    66 * 
    77 * @param null 
     
    1717        ?> 
    1818        <div class="socials"> 
    19             <?php 
    20             if ( !empty( $supernews_customizer_all_values['supernews-facebook-url'] ) ) { ?> 
     19            <?php 
     20            if ( !empty( $supernews_customizer_all_values['supernews-facebook-url'] ) ) { ?> 
    2121                <a href="<?php echo esc_url( $supernews_customizer_all_values['supernews-facebook-url'] ); ?>" class="facebook" data-title="Facebook" target="_blank"> 
    2222                    <span class="font-icon-social-facebook"><i class="fa fa-facebook"></i></span> 
    2323                </a> 
    24             <?php } 
    25             if ( !empty( $supernews_customizer_all_values['supernews-twitter-url'] ) ) { ?> 
     24            <?php } 
     25            if ( !empty( $supernews_customizer_all_values['supernews-twitter-url'] ) ) { ?> 
    2626                <a href="<?php echo esc_url( $supernews_customizer_all_values['supernews-twitter-url'] ); ?>" class="twitter" data-title="Twitter" target="_blank"> 
    2727                    <span class="font-icon-social-twitter"><i class="fa fa-twitter"></i></span> 
    2828                </a> 
    29             <?php } 
    30             if ( !empty( $supernews_customizer_all_values['supernews-youtube-url'] ) ) { ?> 
     29            <?php } 
     30            if ( !empty( $supernews_customizer_all_values['supernews-youtube-url'] ) ) { ?> 
    3131                <a href="<?php echo esc_url( $supernews_customizer_all_values['supernews-youtube-url'] ); ?>" class="youtube" data-title="Youtube" target="_blank"> 
    3232                    <span class="font-icon-social-youtube"><i class="fa fa-youtube"></i></span> 
    3333                </a> 
    34             <?php } ?> 
     34            <?php } 
     35            if ( !empty( $supernews_customizer_all_values['supernews-instagram-url'] ) ) { ?> 
     36                <a href="<?php echo esc_url( $supernews_customizer_all_values['supernews-instagram-url'] ); ?>" class="instagram" data-title="Instagram" target="_blank"> 
     37                    <span class="font-icon-social-instagram"><i class="fa fa-instagram"></i></span> 
     38                </a> 
     39            <?php } 
     40            if ( !empty( $supernews_customizer_all_values['supernews-google-plus-url'] ) ) { 
     41                ?> 
     42                <a href="<?php echo esc_url( $supernews_customizer_all_values['supernews-google-plus-url'] ); ?>" class="google-plus" data-title="Google Plus" target="_blank"> 
     43                    <span class="font-icon-social-google-plus"><i class="fa fa-google-plus"></i></span> 
     44                </a> 
     45                <?php 
     46            } 
     47            if ( !empty( $supernews_customizer_all_values['supernews-pinterest-url'] ) ) { ?> 
     48                <a href="<?php echo esc_url( $supernews_customizer_all_values['supernews-pinterest-url'] ); ?>" class="pinterest" data-title="Pinterest" target="_blank"> 
     49                    <span class="font-icon-social-pinterest"><i class="fa fa-pinterest"></i></span> 
     50                </a> 
     51            <?php } 
     52            ?> 
    3553        </div> 
    3654        <?php 
  • supernews/1.2.0/acmethemes/init.php

    r83131 r83131  
    33 * Main include functions ( to support child theme ) 
    44 * 
    5  * @since supernews 1.0.0 
     5 * @since SuperNews 1.0.0 
    66 * 
    77 * @param string $file_path, path from the theme 
     
    2121} 
    2222 
     23/** 
     24 * Check empty or null 
     25 * 
     26 * @since SuperNews 1.0.0 
     27 * 
     28 * @param string $str, string 
     29 * @return boolean 
     30 * 
     31 */ 
     32if( !function_exists('supernews_is_null_or_empty') ){ 
     33    function supernews_is_null_or_empty( $str ){ 
     34        return ( !isset($str) || trim($str)==='' ); 
     35    } 
     36} 
     37 
     38/*file for library*/ 
     39require_once supernews_file_directory('acmethemes/library/tgm/class-tgm-plugin-activation.php'); 
    2340/* 
    2441* file for customizer theme options 
     
    3451require $supernews_date_display_file_path; 
    3552 
     53require_once supernews_file_directory('acmethemes/functions/header.php'); 
     54 
    3655/* 
    3756* files for hooks 
    3857*/ 
     58require_once supernews_file_directory('acmethemes/hooks/tgm.php'); 
     59 
    3960$supernews_front_page_file_path = supernews_file_directory('acmethemes/hooks/front-page.php'); 
    4061require $supernews_front_page_file_path; 
     
    6485require $supernews_related_posts_file_path; 
    6586 
     87require_once supernews_file_directory('acmethemes/hooks/siteorigin-panels.php'); 
     88 
     89require_once supernews_file_directory('acmethemes/hooks/acme-demo-setup.php'); 
    6690/* 
    6791* file for sidebar and widgets 
     
    81105$supernews_sidebar = supernews_file_directory('acmethemes/core.php'); 
    82106require $supernews_sidebar; 
     107 
     108/** 
     109 * Implement Custom Metaboxes 
     110 */ 
     111require_once supernews_file_directory('acmethemes/metabox/metabox.php'); 
     112 
     113/*themes info*/ 
     114require_once supernews_file_directory('acmethemes/at-theme-info/class-at-theme-info.php'); 
  • supernews/1.2.0/acmethemes/sidebar-widget/acme-ad.php

    r83131 r83131  
    33 * Custom advertisement 
    44 * 
    5  * @package AcmeThemes 
     5 * @package Acme Themes 
    66 * @subpackage SuperNews 
    77 */ 
     
    1010     * Class for adding advertisement widget 
    1111     * A new way to add advertisement 
    12      * @package AcmeThemes 
     12     * @package Acme Themes 
    1313     * @subpackage SuperNews 
    1414     * @since 1.0.0 
     
    107107            return $instance; 
    108108        } 
     109 
    109110        /** 
    110111         * Function to Creating widget front-end. This is where the action happens 
     
    161162     * 
    162163     * @param null 
    163      * @return null 
     164     * @return void 
    164165     * 
    165166     */ 
  • supernews/1.2.0/acmethemes/sidebar-widget/acme-col-posts.php

    r83131 r83131  
    33 * Custom columns of category with various options 
    44 * 
    5  * @package AcmeThemes 
     5 * @package Acme Themes 
    66 * @subpackage SuperNews 
    77 */ 
    8 if ( ! class_exists( 'supernews_posts_col' ) ) { 
     8if ( ! class_exists( 'Supernews_posts_col' ) ) { 
    99    /** 
    1010     * Class for adding widget 
    1111     * 
    12      *  @package AcmeThemes 
     12     *  @package Acme Themes 
    1313     * @subpackage SuperNews_posts_col 
    1414     * @since 1.0.0 
    1515     */ 
    16     class supernews_posts_col extends WP_Widget { 
     16    class Supernews_posts_col extends WP_Widget { 
    1717 
    1818        /*defaults values for fields*/ 
    1919        private $defaults = array( 
     20            'supernews_cat_title'            => '', 
    2021            'supernews_cat' => -1, 
    21             'supernews_enable_posts_featured' => 1 
     22            'supernews_enable_posts_featured' => 1, 
     23            'supernews_post_col_first_featured_image_layout' => 'large', 
     24            'supernews_post_col_normal_image_layout' => 'large' 
    2225        ); 
    2326 
     
    3538        public function form( $instance ) { 
    3639            $instance = wp_parse_args( (array) $instance, $this->defaults); 
     40            $supernews_col_posts_title = esc_attr( $instance['supernews_cat_title'] ); 
    3741            $supernews_selected_cat = esc_attr( $instance['supernews_cat'] ); 
    3842            $supernews_enable_posts_featured = esc_attr( $instance['supernews_enable_posts_featured'] ); 
    39  
     43            /*first featured image*/ 
     44            $supernews_post_col_first_featured_image_layout = $instance['supernews_post_col_first_featured_image_layout']; 
     45 
     46            /*normal featured image*/ 
     47            $supernews_post_col_normal_image_layout = $instance['supernews_post_col_normal_image_layout']; 
     48 
     49            $choices = supernews_get_image_sizes_options(); 
    4050           ?> 
     51            <p> 
     52                <label for="<?php echo $this->get_field_id( 'supernews_cat_title' ); ?>"><?php _e( 'Title:', 'supernews' ); ?></label> 
     53                <input class="widefat" id="<?php echo $this->get_field_id( 'supernews_cat_title' ); ?>" name="<?php echo $this->get_field_name( 'supernews_cat_title' ); ?>" type="text" value="<?php echo $supernews_col_posts_title; ?>" /> 
     54            </p> 
    4155            <p> 
    4256                <label for="<?php echo $this->get_field_id('supernews_cat'); ?>"><?php esc_html_e('Select Category', 'supernews'); ?></label> 
     
    6882                <small><?php esc_html_e( 'Note: Some of the features only work in "Home main content area" due to minimum width in other areas.' ,'supernews'); ?></small> 
    6983            </p> 
     84            <p> 
     85                <label for="<?php echo $this->get_field_id( 'supernews_post_col_first_featured_image_layout' ); ?>"> 
     86                    <?php _e( 'First Featured Post Image', 'supernews' ); ?> 
     87                    <br /> 
     88                    <small><?php _e( 'Enable First Post Featured to work this layout', 'supernews' ); ?></small> 
     89                </label> 
     90                <select class="widefat" id="<?php echo $this->get_field_id( 'supernews_post_col_first_featured_image_layout' ); ?>" name="<?php echo $this->get_field_name( 'supernews_post_col_first_featured_image_layout' ); ?>"> 
     91                    <?php 
     92                    foreach( $choices as $key => $supernews_column_array ){ 
     93                        echo ' <option value="'.$key.'" '.selected( $supernews_post_col_first_featured_image_layout, $key, 0).'>'.$supernews_column_array.'</option>'; 
     94                    } 
     95                    ?> 
     96                </select> 
     97            </p> 
     98            <p> 
     99                <label for="<?php echo $this->get_field_id( 'supernews_post_col_normal_image_layout' ); ?>"> 
     100                    <?php _e( 'Normal Featured Post Image', 'supernews' ); ?> 
     101                    <br /> 
     102                    <small><?php _e( 'Enable First Post Featured to work this layout', 'supernews' ); ?></small> 
     103                </label> 
     104                <select class="widefat" id="<?php echo $this->get_field_id( 'supernews_post_col_normal_image_layout' ); ?>" name="<?php echo $this->get_field_name( 'supernews_post_col_normal_image_layout' ); ?>"> 
     105                    <?php 
     106                    foreach( $choices as $key => $supernews_column_array ){ 
     107                        echo ' <option value="'.$key.'" '.selected( $supernews_post_col_normal_image_layout, $key, 0). '>'.$supernews_column_array.'</option>'; 
     108                    } 
     109                    ?> 
     110                </select> 
     111            </p> 
    70112            <?php 
    71113        } 
     
    83125        public function update( $new_instance, $old_instance ) { 
    84126            $instance = array(); 
    85             $instance['supernews_cat'] = ( isset( $new_instance['supernews_cat'] ) ) ? esc_attr( $new_instance['supernews_cat'] ) : ''; 
     127            $instance['supernews_cat_title'] = ( isset( $new_instance['supernews_cat_title'] ) ) ? sanitize_text_field( $new_instance['supernews_cat_title'] ) : ''; 
     128            $instance['supernews_cat'] = ( isset( $new_instance['supernews_cat'] ) ) ? esc_attr( $new_instance['supernews_cat'] ) : ''; 
    86129            $instance['supernews_enable_posts_featured'] = isset($new_instance['supernews_enable_posts_featured'])? 1 : 0; 
     130            $instance['supernews_post_col_first_featured_image_layout'] = isset($new_instance['supernews_post_col_first_featured_image_layout'])? esc_attr( $new_instance['supernews_post_col_first_featured_image_layout'] ) : 'large'; 
     131            $instance['supernews_post_col_normal_image_layout'] = isset($new_instance['supernews_post_col_normal_image_layout'])? esc_attr( $new_instance['supernews_post_col_normal_image_layout'] ) : 'large'; 
    87132 
    88133            return $instance; 
     
    96141         * @param array $args widget setting 
    97142         * @param array $instance saved values 
    98          * @return array 
     143         * @return void 
    99144         * 
    100145         */ 
    101146        public function widget($args, $instance) { 
    102             $supernews_sidebar_id = $args['id']; 
     147            if( isset( $args['id'] )){ 
     148                $supernews_sidebar_id = $args['id']; 
     149            } 
     150            else{ 
     151                $supernews_sidebar_id = 'supernews-home'; 
     152            } 
     153 
    103154            $instance = wp_parse_args( (array) $instance, $this->defaults); 
    104             $supernews_cat = esc_attr( $instance['supernews_cat'] ); 
    105             $supernews_enable_posts_featured = esc_attr( $instance['supernews_enable_posts_featured'] ); 
     155 
     156            $supernews_selected_cat = esc_attr( $instance['supernews_cat'] ); 
     157 
     158            /*Main title*/ 
     159            $supernews_col_posts_title = !empty( $instance['supernews_cat_title'] ) ? esc_attr( $instance['supernews_cat_title'] ) : get_cat_name($supernews_selected_cat); 
     160            $supernews_col_posts_title = apply_filters( 'widget_title', $supernews_col_posts_title, $instance, $this->id_base ); 
     161 
     162            $supernews_enable_posts_featured = esc_attr( $instance['supernews_enable_posts_featured'] ); 
     163            /*first featured post layout*/ 
     164            $supernews_post_col_first_featured_image_layout = esc_attr( $instance['supernews_post_col_first_featured_image_layout'] ); 
     165 
     166            /*normal featured image*/ 
     167            $supernews_post_col_normal_image_layout = esc_attr( $instance['supernews_post_col_normal_image_layout'] ); 
    106168 
    107169            /** 
     
    120182                'ignore_sticky_posts' => true 
    121183            ); 
    122             if( -1 != $supernews_cat ){ 
    123                 $supernews_cat_post_args['cat'] = $supernews_cat; 
    124                 $supernews_title = get_cat_name($supernews_cat); 
     184            if( -1 != $supernews_selected_cat ){ 
     185                $supernews_cat_post_args['cat'] = $supernews_selected_cat; 
    125186            } 
    126             else{ 
    127                 $supernews_title = __('Recent Posts','supernews'); 
    128             } 
     187          
    129188            $supernews_featured_query = new WP_Query($supernews_cat_post_args); 
    130189 
    131190            if ($supernews_featured_query->have_posts()) : 
    132191                echo $args['before_widget']; 
    133                 echo $args['before_title'] . esc_html( $supernews_title ). $args['after_title']; 
     192                if ( !empty( $supernews_col_posts_title ) ){ 
     193                    if( -1 != $supernews_selected_cat ){ 
     194                        echo "<div class='at-cat-color-wrap-".$supernews_selected_cat."'>"; 
     195                    } 
     196                    echo $args['before_title'] . $supernews_col_posts_title . $args['after_title']; 
     197 
     198                    if( -1 != $supernews_selected_cat ){ 
     199                        echo "</div>"; 
     200                    } 
     201                } 
     202                
    134203                $supernews_post_col_layout_class = ''; 
    135204                if( 1 == $supernews_enable_posts_featured ){ 
     
    141210                    $supernews_featured_index = 1; 
    142211                    while ( $supernews_featured_query->have_posts() ) :$supernews_featured_query->the_post(); 
    143                         $thumb = 'medium'; 
     212                        $thumb = $supernews_post_col_normal_image_layout; 
    144213                        $supernews_list_classes = 'acme-col-2'; 
    145214                        $supernews_words = 21; 
     
    151220                            if( $supernews_featured_index <= 2 ){ 
    152221                                $supernews_list_classes .= ' first-two'; 
     222                                $thumb = $supernews_post_col_first_featured_image_layout; 
    153223                            } 
    154224                            else{ 
    155225                                $supernews_list_classes .= ' small-posts'; 
     226                                $thumb = $supernews_post_col_normal_image_layout; 
    156227                            } 
    157228                        } 
     
    237308            endif; 
    238309        } 
    239     } // Class supernews_posts_col ends here 
     310    } // Class Supernews_posts_col ends here 
    240311} 
    241312if ( ! function_exists( 'supernews_posts_col' ) ) : 
     
    246317     * 
    247318     * @param null 
    248      * @return null 
     319     * @return void 
    249320     * 
    250321     */ 
    251322    function supernews_posts_col() { 
    252         register_widget( 'supernews_posts_col' ); 
     323        register_widget( 'Supernews_posts_col' ); 
    253324    } 
    254325endif; 
  • supernews/1.2.0/acmethemes/sidebar-widget/sidebar.php

    r83131 r83131  
    2424        'after_title' => '</span></h2>', 
    2525    )); 
     26 
     27    if( is_customize_preview() ){ 
     28        $description = sprintf( __( ' Displays items on header area. Fit For Advertisement. You can put Advertisement from %1$s here %2$s too', 'supernews' ), '<a href="#" class="at-customizer" data-section="supernews-header-ad-option">','</a>' ); 
     29    } 
     30    else{ 
     31        $description = __('Displays items on header area. Fit For Advertisement', 'supernews'); 
     32    } 
     33    register_sidebar(array( 
     34        'name' => __('Header Area', 'supernews'), 
     35        'id'   => 'supernews-header', 
     36        'description' => $description, 
     37        'before_widget' => '<aside id="%1$s" class="widget %2$s">', 
     38        'after_widget' => '</aside>', 
     39        'before_title' => '<h3 class="widget-title"><span>', 
     40        'after_title' => '</span></h3>', 
     41    )); 
     42 
     43    register_sidebar(array( 
     44        'name' => __('Single After Content', 'supernews'), 
     45        'id'   => 'single-after-content', 
     46        'description' => __('Displays items on single post after content', 'supernews'), 
     47        'before_widget' => '<aside id="%1$s" class="widget %2$s">', 
     48        'after_widget' => '</aside>', 
     49        'before_title' => '<h3 class="widget-title"><span>', 
     50        'after_title' => '</span></h3>', 
     51    )); 
     52 
     53    register_sidebar(array( 
     54        'name' => __('Full Width Footer Area', 'supernews'), 
     55        'id'   => 'full-width-footer', 
     56        'description' => __('Displays items on Footer area.', 'supernews'), 
     57        'before_widget' => '<aside id="%1$s" class="widget %2$s">', 
     58        'after_widget' => '</aside>', 
     59        'before_title' => '<h3 class="widget-title"><span>', 
     60        'after_title' => '</span></h3>', 
     61    )); 
     62 
    2663    register_sidebar(array( 
    2764        'name' => __('Footer Column One', 'supernews'), 
  • supernews/1.2.0/archive.php

    r83131 r83131  
    55 * @link https://codex.wordpress.org/Template_Hierarchy 
    66 * 
    7  * @package AcmeThemes 
     7 * @package Acme Themes 
    88 * @subpackage SuperNews 
    99 */ 
     
    4848        </main><!-- #main --> 
    4949    </div><!-- #primary --> 
    50 <?php get_sidebar( 'left' ); ?> 
    51 <?php get_sidebar(); ?> 
    52 <?php get_footer(); ?> 
     50<?php 
     51get_sidebar( 'left' ); 
     52get_sidebar(); 
     53get_footer(); 
  • supernews/1.2.0/assets/css/supernews-customizer.css

    r83131 r83131  
    1717} 
    1818.acme-ads .button:hover, 
    19 .acme-ads .button:focus 
    20 { 
     19.acme-ads .button:focus { 
    2120    background-color: #71b02f ; 
    2221    color: #ffffff; 
  • supernews/1.2.0/assets/js/acme-widget.js

    r83131 r83131  
    11/*! 
    22 * Custom JS for custom image uploading 
    3  * @package AcmeThemes 
     3 * @package Acme Themes 
    44 * @subpackage SuperNews 
    55 */ 
  • supernews/1.2.0/assets/js/supernews-custom.js

    r83131 r83131  
    11/*! 
    22 * Custom JS 
    3  * @package AcmeThemes 
     3 * @package Acme Themes 
    44 * @subpackage SuperNews 
    55 */ 
     
    2323    }); 
    2424 
     25    /*featured slider*/ 
     26    $('.at-home-slider').each(function(){ 
     27        home_bxslider = $(this); 
     28        home_bxslider.show().bxSlider({ 
     29            autoHover : true, 
     30            pager: false, 
     31            nextText: '<i class="fa fa-angle-right"></i>', 
     32            prevText: '<i class="fa fa-angle-left"></i>' 
     33        }); 
     34    }); 
     35 
    2536    //for menu 
    2637    $('.header-wrapper #site-navigation .menu-main-menu-container').addClass('clearfix'); 
     
    2940        if( at_this.hasClass('at-clicked')){ 
    3041            return true; 
    31         }; 
     42        } 
    3243        var at_width = jQuery(window).width(); 
    3344        if( at_width > 992 && at_width <= 1230 ){ 
     
    3647        } 
    3748    }); 
     49 
     50    /*sticky menu*/ 
     51    var menu_sticky_height = $('#masthead').height() - $('#site-navigation').height() - $('.main-navigation.trends').height(); 
     52    $(window).scroll(function(){ 
     53        if ( $(this).scrollTop() > menu_sticky_height) { 
     54            $('.supernews-enable-sticky-menu').css({"position": "fixed", "top": "0","right": "0","left": "0","z-index":'999'}); 
     55            $('.supernews-enable-sticky-menu .header-main-menu').css('margin','0 auto'); 
     56        } 
     57        else { 
     58            $('.supernews-enable-sticky-menu').removeAttr( 'style' ); 
     59            $('.supernews-enable-sticky-menu .header-main-menu').removeAttr( 'style' ); 
     60        } 
     61        if ( $(this).scrollTop() > menu_sticky_height) { 
     62            $('.sm-up-container').show(); 
     63        } 
     64        else { 
     65            $('.sm-up-container').hide(); 
     66        } 
     67    }); 
     68    //Sickey Sidebar 
     69    var at_body = $('body'); 
     70    if(at_body.hasClass('at-sticky-sidebar')){ 
     71        if(at_body.hasClass('both-sidebar')){ 
     72            $('#primary-wrap, #secondary-right, #secondary-left').theiaStickySidebar(); 
     73        } 
     74        else{ 
     75            $('.secondary-sidebar, #primary').theiaStickySidebar(); 
     76        } 
     77    } 
    3878}); 
  • supernews/1.2.0/changelog.txt

    r83131 r83131  
    11== Change log == 
     2 
     3= 2.0.0 - July 2 2016 = 
     4* Add: Header Date Format 
     5* Add: Header Widgets 
     6* Add: Header Placement Options 
     7* Add: Multiple Advertisement Position 
     8* Add: Header Media and its Options 
     9* Add: Feature Slider 
     10* Add: Sticky Menu Options 
     11* Add: Sticky Sidebar Options 
     12* Add: Front Page, Archive and Single Page/Post Advanced Sidebar 
     13* Add: Category Color 
     14* Add: Image size on Blog 
     15* Add: Blog/Archive Category Display 
     16* Add: Read More Text on Blog/Archive Page 
     17* Add: Related Post form Category or Tag 
     18* Add: Image size on Single 
     19* Add: Widget on different places 
     20* Add: Social Icons 
     21* Add: Widget Image Size 
     22* Add: Hide Front Page 
     23* Add: Theme Menu Page 
     24* Add: Demo Data Important 
     25* Add: Page Builder Compatible 
     26* Update : Customizer experience 
     27* Fix: Jetpack infinite scroll 
     28* Fix: Menu Background if there are many menus 
     29* Fix: Reset Customizer 
    230 
    331= 1.0.5/1.0.6  - Oct 02 2016 = 
  • supernews/1.2.0/comments.php

    r83131 r83131  
    88 * @link https://codex.wordpress.org/Template_Hierarchy 
    99 * 
    10  * @package AcmeThemes 
     10 * @package Acme Themes 
    1111 * @subpackage SuperNews 
    1212 */ 
     
    2929        <h2 class="comments-title"> 
    3030            <?php 
    31                 printf( // WPCS: XSS OK. 
    32                     esc_html( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'supernews' ) ), 
    33                     number_format_i18n( get_comments_number() ), 
    34                     '<span>' . get_the_title() . '</span>' 
     31            $comments_number = get_comments_number(); 
     32            if ( '1' === $comments_number ) { 
     33                /* translators: %s: post title */ 
     34                printf( _x( 'One Thought to &ldquo;%s&rdquo;', 'comments title', 'supernews' ), get_the_title() ); 
     35            } else { 
     36                printf( 
     37                /* translators: 1: number of comments, 2: post title */ 
     38                    _nx( 
     39                        '%1$s Thought to &ldquo;%2$s&rdquo;', 
     40                        '%1$s Thoughts to &ldquo;%2$s&rdquo;', 
     41                        $comments_number, 
     42                        'comments title', 
     43                        'supernews' 
     44                    ), 
     45                    number_format_i18n( $comments_number ), 
     46                    get_the_title() 
    3547                ); 
     48            } 
    3649            ?> 
    37         </h2> 
     50 
     51        </h2> 
    3852 
    3953        <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> 
     
    7892    ?> 
    7993        <p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'supernews' ); ?></p> 
    80     <?php endif; ?> 
    81  
    82     <?php comment_form(); ?> 
     94    <?php endif; 
     95    comment_form(); ?> 
    8396 
    8497</div><!-- #comments --> 
  • supernews/1.2.0/footer.php

    r83131 r83131  
    77 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials 
    88 * 
    9  * @package AcmeThemes 
     9 * @package Acme Themes 
    1010 * @subpackage SuperNews 
    1111 */ 
     
    1414/** 
    1515 * supernews_action_after_content hook 
    16  * @since supernews 1.0.0 
     16 * @since SuperNews 1.0.0 
    1717 * 
    1818 * @hooked supernews_after_content - 10 
     
    2222/** 
    2323 * supernews_action_before_footer hook 
    24  * @since supernews 1.0.0 
     24 * @since SuperNews 1.0.0 
    2525 * 
    2626 * @hooked null 
     
    3030/** 
    3131 * supernews_action_footer hook 
    32  * @since supernews 1.0.0 
     32 * @since SuperNews 1.0.0 
    3333 * 
    3434 * @hooked supernews_footer - 10 
     
    3838/** 
    3939 * supernews_action_after_footer hook 
    40  * @since supernews 1.0.0 
     40 * @since SuperNews 1.0.0 
    4141 * 
    4242 * @hooked null 
     
    4646/** 
    4747 * supernews_action_after hook 
    48  * @since supernews 1.0.0 
     48 * @since SuperNews 1.0.0 
    4949 * 
    5050 * @hooked supernews_page_end - 10 
    5151 */ 
    5252do_action( 'supernews_action_after' ); 
    53 ?> 
    54 <?php wp_footer(); ?> 
     53wp_footer(); ?> 
    5554</body> 
    5655</html> 
  • supernews/1.2.0/front-page.php

    r83131 r83131  
    33 * The front-page template file. 
    44 * 
    5  * @package AcmeThemes 
     5 * @package Acme Themes 
    66 * @subpackage SuperNews 
    7  * @since Supernews 1.0.0 
     7 * @since SuperNews 1.0.0 
    88 */ 
    9 get_header(); ?> 
    10 <?php 
     9get_header(); 
    1110/** 
    1211 * supernews_action_front_page hook 
    13  * @since supernews 1.0.0 
     12 * @since SuperNews 1.0.0 
    1413 * 
    1514 * @hooked supernews_front_page -  10 
    1615 */ 
    1716do_action( 'supernews_action_front_page' ); 
    18 ?> 
    19 <?php get_sidebar( 'left' ); ?> 
    20 <?php get_sidebar( ); ?> 
    21 <?php get_footer(); 
     17 
     18get_sidebar( 'left' ); 
     19get_sidebar( ); 
     20get_footer(); 
  • supernews/1.2.0/functions.php

    r83131 r83131  
    55 * @link https://developer.wordpress.org/themes/basics/theme-functions/ 
    66 * 
    7  * @package AcmeThemes 
     7 * @package Acme Themes 
    88 * @subpackage SuperNews 
    99 */ 
  • supernews/1.2.0/header.php

    r83131 r83131  
    77 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials 
    88 * 
    9  * @package AcmeThemes 
     9 * @package Acme Themes 
    1010 * @subpackage SuperNews 
    1111 */ 
     
    1313/** 
    1414 * supernews_action_before_head hook 
    15  * @since supernews 1.0.0 
     15 * @since SuperNews 1.0.0 
    1616 * 
    1717 * @hooked supernews_set_global -  0 
     
    2424        /** 
    2525         * supernews_action_before_wp_head hook 
    26          * @since supernews 1.0.0 
     26         * @since SuperNews 1.0.0 
    2727         * 
    2828         * @hooked supernews_before_wp_head -  10 
     
    3737/** 
    3838 * supernews_action_body_attr hook 
    39  * @since supernews 1.0.0 
     39 * @since SuperNews 1.0.0 
    4040 * 
    4141 * @hooked supernews_body_attr- 10 
     
    4646/** 
    4747 * supernews_action_before hook 
    48  * @since supernews 1.0.0 
     48 * @since SuperNews 1.0.0 
    4949 * 
    5050 * @hooked supernews_page_start - 10 
     
    5555/** 
    5656 * supernews_action_before_header hook 
    57  * @since supernews 1.0.0 
     57 * @since SuperNews 1.0.0 
    5858 * 
    5959 * @hooked supernews_skip_to_content - 10 
     
    6464/** 
    6565 * supernews_action_header hook 
    66  * @since supernews 1.0.0 
     66 * @since SuperNews 1.0.0 
    6767 * 
    6868 * @hooked supernews_after_header - 10 
     
    7373/** 
    7474 * supernews_action_after_header hook 
    75  * @since supernews 1.0.0 
     75 * @since SuperNews 1.0.0 
    7676 * 
    7777 * @hooked null 
     
    8282/** 
    8383 * supernews_action_before_content hook 
    84  * @since supernews 1.0.0 
     84 * @since SuperNews 1.0.0 
    8585 * 
    8686 * @hooked supernews_before_content - 10 
  • supernews/1.2.0/index.php

    r83131 r83131  
    1010 * @link https://codex.wordpress.org/Template_Hierarchy 
    1111 * 
    12  * @package AcmeThemes 
     12 * @package Acme Themes 
    1313 * @subpackage SuperNews 
    1414 */ 
     
    2525                    <h1 class="page-title"><?php single_post_title(); ?></h1> 
    2626                </header> 
    27             <?php endif; ?> 
     27            <?php endif; 
    2828 
    29             <?php /* Start the Loop */ ?> 
    30             <?php while ( have_posts() ) : the_post(); ?> 
    31  
    32                 <?php 
     29            while ( have_posts() ) : the_post(); 
    3330 
    3431                    /* 
     
    3835                     */ 
    3936                    get_template_part( 'template-parts/content', get_post_format() ); 
    40                 ?> 
     37            endwhile; 
    4138 
    42             <?php endwhile; ?> 
     39            the_posts_navigation(); 
    4340 
    44             <?php the_posts_navigation(); ?> 
     41            else : 
     42                get_template_part( 'template-parts/content', 'none' ); 
    4543 
    46         <?php else : ?> 
    47  
    48             <?php get_template_part( 'template-parts/content', 'none' ); ?> 
    49  
    50         <?php endif; ?> 
     44            endif; ?> 
    5145 
    5246        </main><!-- #main --> 
    5347    </div><!-- #primary --> 
    54 <?php get_sidebar( 'left' ); ?> 
    55 <?php get_sidebar(); ?> 
    56 <?php get_footer(); ?> 
     48<?php 
     49get_sidebar( 'left' ); 
     50get_sidebar(); 
     51get_footer(); 
  • supernews/1.2.0/languages/supernews.pot

    r83131 r83131  
    1 # Copyright (C) 2016 the Acme Themes 
     1# Copyright (C) 2016 - 2017 the Acme Themes 
    22# This file is distributed under the GNU General Public License v2 or later. 
     3 
    34msgid "" 
    45msgstr "" 
    56"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" 
    67"Project-Id-Version: SuperNews\n" 
    7 "POT-Creation-Date: 2016-04-20 10:24+0545\n" 
    8 "PO-Revision-Date: 2016-04-20 10:24+0545\n" 
     8"POT-Creation-Date: 2017-06-06 14:39+0545\n" 
     9"PO-Revision-Date: 2017-06-06 14:39+0545\n" 
    910"Last-Translator: \n" 
    1011"Language-Team: \n" 
     
    1213"Content-Type: text/plain; charset=UTF-8\n" 
    1314"Content-Transfer-Encoding: 8bit\n" 
    14 "X-Generator: Poedit 1.8.6\n" 
     15"X-Generator: Poedit 1.8.8\n" 
    1516"X-Poedit-Basepath: ..\n" 
    1617"X-Poedit-WPHeader: style.css\n" 
     
    3233msgstr "" 
    3334 
     35#: acmethemes/at-theme-info/class-at-theme-info.php:53 
     36#: acmethemes/at-theme-info/class-at-theme-info.php:71 
     37#, php-format 
     38msgid "" 
     39"Welcome! Thank you for choosing %1$s! To fully take advantage of the best " 
     40"our theme can offer please make sure you visit our %2$swelcome page%3$s." 
     41msgstr "" 
     42 
     43#: acmethemes/at-theme-info/class-at-theme-info.php:53 
     44#: acmethemes/at-theme-info/class-at-theme-info.php:71 
     45#, php-format 
     46msgid "Get started with %s" 
     47msgstr "" 
     48 
     49#: acmethemes/at-theme-info/class-at-theme-info.php:69 
     50#: acmethemes/at-theme-info/class-at-theme-info.php:70 
     51msgid "Info" 
     52msgstr "" 
     53 
     54#: acmethemes/at-theme-info/class-at-theme-info.php:497 
     55#: acmethemes/at-theme-info/class-at-theme-info.php:628 
     56#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2717 
     57msgid "Install" 
     58msgstr "" 
     59 
     60#: acmethemes/at-theme-info/class-at-theme-info.php:502 
     61#: acmethemes/at-theme-info/class-at-theme-info.php:633 
     62#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2726 
     63msgid "Activate" 
     64msgstr "" 
     65 
     66#: acmethemes/at-theme-info/class-at-theme-info.php:508 
     67#: acmethemes/at-theme-info/class-at-theme-info.php:639 
     68msgid "Deactivate" 
     69msgstr "" 
     70 
     71#: acmethemes/at-theme-info/class-at-theme-info.php:528 
     72msgid "Hooray! There are no recommended actions for you right now." 
     73msgstr "" 
     74 
     75#: acmethemes/at-theme-info/class-at-theme-info.php:529 
     76msgid "Show All Recommended Actions" 
     77msgstr "" 
     78 
     79#: acmethemes/at-theme-info/class-at-theme-info.php:694 
     80msgid "Download" 
     81msgstr "" 
     82 
     83#: acmethemes/at-theme-info/class-at-theme-info.php:697 
     84msgid "Live Preview" 
     85msgstr "" 
     86 
     87#. Theme Name of the plugin/theme 
     88#: acmethemes/at-theme-info/class-at-theme-info.php:837 
     89msgid "SuperNews" 
     90msgstr "" 
     91 
     92#: acmethemes/at-theme-info/class-at-theme-info.php:838 
     93msgid "SuperNewsPro" 
     94msgstr "" 
     95 
     96#: acmethemes/at-theme-info/class-at-theme-info.php:1011 
     97#: acmethemes/at-theme-info/class-at-theme-info.php:1014 
     98msgid "SuperNews Info" 
     99msgstr "" 
     100 
     101#: acmethemes/at-theme-info/class-at-theme-info.php:1017 
     102#, php-format 
     103msgid "Welcome to %s - " 
     104msgstr "" 
     105 
     106#: acmethemes/at-theme-info/class-at-theme-info.php:1020 
     107#, php-format 
     108msgid "" 
     109"%s is now installed and ready to use. We hope the following information will " 
     110"help you. If you want to ask any query or just want to say hello, you can " 
     111"always contact us. We hope you enjoy it! " 
     112msgstr "" 
     113 
     114#: acmethemes/at-theme-info/class-at-theme-info.php:1027 
     115msgid "Theme Details" 
     116msgstr "" 
     117 
     118#: acmethemes/at-theme-info/class-at-theme-info.php:1031 
     119msgid "View Demo" 
     120msgstr "" 
     121 
     122#: acmethemes/at-theme-info/class-at-theme-info.php:1035 
     123#: acmethemes/at-theme-info/class-at-theme-info.php:1196 
     124msgid "View Pro Version" 
     125msgstr "" 
     126 
     127#: acmethemes/at-theme-info/class-at-theme-info.php:1039 
     128msgid "Rate This Theme" 
     129msgstr "" 
     130 
     131#: acmethemes/at-theme-info/class-at-theme-info.php:1045 
     132msgid "Getting Started" 
     133msgstr "" 
     134 
     135#: acmethemes/at-theme-info/class-at-theme-info.php:1046 
     136msgid "Recommended Actions" 
     137msgstr "" 
     138 
     139#: acmethemes/at-theme-info/class-at-theme-info.php:1047 
     140msgid "Useful Plugins" 
     141msgstr "" 
     142 
     143#: acmethemes/at-theme-info/class-at-theme-info.php:1048 
     144msgid "Support" 
     145msgstr "" 
     146 
     147#: acmethemes/at-theme-info/class-at-theme-info.php:1049 
     148msgid "Changelog" 
     149msgstr "" 
     150 
     151#: acmethemes/at-theme-info/class-at-theme-info.php:1050 
     152msgid "FAQ" 
     153msgstr "" 
     154 
     155#: acmethemes/at-theme-info/class-at-theme-info.php:1051 
     156msgid "Free VS PRO" 
     157msgstr "" 
     158 
     159#: acmethemes/at-theme-info/class-at-theme-info.php:1057 
     160msgid "Step 1 : Read full documentation" 
     161msgstr "" 
     162 
     163#: acmethemes/at-theme-info/class-at-theme-info.php:1058 
     164msgid "" 
     165"Please check our full documentation for detailed information on how to Setup " 
     166"and Use SuperNews." 
     167msgstr "" 
     168 
     169#: acmethemes/at-theme-info/class-at-theme-info.php:1059 
     170#: acmethemes/at-theme-info/class-at-theme-info.php:1184 
     171msgid "Documentation" 
     172msgstr "" 
     173 
     174#: acmethemes/at-theme-info/class-at-theme-info.php:1066 
     175msgid "Step 2 : Go to Customizer" 
     176msgstr "" 
     177 
     178#: acmethemes/at-theme-info/class-at-theme-info.php:1067 
     179msgid "" 
     180"All Setting, Theme Options, Widgets and Menus are available via Customize " 
     181"screen. Have a quick look or start customization!" 
     182msgstr "" 
     183 
     184#: acmethemes/at-theme-info/class-at-theme-info.php:1068 
     185msgid "Go to Customizer" 
     186msgstr "" 
     187 
     188#: acmethemes/at-theme-info/class-at-theme-info.php:1075 
     189msgid "Step 3 : Setting Featured Section " 
     190msgstr "" 
     191 
     192#: acmethemes/at-theme-info/class-at-theme-info.php:1076 
     193msgid "" 
     194"Add Feature Image or Unlimited Slides on Feature Section. Please do the Step " 
     195"3 before this." 
     196msgstr "" 
     197 
     198#: acmethemes/at-theme-info/class-at-theme-info.php:1077 
     199msgid "Featured Section" 
     200msgstr "" 
     201 
     202#: acmethemes/at-theme-info/class-at-theme-info.php:1084 
     203msgid "Step 4 : Setting Home Main Content Area " 
     204msgstr "" 
     205 
     206#: acmethemes/at-theme-info/class-at-theme-info.php:1085 
     207msgid "Add different section on Home Main Content Area using Widgets" 
     208msgstr "" 
     209 
     210#: acmethemes/at-theme-info/class-at-theme-info.php:1086 
     211msgid "Add different section on Home Page" 
     212msgstr "" 
     213 
     214#: acmethemes/at-theme-info/class-at-theme-info.php:1093 
     215msgid "Step 5 : Hide/Show Blog Posts or Static Page on Front Page" 
     216msgstr "" 
     217 
     218#: acmethemes/at-theme-info/class-at-theme-info.php:1094 
     219#: acmethemes/at-theme-info/class-at-theme-info.php:1165 
     220msgid "" 
     221"You may want to Hide Blog Posts or Static Page on Front Page and just want " 
     222"to keep " 
     223msgstr "" 
     224 
     225#: acmethemes/at-theme-info/class-at-theme-info.php:1095 
     226#: acmethemes/at-theme-info/class-at-theme-info.php:1166 
     227msgid "Hide or Show" 
     228msgstr "" 
     229 
     230#: acmethemes/at-theme-info/class-at-theme-info.php:1106 
     231msgid "Setting Image Size" 
     232msgstr "" 
     233 
     234#: acmethemes/at-theme-info/class-at-theme-info.php:1107 
     235#, php-format 
     236msgid "" 
     237"IMPORTANT!!! Set thumbnail size : 500 * 280, Set Medium size : 660 * 365, " 
     238"Set Large size : 840 * 480 %1$s Set Image Size %2$s " 
     239msgstr "" 
     240 
     241#: acmethemes/at-theme-info/class-at-theme-info.php:1111 
     242msgid "Install Demo Setup" 
     243msgstr "" 
     244 
     245#: acmethemes/at-theme-info/class-at-theme-info.php:1112 
     246#, php-format 
     247msgid "" 
     248"For the demo content installation, install the Acme Demo Setup plugin, " 
     249"download demo content from %1$s here %2$s. Then go to \"Acme Demo Setup\" " 
     250"and import demo. " 
     251msgstr "" 
     252 
     253#: acmethemes/at-theme-info/class-at-theme-info.php:1129 
     254msgid "Where to get a dedicated support ? " 
     255msgstr "" 
     256 
     257#: acmethemes/at-theme-info/class-at-theme-info.php:1131 
     258msgid "Follow the theme dedicated support forum." 
     259msgstr "" 
     260 
     261#: acmethemes/at-theme-info/class-at-theme-info.php:1132 
     262msgid "Click here to get the support" 
     263msgstr "" 
     264 
     265#: acmethemes/at-theme-info/class-at-theme-info.php:1139 
     266msgid "Recent Updates of your Site ? " 
     267msgstr "" 
     268 
     269#: acmethemes/at-theme-info/class-at-theme-info.php:1141 
     270msgid "Where i can get the recent updates of theme related updates ? " 
     271msgstr "" 
     272 
     273#: acmethemes/at-theme-info/class-at-theme-info.php:1142 
     274msgid "Visit our site blog page" 
     275msgstr "" 
     276 
     277#: acmethemes/at-theme-info/class-at-theme-info.php:1148 
     278msgid "How to make image size suitable for the theme ? " 
     279msgstr "" 
     280 
     281#: acmethemes/at-theme-info/class-at-theme-info.php:1150 
     282msgid "" 
     283"In this recent update, you can check Appearance > SuperNews Info > " 
     284"Recommended Action > Setting Image Size and click on Set Image size. Now " 
     285"your theme image size will be automatically updates on Settings > Media." 
     286msgstr "" 
     287 
     288#: acmethemes/at-theme-info/class-at-theme-info.php:1154 
     289msgid "" 
     290"How to hide/change footer text Proudly powered by WordPress | Theme: " 
     291"SuperMag by AcmeThemes. ? " 
     292msgstr "" 
     293 
     294#: acmethemes/at-theme-info/class-at-theme-info.php:1156 
     295msgid "Visit this blog post to know how to change or remove powered by text." 
     296msgstr "" 
     297 
     298#: acmethemes/at-theme-info/class-at-theme-info.php:1163 
     299msgid "Hide/Show Blog Posts or Static Page on Front Page" 
     300msgstr "" 
     301 
     302#: acmethemes/at-theme-info/class-at-theme-info.php:1175 
     303#: acmethemes/at-theme-info/class-at-theme-info.php:1178 
     304msgid "Contact Support" 
     305msgstr "" 
     306 
     307#: acmethemes/at-theme-info/class-at-theme-info.php:1177 
     308msgid "" 
     309"Got theme support question or found bug? Best place to ask your query is our " 
     310"dedicated Support forum." 
     311msgstr "" 
     312 
     313#: acmethemes/at-theme-info/class-at-theme-info.php:1186 
     314msgid "" 
     315"Please check our full documentation for detailed information on how to Setup " 
     316"and Use SuperMag." 
     317msgstr "" 
     318 
     319#: acmethemes/at-theme-info/class-at-theme-info.php:1187 
     320msgid "Read full documentation" 
     321msgstr "" 
     322 
     323#: acmethemes/at-theme-info/class-at-theme-info.php:1193 
     324msgid "Need more features?" 
     325msgstr "" 
     326 
     327#: acmethemes/at-theme-info/class-at-theme-info.php:1195 
     328msgid "Upgrade to PRO version for more exciting features and Priority Support." 
     329msgstr "" 
     330 
     331#: acmethemes/at-theme-info/class-at-theme-info.php:1202 
     332msgid "Got sales related question?" 
     333msgstr "" 
     334 
     335#: acmethemes/at-theme-info/class-at-theme-info.php:1204 
     336msgid "Have any query before purchase, you are more than welcome to ask." 
     337msgstr "" 
     338 
     339#: acmethemes/at-theme-info/class-at-theme-info.php:1205 
     340msgid "Pre-sale Question?" 
     341msgstr "" 
     342 
     343#: acmethemes/at-theme-info/class-at-theme-info.php:1211 
     344#: acmethemes/at-theme-info/class-at-theme-info.php:1214 
     345msgid "Customization Request" 
     346msgstr "" 
     347 
     348#: acmethemes/at-theme-info/class-at-theme-info.php:1213 
     349msgid "Needed any customization for the theme, you can request from here." 
     350msgstr "" 
     351 
     352#: acmethemes/at-theme-info/class-at-theme-info.php:1225 
     353msgid "Custom Widgets" 
     354msgstr "" 
     355 
     356#: acmethemes/at-theme-info/class-at-theme-info.php:1226 
     357msgid "All added custom widgets are ready for page builder plugin" 
     358msgstr "" 
     359 
     360#: acmethemes/at-theme-info/class-at-theme-info.php:1227 
     361msgid "2+ Available" 
     362msgstr "" 
     363 
     364#: acmethemes/at-theme-info/class-at-theme-info.php:1228 
     365msgid "10+ Available" 
     366msgstr "" 
     367 
     368#: acmethemes/at-theme-info/class-at-theme-info.php:1231 
     369msgid "Widget Options" 
     370msgstr "" 
     371 
     372#: acmethemes/at-theme-info/class-at-theme-info.php:1232 
     373msgid "Every widgets have multiple options to customize section" 
     374msgstr "" 
     375 
     376#: acmethemes/at-theme-info/class-at-theme-info.php:1233 
     377#: acmethemes/at-theme-info/class-at-theme-info.php:1257 
     378#: acmethemes/at-theme-info/class-at-theme-info.php:1269 
     379#: acmethemes/at-theme-info/class-at-theme-info.php:1275 
     380#: acmethemes/at-theme-info/class-at-theme-info.php:1293 
     381#: acmethemes/at-theme-info/class-at-theme-info.php:1305 
     382#: acmethemes/at-theme-info/class-at-theme-info.php:1311 
     383#: acmethemes/at-theme-info/class-at-theme-info.php:1317 
     384#: acmethemes/at-theme-info/class-at-theme-info.php:1395 
     385msgid "Limited" 
     386msgstr "" 
     387 
     388#: acmethemes/at-theme-info/class-at-theme-info.php:1234 
     389#: acmethemes/at-theme-info/class-at-theme-info.php:1252 
     390#: acmethemes/at-theme-info/class-at-theme-info.php:1258 
     391#: acmethemes/at-theme-info/class-at-theme-info.php:1264 
     392#: acmethemes/at-theme-info/class-at-theme-info.php:1270 
     393#: acmethemes/at-theme-info/class-at-theme-info.php:1276 
     394#: acmethemes/at-theme-info/class-at-theme-info.php:1294 
     395#: acmethemes/at-theme-info/class-at-theme-info.php:1312 
     396#: acmethemes/at-theme-info/class-at-theme-info.php:1318 
     397#: acmethemes/at-theme-info/class-at-theme-info.php:1342 
     398#: acmethemes/at-theme-info/class-at-theme-info.php:1348 
     399#: acmethemes/at-theme-info/class-at-theme-info.php:1354 
     400#: acmethemes/at-theme-info/class-at-theme-info.php:1396 
     401msgid "Multiple Options" 
     402msgstr "" 
     403 
     404#: acmethemes/at-theme-info/class-at-theme-info.php:1237 
     405msgid "Google Fonts" 
     406msgstr "" 
     407 
     408#: acmethemes/at-theme-info/class-at-theme-info.php:1238 
     409msgid "Google fonts options for changing the overall site fonts " 
     410msgstr "" 
     411 
     412#: acmethemes/at-theme-info/class-at-theme-info.php:1240 
     413msgid "100 +" 
     414msgstr "" 
     415 
     416#: acmethemes/at-theme-info/class-at-theme-info.php:1243 
     417msgid "Color Options" 
     418msgstr "" 
     419 
     420#: acmethemes/at-theme-info/class-at-theme-info.php:1244 
     421msgid "Color options for changing overall site colors, Contat us" 
     422msgstr "" 
     423 
     424#: acmethemes/at-theme-info/class-at-theme-info.php:1245 
     425msgid "2" 
     426msgstr "" 
     427 
     428#: acmethemes/at-theme-info/class-at-theme-info.php:1246 
     429msgid "Unlimited" 
     430msgstr "" 
     431 
     432#: acmethemes/at-theme-info/class-at-theme-info.php:1249 
     433#: acmethemes/customizer/design-options/colors-cats.php:5 
     434msgid "Category Color Options" 
     435msgstr "" 
     436 
     437#: acmethemes/at-theme-info/class-at-theme-info.php:1250 
     438msgid "Color options for changing category name" 
     439msgstr "" 
     440 
     441#: acmethemes/at-theme-info/class-at-theme-info.php:1255 
     442#: acmethemes/customizer/header-options/header-panel.php:7 
     443msgid "Header Options" 
     444msgstr "" 
     445 
     446#: acmethemes/at-theme-info/class-at-theme-info.php:1256 
     447msgid "Customze the header section as your need." 
     448msgstr "" 
     449 
     450#: acmethemes/at-theme-info/class-at-theme-info.php:1261 
     451msgid "Logo Position Options" 
     452msgstr "" 
     453 
     454#: acmethemes/at-theme-info/class-at-theme-info.php:1262 
     455msgid "You can place logo, advertisement and menus." 
     456msgstr "" 
     457 
     458#: acmethemes/at-theme-info/class-at-theme-info.php:1263 
     459msgid "3 Position Options" 
     460msgstr "" 
     461 
     462#: acmethemes/at-theme-info/class-at-theme-info.php:1267 
     463#: acmethemes/customizer/header-options/header-news.php:7 
     464msgid "Breaking News Options" 
     465msgstr "" 
     466 
     467#: acmethemes/at-theme-info/class-at-theme-info.php:1268 
     468msgid "Manage your breaking news section on header" 
     469msgstr "" 
     470 
     471#: acmethemes/at-theme-info/class-at-theme-info.php:1273 
     472#: acmethemes/customizer/header-options/menu-option.php:7 
     473msgid "Menu Options" 
     474msgstr "" 
     475 
     476#: acmethemes/at-theme-info/class-at-theme-info.php:1274 
     477msgid "" 
     478"Lots of menu options are available to manage the menu section. Appearance > " 
     479"Menus" 
     480msgstr "" 
     481 
     482#: acmethemes/at-theme-info/class-at-theme-info.php:1279 
     483msgid "Sticky Menu Options" 
     484msgstr "" 
     485 
     486#: acmethemes/at-theme-info/class-at-theme-info.php:1280 
     487msgid "Enable Sticky menu on your site." 
     488msgstr "" 
     489 
     490#: acmethemes/at-theme-info/class-at-theme-info.php:1285 
     491msgid "Featured Selection" 
     492msgstr "" 
     493 
     494#: acmethemes/at-theme-info/class-at-theme-info.php:1286 
     495msgid "This is slider section. Check every options there" 
     496msgstr "" 
     497 
     498#: acmethemes/at-theme-info/class-at-theme-info.php:1287 
     499msgid "Category" 
     500msgstr "" 
     501 
     502#: acmethemes/at-theme-info/class-at-theme-info.php:1288 
     503msgid "Page, Post, Category, And Custom" 
     504msgstr "" 
     505 
     506#: acmethemes/at-theme-info/class-at-theme-info.php:1291 
     507#: acmethemes/customizer/feature-section/feature-panel.php:7 
     508msgid "Featured Section Options" 
     509msgstr "" 
     510 
     511#: acmethemes/at-theme-info/class-at-theme-info.php:1292 
     512msgid "Options to manage the sliders" 
     513msgstr "" 
     514 
     515#: acmethemes/at-theme-info/class-at-theme-info.php:1297 
     516msgid "Sticky Sidebar" 
     517msgstr "" 
     518 
     519#: acmethemes/at-theme-info/class-at-theme-info.php:1298 
     520msgid "Enable/Disable sticky sidebars" 
     521msgstr "" 
     522 
     523#: acmethemes/at-theme-info/class-at-theme-info.php:1303 
     524msgid "Blog/Archive Options" 
     525msgstr "" 
     526 
     527#: acmethemes/at-theme-info/class-at-theme-info.php:1304 
     528msgid "" 
     529"Various Options are available for the blog and archive page management. " 
     530"Check on Appearance > Customize > Layout/Design Options." 
     531msgstr "" 
     532 
     533#: acmethemes/at-theme-info/class-at-theme-info.php:1306 
     534msgid "Manage Every Entity" 
     535msgstr "" 
     536 
     537#: acmethemes/at-theme-info/class-at-theme-info.php:1309 
     538msgid "Footer Options" 
     539msgstr "" 
     540 
     541#: acmethemes/at-theme-info/class-at-theme-info.php:1310 
     542msgid "Manage the every entity related to footer section." 
     543msgstr "" 
     544 
     545#: acmethemes/at-theme-info/class-at-theme-info.php:1315 
     546#: acmethemes/customizer/header-options/social-options.php:7 
     547msgid "Social Options" 
     548msgstr "" 
     549 
     550#: acmethemes/at-theme-info/class-at-theme-info.php:1316 
     551msgid "" 
     552"Options to manage the social icons like facebook, instagram, linkedin etc." 
     553msgstr "" 
     554 
     555#: acmethemes/at-theme-info/class-at-theme-info.php:1321 
     556msgid "Theme Credit Link" 
     557msgstr "" 
     558 
     559#: acmethemes/at-theme-info/class-at-theme-info.php:1322 
     560msgid "Options to disable to Powered by text on footer." 
     561msgstr "" 
     562 
     563#: acmethemes/at-theme-info/class-at-theme-info.php:1323 
     564msgid "No Options To Disable" 
     565msgstr "" 
     566 
     567#: acmethemes/at-theme-info/class-at-theme-info.php:1324 
     568#: acmethemes/at-theme-info/class-at-theme-info.php:1347 
     569msgid "Enable/Disable" 
     570msgstr "" 
     571 
     572#: acmethemes/at-theme-info/class-at-theme-info.php:1327 
     573msgid "Own Credit Link" 
     574msgstr "" 
     575 
     576#: acmethemes/at-theme-info/class-at-theme-info.php:1328 
     577msgid "Write your own credit text." 
     578msgstr "" 
     579 
     580#: acmethemes/at-theme-info/class-at-theme-info.php:1330 
     581msgid "Your Own Credit Text" 
     582msgstr "" 
     583 
     584#: acmethemes/at-theme-info/class-at-theme-info.php:1333 
     585msgid "Social Icons" 
     586msgstr "" 
     587 
     588#: acmethemes/at-theme-info/class-at-theme-info.php:1334 
     589msgid "Enter the URL for social icons. " 
     590msgstr "" 
     591 
     592#: acmethemes/at-theme-info/class-at-theme-info.php:1335 
     593msgid "5 +" 
     594msgstr "" 
     595 
     596#: acmethemes/at-theme-info/class-at-theme-info.php:1336 
     597msgid "Available Mostly Used" 
     598msgstr "" 
     599 
     600#: acmethemes/at-theme-info/class-at-theme-info.php:1339 
     601msgid "Intro Loader Options" 
     602msgstr "" 
     603 
     604#: acmethemes/at-theme-info/class-at-theme-info.php:1340 
     605msgid "It will load before the site loaded completely." 
     606msgstr "" 
     607 
     608#: acmethemes/at-theme-info/class-at-theme-info.php:1345 
     609msgid "Related Post Options" 
     610msgstr "" 
     611 
     612#: acmethemes/at-theme-info/class-at-theme-info.php:1346 
     613msgid "Related post will appear on single post of each blog article" 
     614msgstr "" 
     615 
     616#: acmethemes/at-theme-info/class-at-theme-info.php:1351 
     617msgid "Author Info Options" 
     618msgstr "" 
     619 
     620#: acmethemes/at-theme-info/class-at-theme-info.php:1352 
     621msgid "This will appear on single page and archive page of that author." 
     622msgstr "" 
     623 
     624#: acmethemes/at-theme-info/class-at-theme-info.php:1353 
     625#: acmethemes/at-theme-info/class-at-theme-info.php:1365 
     626#: acmethemes/customizer/customizer-core.php:35 
     627#: acmethemes/customizer/customizer-core.php:173 
     628msgid "Default" 
     629msgstr "" 
     630 
     631#: acmethemes/at-theme-info/class-at-theme-info.php:1357 
     632msgid "Feature Image Options" 
     633msgstr "" 
     634 
     635#: acmethemes/at-theme-info/class-at-theme-info.php:1358 
     636msgid "Featured image options for the single page and post." 
     637msgstr "" 
     638 
     639#: acmethemes/at-theme-info/class-at-theme-info.php:1360 
     640msgid "Manage As Your Need" 
     641msgstr "" 
     642 
     643#: acmethemes/at-theme-info/class-at-theme-info.php:1363 
     644msgid "Navigation Options" 
     645msgstr "" 
     646 
     647#: acmethemes/at-theme-info/class-at-theme-info.php:1364 
     648msgid "" 
     649"Post Navigation means, previous post and next post. Check on single post." 
     650msgstr "" 
     651 
     652#: acmethemes/at-theme-info/class-at-theme-info.php:1366 
     653#: acmethemes/at-theme-info/class-at-theme-info.php:1384 
     654msgid "Advanced" 
     655msgstr "" 
     656 
     657#: acmethemes/at-theme-info/class-at-theme-info.php:1369 
     658msgid "Post Comment Options" 
     659msgstr "" 
     660 
     661#: acmethemes/at-theme-info/class-at-theme-info.php:1370 
     662msgid "Manage the comment section on single post." 
     663msgstr "" 
     664 
     665#: acmethemes/at-theme-info/class-at-theme-info.php:1372 
     666msgid "Options Available" 
     667msgstr "" 
     668 
     669#: acmethemes/at-theme-info/class-at-theme-info.php:1375 
     670msgid "Show/Hide Comment" 
     671msgstr "" 
     672 
     673#: acmethemes/at-theme-info/class-at-theme-info.php:1376 
     674msgid "Options to show hide comments on page and post." 
     675msgstr "" 
     676 
     677#: acmethemes/at-theme-info/class-at-theme-info.php:1381 
     678msgid "Breadcrumb" 
     679msgstr "" 
     680 
     681#: acmethemes/at-theme-info/class-at-theme-info.php:1382 
     682msgid "Advanced options for manage the Breadcrumb." 
     683msgstr "" 
     684 
     685#: acmethemes/at-theme-info/class-at-theme-info.php:1387 
     686msgid "Video Post On Featured" 
     687msgstr "" 
     688 
     689#: acmethemes/at-theme-info/class-at-theme-info.php:1388 
     690msgid "Create your video post easily from Youtube and Vimeo video." 
     691msgstr "" 
     692 
     693#: acmethemes/at-theme-info/class-at-theme-info.php:1390 
     694msgid "Add Own Video On Featured" 
     695msgstr "" 
     696 
     697#: acmethemes/at-theme-info/class-at-theme-info.php:1393 
     698#: acmethemes/customizer/single-posts/single-post-section.php:7 
     699msgid "Single Post Options" 
     700msgstr "" 
     701 
     702#: acmethemes/at-theme-info/class-at-theme-info.php:1394 
     703msgid "Manage every entity of single post." 
     704msgstr "" 
     705 
     706#: acmethemes/at-theme-info/class-at-theme-info.php:1399 
     707msgid "Featured Image Size" 
     708msgstr "" 
     709 
     710#: acmethemes/at-theme-info/class-at-theme-info.php:1400 
     711msgid "Select the size of the featured image on the single post." 
     712msgstr "" 
     713 
     714#: acmethemes/at-theme-info/class-at-theme-info.php:1405 
     715msgid "Image Size Options" 
     716msgstr "" 
     717 
     718#: acmethemes/at-theme-info/class-at-theme-info.php:1406 
     719msgid "Make the image size as your need on blog/archive page." 
     720msgstr "" 
     721 
     722#: acmethemes/at-theme-info/class-at-theme-info.php:1411 
     723msgid "Sidebars" 
     724msgstr "" 
     725 
     726#: acmethemes/at-theme-info/class-at-theme-info.php:1412 
     727msgid "" 
     728"Global and Individual sidebars are available. You can easily orveride it " 
     729"from single page/post." 
     730msgstr "" 
     731 
     732#: acmethemes/at-theme-info/class-at-theme-info.php:1414 
     733msgid "Global And Individuals" 
     734msgstr "" 
     735 
     736#: acmethemes/at-theme-info/class-at-theme-info.php:1417 
     737msgid "Infinite Scroll" 
     738msgstr "" 
     739 
     740#: acmethemes/at-theme-info/class-at-theme-info.php:1418 
     741msgid "Use Jetpack Infinite Scroll on Blog Page" 
     742msgstr "" 
     743 
     744#: acmethemes/at-theme-info/class-at-theme-info.php:1423 
     745msgid "WooCommerce" 
     746msgstr "" 
     747 
     748#: acmethemes/at-theme-info/class-at-theme-info.php:1424 
     749msgid "Create WooCommerce shop easily with the help of WooCommerce plugin." 
     750msgstr "" 
     751 
     752#: acmethemes/at-theme-info/class-at-theme-info.php:1429 
     753msgid "Translation" 
     754msgstr "" 
     755 
     756#: acmethemes/at-theme-info/class-at-theme-info.php:1430 
     757msgid "Both theme are translation ready." 
     758msgstr "" 
     759 
     760#: acmethemes/at-theme-info/class-at-theme-info.php:1435 
     761msgid "SEO" 
     762msgstr "" 
     763 
     764#: acmethemes/at-theme-info/class-at-theme-info.php:1436 
     765msgid "Developed with high skilled SEO tools." 
     766msgstr "" 
     767 
     768#: acmethemes/at-theme-info/class-at-theme-info.php:1441 
     769msgid "Widget Area On Footer" 
     770msgstr "" 
     771 
     772#: acmethemes/at-theme-info/class-at-theme-info.php:1442 
     773msgid "Change the number of footers on footer area as you need." 
     774msgstr "" 
     775 
     776#: acmethemes/at-theme-info/class-at-theme-info.php:1443 
     777msgid "3 " 
     778msgstr "" 
     779 
     780#: acmethemes/at-theme-info/class-at-theme-info.php:1444 
     781msgid "Choose On Need" 
     782msgstr "" 
     783 
     784#: acmethemes/at-theme-info/class-at-theme-info.php:1447 
     785msgid "Support Forum" 
     786msgstr "" 
     787 
     788#: acmethemes/at-theme-info/class-at-theme-info.php:1448 
     789msgid "" 
     790"Highly dedicated support team are assigned for your help. Try this today." 
     791msgstr "" 
     792 
     793#: acmethemes/at-theme-info/class-at-theme-info.php:1449 
     794msgid "Second" 
     795msgstr "" 
     796 
     797#: acmethemes/at-theme-info/class-at-theme-info.php:1450 
     798msgid "Dedicated With High Priority" 
     799msgstr "" 
     800 
    34801#: acmethemes/core.php:51 
    35802msgid "Primary Menu" 
     
    40807msgstr "" 
    41808 
    42 #: acmethemes/core/template-tags.php:29 
    43 #, php-format 
    44 msgctxt "post date" 
    45 msgid "%s" 
    46 msgstr "" 
    47  
    48 #: acmethemes/core/template-tags.php:34 
    49 #, php-format 
    50 msgctxt "post author" 
    51 msgid "%s" 
    52 msgstr "" 
    53  
    54809#: acmethemes/core/template-tags.php:51 
    55810msgid ", " 
    56 msgstr "" 
    57  
    58 #: acmethemes/core/template-tags.php:53 
    59 #, php-format 
    60 msgid "%1$s" 
    61811msgstr "" 
    62812 
     
    99849msgstr "" 
    100850 
    101 #: acmethemes/customizer/customizer-core.php:35 
     851#: acmethemes/customizer/customizer-core.php:36 
     852msgid "From WordPress Date Setting" 
     853msgstr "" 
     854 
     855#: acmethemes/customizer/customizer-core.php:54 
     856msgid "Very Top" 
     857msgstr "" 
     858 
     859#: acmethemes/customizer/customizer-core.php:55 
     860msgid "Above Site Identity" 
     861msgstr "" 
     862 
     863#: acmethemes/customizer/customizer-core.php:56 
     864msgid "Below Site Identity and Above Menu" 
     865msgstr "" 
     866 
     867#: acmethemes/customizer/customizer-core.php:57 
     868msgid "Below Menu" 
     869msgstr "" 
     870 
     871#: acmethemes/customizer/customizer-core.php:75 
     872msgid "Hide" 
     873msgstr "" 
     874 
     875#: acmethemes/customizer/customizer-core.php:76 
     876msgid "Show" 
     877msgstr "" 
     878 
     879#: acmethemes/customizer/customizer-core.php:94 
     880msgid "Left Logo and Right Ads" 
     881msgstr "" 
     882 
     883#: acmethemes/customizer/customizer-core.php:95 
     884msgid "Right Logo and Left Ads" 
     885msgstr "" 
     886 
     887#: acmethemes/customizer/customizer-core.php:96 
     888msgid "Center Logo and Below Ads" 
     889msgstr "" 
     890 
     891#: acmethemes/customizer/customizer-core.php:114 
    102892msgid "Right Sidebar" 
    103893msgstr "" 
    104894 
    105 #: acmethemes/customizer/customizer-core.php:36 
     895#: acmethemes/customizer/customizer-core.php:115 
    106896msgid "Left Sidebar" 
    107897msgstr "" 
    108898 
    109 #: acmethemes/customizer/customizer-core.php:37 
     899#: acmethemes/customizer/customizer-core.php:116 
    110900msgid "No Sidebar" 
    111901msgstr "" 
    112902 
    113 #: acmethemes/customizer/customizer-core.php:56 
     903#: acmethemes/customizer/customizer-core.php:134 
    114904msgid "Show Image" 
    115905msgstr "" 
    116906 
    117 #: acmethemes/customizer/customizer-core.php:57 
     907#: acmethemes/customizer/customizer-core.php:135 
    118908msgid "Hide Image" 
    119909msgstr "" 
    120910 
    121 #: acmethemes/customizer/customizer-core.php:75 
     911#: acmethemes/customizer/customizer-core.php:153 
    122912msgid "Do Not Reset" 
    123913msgstr "" 
    124914 
    125 #: acmethemes/customizer/customizer-core.php:76 
     915#: acmethemes/customizer/customizer-core.php:154 
    126916msgid "Reset Colors Options" 
    127917msgstr "" 
    128918 
    129 #: acmethemes/customizer/customizer-core.php:77 
     919#: acmethemes/customizer/customizer-core.php:155 
    130920msgid "Reset All" 
    131921msgstr "" 
    132922 
    133 #: acmethemes/customizer/customizer-core.php:104 
     923#: acmethemes/customizer/customizer-core.php:174 
     924msgid "Categories with Color" 
     925msgstr "" 
     926 
     927#: acmethemes/customizer/customizer-core.php:192 
     928msgid "Related Posts From Categories" 
     929msgstr "" 
     930 
     931#: acmethemes/customizer/customizer-core.php:193 
     932msgid "Related Posts From Tags" 
     933msgstr "" 
     934 
     935#: acmethemes/customizer/customizer-core.php:213 
     936msgid "No Image" 
     937msgstr "" 
     938 
     939#: acmethemes/customizer/customizer-core.php:218 
     940msgid "full (original)" 
     941msgstr "" 
     942 
     943#: acmethemes/customizer/customizer-core.php:255 
    134944msgid "Breaking News" 
    135945msgstr "" 
    136946 
    137 #: acmethemes/customizer/customizer-core.php:115 
    138 msgid "Acme Themes &copy; 2016" 
    139 msgstr "" 
    140  
    141 #: acmethemes/customizer/customizer-core.php:127 
     947#: acmethemes/customizer/customizer-core.php:281 
     948msgid "&copy; All Right Reserved" 
     949msgstr "" 
     950 
     951#: acmethemes/customizer/customizer-core.php:285 
     952#: template-parts/content-search.php:51 
     953msgid "Read More" 
     954msgstr "" 
     955 
     956#: acmethemes/customizer/customizer-core.php:302 
     957msgid "Related posts" 
     958msgstr "" 
     959 
     960#: acmethemes/customizer/customizer-core.php:307 
    142961#: acmethemes/customizer/options/search.php:7 
    143962msgid "Search" 
     963msgstr "" 
     964 
     965#: acmethemes/customizer/customizer-core.php:314 
     966msgid "You are here" 
     967msgstr "" 
     968 
     969#: acmethemes/customizer/customizer.php:93 
     970msgid "Home Main Content Area " 
     971msgstr "" 
     972 
     973#: acmethemes/customizer/customizer.php:114 
     974msgid "Upgrade To Pro" 
     975msgstr "" 
     976 
     977#: acmethemes/customizer/design-options/archive-sidebar-layout.php:7 
     978#: acmethemes/customizer/design-options/archive-sidebar-layout.php:20 
     979msgid "Category/Archive Sidebar Layout" 
     980msgstr "" 
     981 
     982#: acmethemes/customizer/design-options/archive-sidebar-layout.php:21 
     983msgid "Sidebar Layout for listing pages like category, author etc" 
    144984msgstr "" 
    145985 
     
    157997msgstr "" 
    158998 
     999#: acmethemes/customizer/design-options/blog-layout.php:36 
     1000#: acmethemes/customizer/single-posts/single-post-section.php:19 
     1001msgid "Image Layout Options" 
     1002msgstr "" 
     1003 
     1004#: acmethemes/customizer/design-options/blog-layout.php:49 
     1005msgid "Read More Text" 
     1006msgstr "" 
     1007 
     1008#: acmethemes/customizer/design-options/colors-cats.php:6 
     1009msgid "Change the highlighted color of each category items as you want." 
     1010msgstr "" 
     1011 
     1012#: acmethemes/customizer/design-options/colors-cats.php:31 
     1013#, php-format 
     1014msgid "\"%s\" Color" 
     1015msgstr "" 
     1016 
     1017#: acmethemes/customizer/design-options/colors-cats.php:49 
     1018#, php-format 
     1019msgid "\"%s\" Hover Color" 
     1020msgstr "" 
     1021 
    1591022#: acmethemes/customizer/design-options/colors-options.php:7 
    1601023msgid "Colors" 
    1611024msgstr "" 
    1621025 
    163 #: acmethemes/customizer/design-options/colors-options.php:17 
     1026#: acmethemes/customizer/design-options/colors-options.php:23 
    1641027msgid "Primary Color" 
    1651028msgstr "" 
     
    1741037msgstr "" 
    1751038 
     1039#: acmethemes/customizer/design-options/front-page-sidebar-layout.php:7 
     1040#: acmethemes/customizer/design-options/front-page-sidebar-layout.php:20 
     1041msgid "Front/Home Sidebar Layout" 
     1042msgstr "" 
     1043 
    1761044#: acmethemes/customizer/design-options/sidebar-layout.php:7 
    1771045#: acmethemes/customizer/design-options/sidebar-layout.php:20 
     
    1791047msgstr "" 
    1801048 
     1049#: acmethemes/customizer/design-options/sticky-sidebar.php:7 
     1050msgid "Sticky Sidebar Option" 
     1051msgstr "" 
     1052 
     1053#: acmethemes/customizer/design-options/sticky-sidebar.php:18 
     1054msgid "Enable Sticky Sidebar" 
     1055msgstr "" 
     1056 
    1811057#: acmethemes/customizer/feature-section/feature-category.php:7 
    1821058msgid "Category Selection For Featured Section" 
     
    1851061#: acmethemes/customizer/feature-section/feature-category.php:23 
    1861062msgid "Select Category For Featured Section" 
     1063msgstr "" 
     1064 
     1065#: acmethemes/customizer/feature-section/feature-category.php:39 
     1066msgid "Enable Slider Mode" 
     1067msgstr "" 
     1068 
     1069#: acmethemes/customizer/feature-section/feature-category.php:40 
     1070msgid "You should have more than 5 posts in a selected category" 
    1871071msgstr "" 
    1881072 
     
    1961080msgstr "" 
    1971081 
    198 #: acmethemes/customizer/feature-section/feature-panel.php:7 
    199 msgid "Featured Section Options" 
    200 msgstr "" 
    201  
    2021082#: acmethemes/customizer/feature-section/feature-panel.php:8 
    2031083msgid "Customize your awesome site feature section " 
     
    2161096msgstr "" 
    2171097 
    218 #: acmethemes/customizer/header-options/ad-option.php:22 
     1098#: acmethemes/customizer/header-options/ad-option.php:8 
     1099#, php-format 
     1100msgid " Now you can put %1$s Advertisement by Using Widgets %2$s" 
     1101msgstr "" 
     1102 
     1103#: acmethemes/customizer/header-options/ad-option.php:21 
     1104msgid "Advertisement Show Option" 
     1105msgstr "" 
     1106 
     1107#: acmethemes/customizer/header-options/ad-option.php:39 
    2191108msgid "Header Ad Image" 
    2201109msgstr "" 
    2211110 
    222 #: acmethemes/customizer/header-options/ad-option.php:27 
     1111#: acmethemes/customizer/header-options/ad-option.php:44 
    2231112msgid "Recommended image size of 728*90" 
    2241113msgstr "" 
    2251114 
    226 #: acmethemes/customizer/header-options/ad-option.php:40 
     1115#: acmethemes/customizer/header-options/ad-option.php:57 
    2271116msgid "Header Ad Image Link" 
    2281117msgstr "" 
     
    2361125msgstr "" 
    2371126 
    238 #: acmethemes/customizer/header-options/header-logo.php:17 
     1127#: acmethemes/customizer/header-options/header-date.php:35 
     1128msgid "Date Format" 
     1129msgstr "" 
     1130 
     1131#: acmethemes/customizer/header-options/header-logo.php:16 
    2391132msgid "Logo" 
    2401133msgstr "" 
    2411134 
    242 #: acmethemes/customizer/header-options/header-logo.php:37 
     1135#: acmethemes/customizer/header-options/header-logo.php:35 
    2431136msgid "Logo/Site Title-Tagline Display Options" 
    2441137msgstr "" 
    2451138 
    246 #: acmethemes/customizer/header-options/header-news.php:7 
    247 msgid "Breaking News Options" 
     1139#: acmethemes/customizer/header-options/header-media-display-options.php:7 
     1140#: acmethemes/customizer/header-options/header-media-display-options.php:21 
     1141msgid "Header Media Position" 
     1142msgstr "" 
     1143 
     1144#: acmethemes/customizer/header-options/header-media-display-options.php:8 
     1145#, php-format 
     1146msgid "" 
     1147"Add Header Media from %1$s here %2$s. Header Media includes Video and Image" 
     1148msgstr "" 
     1149 
     1150#: acmethemes/customizer/header-options/header-media-display-options.php:35 
     1151msgid "Header Image Link" 
     1152msgstr "" 
     1153 
     1154#: acmethemes/customizer/header-options/header-media-display-options.php:36 
     1155msgid "Left empty for no link" 
     1156msgstr "" 
     1157 
     1158#: acmethemes/customizer/header-options/header-media-display-options.php:50 
     1159msgid "Check to Open New Tab Header Image Link" 
     1160msgstr "" 
     1161 
     1162#: acmethemes/customizer/header-options/header-media-display-options.php:69 
     1163#, php-format 
     1164msgid " Header Media Position options available %1$s here %2$s" 
    2481165msgstr "" 
    2491166 
    2501167#: acmethemes/customizer/header-options/header-news.php:18 
     1168msgid "Enable Breaking News" 
     1169msgstr "" 
     1170 
     1171#: acmethemes/customizer/header-options/header-news.php:32 
    2511172msgid "Breaking News Title" 
    252 msgstr "" 
    253  
    254 #: acmethemes/customizer/header-options/header-news.php:32 
    255 msgid "Enable Breaking News" 
    256 msgstr "" 
    257  
    258 #: acmethemes/customizer/header-options/header-panel.php:7 
    259 msgid "Header Options" 
    2601173msgstr "" 
    2611174 
     
    2641177msgstr "" 
    2651178 
     1179#: acmethemes/customizer/header-options/menu-option.php:18 
     1180msgid "Enable Sticky Menu" 
     1181msgstr "" 
     1182 
    2661183#: acmethemes/customizer/header-options/search-option.php:7 
    2671184msgid "Search Options" 
     
    2721189msgstr "" 
    2731190 
    274 #: acmethemes/customizer/header-options/social-options.php:7 
    275 msgid "Social Options" 
     1191#: acmethemes/customizer/header-options/site-identity-placement.php:7 
     1192msgid "Header Placement" 
     1193msgstr "" 
     1194 
     1195#: acmethemes/customizer/header-options/site-identity-placement.php:20 
     1196msgid "Logo and Advertisement Position" 
    2761197msgstr "" 
    2771198 
    2781199#: acmethemes/customizer/header-options/social-options.php:18 
     1200msgid "Enable social" 
     1201msgstr "" 
     1202 
     1203#: acmethemes/customizer/header-options/social-options.php:32 
    2791204msgid "Facebook url" 
    2801205msgstr "" 
    2811206 
    282 #: acmethemes/customizer/header-options/social-options.php:32 
     1207#: acmethemes/customizer/header-options/social-options.php:46 
    2831208msgid "Twitter url" 
    2841209msgstr "" 
    2851210 
    286 #: acmethemes/customizer/header-options/social-options.php:46 
     1211#: acmethemes/customizer/header-options/social-options.php:60 
    2871212msgid "Youtube url" 
    2881213msgstr "" 
    2891214 
    290 #: acmethemes/customizer/header-options/social-options.php:60 
    291 msgid "Enable social" 
     1215#: acmethemes/customizer/header-options/social-options.php:75 
     1216msgid "Instagram url" 
     1217msgstr "" 
     1218 
     1219#: acmethemes/customizer/header-options/social-options.php:90 
     1220msgid "Google Plus Url" 
     1221msgstr "" 
     1222 
     1223#: acmethemes/customizer/header-options/social-options.php:104 
     1224msgid "Pinterest url" 
    2921225msgstr "" 
    2931226 
     
    3001233msgstr "" 
    3011234 
     1235#: acmethemes/customizer/options/breadcrumb.php:33 
     1236msgid "You are here Text" 
     1237msgstr "" 
     1238 
     1239#: acmethemes/customizer/options/front-page.php:7 
     1240msgid "Front Page Options" 
     1241msgstr "" 
     1242 
     1243#: acmethemes/customizer/options/front-page.php:19 
     1244msgid "Hide Blog Posts or Static Page on Front Page" 
     1245msgstr "" 
     1246 
    3021247#: acmethemes/customizer/options/options-panel.php:7 
    3031248msgid "Theme Options" 
     
    3081253msgstr "" 
    3091254 
    310 #: acmethemes/customizer/options/options-reset.php:45 
    311 #: acmethemes/customizer/options/options-reset.php:59 
     1255#: acmethemes/customizer/options/options-reset.php:47 
     1256#: acmethemes/customizer/options/options-reset.php:61 
    3121257msgid "Reset Options" 
    3131258msgstr "" 
    3141259 
    315 #: acmethemes/customizer/options/options-reset.php:60 
     1260#: acmethemes/customizer/options/options-reset.php:62 
    3161261msgid "" 
    3171262"Caution: Reset theme settings according to the given options. Refresh the " 
     
    3231268msgstr "" 
    3241269 
    325 #: acmethemes/customizer/single-posts/single-post-section.php:7 
    326 msgid "Single Post Options" 
    327 msgstr "" 
    328  
    329 #: acmethemes/customizer/single-posts/single-post-section.php:17 
     1270#: acmethemes/customizer/single-posts/single-post-section.php:33 
    3301271msgid "Show Related Posts In Single Post" 
     1272msgstr "" 
     1273 
     1274#: acmethemes/customizer/single-posts/single-post-section.php:47 
     1275msgid "Related Posts title" 
     1276msgstr "" 
     1277 
     1278#: acmethemes/customizer/single-posts/single-post-section.php:63 
     1279msgid "Related Post Display From Options" 
    3311280msgstr "" 
    3321281 
     
    3491298msgstr "" 
    3501299 
    351 #: acmethemes/functions.php:157 
    352 msgid "You are here" 
    353 msgstr "" 
    354  
    355 #: acmethemes/functions.php:158 
    356 msgid "Home" 
    357 msgstr "" 
    358  
    359 #: acmethemes/functions.php:159 
    360 msgid "Search Results for " 
    361 msgstr "" 
    362  
    363 #: acmethemes/functions.php:247 
    364 msgid "Posts tagged" 
    365 msgstr "" 
    366  
    367 #: acmethemes/functions.php:252 
    368 msgid "Author" 
    369 msgstr "" 
    370  
    371 #: acmethemes/functions.php:255 
    372 msgid "Error 404" 
    373 msgstr "" 
    374  
    375 #: acmethemes/functions.php:262 
    376 msgid "Page" 
    377 msgstr "" 
    378  
    3791300#: acmethemes/hooks/comment-forms.php:17 
    3801301msgid "Name" 
     
    4021323msgstr "" 
    4031324 
    404 #: acmethemes/hooks/footer.php:70 
     1325#: acmethemes/hooks/footer.php:73 
    4051326msgid "https://wordpress.org/" 
    4061327msgstr "" 
    4071328 
    408 #: acmethemes/hooks/footer.php:70 
     1329#: acmethemes/hooks/footer.php:73 
    4091330#, php-format 
    4101331msgid "Proudly powered by %s" 
    4111332msgstr "" 
    4121333 
    413 #: acmethemes/hooks/footer.php:72 
    414 #, php-format 
    415 msgid "Theme: %1$s by %2$s." 
    416 msgstr "" 
    417  
    418 #: acmethemes/hooks/header.php:118 
     1334#: acmethemes/hooks/footer.php:75 
     1335#, php-format 
     1336msgid "Theme: %1$s by %2$s" 
     1337msgstr "" 
     1338 
     1339#: acmethemes/hooks/header.php:124 
    4191340msgid "Skip to content" 
    4201341msgstr "" 
    4211342 
    422 #: acmethemes/hooks/header.php:208 
    423 msgid "Banner Ads" 
    424 msgstr "" 
    425  
    426 #: acmethemes/hooks/header.php:225 
    427 msgid "Goto Appearance > Menus -: for setting up menu " 
    428 msgstr "" 
    429  
    430 #: acmethemes/hooks/header.php:283 
     1343#: acmethemes/hooks/header.php:312 
    4311344msgid "Recent posts" 
    4321345msgstr "" 
    4331346 
    434 #: acmethemes/hooks/related-posts.php:27 
    435 msgid "Related posts" 
     1347#: acmethemes/hooks/siteorigin-panels.php:38 
     1348msgid "AT SuperNews Widgets" 
     1349msgstr "" 
     1350 
     1351#: acmethemes/library/breadcrumbs/breadcrumbs.php:244 
     1352msgid "Browse:" 
     1353msgstr "" 
     1354 
     1355#: acmethemes/library/breadcrumbs/breadcrumbs.php:245 
     1356msgctxt "breadcrumbs aria label" 
     1357msgid "Breadcrumbs" 
     1358msgstr "" 
     1359 
     1360#: acmethemes/library/breadcrumbs/breadcrumbs.php:246 
     1361msgid "Home" 
     1362msgstr "" 
     1363 
     1364#: acmethemes/library/breadcrumbs/breadcrumbs.php:247 
     1365msgid "404 Not Found" 
     1366msgstr "" 
     1367 
     1368#: acmethemes/library/breadcrumbs/breadcrumbs.php:248 
     1369msgid "Archives" 
     1370msgstr "" 
     1371 
     1372#: acmethemes/library/breadcrumbs/breadcrumbs.php:250 
     1373#, php-format 
     1374msgid "Search results for &#8220;%s&#8221;" 
     1375msgstr "" 
     1376 
     1377#: acmethemes/library/breadcrumbs/breadcrumbs.php:252 
     1378#, php-format 
     1379msgid "Page %s" 
     1380msgstr "" 
     1381 
     1382#: acmethemes/library/breadcrumbs/breadcrumbs.php:254 
     1383#, php-format 
     1384msgid "Minute %s" 
     1385msgstr "" 
     1386 
     1387#: acmethemes/library/breadcrumbs/breadcrumbs.php:256 
     1388#, php-format 
     1389msgid "Week %s" 
     1390msgstr "" 
     1391 
     1392#: acmethemes/library/breadcrumbs/breadcrumbs.php:708 
     1393msgctxt "minute and hour archives time format" 
     1394msgid "g:i a" 
     1395msgstr "" 
     1396 
     1397#: acmethemes/library/breadcrumbs/breadcrumbs.php:725 
     1398msgctxt "minute archives time format" 
     1399msgid "i" 
     1400msgstr "" 
     1401 
     1402#: acmethemes/library/breadcrumbs/breadcrumbs.php:742 
     1403msgctxt "hour archives time format" 
     1404msgid "g a" 
     1405msgstr "" 
     1406 
     1407#: acmethemes/library/breadcrumbs/breadcrumbs.php:758 
     1408#: acmethemes/library/breadcrumbs/breadcrumbs.php:787 
     1409#: acmethemes/library/breadcrumbs/breadcrumbs.php:814 
     1410#: acmethemes/library/breadcrumbs/breadcrumbs.php:841 
     1411#: acmethemes/library/breadcrumbs/breadcrumbs.php:1176 
     1412msgctxt "yearly archives date format" 
     1413msgid "Y" 
     1414msgstr "" 
     1415 
     1416#: acmethemes/library/breadcrumbs/breadcrumbs.php:759 
     1417#: acmethemes/library/breadcrumbs/breadcrumbs.php:815 
     1418#: acmethemes/library/breadcrumbs/breadcrumbs.php:1180 
     1419msgctxt "monthly archives date format" 
     1420msgid "F" 
     1421msgstr "" 
     1422 
     1423#: acmethemes/library/breadcrumbs/breadcrumbs.php:760 
     1424#: acmethemes/library/breadcrumbs/breadcrumbs.php:1184 
     1425msgctxt "daily archives date format" 
     1426msgid "j" 
     1427msgstr "" 
     1428 
     1429#: acmethemes/library/breadcrumbs/breadcrumbs.php:788 
     1430msgctxt "weekly archives date format" 
     1431msgid "W" 
     1432msgstr "" 
     1433 
     1434#: acmethemes/library/tgm/class-tgm-plugin-activation.php:327 
     1435msgid "Install Required Plugins" 
     1436msgstr "" 
     1437 
     1438#: acmethemes/library/tgm/class-tgm-plugin-activation.php:328 
     1439msgid "Install Plugins" 
     1440msgstr "" 
     1441 
     1442#: acmethemes/library/tgm/class-tgm-plugin-activation.php:330 
     1443#, php-format 
     1444msgid "Installing Plugin: %s" 
     1445msgstr "" 
     1446 
     1447#: acmethemes/library/tgm/class-tgm-plugin-activation.php:332 
     1448#, php-format 
     1449msgid "Updating Plugin: %s" 
     1450msgstr "" 
     1451 
     1452#: acmethemes/library/tgm/class-tgm-plugin-activation.php:333 
     1453msgid "Something went wrong with the plugin API." 
     1454msgstr "" 
     1455 
     1456#: acmethemes/library/tgm/class-tgm-plugin-activation.php:336 
     1457#, php-format 
     1458msgid "This theme requires the following plugin: %1$s." 
     1459msgid_plural "This theme requires the following plugins: %1$s." 
     1460msgstr[0] "" 
     1461msgstr[1] "" 
     1462 
     1463#: acmethemes/library/tgm/class-tgm-plugin-activation.php:342 
     1464#, php-format 
     1465msgid "This theme recommends the following plugin: %1$s." 
     1466msgid_plural "This theme recommends the following plugins: %1$s." 
     1467msgstr[0] "" 
     1468msgstr[1] "" 
     1469 
     1470#: acmethemes/library/tgm/class-tgm-plugin-activation.php:348 
     1471#, php-format 
     1472msgid "" 
     1473"The following plugin needs to be updated to its latest version to ensure " 
     1474"maximum compatibility with this theme: %1$s." 
     1475msgid_plural "" 
     1476"The following plugins need to be updated to their latest version to ensure " 
     1477"maximum compatibility with this theme: %1$s." 
     1478msgstr[0] "" 
     1479msgstr[1] "" 
     1480 
     1481#: acmethemes/library/tgm/class-tgm-plugin-activation.php:354 
     1482#, php-format 
     1483msgid "There is an update available for: %1$s." 
     1484msgid_plural "There are updates available for the following plugins: %1$s." 
     1485msgstr[0] "" 
     1486msgstr[1] "" 
     1487 
     1488#: acmethemes/library/tgm/class-tgm-plugin-activation.php:360 
     1489#, php-format 
     1490msgid "The following required plugin is currently inactive: %1$s." 
     1491msgid_plural "The following required plugins are currently inactive: %1$s." 
     1492msgstr[0] "" 
     1493msgstr[1] "" 
     1494 
     1495#: acmethemes/library/tgm/class-tgm-plugin-activation.php:366 
     1496#, php-format 
     1497msgid "The following recommended plugin is currently inactive: %1$s." 
     1498msgid_plural "The following recommended plugins are currently inactive: %1$s." 
     1499msgstr[0] "" 
     1500msgstr[1] "" 
     1501 
     1502#: acmethemes/library/tgm/class-tgm-plugin-activation.php:371 
     1503msgid "Begin installing plugin" 
     1504msgid_plural "Begin installing plugins" 
     1505msgstr[0] "" 
     1506msgstr[1] "" 
     1507 
     1508#: acmethemes/library/tgm/class-tgm-plugin-activation.php:376 
     1509msgid "Begin updating plugin" 
     1510msgid_plural "Begin updating plugins" 
     1511msgstr[0] "" 
     1512msgstr[1] "" 
     1513 
     1514#: acmethemes/library/tgm/class-tgm-plugin-activation.php:381 
     1515msgid "Begin activating plugin" 
     1516msgid_plural "Begin activating plugins" 
     1517msgstr[0] "" 
     1518msgstr[1] "" 
     1519 
     1520#: acmethemes/library/tgm/class-tgm-plugin-activation.php:385 
     1521msgid "Return to Required Plugins Installer" 
     1522msgstr "" 
     1523 
     1524#: acmethemes/library/tgm/class-tgm-plugin-activation.php:386 
     1525#: acmethemes/library/tgm/class-tgm-plugin-activation.php:827 
     1526#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2533 
     1527#: acmethemes/library/tgm/class-tgm-plugin-activation.php:3580 
     1528msgid "Return to the Dashboard" 
     1529msgstr "" 
     1530 
     1531#: acmethemes/library/tgm/class-tgm-plugin-activation.php:387 
     1532#: acmethemes/library/tgm/class-tgm-plugin-activation.php:3159 
     1533msgid "Plugin activated successfully." 
     1534msgstr "" 
     1535 
     1536#: acmethemes/library/tgm/class-tgm-plugin-activation.php:388 
     1537#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2952 
     1538msgid "The following plugin was activated successfully:" 
     1539msgid_plural "The following plugins were activated successfully:" 
     1540msgstr[0] "" 
     1541msgstr[1] "" 
     1542 
     1543#: acmethemes/library/tgm/class-tgm-plugin-activation.php:390 
     1544#, php-format 
     1545msgid "No action taken. Plugin %1$s was already active." 
     1546msgstr "" 
     1547 
     1548#: acmethemes/library/tgm/class-tgm-plugin-activation.php:392 
     1549#, php-format 
     1550msgid "" 
     1551"Plugin not activated. A higher version of %s is needed for this theme. " 
     1552"Please update the plugin." 
     1553msgstr "" 
     1554 
     1555#: acmethemes/library/tgm/class-tgm-plugin-activation.php:394 
     1556#, php-format 
     1557msgid "All plugins installed and activated successfully. %1$s" 
     1558msgstr "" 
     1559 
     1560#: acmethemes/library/tgm/class-tgm-plugin-activation.php:395 
     1561msgid "Dismiss this notice" 
     1562msgstr "" 
     1563 
     1564#: acmethemes/library/tgm/class-tgm-plugin-activation.php:396 
     1565msgid "" 
     1566"There are one or more required or recommended plugins to install, update or " 
     1567"activate." 
     1568msgstr "" 
     1569 
     1570#: acmethemes/library/tgm/class-tgm-plugin-activation.php:397 
     1571msgid "Please contact the administrator of this site for help." 
     1572msgstr "" 
     1573 
     1574#: acmethemes/library/tgm/class-tgm-plugin-activation.php:522 
     1575msgid "This plugin needs to be updated to be compatible with your theme." 
     1576msgstr "" 
     1577 
     1578#: acmethemes/library/tgm/class-tgm-plugin-activation.php:523 
     1579msgid "Update Required" 
     1580msgstr "" 
     1581 
     1582#: acmethemes/library/tgm/class-tgm-plugin-activation.php:934 
     1583msgid "" 
     1584"The remote plugin package does not contain a folder with the desired slug " 
     1585"and renaming did not work." 
     1586msgstr "" 
     1587 
     1588#: acmethemes/library/tgm/class-tgm-plugin-activation.php:934 
     1589#: acmethemes/library/tgm/class-tgm-plugin-activation.php:937 
     1590msgid "" 
     1591"Please contact the plugin provider and ask them to package their plugin " 
     1592"according to the WordPress guidelines." 
     1593msgstr "" 
     1594 
     1595#: acmethemes/library/tgm/class-tgm-plugin-activation.php:937 
     1596msgid "" 
     1597"The remote plugin package consists of more than one file, but the files are " 
     1598"not packaged in a folder." 
     1599msgstr "" 
     1600 
     1601#: acmethemes/library/tgm/class-tgm-plugin-activation.php:1121 
     1602#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2948 
     1603msgctxt "plugin A *and* plugin B" 
     1604msgid "and" 
     1605msgstr "" 
     1606 
     1607#: acmethemes/library/tgm/class-tgm-plugin-activation.php:1982 
     1608#, php-format 
     1609msgid "TGMPA v%s" 
     1610msgstr "" 
     1611 
     1612#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2273 
     1613msgid "Required" 
     1614msgstr "" 
     1615 
     1616#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2276 
     1617msgid "Recommended" 
     1618msgstr "" 
     1619 
     1620#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2292 
     1621msgid "WordPress Repository" 
     1622msgstr "" 
     1623 
     1624#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2295 
     1625msgid "External Source" 
     1626msgstr "" 
     1627 
     1628#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2298 
     1629msgid "Pre-Packaged" 
     1630msgstr "" 
     1631 
     1632#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2315 
     1633msgid "Not Installed" 
     1634msgstr "" 
     1635 
     1636#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2319 
     1637msgid "Installed But Not Activated" 
     1638msgstr "" 
     1639 
     1640#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2321 
     1641msgid "Active" 
     1642msgstr "" 
     1643 
     1644#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2327 
     1645msgid "Required Update not Available" 
     1646msgstr "" 
     1647 
     1648#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2330 
     1649msgid "Requires Update" 
     1650msgstr "" 
     1651 
     1652#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2333 
     1653msgid "Update recommended" 
     1654msgstr "" 
     1655 
     1656#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2342 
     1657#, php-format 
     1658msgctxt "Install/Update Status" 
     1659msgid "%1$s, %2$s" 
     1660msgstr "" 
     1661 
     1662#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2388 
     1663#, php-format 
     1664msgctxt "plugins" 
     1665msgid "All <span class=\"count\">(%s)</span>" 
     1666msgid_plural "All <span class=\"count\">(%s)</span>" 
     1667msgstr[0] "" 
     1668msgstr[1] "" 
     1669 
     1670#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2392 
     1671#, php-format 
     1672msgid "To Install <span class=\"count\">(%s)</span>" 
     1673msgid_plural "To Install <span class=\"count\">(%s)</span>" 
     1674msgstr[0] "" 
     1675msgstr[1] "" 
     1676 
     1677#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2396 
     1678#, php-format 
     1679msgid "Update Available <span class=\"count\">(%s)</span>" 
     1680msgid_plural "Update Available <span class=\"count\">(%s)</span>" 
     1681msgstr[0] "" 
     1682msgstr[1] "" 
     1683 
     1684#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2400 
     1685#, php-format 
     1686msgid "To Activate <span class=\"count\">(%s)</span>" 
     1687msgid_plural "To Activate <span class=\"count\">(%s)</span>" 
     1688msgstr[0] "" 
     1689msgstr[1] "" 
     1690 
     1691#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2482 
     1692msgctxt "as in: \"version nr unknown\"" 
     1693msgid "unknown" 
     1694msgstr "" 
     1695 
     1696#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2490 
     1697msgid "Installed version:" 
     1698msgstr "" 
     1699 
     1700#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2498 
     1701msgid "Minimum required version:" 
     1702msgstr "" 
     1703 
     1704#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2510 
     1705msgid "Available version:" 
     1706msgstr "" 
     1707 
     1708#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2533 
     1709msgid "No plugins to install, update or activate." 
     1710msgstr "" 
     1711 
     1712#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2547 
     1713msgid "Plugin" 
     1714msgstr "" 
     1715 
     1716#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2548 
     1717msgid "Source" 
     1718msgstr "" 
     1719 
     1720#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2549 
     1721msgid "Type" 
     1722msgstr "" 
     1723 
     1724#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2553 
     1725msgid "Version" 
     1726msgstr "" 
     1727 
     1728#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2554 
     1729msgid "Status" 
     1730msgstr "" 
     1731 
     1732#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2603 
     1733#, php-format 
     1734msgid "Install %2$s" 
     1735msgstr "" 
     1736 
     1737#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2608 
     1738#, php-format 
     1739msgid "Update %2$s" 
     1740msgstr "" 
     1741 
     1742#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2614 
     1743#, php-format 
     1744msgid "Activate %2$s" 
     1745msgstr "" 
     1746 
     1747#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2684 
     1748msgid "Upgrade message from the plugin author:" 
     1749msgstr "" 
     1750 
     1751#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2723 
     1752msgid "Update" 
     1753msgstr "" 
     1754 
     1755#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2757 
     1756msgid "No plugins were selected to be installed. No action taken." 
     1757msgstr "" 
     1758 
     1759#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2759 
     1760msgid "No plugins were selected to be updated. No action taken." 
     1761msgstr "" 
     1762 
     1763#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2800 
     1764msgid "No plugins are available to be installed at this time." 
     1765msgstr "" 
     1766 
     1767#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2802 
     1768msgid "No plugins are available to be updated at this time." 
     1769msgstr "" 
     1770 
     1771#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2908 
     1772msgid "No plugins were selected to be activated. No action taken." 
     1773msgstr "" 
     1774 
     1775#: acmethemes/library/tgm/class-tgm-plugin-activation.php:2934 
     1776msgid "No plugins are available to be activated at this time." 
     1777msgstr "" 
     1778 
     1779#: acmethemes/library/tgm/class-tgm-plugin-activation.php:3158 
     1780msgid "Plugin activation failed." 
     1781msgstr "" 
     1782 
     1783#: acmethemes/library/tgm/class-tgm-plugin-activation.php:3498 
     1784#, php-format 
     1785msgid "Updating Plugin %1$s (%2$d/%3$d)" 
     1786msgstr "" 
     1787 
     1788#: acmethemes/library/tgm/class-tgm-plugin-activation.php:3501 
     1789#, php-format 
     1790msgid "An error occurred while installing %1$s: <strong>%2$s</strong>." 
     1791msgstr "" 
     1792 
     1793#: acmethemes/library/tgm/class-tgm-plugin-activation.php:3503 
     1794#, php-format 
     1795msgid "The installation of %1$s failed." 
     1796msgstr "" 
     1797 
     1798#: acmethemes/library/tgm/class-tgm-plugin-activation.php:3507 
     1799msgid "" 
     1800"The installation and activation process is starting. This process may take a " 
     1801"while on some hosts, so please be patient." 
     1802msgstr "" 
     1803 
     1804#: acmethemes/library/tgm/class-tgm-plugin-activation.php:3509 
     1805#, php-format 
     1806msgid "%1$s installed and activated successfully." 
     1807msgstr "" 
     1808 
     1809#: acmethemes/library/tgm/class-tgm-plugin-activation.php:3509 
     1810#: acmethemes/library/tgm/class-tgm-plugin-activation.php:3517 
     1811msgid "Show Details" 
     1812msgstr "" 
     1813 
     1814#: acmethemes/library/tgm/class-tgm-plugin-activation.php:3509 
     1815#: acmethemes/library/tgm/class-tgm-plugin-activation.php:3517 
     1816msgid "Hide Details" 
     1817msgstr "" 
     1818 
     1819#: acmethemes/library/tgm/class-tgm-plugin-activation.php:3510 
     1820msgid "All installations and activations have been completed." 
     1821msgstr "" 
     1822 
     1823#: acmethemes/library/tgm/class-tgm-plugin-activation.php:3512 
     1824#, php-format 
     1825msgid "Installing and Activating Plugin %1$s (%2$d/%3$d)" 
     1826msgstr "" 
     1827 
     1828#: acmethemes/library/tgm/class-tgm-plugin-activation.php:3515 
     1829msgid "" 
     1830"The installation process is starting. This process may take a while on some " 
     1831"hosts, so please be patient." 
     1832msgstr "" 
     1833 
     1834#: acmethemes/library/tgm/class-tgm-plugin-activation.php:3517 
     1835#, php-format 
     1836msgid "%1$s installed successfully." 
     1837msgstr "" 
     1838 
     1839#: acmethemes/library/tgm/class-tgm-plugin-activation.php:3518 
     1840msgid "All installations have been completed." 
     1841msgstr "" 
     1842 
     1843#: acmethemes/library/tgm/class-tgm-plugin-activation.php:3520 
     1844#, php-format 
     1845msgid "Installing Plugin %1$s (%2$d/%3$d)" 
     1846msgstr "" 
     1847 
     1848#: acmethemes/metabox/metabox.php:48 acmethemes/metabox/metabox.php:57 
     1849msgid "Sidebar Layout" 
     1850msgstr "" 
     1851 
     1852#: acmethemes/metabox/metabox.php:116 
     1853msgid "Choose Sidebar Template" 
     1854msgstr "" 
     1855 
     1856#: acmethemes/metabox/metabox.php:135 
     1857msgid "You can set up the sidebar content" 
     1858msgstr "" 
     1859 
     1860#: acmethemes/metabox/metabox.php:135 
     1861msgid "here" 
    4361862msgstr "" 
    4371863 
     
    4511877 
    4521878#: acmethemes/sidebar-widget/acme-ad.php:52 
     1879#: acmethemes/sidebar-widget/acme-col-posts.php:52 
    4531880msgid "Title:" 
    4541881msgstr "" 
     
    4901917msgstr "" 
    4911918 
    492 #: acmethemes/sidebar-widget/acme-col-posts.php:29 
     1919#: acmethemes/sidebar-widget/acme-col-posts.php:32 
    4931920msgid "AT Posts Column" 
    4941921msgstr "" 
    4951922 
    496 #: acmethemes/sidebar-widget/acme-col-posts.php:31 
     1923#: acmethemes/sidebar-widget/acme-col-posts.php:34 
    4971924msgid "Show posts from selected category" 
    4981925msgstr "" 
    4991926 
    500 #: acmethemes/sidebar-widget/acme-col-posts.php:42 
     1927#: acmethemes/sidebar-widget/acme-col-posts.php:56 
    5011928msgid "Select Category" 
    5021929msgstr "" 
    5031930 
    504 #: acmethemes/sidebar-widget/acme-col-posts.php:45 
     1931#: acmethemes/sidebar-widget/acme-col-posts.php:59 
    5051932msgid "From Recent Posts" 
    5061933msgstr "" 
    5071934 
    508 #: acmethemes/sidebar-widget/acme-col-posts.php:64 
     1935#: acmethemes/sidebar-widget/acme-col-posts.php:78 
    5091936msgid "Enable Posts Featured" 
    5101937msgstr "" 
    5111938 
    512 #: acmethemes/sidebar-widget/acme-col-posts.php:68 
     1939#: acmethemes/sidebar-widget/acme-col-posts.php:82 
    5131940msgid "" 
    5141941"Note: Some of the features only work in \"Home main content area\" due to " 
     
    5161943msgstr "" 
    5171944 
    518 #: acmethemes/sidebar-widget/acme-col-posts.php:127 
    519 msgid "Recent Posts" 
     1945#: acmethemes/sidebar-widget/acme-col-posts.php:86 
     1946msgid "First Featured Post Image" 
     1947msgstr "" 
     1948 
     1949#: acmethemes/sidebar-widget/acme-col-posts.php:88 
     1950#: acmethemes/sidebar-widget/acme-col-posts.php:102 
     1951msgid "Enable First Post Featured to work this layout" 
     1952msgstr "" 
     1953 
     1954#: acmethemes/sidebar-widget/acme-col-posts.php:100 
     1955msgid "Normal Featured Post Image" 
    5201956msgstr "" 
    5211957 
     
    5361972msgstr "" 
    5371973 
    538 #: acmethemes/sidebar-widget/sidebar.php:27 
     1974#: acmethemes/sidebar-widget/sidebar.php:28 
     1975#, php-format 
     1976msgid "" 
     1977" Displays items on header area. Fit For Advertisement. You can put " 
     1978"Advertisement from %1$s here %2$s too" 
     1979msgstr "" 
     1980 
     1981#: acmethemes/sidebar-widget/sidebar.php:31 
     1982msgid "Displays items on header area. Fit For Advertisement" 
     1983msgstr "" 
     1984 
     1985#: acmethemes/sidebar-widget/sidebar.php:34 
     1986msgid "Header Area" 
     1987msgstr "" 
     1988 
     1989#: acmethemes/sidebar-widget/sidebar.php:44 
     1990msgid "Single After Content" 
     1991msgstr "" 
     1992 
     1993#: acmethemes/sidebar-widget/sidebar.php:46 
     1994msgid "Displays items on single post after content" 
     1995msgstr "" 
     1996 
     1997#: acmethemes/sidebar-widget/sidebar.php:54 
     1998msgid "Full Width Footer Area" 
     1999msgstr "" 
     2000 
     2001#: acmethemes/sidebar-widget/sidebar.php:56 
     2002msgid "Displays items on Footer area." 
     2003msgstr "" 
     2004 
     2005#: acmethemes/sidebar-widget/sidebar.php:64 
    5392006msgid "Footer Column One" 
    5402007msgstr "" 
    5412008 
    542 #: acmethemes/sidebar-widget/sidebar.php:29 
    543 #: acmethemes/sidebar-widget/sidebar.php:39 
    544 #: acmethemes/sidebar-widget/sidebar.php:49 
     2009#: acmethemes/sidebar-widget/sidebar.php:66 
     2010#: acmethemes/sidebar-widget/sidebar.php:76 
     2011#: acmethemes/sidebar-widget/sidebar.php:86 
    5452012msgid "Displays items on top footer section." 
    5462013msgstr "" 
    5472014 
    548 #: acmethemes/sidebar-widget/sidebar.php:37 
     2015#: acmethemes/sidebar-widget/sidebar.php:74 
    5492016msgid "Footer Column Two" 
    5502017msgstr "" 
    5512018 
    552 #: acmethemes/sidebar-widget/sidebar.php:47 
     2019#: acmethemes/sidebar-widget/sidebar.php:84 
    5532020msgid "Footer Column Three" 
    5542021msgstr "" 
    5552022 
    556 #: comments.php:32 
     2023#: comments.php:34 
    5572024#, php-format 
    5582025msgctxt "comments title" 
    559 msgid "One thought on &ldquo;%2$s&rdquo;" 
    560 msgid_plural "%1$s thoughts on &ldquo;%2$s&rdquo;" 
     2026msgid "One Thought to &ldquo;%s&rdquo;" 
     2027msgstr "" 
     2028 
     2029#: comments.php:39 
     2030#, php-format 
     2031msgctxt "comments title" 
     2032msgid "%1$s Thought to &ldquo;%2$s&rdquo;" 
     2033msgid_plural "%1$s Thoughts to &ldquo;%2$s&rdquo;" 
    5612034msgstr[0] "" 
    5622035msgstr[1] "" 
    5632036 
    564 #: comments.php:41 comments.php:63 
     2037#: comments.php:55 comments.php:77 
    5652038msgid "Comment navigation" 
    5662039msgstr "" 
    5672040 
    568 #: comments.php:44 comments.php:66 
     2041#: comments.php:58 comments.php:80 
    5692042msgid "Older Comments" 
    5702043msgstr "" 
    5712044 
    572 #: comments.php:45 comments.php:67 
     2045#: comments.php:59 comments.php:81 
    5732046msgid "Newer Comments" 
    5742047msgstr "" 
    5752048 
    576 #: comments.php:79 
     2049#: comments.php:93 
    5772050msgid "Comments are closed." 
    5782051msgstr "" 
     
    6062079 
    6072080#: template-parts/content-page.php:22 template-parts/content-single.php:44 
    608 #: template-parts/content.php:54 
    6092081msgid "Pages:" 
    6102082msgstr "" 
    6112083 
    612 #: template-parts/content-search.php:50 template-parts/content.php:50 
    613 msgid "Read More" 
    614 msgstr "" 
    615  
    616 #. Theme Name of the plugin/theme 
    617 msgid "SuperNews" 
    618 msgstr "" 
    619  
    6202084#. Theme URI of the plugin/theme 
    621 msgid "http://www.acmethemes.com/themes/supernews/" 
     2085msgid "https://www.acmethemes.com/themes/supernews/" 
    6222086msgstr "" 
    6232087 
     
    6272091 
    6282092#. Author URI of the plugin/theme 
    629 msgid "http://www.acmethemes.com/" 
    630 msgstr "" 
     2093msgid "https://www.acmethemes.com/" 
     2094msgstr "" 
  • supernews/1.2.0/page.php

    r83131 r83131  
    1010 * @link https://codex.wordpress.org/Template_Hierarchy 
    1111 * 
    12  * @package AcmeThemes 
     12 * @package Acme Themes 
    1313 * @subpackage SuperNews 
    1414 */ 
     
    1919        <main id="main" class="site-main"> 
    2020 
    21             <?php while ( have_posts() ) : the_post(); ?> 
     21            <?php 
     22            while ( have_posts() ) : the_post(); 
    2223 
    23                 <?php get_template_part( 'template-parts/content', 'page' ); ?> 
     24                get_template_part( 'template-parts/content', 'page' ); 
    2425 
    25                 <?php 
    2626                    // If comments are open or we have at least one comment, load up the comment template. 
    2727                    if ( comments_open() || get_comments_number() ) : 
    2828                        comments_template(); 
    2929                    endif; 
    30                 ?> 
    31  
    32             <?php endwhile; // End of the loop. ?> 
     30            endwhile; // End of the loop. ?> 
    3331 
    3432        </main><!-- #main --> 
    3533    </div><!-- #primary --> 
    36 <?php get_sidebar( 'left' ); ?> 
    37 <?php get_sidebar(); ?> 
    38 <?php get_footer(); ?> 
     34<?php 
     35get_sidebar( 'left' ); 
     36get_sidebar(); 
     37get_footer();