Plugin Directory

Changeset 1903906


Ignore:
Timestamp:
07/04/2018 10:23:53 AM (8 years ago)
Author:
mythemes
Message:

Add small design improvements for Gourmand Light Plugin

Location:
gourmand-light/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • gourmand-light/trunk/configs/customize/content/settings.php

    r1892718 r1903906  
    3434        ),
    3535        'front-page-content-gradient-bkg-color' => array(
    36             'default'   => '#f6f6f6',
     36            'default'   => '#f7f7f7',
    3737            'sanitize'  => array( 'gourmand_esc', 'color' )
    3838        ),
  • gourmand-light/trunk/gourmand-light.php

    r1900982 r1903906  
    44    Plugin URI: http://mythem.es/item/gourmand/
    55    Description: This is a GPL 2 WordPress plugin. This plugin extend Gourmand free WordPress theme Core Features with many extra features and also Front Page Custom Sections.
    6     Version: 0.0.9
     6    Version: 0.0.11
    77    Author: myThem.es
    88    Author URI: http://mythem.es/
  • gourmand-light/trunk/hooks/antet.php

    r1892718 r1903906  
    237237
    238238    add_action( 'gourmand_after_title', 'gourmand_light_after_title' );
     239
     240    /**
     241     *  Page Multiple Activity
     242     */
     243
     244    function gourmand_light_body_classes( $classes )
     245    {
     246        if( gourmand_light_header::has_header() )
     247            $classes .= ' has-header';
     248
     249        return $classes;
     250    }
     251
     252    add_filter( 'gourmand_body_class', 'gourmand_light_body_classes' );
    239253?>
  • gourmand-light/trunk/includes/gourmand-light-header.php

    r1892718 r1903906  
    195195            }
    196196
     197            public static function has_header()
     198            {
     199                $rett = false;
     200
     201                if( is_page() && is_front_page() ){
     202                    //  Break if Header is disabled
     203                    $rett = gourmand_mod::get( 'header-front-page' );
     204                }
     205
     206                // for WordPress template - index.php OR front-page.php
     207                else if( is_home() ){
     208                    //  Break if Header is disabled
     209                    $rett = gourmand_mod::get( 'header-blog' );
     210                }
     211
     212                // for WordPress templates - single.php OR page.php
     213                else if( is_singular() ){
     214                    global $post;
     215
     216                    $post_type = $post -> post_type;
     217
     218                    //  Break if Header is disabled
     219                    $rett = gourmand_pro_header::singular_has_header( $post );
     220                }
     221
     222                // for WordPress template - category.php
     223                else if( is_category() ){
     224                    //  Break if Header is disabled
     225                    $rett = gourmand_mod::get( 'header-category' );
     226                }
     227
     228                // for WordPress template - tag.php
     229                else if( is_tag() ){
     230                    //  Break if Header is disabled
     231                    $rett = gourmand_mod::get( 'header-tag' );
     232                }
     233
     234                // for WordPress template - search.php
     235                else if( is_search() ){
     236                    //  Break if Header is disabled
     237                    $rett = gourmand_mod::get( 'header-search' );
     238                }
     239
     240                // for WordPress template - author.php
     241                else if( is_author() ){
     242                    //  Break if Header is disabled
     243                    $rett = gourmand_mod::get( 'header-author' );
     244                }
     245
     246                // for WordPress template - 404.php
     247                else if( is_404() ){
     248                    //  Break if Header is disabled
     249                    $rett = gourmand_mod::get( 'header-404' );
     250                }
     251
     252                // for WordPress template - archive.php
     253                else{
     254                    //  Break if Header is disabled
     255                    $rett = gourmand_mod::get( 'header-archive' );
     256                }
     257
     258                return (bool)$rett;
     259            }
     260
    197261            public static function is_nav_over_banner()
    198262            {
  • gourmand-light/trunk/languages/gourmand-light.pot

    r1900982 r1903906  
    44"Project-Id-Version: Gourmand Light\n"
    55"Report-Msgid-Bugs-To: \n"
    6 "POT-Creation-Date: 2018-06-29 07:55+0000\n"
     6"POT-Creation-Date: 2018-07-04 10:19+0000\n"
    77"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    88"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    19471947msgstr ""
    19481948
    1949 #: settings/customize/content.php:90
    1950 msgid "Top and Bottom inner Section Space."
    1951 msgstr ""
    1952 
    19531949#: includes/customize/partials/gourmand-light-customize-partial.php:564
    19541950msgid "Top and Bottom inner Section space."
     1951msgstr ""
     1952
     1953#: settings/customize/content.php:90
     1954msgid "Top and Bottom inner Sections Space."
    19551955msgstr ""
    19561956
  • gourmand-light/trunk/readme.txt

    r1900982 r1903906  
    66Requires at least: 4.6
    77Tested up to: 4.9
    8 Stable tag: 0.0.9
     8Stable tag: 0.0.11
    99License: GPLv2
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3737
    3838== Changelog ==
     39
     40= 0.0.11 =
     41* Header Design Improvements ( remove bottom border if exists header )
    3942
    4043= 0.0.9 =
  • gourmand-light/trunk/settings/customize/content.php

    r1900066 r1903906  
    8888                            'type'          => 'number',
    8989                            'label'         => __( 'Space', 'gourmand-light' ),
    90                             'description'   => __( 'Top and Bottom inner Section Space.', 'gourmand-light' ),
     90                            'description'   => __( 'Top and Bottom inner Sections Space.', 'gourmand-light' ),
    9191                            'attrs'         => array(
    9292                                'min'   => 40,
Note: See TracChangeset for help on using the changeset viewer.