Changeset 166955
- Timestamp:
- 04/25/2022 02:09:59 PM (4 years ago)
- Location:
- bravada/1.0.7
- Files:
-
- 2 added
- 12 edited
- 1 copied
-
. (copied) (copied from bravada/1.0.6.1)
-
admin/options.php (modified) (1 diff)
-
cryout/tgmpa-class.php (modified) (1 diff)
-
footer.php (modified) (1 diff)
-
functions.php (modified) (1 diff)
-
header.php (modified) (1 diff)
-
includes/core.php (modified) (5 diffs)
-
includes/custom-styles.php (modified) (1 diff)
-
includes/setup.php (modified) (1 diff)
-
includes/styles.php (modified) (1 diff)
-
includes/tgmpa.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
resources/images/headers/sundown.jpg (added)
-
resources/images/slider/sundown.jpg (added)
-
style.css (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bravada/1.0.7/admin/options.php
r154206 r166955 497 497 array( 498 498 'id' => 'theme_headerfullscreen', 499 'type' => ' toggle',499 'type' => 'select', 500 500 '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") ), 502 503 'desc' => '', 503 504 'section' => 'theme_headercontent' ), -
bravada/1.0.7/cryout/tgmpa-class.php
r140838 r166955 2271 2271 protected function get_plugin_advise_type_text( $required ) { 2272 2272 if ( true === $required ) { 2273 return __( 'Re quired', 'cryout' );2274 } 2275 2276 return __( ' Recommended', 'cryout' );2273 return __( 'Recommended', 'cryout' ); 2274 } 2275 2276 return __( 'Suggested', 'cryout' ); 2277 2277 } 2278 2278 -
bravada/1.0.7/footer.php
r145786 r166955 26 26 <?php cryout_master_footer_hook(); ?> 27 27 </div><!-- #footer-inside --> 28 </div><!-- #footer-top-->28 </div><!-- #footer-top --> 29 29 <div id="footer-bottom"> 30 30 <div class="footer-inside"> 31 31 <?php cryout_master_footerbottom_hook(); ?> 32 32 </div> <!-- #footer-inside --> 33 </div><!-- #footer-bottom-->33 </div><!-- #footer-bottom --> 34 34 </footer> 35 35 </div><!-- site-wrapper --> -
bravada/1.0.7/functions.php
r155825 r166955 11 11 // theme identification and options management - do NOT edit unless you know what you are doing 12 12 define ( "_CRYOUT_THEME_NAME", "bravada" ); 13 define ( "_CRYOUT_THEME_VERSION", "1.0. 6.1" );13 define ( "_CRYOUT_THEME_VERSION", "1.0.7" ); 14 14 15 15 // prefixes for theme options and functions -
bravada/1.0.7/header.php
r154206 r166955 70 70 <?php } ?> 71 71 72 <?php if ( bravada_check_empty_menu( 'top' ) && ( has_nav_menu( 'top' ) || ( true == cryout_get_option('theme_pagesmenu') ) ) ) { ?> 72 73 <nav id="access" aria-label="<?php esc_attr_e( 'Top Menu', 'bravada' ) ?>" <?php cryout_schema_microdata( 'menu' ); ?>> 73 74 <?php cryout_access_hook(); ?> 74 75 </nav><!-- #access --> 75 76 <?php } ?> 76 77 77 78 </div><!-- #site-header-inside --> -
bravada/1.0.7/includes/core.php
r155825 r166955 57 57 'theme_lplayout', 58 58 ) ); 59 60 // layout needs to be filtered thorougly 61 $options['theme_sitelayout'] = cryout_get_layout( 'theme_sitelayout' ); 59 62 60 63 $width = (int)$options['theme_sitewidth']; … … 62 65 $deviation = 0.02 * $width; // content to sidebar(s) margin 63 66 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 }; 68 73 69 74 if ( is_front_page() && $options['theme_landingpage'] ) { … … 117 122 } 118 123 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 } 119 134 // default to general header image 120 135 $header_image = FALSE; 121 136 if ( get_header_image() != '' ) { $header_image = get_header_image(); } 122 137 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 && 124 139 ( $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post_id ), 'bravada-header' ) ) 125 140 ) : … … 133 148 // 'full' image is large enough 134 149 $header_image = $image[0]; 135 } 150 } 136 151 // else: even 'full' image is too small, don't return an image 137 152 } … … 654 669 add_action( 'template_redirect', 'cryout_ajax_init' ); 655 670 671 // 656 672 function bravada_check_empty_menu( $menu_id ) { 657 673 if (! has_nav_menu( $menu_id ) ) return true; -
bravada/1.0.7/includes/custom-styles.php
r145786 r166955 38 38 if ( $options['theme_headerresponsive'] ) $classes[] = 'bravada-responsive-headerimage'; 39 39 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'; 41 41 42 42 if ( $options['theme_fresponsive'] ) $classes[] = 'bravada-responsive-featured'; -
bravada/1.0.7/includes/setup.php
r141147 r166955 269 269 ) ); 270 270 } // bravada_main_menu() 271 add_action ( 'cryout_mobilemenu_hook', 'bravada_main_menu' );271 add_action( 'cryout_mobilemenu_hook', 'bravada_main_menu' ); 272 272 273 273 /** Header menu */ -
bravada/1.0.7/includes/styles.php
r140334 r166955 125 125 function bravada_scripts_filter($tag) { 126 126 $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' ); 128 128 foreach( $scripts_to_defer as $defer_script ) { 129 129 if( (true == strpos( $tag, $defer_script )) && $defer ) -
bravada/1.0.7/includes/tgmpa.php
r141643 r166955 24 24 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. 25 25 '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, 26 34 ), 27 35 /* plugin is no longer maintained -
bravada/1.0.7/readme.txt
r155825 r166955 3 3 Contributors: Cryout Creations 4 4 Requires at least: 4.5 5 Tested up to: 5.8 .06 Stable tag: 1.0. 6.15 Tested up to: 5.8 6 Stable tag: 1.0.7 7 7 Requires PHP: 5.6 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl.html 10 10 11 Copyright 2020-2 1Cryout Creations11 Copyright 2020-22 Cryout Creations 12 12 https://www.cryoutcreations.eu/ 13 13 … … 90 90 91 91 == 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 92 103 93 104 = 1.0.6.1 = -
bravada/1.0.7/style.css
r155825 r166955 5 5 Author: Cryout Creations 6 6 Author URI: http://www.cryoutcreations.eu 7 Version: 1.0. 6.17 Version: 1.0.7 8 8 Requires at least: 4.5 9 Tested up to: 5.8 .09 Tested up to: 5.8 10 10 Requires PHP: 5.6 11 11 License: GNU General Public License v3.0 … … 3910 3910 position: relative; 3911 3911 overflow: hidden; 3912 text-align: center; /* for images on >1920 */ 3912 3913 } 3913 3914 … … 9759 9760 .cryout #container[class*="three-"] .main { 9760 9761 width: 100%; 9761 width: calc(100% - 40px);9762 margin-left: 20px;9763 margin-right: 20px;9764 9762 margin-bottom: 1.5em; 9765 9763 }
Note: See TracChangeset
for help on using the changeset viewer.