WordPress.org

Make WordPress Themes

Changes from owner/1.1.2 at r85496 to owner/1.1.3 at r85496


Ignore:
Location:
owner/1.1.3
Files:
25 edited

Legend:

Unmodified
Added
Removed
  • owner/1.1.3/header.php

    r85496 r85496  
    2727<div id="page" class="site"> 
    2828    <?php do_action( 'owner_before_header' ); ?> 
    29     <?php  
    30         /** 
    31          * owner_top_header hook. 
    32          * 
    33          * @hooked owner_top_header_wrapper_start - 5 
    34          * @hooked owner_top_header_info - 10 
    35          * @hooked owner_social_icons - 15 
    36          * @hooked owner_top_header_wrapper_end - 20 
    37          */ 
    38         do_action( 'owner_top_header' );  
     29    <?php 
     30        $top_header_option = get_theme_mod( 'top_header_option', 'show' ); 
     31        if( $top_header_option == 'show' ) { 
     32            /** 
     33             * owner_top_header hook. 
     34             * 
     35             * @hooked owner_top_header_wrapper_start - 5 
     36             * @hooked owner_top_header_info - 10 
     37             * @hooked owner_social_icons - 15 
     38             * @hooked owner_top_header_wrapper_end - 20 
     39             */ 
     40            do_action( 'owner_top_header' ); 
     41        } 
    3942    ?> 
    4043 
  • owner/1.1.3/inc/customizer/header-panel.php

    r85496 r85496  
    5252 
    5353        /** 
     54         * Switch option for Top Header Section 
     55         * 
     56         * @since 1.1.3 
     57         */ 
     58        $wp_customize->add_setting( 
     59            'top_header_option', 
     60            array( 
     61                'default' => 'show', 
     62                'sanitize_callback' => 'owner_sanitize_switch_option', 
     63                ) 
     64        ); 
     65        $wp_customize->add_control( new Owner_Customize_Switch_Control( 
     66            $wp_customize,  
     67                'top_header_option',  
     68                array( 
     69                    'type'      => 'switch', 
     70                    'label'     => esc_html__( 'Top Header Option', 'owner' ), 
     71                    'description'   => esc_html__( 'Show/hide option for top header section.', 'owner' ), 
     72                    'section'   => 'top_header_section', 
     73                    'choices'   => array( 
     74                        'show'  => esc_html__( 'Show', 'owner' ), 
     75                        'hide'  => esc_html__( 'Hide', 'owner' ) 
     76                        ), 
     77                    'priority'  => 5, 
     78                ) 
     79            ) 
     80        ); 
     81 
     82        /** 
    5483         * Field for Address 
    5584         * 
     
    7099                'label' => esc_html__( 'Header Address', 'owner' ), 
    71100                'section' => 'top_header_section', 
    72                 'priority' => 5 
     101                'priority' => 10 
    73102            ) 
    74103        ); 
     
    93122                'label' => esc_html__( 'Header E-mail', 'owner' ), 
    94123                'section' => 'top_header_section', 
    95                 'priority' => 10 
     124                'priority' => 15 
    96125            ) 
    97126        ); 
     
    116145                'label' => esc_html__( 'Header Phone', 'owner' ), 
    117146                'section' => 'top_header_section', 
    118                 'priority' => 15 
     147                'priority' => 20 
    119148            ) 
    120149        ); 
    121150 
    122151        /** 
    123          * Switch option for Top Header Section 
     152         * Switch option for Top Header social icon section 
    124153         * 
    125154         * @since 1.0.0 
     
    144173                        'hide'  => esc_html__( 'Hide', 'owner' ) 
    145174                        ), 
    146                     'priority'  => 20, 
     175                    'priority'  => 25, 
    147176                ) 
    148177            ) 
  • owner/1.1.3/inc/owner-hooks.php

    r85496 r85496  
    4646if( !function_exists( 'owner_social_icons' ) ): 
    4747    function owner_social_icons() { 
     48        $top_social_option = get_theme_mod( 'top_social_option', 'show' ); 
     49        if( $top_social_option == 'hide' ) { 
     50            return; 
     51        } 
    4852        $fb_link  = get_theme_mod( 'fb_link', '' ); 
    4953        $tw_link  = get_theme_mod( 'tw_link', '' ); 
  • owner/1.1.3/languages/owner.pot

    r85496 r85496  
    44"Project-Id-Version: _s 1.0.0\n" 
    55"Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n" 
    6 "POT-Creation-Date: 2017-10-28 10:39+0000\n" 
     6"POT-Creation-Date: 2017-12-07 17:58+0000\n" 
    77"MIME-Version: 1.0\n" 
    88"Content-Type: text/plain; charset=UTF-8\n" 
     
    8080msgstr "" 
    8181 
    82 #: header.php:67 
     82#: header.php:70 
    8383#, php-format 
    8484msgid "Search Results for: %s" 
     
    462462 
    463463#: inc/customizer/customizer-sanitize.php:80 inc/customizer/footer-panel.php:71 
    464 #: inc/customizer/header-panel.php:143 inc/customizer/header-panel.php:215 
     464#: inc/customizer/header-panel.php:74 inc/customizer/header-panel.php:172 
     465#: inc/customizer/header-panel.php:244 
    465466msgid "Show" 
    466467msgstr "" 
    467468 
    468469#: inc/customizer/customizer-sanitize.php:81 inc/customizer/footer-panel.php:72 
    469 #: inc/customizer/header-panel.php:144 inc/customizer/header-panel.php:216 
     470#: inc/customizer/header-panel.php:75 inc/customizer/header-panel.php:173 
     471#: inc/customizer/header-panel.php:245 
    470472msgid "Hide" 
    471473msgstr "" 
     
    661663 
    662664#: inc/customizer/header-panel.php:70 
     665msgid "Top Header Option" 
     666msgstr "" 
     667 
     668#: inc/customizer/header-panel.php:71 
     669msgid "Show/hide option for top header section." 
     670msgstr "" 
     671 
     672#: inc/customizer/header-panel.php:99 
    663673msgid "Header Address" 
    664674msgstr "" 
    665675 
    666 #: inc/customizer/header-panel.php:93 
     676#: inc/customizer/header-panel.php:122 
    667677msgid "Header E-mail" 
    668678msgstr "" 
    669679 
    670 #: inc/customizer/header-panel.php:116 
     680#: inc/customizer/header-panel.php:145 
    671681msgid "Header Phone" 
    672682msgstr "" 
    673683 
    674 #: inc/customizer/header-panel.php:139 
     684#: inc/customizer/header-panel.php:168 
    675685msgid "Top Social Icons" 
    676686msgstr "" 
    677687 
    678 #: inc/customizer/header-panel.php:140 
     688#: inc/customizer/header-panel.php:169 
    679689msgid "Show/hide option for Social Icons at top." 
    680690msgstr "" 
    681691 
    682 #: inc/customizer/header-panel.php:159 
     692#: inc/customizer/header-panel.php:188 
    683693msgid "Additional Header Settings" 
    684694msgstr "" 
    685695 
    686 #: inc/customizer/header-panel.php:182 
     696#: inc/customizer/header-panel.php:211 
    687697msgid "Header Sticky" 
    688698msgstr "" 
    689699 
    690 #: inc/customizer/header-panel.php:183 
     700#: inc/customizer/header-panel.php:212 
    691701msgid "Enable/Disable header sticky option." 
    692702msgstr "" 
    693703 
    694 #: inc/customizer/header-panel.php:186 
     704#: inc/customizer/header-panel.php:215 
    695705msgid "Enable" 
    696706msgstr "" 
    697707 
    698 #: inc/customizer/header-panel.php:187 
     708#: inc/customizer/header-panel.php:216 
    699709msgid "Disable" 
    700710msgstr "" 
    701711 
    702 #: inc/customizer/header-panel.php:211 
     712#: inc/customizer/header-panel.php:240 
    703713msgid "Search Icon" 
    704714msgstr "" 
    705715 
    706 #: inc/customizer/header-panel.php:212 
     716#: inc/customizer/header-panel.php:241 
    707717msgid "show/hide search icon at primary menu section." 
    708718msgstr "" 
  • owner/1.1.3/readme.txt

    r85496 r85496  
    33Contributors:       Mystery Themes Team 
    44Requires at least:  WordPress 4.0 
    5 Tested up to:       WordPress 4.8 
    6 Version:            1.1.2 
     5Tested up to:       WordPress 4.9 
     6Version:            1.1.3 
    77License:            GPLv3 or later 
    88License URI:        http://www.gnu.org/licenses/gpl-3.0.html 
     
    5858== Changelog == 
    5959 
     60= 1.1.3 = 
     61    * Added show/hide features for top header section. 
     62    * Fixed the bugs at social icon section at top header section. 
     63    * Update .pot file. 
     64     
    6065= 1.1.2 = 
    6166    * Fixed premium theme link in customizer. 
  • owner/1.1.3/style.css

    r85496 r85496  
    55Author URI:     https://mysterythemes.com 
    66Description:    Owner is a powerful Free WordPress Theme which is easy to use, highly customizable and well-designed Multi-Purpose Business Theme. Theme displays your site in the best possible way on smartphones, tablets, and laptops, as well as large desktop screens. The theme include many features that was most needed for the multipurpose theme. We have great customer support via email, support forum. View full Demo here: http://demo.mysterythemes.com/owner/ | Support: https://mysterythemes.com/support/forum/themes/free-themes/ 
    7 Version:        1.1.2 
     7Version:        1.1.3 
    88License:        GNU General Public License v3 or later 
    99License URI:    http://www.gnu.org/licenses/gpl-3.0.html 
Note: See TracChangeset for help on using the changeset viewer.