Make WordPress Themes

Changeset 314101


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

New version of Product Review - 1.9

Location:
product-review/1.9
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • product-review/1.9/assets/css/admin.css

    r309641 r314101  
    2626.product-review-tablinks.active {
    2727    background: #fff;
     28}
     29.actions.theme-btns{
     30    margin: 3em 0 !important;
    2831}
    2932
    … …  
    254257    margin: 10px 0;
    255258}
    256 .actions{
    257     margin: 5em 0;
    258     display: flex;
    259     align-items: center;
    260     justify-content: center;
    261 }
    262259.product-review-tablinks.active {
    263260    background: #fff !important;
    … …  
    728725    }
    729726}
     727
     728.theme-product-review #wpfooter{
     729    position: static !important;
     730    margin-left: 0 !important;
     731}
  • product-review/1.9/footer.php

    r289574 r314101  
    88
    99?>
     10<footer id="footer" class="site-footer" role="contentinfo">
     11        <?php
     12                get_template_part( 'template-parts/footer/footer', 'widgets' );
    1013
    11                 </div>
    12                 <footer id="footer" class="site-footer" role="contentinfo">
    13                         <?php
    14                                 get_template_part( 'template-parts/footer/footer', 'widgets' );
    15 
    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('product_review_return_icon','fas fa-arrow-up')); ?>"></i></a>
    20                                         </div>
    21                 </footer>
    22         </div>
    23 </div>
     14                get_template_part( 'template-parts/footer/site', 'info' );
     15        ?>
     16                        <div class="return-to-header">
     17                                <a href="javascript:" id="return-to-top"><i class="<?php echo esc_attr(get_theme_mod('product_review_return_icon','fas fa-arrow-up')); ?>"></i></a>
     18                        </div>
     19</footer>
    2420<?php wp_footer(); ?>
    2521
  • product-review/1.9/functions.php

    r309641 r314101  
    285285 */
    286286function product_review_scripts() {
     287
    287288        // Add custom fonts, used in the main stylesheet.
    288289        wp_enqueue_style( 'product-review-fonts', product_review_fonts_url(), array(), null );
    289290
    290         // owl
     291        // Owl Carousel.
    291292        wp_enqueue_style( 'owl-carousel-css', get_theme_file_uri( '/assets/css/owl.carousel.css' ) );
    292293
    293         // Bootstrap
     294        // Bootstrap.
    294295        wp_enqueue_style( 'bootstrap-css', get_theme_file_uri( '/assets/css/bootstrap.css' ) );
    295296
    296297        // Theme stylesheet.
    297298        wp_enqueue_style( 'product-review-style', get_stylesheet_uri() );
    298         require get_parent_theme_file_path( '/tp-theme-color.php' );
    299         wp_add_inline_style( 'product-review-style',$product_review_tp_theme_css );
    300         wp_style_add_data('product-review-style', 'rtl', 'replace');
    301         require get_parent_theme_file_path( '/tp-body-width-layout.php' );
    302         wp_add_inline_style( 'product-review-style',$product_review_tp_theme_css );
    303         wp_style_add_data('product-review-style', 'rtl', 'replace');
     299        wp_style_add_data( 'product-review-style', 'rtl', 'replace' );
     300
     301        /* ---------- THEME COLOR CSS (INLINE) ---------- */
     302        $product_review_tp_theme_css = '';
     303        if ( file_exists( get_parent_theme_file_path( '/tp-theme-color.php' ) ) ) {
     304                require get_parent_theme_file_path( '/tp-theme-color.php' );
     305        }
     306        if ( ! empty( $product_review_tp_theme_css ) ) {
     307                wp_add_inline_style( 'product-review-style', $product_review_tp_theme_css );
     308        }
     309
     310        /* ---------- BODY WIDTH / LAYOUT CSS (INLINE) ---------- */
     311        $product_review_tp_layout_css = '';
     312        if ( file_exists( get_parent_theme_file_path( '/tp-body-width-layout.php' ) ) ) {
     313                require get_parent_theme_file_path( '/tp-body-width-layout.php' );
     314        }
     315        if ( ! empty( $product_review_tp_layout_css ) ) {
     316                wp_add_inline_style( 'product-review-style', $product_review_tp_layout_css );
     317        }
    304318
    305319        // Theme block stylesheet.
    306         wp_enqueue_style( 'product-review-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'product-review-style' ), '1.0' );
    307 
    308         // Fontawesome
     320        wp_enqueue_style(
     321                'product-review-block-style',
     322                get_theme_file_uri( '/assets/css/blocks.css' ),
     323                array( 'product-review-style' ),
     324                '1.0'
     325        );
     326
     327        // Font Awesome.
    309328        wp_enqueue_style( 'fontawesome-css', get_theme_file_uri( '/assets/css/fontawesome-all.css' ) );
    310        
    311 
    312         wp_enqueue_script( 'product-review-custom-scripts', get_template_directory_uri() . '/assets/js/product-review-custom.js', array('jquery'), true );
    313 
    314 
    315         wp_enqueue_script( 'bootstrap-js', get_theme_file_uri( '/assets/js/bootstrap.js' ), array( 'jquery' ), true );
    316 
    317         wp_enqueue_script( 'owl-carousel-js', get_theme_file_uri( '/assets/js/owl.carousel.js' ), array( 'jquery' ), true );
    318 
    319         wp_enqueue_script( 'product-review-focus-nav', get_template_directory_uri() . '/assets/js/focus-nav.js', array('jquery'), true);
     329
     330        // Scripts.
     331        wp_enqueue_script(
     332                'product-review-custom-scripts',
     333                get_template_directory_uri() . '/assets/js/product-review-custom.js',
     334                array( 'jquery' ),
     335                null,
     336                true
     337        );
     338
     339        wp_enqueue_script(
     340                'bootstrap-js',
     341                get_theme_file_uri( '/assets/js/bootstrap.js' ),
     342                array( 'jquery' ),
     343                null,
     344                true
     345        );
     346
     347        wp_enqueue_script(
     348                'owl-carousel-js',
     349                get_theme_file_uri( '/assets/js/owl.carousel.js' ),
     350                array( 'jquery' ),
     351                null,
     352                true
     353        );
     354
     355        wp_enqueue_script(
     356                'product-review-focus-nav',
     357                get_template_directory_uri() . '/assets/js/focus-nav.js',
     358                array( 'jquery' ),
     359                null,
     360                true
     361        );
    320362
    321363        if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
    … …  
    323365        }
    324366
    325         $product_review_body_font_family = get_theme_mod('product_review_body_font_family', '');
    326 
    327         $product_review_heading_font_family = get_theme_mod('product_review_heading_font_family', '');
    328 
    329         $product_review_menu_font_family = get_theme_mod('product_review_menu_font_family', '');
    330 
    331         $product_review_tp_theme_css = '
    332                 body, p.simplep, .more-btn a{
    333                     font-family: '.esc_html($product_review_body_font_family).';
     367        /* ---------- DYNAMIC TYPOGRAPHY CSS (INLINE) ---------- */
     368        $product_review_body_font_family    = get_theme_mod( 'product_review_body_font_family', '' );
     369        $product_review_heading_font_family = get_theme_mod( 'product_review_heading_font_family', '' );
     370
     371        $product_review_dynamic_typography_css = '
     372                body, p.simplep, .more-btn a {
     373                        font-family: ' . esc_html( $product_review_body_font_family ) . ';
    334374                }
    335                 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"],
    336 #footer button[type="submit"]{
    337                     font-family: '.esc_html($product_review_heading_font_family).';
     375                h1, h2, h3, h4, h5, h6, .menubar, .logo h1, .logo p.site-title, p.simplep a,
     376                #main-slider p.slidertop-title, .more-btn a,
     377                .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button,
     378                .wc-block-cart__submit-container a,
     379                .woocommerce #respond input#submit,
     380                .woocommerce a.button,
     381                .woocommerce button.button,
     382                .woocommerce input.button,
     383                .woocommerce #respond input#submit.alt,
     384                .woocommerce a.button.alt,
     385                .woocommerce button.button.alt,
     386                .woocommerce input.button.alt,
     387                #theme-sidebar button[type="submit"],
     388                #footer button[type="submit"] {
     389                        font-family: ' . esc_html( $product_review_heading_font_family ) . ';
    338390                }
    339391        ';
    340         wp_add_inline_style('product-review-style', $product_review_tp_theme_css);
     392
     393        if ( ! empty( trim( $product_review_dynamic_typography_css ) ) ) {
     394                wp_add_inline_style( 'product-review-style', $product_review_dynamic_typography_css );
     395        }
    341396}
    342397add_action( 'wp_enqueue_scripts', 'product_review_scripts' );
  • product-review/1.9/inc/about-theme.php

    r309641 r314101  
    120120                ?>
    121121
    122                 <p class="actions">
     122                <p class="actions theme-btns">
    123123                        <a target="_blank"href="<?php echo esc_url( PRODUCT_REVIEW_FREE_THEME_URL ); ?>" class="theme-info-btn" target="_blank" target="_blank"><?php esc_html_e( 'Theme Info', 'product-review' ); ?></a>
    124124                        <a target="_blank" href="<?php echo esc_url( PRODUCT_REVIEW_DEMO_THEME_URL ); ?>" class="view-demo" target="_blank"><?php esc_html_e( 'View Demo', 'product-review' ); ?></a>
  • product-review/1.9/inc/customizer.php

    r304477 r314101  
    681681        ) );
    682682
    683         $wp_customize->add_setting('product_review_menu_font_family', array(
    684                 'default'           => '',
    685                 'capability'        => 'edit_theme_options',
    686                 'sanitize_callback' => 'product_review_sanitize_choices',
    687         ));
    688         $wp_customize->add_control(     'product_review_menu_font_family', array(
    689                 'section' => 'product_review_menu_typography',
    690                 'label'   => __('Menu Fonts', 'product-review'),
    691                 'type'    => 'select',
    692                 'choices' => $product_review_font_array,
    693         ));
    694 
    695683        $wp_customize->add_setting('product_review_menu_font_weight',array(
    696684        'default' => '',
    … …  
    14401428                ),
    14411429        ));
     1430
     1431        $wp_customize->add_setting('product_review_footer_copyright_title_font_weight',array(
     1432        'default' => '',
     1433        'sanitize_callback' => 'product_review_sanitize_choices'
     1434        ));
     1435        $wp_customize->add_control('product_review_footer_copyright_title_font_weight',array(
     1436     'type' => 'radio',
     1437     'label'     => __('Change Footer Copyright Text Font Weight', 'product-review'),
     1438     'section' => 'product_review_footer_copyright_section',
     1439     'type' => 'select',
     1440     'choices' => array(
     1441         '100' => __('100','product-review'),
     1442         '200' => __('200','product-review'),
     1443         '300' => __('300','product-review'),
     1444         '400' => __('400','product-review'),
     1445         '500' => __('500','product-review'),
     1446         '600' => __('600','product-review'),
     1447         '700' => __('700','product-review'),
     1448         '800' => __('800','product-review'),
     1449         '900' => __('900','product-review')
     1450     ),
     1451        ) );
    14421452
    14431453        $wp_customize->add_setting( 'product_review_footer_copyright_text_color', array(
  • product-review/1.9/readme.txt

    r309641 r314101  
    55Tested up to: 6.9
    66Requires PHP: 5.6
    7 Stable tag: 1.8
     7Stable tag: 1.9
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    … …  
    6565    * Added three action buttons after successful demo import.
    6666    * Fixed issues with the top notice buttons so the notice is permanently dismissed after closing.
     67
     68= 1.9 =
     69    * Fixed `product_review_scripts()` function:
     70      - Corrected multiple `wp_add_inline_style()` calls with proper handle and CSS parameters.
     71      - Removed unused `$product_review_menu_font_family` variable.
     72    * Removed multiple stray closing `div` tags causing unbalanced structure.
     73    * Resolved get started css errors.
     74    * Added font weight setting for copyright text.
    6775
    6876== Resources ==
  • product-review/1.9/style.css

    r309641 r314101  
    55Author URI: https://www.themespride.com/
    66Description: The Product Review is a multipurpose solution designed for businesses, agencies, bloggers, startups, creative professionals, affiliate marketers, review websites, eCommerce shops, online stores, product showcase platforms, portfolio designers, and individual developers who want a minimal yet elegant platform to showcase products, services, and reviews with sophistication. Its clean and modern layout ensures a beautiful user experience, while its retina-ready design makes visuals appear sharp and stunning on all devices. Built with secure and clean code, this theme guarantees faster page load time and optimized performance, making it both mobile-friendly and responsive. Whether you’re running a product review site, affiliate blog, digital store, Product comparison site, Honest product reviews, Consumer feedback platform, Tech gadget reviews, Product testing website, Customer experience blog, Best product recommendations, business portfolio, or an online agency showcase, the theme offers personalization options and customization flexibility through easy-to-use shortcodes and Bootstrap support. A dedicated testimonial section helps build trust, while banner areas, team showcases, and interactive Call to Action (CTA) buttons guide users seamlessly through your content. Social media integration ensures effortless audience engagement, and its agency-friendly structure makes it suitable for professionals who want to present their work with style. The Product Review also comes with advanced customization options to align with your brand identity. With translation-ready features, you can reach a global audience, while animated elements and interactive sections create a luxurious browsing experience. Its multipurpose design adapts beautifully to different niches, offering a professional yet user-friendly solution for content creators, affiliate reviewers, online businesses, and agencies alike. Packed with elegant layouts, stunning visuals, and powerful functionality, this theme ensures every detail reflects sophistication. From clean coding standards to optimized usability, the Product Review is crafted to help businesses and individuals create an engaging online presence with modern design and luxurious appeal, and it integrates seamlessly with the SiteOrigin Page Builder plugin for enhanced design flexibility. Demo Link – https://page.themespride.com/product-review/
    7 Version: 1.8
     7Version: 1.9
    88Tested up to: 6.9
    99Requires PHP: 5.6
  • product-review/1.9/tp-theme-color.php

    r289574 r314101  
    101101        $product_review_tp_theme_css .='}';
    102102}
     103
     104
     105//Footer Font Weight
     106$product_review_footer_copyright_title_font_weight = get_theme_mod( 'product_review_footer_copyright_title_font_weight','');
     107if($product_review_footer_copyright_title_font_weight == '100'){
     108$product_review_tp_theme_css .='#footer .site-info p {';
     109    $product_review_tp_theme_css .='font-weight: 100;';
     110$product_review_tp_theme_css .='}';
     111}else if($product_review_footer_copyright_title_font_weight == '200'){
     112$product_review_tp_theme_css .='#footer .site-info p {';
     113    $product_review_tp_theme_css .='font-weight: 200;';
     114$product_review_tp_theme_css .='}';
     115}else if($product_review_footer_copyright_title_font_weight == '300'){
     116$product_review_tp_theme_css .='#footer .site-info p {';
     117    $product_review_tp_theme_css .='font-weight: 300;';
     118$product_review_tp_theme_css .='}';
     119}else if($product_review_footer_copyright_title_font_weight == '400'){
     120$product_review_tp_theme_css .='#footer .site-info p {';
     121    $product_review_tp_theme_css .='font-weight: 400;';
     122$product_review_tp_theme_css .='}';
     123}else if($product_review_footer_copyright_title_font_weight == '500'){
     124$product_review_tp_theme_css .='#footer .site-info p {';
     125    $product_review_tp_theme_css .='font-weight: 500;';
     126$product_review_tp_theme_css .='}';
     127}else if($product_review_footer_copyright_title_font_weight == '600'){
     128$product_review_tp_theme_css .='#footer .site-info p {';
     129    $product_review_tp_theme_css .='font-weight: 600;';
     130$product_review_tp_theme_css .='}';
     131}else if($product_review_footer_copyright_title_font_weight == '700'){
     132$product_review_tp_theme_css .='#footer .site-info p {';
     133    $product_review_tp_theme_css .='font-weight: 700;';
     134$product_review_tp_theme_css .='}';
     135}else if($product_review_footer_copyright_title_font_weight == '800'){
     136$product_review_tp_theme_css .='#footer .site-info p {';
     137    $product_review_tp_theme_css .='font-weight: 800;';
     138$product_review_tp_theme_css .='}';
     139}else if($product_review_footer_copyright_title_font_weight == '900'){
     140$product_review_tp_theme_css .='#footer .site-info p {';
     141    $product_review_tp_theme_css .='font-weight: 900;';
     142$product_review_tp_theme_css .='}';
     143}
Note: See TracChangeset for help on using the changeset viewer.