Make WordPress Themes

Changeset 166955


Ignore:
Timestamp:
04/25/2022 02:09:59 PM (4 years ago)
Author:
themedropbox
Message:

New version of Bravada - 1.0.7

Location:
bravada/1.0.7
Files:
2 added
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • bravada/1.0.7/admin/options.php

    r154206 r166955  
    497497    array(
    498498    'id' => 'theme_headerfullscreen',
    499         'type' => 'toggle',
     499        'type' => 'select',
    500500        'label' => __('Fullscreen header image','bravada'),
    501         'values' => array( 1, 0 ),
     501        'values' => array( 1, 0, 2 ), // always, never, only-homepage
     502        'labels' => array( __("Always","bravada"), __("Disabled","bravada"), __("Homepage only","bravada") ),
    502503        'desc' => '',
    503504    'section' => 'theme_headercontent' ),
  • bravada/1.0.7/cryout/tgmpa-class.php

    r140838 r166955  
    22712271        protected function get_plugin_advise_type_text( $required ) {
    22722272            if ( true === $required ) {
    2273                 return __( 'Required', 'cryout' );
    2274             }
    2275 
    2276             return __( 'Recommended', 'cryout' );
     2273                return __( 'Recommended', 'cryout' );
     2274            }
     2275
     2276            return __( 'Suggested', 'cryout' );
    22772277        }
    22782278
  • bravada/1.0.7/footer.php

    r145786 r166955  
    2626                <?php cryout_master_footer_hook(); ?>
    2727            </div><!-- #footer-inside -->
    28         </div><!--#footer-top-->
     28        </div><!-- #footer-top -->
    2929        <div id="footer-bottom">
    3030            <div class="footer-inside">
    3131                <?php cryout_master_footerbottom_hook(); ?>
    3232            </div> <!-- #footer-inside -->
    33         </div><!--#footer-bottom-->
     33        </div><!-- #footer-bottom -->
    3434    </footer>
    3535</div><!-- site-wrapper -->
  • bravada/1.0.7/functions.php

    r155825 r166955  
    1111// theme identification and options management - do NOT edit unless you know what you are doing
    1212define ( "_CRYOUT_THEME_NAME", "bravada" );
    13 define ( "_CRYOUT_THEME_VERSION", "1.0.6.1" );
     13define ( "_CRYOUT_THEME_VERSION", "1.0.7" );
    1414
    1515// prefixes for theme options and functions
  • bravada/1.0.7/header.php

    r154206 r166955  
    7070                        <?php } ?>
    7171
     72                        <?php if ( bravada_check_empty_menu( 'top' ) && ( has_nav_menu( 'top' ) || ( true == cryout_get_option('theme_pagesmenu') ) ) ) { ?>
    7273                        <nav id="access" aria-label="<?php esc_attr_e( 'Top Menu', 'bravada' ) ?>" <?php cryout_schema_microdata( 'menu' ); ?>>
    7374                            <?php cryout_access_hook(); ?>
    7475                        </nav><!-- #access -->
    75 
     76                        <?php } ?>
    7677
    7778                    </div><!-- #site-header-inside -->
  • bravada/1.0.7/includes/core.php

    r155825 r166955  
    5757        'theme_lplayout',
    5858    ) );
     59   
     60    // layout needs to be filtered thorougly
     61    $options['theme_sitelayout'] = cryout_get_layout( 'theme_sitelayout' );
    5962
    6063    $width = (int)$options['theme_sitewidth'];
     
    6265    $deviation = 0.02 * $width; // content to sidebar(s) margin
    6366
    64     switch( $options['theme_sitelayout'] ) {
    65         case '2cSl': case '3cSl': case '3cSr': case '3cSs': $width -= (int)$options['theme_primarysidebar'] + $deviation; // primary sidebar
    66         case '2cSr': case '3cSl': case '3cSr': case '3cSs': $width -= (int)$options['theme_secondarysidebar'] + $deviation; break; // secondary sidebar
    67     }
     67    if ( in_array( $options['theme_sitelayout'], array( '2cSl', '3cSl', '3cSr', '3cSs' ) ) ) {  // primary sidebar
     68        $width -= (int)$options['theme_primarysidebar'] + $deviation;
     69    };
     70    if ( in_array( $options['theme_sitelayout'], array( '2cSr', '3cSl', '3cSr', '3cSs' ) ) ) {  // secondary sidebar
     71        $width -= (int)$options['theme_secondarysidebar'] + $deviation;
     72    };
    6873
    6974    if ( is_front_page() && $options['theme_landingpage'] ) {
     
    117122    }
    118123   
     124    // WooCommerce gets separate handling for its non-page sections
     125    $woo = false;
     126    $woo_featured_in_header = apply_filters( 'bravada_featured_header_in_wc', true );
     127    if ( $woo_featured_in_header && function_exists ( "is_woocommerce" ) && is_woocommerce() && ! is_singular() ) {
     128        $shop_id = wc_get_page_id( 'shop' ); // myaccount, edit_address, shop, cart, checkout, pay, view_order, terms
     129        if ( !empty( $shop_id ) ) {
     130            $post_id = $shop_id;
     131            $woo = true;
     132        }
     133    }
    119134    // default to general header image
    120135    $header_image = FALSE;
    121136    if ( get_header_image() != '' ) { $header_image = get_header_image(); }
    122137   
    123     if ( ( is_singular() || cryout_on_blog() ) && has_post_thumbnail( $post_id ) && $theme_fheader &&
     138    if ( ( is_singular() || $woo || cryout_on_blog() ) && has_post_thumbnail( $post_id ) && $theme_fheader &&
    124139        ( $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post_id ), 'bravada-header' ) )
    125140         ) :
     
    133148                    // 'full' image is large enough
    134149                    $header_image = $image[0];
    135                 } 
     150                }
    136151                // else: even 'full' image is too small, don't return an image
    137152            }
     
    654669add_action( 'template_redirect', 'cryout_ajax_init' );
    655670
     671//
    656672function bravada_check_empty_menu( $menu_id ) {
    657673    if (! has_nav_menu( $menu_id ) ) return true;
  • bravada/1.0.7/includes/custom-styles.php

    r145786 r166955  
    3838    if ( $options['theme_headerresponsive'] ) $classes[] = 'bravada-responsive-headerimage';
    3939            else $classes[] = 'bravada-cropped-headerimage';
    40     if ( $options['theme_headerfullscreen'] ) $classes[] = 'bravada-fullscreen-headerimage';
     40    if ( ( $options['theme_headerfullscreen'] == 1 ) || ( ( $options['theme_headerfullscreen'] == 2 ) && is_front_page() ) ) $classes[] = 'bravada-fullscreen-headerimage';
    4141
    4242    if ( $options['theme_fresponsive'] ) $classes[] = 'bravada-responsive-featured';
  • bravada/1.0.7/includes/setup.php

    r141147 r166955  
    269269    ) );
    270270} // bravada_main_menu()
    271 add_action ( 'cryout_mobilemenu_hook', 'bravada_main_menu' );
     271add_action( 'cryout_mobilemenu_hook', 'bravada_main_menu' );
    272272
    273273/** Header menu */
  • bravada/1.0.7/includes/styles.php

    r140334 r166955  
    125125function bravada_scripts_filter($tag) {
    126126    $defer = cryout_get_option('theme_defer');
    127     $scripts_to_defer = array( 'frontend.js', 'masonry.min.js' );
     127    $scripts_to_defer = array( 'bravada-frontend-js', 'masonry.min.js' );
    128128    foreach( $scripts_to_defer as $defer_script ) {
    129129        if( (true == strpos( $tag, $defer_script )) && $defer )
  • bravada/1.0.7/includes/tgmpa.php

    r141643 r166955  
    2424            'force_activation'   => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch.
    2525            'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins.
     26        ),
     27        array(
     28            'name'               => 'Regenerate Thumbnails',
     29            'slug'               => 'regenerate-thumbnails',
     30            'required'           => false,
     31            //'version'            => '',
     32            'force_activation'   => false,
     33            'force_deactivation' => false,
    2634        ),
    2735        /* plugin is no longer maintained
  • bravada/1.0.7/readme.txt

    r155825 r166955  
    33Contributors: Cryout Creations
    44Requires at least: 4.5
    5 Tested up to: 5.8.0
    6 Stable tag: 1.0.6.1
     5Tested up to: 5.8
     6Stable tag: 1.0.7
    77Requires PHP: 5.6
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl.html
    1010
    11 Copyright 2020-21 Cryout Creations
     11Copyright 2020-22 Cryout Creations
    1212https://www.cryoutcreations.eu/
    1313
     
    9090
    9191== Changelog ==
     92
     93= 1.0.7 =
     94*Release date: 2022.04.25*
     95
     96* Added support for using the associated featured images as header images on WooCommerce's main shop page
     97* Extended full screen header image option with homepage only setting
     98* Improved compatibility with script name collision in deferring check by increasing specificity
     99* Improved compatibility with sub-optimal SSI configurations
     100* Fixed featured images using the incorrect width in 3 post columns / left sidebar only configuration
     101* Fixed top navigation always displaying default pages menu
     102* Fixed main content incorrectly aligned on mobile devices with 3 post columns setting
    92103
    93104= 1.0.6.1 =
  • bravada/1.0.7/style.css

    r155825 r166955  
    55Author: Cryout Creations
    66Author URI: http://www.cryoutcreations.eu
    7 Version: 1.0.6.1
     7Version: 1.0.7
    88Requires at least: 4.5
    9 Tested up to: 5.8.0
     9Tested up to: 5.8
    1010Requires PHP: 5.6
    1111License: GNU General Public License v3.0
     
    39103910    position: relative;
    39113911    overflow: hidden;
     3912    text-align: center; /* for images on >1920 */
    39123913}
    39133914
     
    97599760    .cryout #container[class*="three-"] .main {
    97609761        width: 100%;
    9761         width: calc(100% - 40px);
    9762         margin-left: 20px;
    9763         margin-right: 20px;
    97649762        margin-bottom: 1.5em;
    97659763    }
Note: See TracChangeset for help on using the changeset viewer.