Make WordPress Themes

Changeset 314102


Ignore:
Timestamp:
02/18/2026 12:45:54 PM (8 months ago)
Author:
themedropbox
Message:

New version of Bakery Patisserie Shop - 1.6

Location:
bakery-patisserie-shop/1.6
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • bakery-patisserie-shop/1.6/assets/css/admin.css

    r309642 r314102  
    2727    background: #fff;
    2828}
    29 
     29.actions.theme-btns{
     30    margin: 3em 0 !important;
     31}
    3032/** Theme button css */
    3133.actions a {
    … …  
    255257}
    256258.actions{
    257     margin: 5em 0;
    258259    display: flex;
    259260    align-items: center;
    260     justify-content: center;
    261261}
    262262.bakery-patisserie-shop-tablinks.active {
    … …  
    728728    }
    729729}
     730
     731.theme-bakery-patisserie-shop #wpfooter{
     732    position: static !important;
     733    margin-left: 0 !important;
     734}
  • bakery-patisserie-shop/1.6/footer.php

    r295717 r314102  
    99?>
    1010
    11                 </div>
    12                 <footer id="footer" class="site-footer" role="contentinfo">
    13                         <?php
    14                                 get_template_part( 'template-parts/footer/footer', 'widgets' );
     11<footer id="footer" class="site-footer" role="contentinfo">
     12        <?php
     13                get_template_part( 'template-parts/footer/footer', 'widgets' );
    1514
    16                                 get_template_part( 'template-parts/footer/site', 'info' );
    17                         ?>
    18                                         <div class="return-to-header">
    19                                                 <a href="javascript:" id="return-to-top"><i class="<?php echo esc_attr(get_theme_mod('bakery_patisserie_shop_return_icon','fas fa-arrow-up')); ?>"></i></a>
    20                                         </div>
    21                 </footer>
    22         </div>
    23 </div>
     15                get_template_part( 'template-parts/footer/site', 'info' );
     16        ?>
     17                        <div class="return-to-header">
     18                                <a href="javascript:" id="return-to-top"><i class="<?php echo esc_attr(get_theme_mod('bakery_patisserie_shop_return_icon','fas fa-arrow-up')); ?>"></i></a>
     19                        </div>
     20</footer>
    2421<?php wp_footer(); ?>
    2522
  • bakery-patisserie-shop/1.6/functions.php

    r309642 r314102  
    288288 */
    289289function bakery_patisserie_shop_scripts() {
     290
    290291        // Add custom fonts, used in the main stylesheet.
    291292        wp_enqueue_style( 'bakery-patisserie-shop-fonts', bakery_patisserie_shop_fonts_url(), array(), null );
    292293
    293         // owl
     294        // Owl Carousel.
    294295        wp_enqueue_style( 'owl-carousel-css', get_theme_file_uri( '/assets/css/owl.carousel.css' ) );
    295296
    296         // Bootstrap
     297        // Bootstrap.
    297298        wp_enqueue_style( 'bootstrap-css', get_theme_file_uri( '/assets/css/bootstrap.css' ) );
    298299
    299300        // Theme stylesheet.
    300301        wp_enqueue_style( 'bakery-patisserie-shop-style', get_stylesheet_uri() );
    301         require get_parent_theme_file_path( '/tp-theme-color.php' );
    302         wp_add_inline_style( 'bakery-patisserie-shop-style',$bakery_patisserie_shop_tp_theme_css );
    303         wp_style_add_data('bakery-patisserie-shop-style', 'rtl', 'replace');
    304         require get_parent_theme_file_path( '/tp-body-width-layout.php' );
    305         wp_add_inline_style( 'bakery-patisserie-shop-style',$bakery_patisserie_shop_tp_theme_css );
    306         wp_style_add_data('bakery-patisserie-shop-style', 'rtl', 'replace');
     302        wp_style_add_data( 'bakery-patisserie-shop-style', 'rtl', 'replace' );
     303
     304        /* ---------- THEME COLOR CSS (INLINE) ---------- */
     305        $bakery_patisserie_shop_tp_theme_css = '';
     306        if ( file_exists( get_parent_theme_file_path( '/tp-theme-color.php' ) ) ) {
     307                require get_parent_theme_file_path( '/tp-theme-color.php' );
     308        }
     309        if ( ! empty( $bakery_patisserie_shop_tp_theme_css ) ) {
     310                wp_add_inline_style( 'bakery-patisserie-shop-style', $bakery_patisserie_shop_tp_theme_css );
     311        }
     312
     313        /* ---------- BODY WIDTH / LAYOUT CSS (INLINE) ---------- */
     314        $bakery_patisserie_shop_tp_layout_css = '';
     315        if ( file_exists( get_parent_theme_file_path( '/tp-body-width-layout.php' ) ) ) {
     316                require get_parent_theme_file_path( '/tp-body-width-layout.php' );
     317        }
     318        if ( ! empty( $bakery_patisserie_shop_tp_layout_css ) ) {
     319                wp_add_inline_style( 'bakery-patisserie-shop-style', $bakery_patisserie_shop_tp_layout_css );
     320        }
    307321
    308322        // Theme block stylesheet.
    309         wp_enqueue_style( 'bakery-patisserie-shop-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'bakery-patisserie-shop-style' ), '1.0' );
    310 
    311         // Fontawesome
     323        wp_enqueue_style(
     324                'bakery-patisserie-shop-block-style',
     325                get_theme_file_uri( '/assets/css/blocks.css' ),
     326                array( 'bakery-patisserie-shop-style' ),
     327                '1.0'
     328        );
     329
     330        // Font Awesome.
    312331        wp_enqueue_style( 'fontawesome-css', get_theme_file_uri( '/assets/css/fontawesome-all.css' ) );
    313        
    314 
    315         wp_enqueue_script( 'bakery-patisserie-shop-custom-scripts', get_template_directory_uri() . '/assets/js/bakery-patisserie-shop-custom.js', array('jquery'), true );
    316 
    317 
    318         wp_enqueue_script( 'bootstrap-js', get_theme_file_uri( '/assets/js/bootstrap.js' ), array( 'jquery' ), true );
    319 
    320         wp_enqueue_script( 'owl-carousel-js', get_theme_file_uri( '/assets/js/owl.carousel.js' ), array( 'jquery' ), true );
    321 
    322         wp_enqueue_script( 'bakery-patisserie-shop-focus-nav', get_template_directory_uri() . '/assets/js/focus-nav.js', array('jquery'), true);
     332
     333        // Scripts.
     334        wp_enqueue_script(
     335                'bakery-patisserie-shop-custom-scripts',
     336                get_template_directory_uri() . '/assets/js/bakery-patisserie-shop-custom.js',
     337                array( 'jquery' ),
     338                null,
     339                true
     340        );
     341
     342        wp_enqueue_script(
     343                'bootstrap-js',
     344                get_theme_file_uri( '/assets/js/bootstrap.js' ),
     345                array( 'jquery' ),
     346                null,
     347                true
     348        );
     349
     350        wp_enqueue_script(
     351                'owl-carousel-js',
     352                get_theme_file_uri( '/assets/js/owl.carousel.js' ),
     353                array( 'jquery' ),
     354                null,
     355                true
     356        );
     357
     358        wp_enqueue_script(
     359                'bakery-patisserie-shop-focus-nav',
     360                get_template_directory_uri() . '/assets/js/focus-nav.js',
     361                array( 'jquery' ),
     362                null,
     363                true
     364        );
    323365
    324366        if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
    … …  
    326368        }
    327369
    328         $bakery_patisserie_shop_body_font_family = get_theme_mod('bakery_patisserie_shop_body_font_family', '');
    329 
    330         $bakery_patisserie_shop_heading_font_family = get_theme_mod('bakery_patisserie_shop_heading_font_family', '');
    331 
    332         $bakery_patisserie_shop_menu_font_family = get_theme_mod('bakery_patisserie_shop_menu_font_family', '');
    333 
    334         $bakery_patisserie_shop_tp_theme_css = '
    335                 body, p.simplep, .more-btn a{
    336                     font-family: '.esc_html($bakery_patisserie_shop_body_font_family).';
     370        /* ---------- DYNAMIC TYPOGRAPHY CSS (INLINE) ---------- */
     371        $bakery_patisserie_shop_body_font_family    = get_theme_mod( 'bakery_patisserie_shop_body_font_family', '' );
     372        $bakery_patisserie_shop_heading_font_family = get_theme_mod( 'bakery_patisserie_shop_heading_font_family', '' );
     373
     374        $bakery_patisserie_shop_dynamic_typography_css = '
     375                body, p.simplep, .more-btn a {
     376                        font-family: ' . esc_html( $bakery_patisserie_shop_body_font_family ) . ';
    337377                }
    338                 h1,h2, h3, h4, h5, h6, .menubar,.logo h1, .logo p.site-title, p.simplep a, #main-slider p.slidertop-title, .more-btn a,.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button,.wc-block-cart__submit-container a,.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,.woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, #theme-sidebar button[type="submit"],
    339 #footer button[type="submit"]{
    340                     font-family: '.esc_html($bakery_patisserie_shop_heading_font_family).';
     378                h1, h2, h3, h4, h5, h6, .menubar, .logo h1, .logo p.site-title, p.simplep a,
     379                #main-slider p.slidertop-title, .more-btn a,
     380                .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button,
     381                .wc-block-cart__submit-container a,
     382                .woocommerce #respond input#submit,
     383                .woocommerce a.button,
     384                .woocommerce button.button,
     385                .woocommerce input.button,
     386                .woocommerce #respond input#submit.alt,
     387                .woocommerce a.button.alt,
     388                .woocommerce button.button.alt,
     389                .woocommerce input.button.alt,
     390                #theme-sidebar button[type="submit"],
     391                #footer button[type="submit"] {
     392                        font-family: ' . esc_html( $bakery_patisserie_shop_heading_font_family ) . ';
    341393                }
    342394        ';
    343         wp_add_inline_style('bakery-patisserie-shop-style', $bakery_patisserie_shop_tp_theme_css);
     395
     396        if ( ! empty( trim( $bakery_patisserie_shop_dynamic_typography_css ) ) ) {
     397                wp_add_inline_style( 'bakery-patisserie-shop-style', $bakery_patisserie_shop_dynamic_typography_css );
     398        }
    344399}
    345400add_action( 'wp_enqueue_scripts', 'bakery_patisserie_shop_scripts' );
  • bakery-patisserie-shop/1.6/inc/about-theme.php

    r309642 r314102  
    120120                ?>
    121121
    122                 <p class="actions">
     122                <p class="actions theme-btns">
    123123                        <a target="_blank"href="<?php echo esc_url( BAKERY_PATISSERIE_SHOP_FREE_THEME_URL ); ?>" class="theme-info-btn" target="_blank" target="_blank"><?php esc_html_e( 'Theme Info', 'bakery-patisserie-shop' ); ?></a>
    124124                        <a target="_blank" href="<?php echo esc_url( BAKERY_PATISSERIE_SHOP_DEMO_THEME_URL ); ?>" class="view-demo" target="_blank"><?php esc_html_e( 'View Demo', 'bakery-patisserie-shop' ); ?></a>
  • bakery-patisserie-shop/1.6/inc/customizer.php

    r304478 r314102  
    692692        ) );
    693693
    694         $wp_customize->add_setting('bakery_patisserie_shop_menu_font_family', array(
    695                 'default'           => '',
    696                 'capability'        => 'edit_theme_options',
    697                 'sanitize_callback' => 'bakery_patisserie_shop_sanitize_choices',
    698         ));
    699         $wp_customize->add_control(     'bakery_patisserie_shop_menu_font_family', array(
    700                 'section' => 'bakery_patisserie_shop_menu_typography',
    701                 'label'   => __('Menu Fonts', 'bakery-patisserie-shop'),
    702                 'type'    => 'select',
    703                 'choices' => $bakery_patisserie_shop_font_array,
    704         ));
    705 
    706694        $wp_customize->add_setting('bakery_patisserie_shop_menu_font_weight',array(
    707695        'default' => '',
    … …  
    12641252        ));
    12651253
     1254        $wp_customize->add_setting('bakery_patisserie_shop_footer_copyright_title_font_weight',array(
     1255        'default' => '',
     1256        'sanitize_callback' => 'bakery_patisserie_shop_sanitize_choices'
     1257        ));
     1258        $wp_customize->add_control('bakery_patisserie_shop_footer_copyright_title_font_weight',array(
     1259     'type' => 'radio',
     1260     'label'     => __('Change Footer Copyright Text Font Weight', 'bakery-patisserie-shop'),
     1261     'section' => 'bakery_patisserie_shop_footer_copyright_section',
     1262     'type' => 'select',
     1263     'choices' => array(
     1264         '100' => __('100','bakery-patisserie-shop'),
     1265         '200' => __('200','bakery-patisserie-shop'),
     1266         '300' => __('300','bakery-patisserie-shop'),
     1267         '400' => __('400','bakery-patisserie-shop'),
     1268         '500' => __('500','bakery-patisserie-shop'),
     1269         '600' => __('600','bakery-patisserie-shop'),
     1270         '700' => __('700','bakery-patisserie-shop'),
     1271         '800' => __('800','bakery-patisserie-shop'),
     1272         '900' => __('900','bakery-patisserie-shop')
     1273     ),
     1274        ) );
     1275
    12661276        $wp_customize->add_setting( 'bakery_patisserie_shop_footer_copyright_text_color', array(
    12671277            'default' => '',
  • bakery-patisserie-shop/1.6/readme.txt

    r309642 r314102  
    55Tested up to: 6.9
    66Requires PHP: 5.6
    7 Stable tag: 1.5
     7Stable tag: 1.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    … …  
    5757    * Added three action buttons after successful demo import.
    5858    * Fixed issues with the top notice buttons so the notice is permanently dismissed after closing.
     59
     60= 1.6 =
     61    * Fixed `bakery_patisserie_shop_scripts()` function:
     62      - Corrected multiple `wp_add_inline_style()` calls with proper handle and CSS parameters.
     63      - Removed unused `$bakery_patisserie_shop_menu_font_family` variable.
     64    * Removed multiple stray closing `div` tags causing unbalanced structure.
     65    * Resolved get started css errors.
     66    * Added font weight setting for copyright text.
    5967
    6068== Resources ==
  • bakery-patisserie-shop/1.6/style.css

    r309642 r314102  
    55Author URI: https://www.themespride.com/
    66Description:The Bakery Patisserie Shop Theme is a beautifully crafted theme designed for bakeries, patisseries, cake shops, and dessert cafés aiming to showcase their delicious creations online. This responsive and SEO-friendly theme offers an elegant layout that highlights your bakery products, pastries, Bakery paid ads solutions, Bakery performance solutions, Bakery CRO services and confectionery items in the most appetizing way. Whether you run a local bakery, cupcake shop, or pastry boutique, this theme provides all the essential features to build an engaging and professional online presence. The customizable homepage, interactive gallery, and product showcase sections allow you to present your bakery menu, daily specials, and signature desserts with ease. Built on the powerful Gutenberg editor, the Bakery and Patisserie Shop theme supports easy drag-and-drop customization. Its lightweight and optimized design ensures fast loading speed and excellent performance on all devices. You can also integrate WooCommerce to enable online ordering, payment options, and delivery services for your patisserie shop. With user-friendly navigation, beautiful typography, and pastel color palettes, this theme reflects the charm of your bakery business. Perfect for bakers, café owners, chocolatiers, and dessert artisans, the Bakery and Patisserie Shop Theme helps you attract more visitors and convert them into loyal customers. Bring your baking passion to life with a visually appealing and feature-rich design that perfectly represents your brand’s sweet offerings online. Demo Link - https://page.themespride.com/bakery-and-patisserie-shop/
    7 Version: 1.5
     7Version: 1.6
    88Tested up to: 6.9
    99Requires PHP: 5.6
  • bakery-patisserie-shop/1.6/tp-theme-color.php

    r295717 r314102  
    109109        $bakery_patisserie_shop_tp_theme_css .='}';
    110110}
     111
     112//Footer Font Weight
     113$bakery_patisserie_shop_footer_copyright_title_font_weight = get_theme_mod( 'bakery_patisserie_shop_footer_copyright_title_font_weight','');
     114if($bakery_patisserie_shop_footer_copyright_title_font_weight == '100'){
     115$bakery_patisserie_shop_tp_theme_css .='#footer .site-info p {';
     116    $bakery_patisserie_shop_tp_theme_css .='font-weight: 100;';
     117$bakery_patisserie_shop_tp_theme_css .='}';
     118}else if($bakery_patisserie_shop_footer_copyright_title_font_weight == '200'){
     119$bakery_patisserie_shop_tp_theme_css .='#footer .site-info p {';
     120    $bakery_patisserie_shop_tp_theme_css .='font-weight: 200;';
     121$bakery_patisserie_shop_tp_theme_css .='}';
     122}else if($bakery_patisserie_shop_footer_copyright_title_font_weight == '300'){
     123$bakery_patisserie_shop_tp_theme_css .='#footer .site-info p {';
     124    $bakery_patisserie_shop_tp_theme_css .='font-weight: 300;';
     125$bakery_patisserie_shop_tp_theme_css .='}';
     126}else if($bakery_patisserie_shop_footer_copyright_title_font_weight == '400'){
     127$bakery_patisserie_shop_tp_theme_css .='#footer .site-info p {';
     128    $bakery_patisserie_shop_tp_theme_css .='font-weight: 400;';
     129$bakery_patisserie_shop_tp_theme_css .='}';
     130}else if($bakery_patisserie_shop_footer_copyright_title_font_weight == '500'){
     131$bakery_patisserie_shop_tp_theme_css .='#footer .site-info p {';
     132    $bakery_patisserie_shop_tp_theme_css .='font-weight: 500;';
     133$bakery_patisserie_shop_tp_theme_css .='}';
     134}else if($bakery_patisserie_shop_footer_copyright_title_font_weight == '600'){
     135$bakery_patisserie_shop_tp_theme_css .='#footer .site-info p {';
     136    $bakery_patisserie_shop_tp_theme_css .='font-weight: 600;';
     137$bakery_patisserie_shop_tp_theme_css .='}';
     138}else if($bakery_patisserie_shop_footer_copyright_title_font_weight == '700'){
     139$bakery_patisserie_shop_tp_theme_css .='#footer .site-info p {';
     140    $bakery_patisserie_shop_tp_theme_css .='font-weight: 700;';
     141$bakery_patisserie_shop_tp_theme_css .='}';
     142}else if($bakery_patisserie_shop_footer_copyright_title_font_weight == '800'){
     143$bakery_patisserie_shop_tp_theme_css .='#footer .site-info p {';
     144    $bakery_patisserie_shop_tp_theme_css .='font-weight: 800;';
     145$bakery_patisserie_shop_tp_theme_css .='}';
     146}else if($bakery_patisserie_shop_footer_copyright_title_font_weight == '900'){
     147$bakery_patisserie_shop_tp_theme_css .='#footer .site-info p {';
     148    $bakery_patisserie_shop_tp_theme_css .='font-weight: 900;';
     149$bakery_patisserie_shop_tp_theme_css .='}';
     150}
Note: See TracChangeset for help on using the changeset viewer.