Make WordPress Themes

Changeset 306099


Ignore:
Timestamp:
12/29/2025 01:19:00 PM (10 months ago)
Author:
themedropbox
Message:

New version of Animal Pet Store - 3.5

Location:
animal-pet-store/3.5
Files:
5 edited
1 copied

Legend:

Unmodified
Added
Removed
  • animal-pet-store/3.5/functions.php

    r286406 r306099  
    5252        add_theme_support( 'html5', array('comment-form','comment-list','gallery','caption',) );
    5353
    54         /*
    55          * This theme styles the visual editor to resemble the theme style,
    56          * specifically font, colors, and column width.
    57          */
    58         add_editor_style( array( 'assets/css/editor-style.css', animal_pet_store_fonts_url() ) );
    59    
    6054         add_theme_support( 'custom-header', apply_filters( 'animal_pet_store_custom_header_args', array(
    6155        'default-text-color' => 'fff',
    … …  
    7569}
    7670add_action( 'after_setup_theme', 'animal_pet_store_setup' );
     71
     72// Add function after setup:
     73function animal_pet_store_conditional_editor_styles() {
     74       
     75        add_editor_style( array( 'assets/css/editor-style.css', animal_pet_store_fonts_url() ) );
     76}
     77add_action( 'after_setup_theme', 'animal_pet_store_conditional_editor_styles', 11 );
    7778
    7879/**
  • animal-pet-store/3.5/inc/customizer.php

    r299991 r306099  
    12461246            'settings' => 'animal_pet_store_footer_widget_title_color',
    12471247        )));
     1248
     1249        $wp_customize->add_setting('animal_pet_store_footer_widget_title_font_weight',array(
     1250        'default' => '',
     1251        'sanitize_callback' => 'animal_pet_store_sanitize_choices'
     1252        ));
     1253        $wp_customize->add_control('animal_pet_store_footer_widget_title_font_weight',array(
     1254     'type' => 'radio',
     1255     'label'     => __('Change Footer Widget Title Font Weight', 'animal-pet-store'),
     1256     'section' => 'animal_pet_store_footer_section',
     1257     'type' => 'select',
     1258     'choices' => array(
     1259         '100' => __('100','animal-pet-store'),
     1260         '200' => __('200','animal-pet-store'),
     1261         '300' => __('300','animal-pet-store'),
     1262         '400' => __('400','animal-pet-store'),
     1263         '500' => __('500','animal-pet-store'),
     1264         '600' => __('600','animal-pet-store'),
     1265         '700' => __('700','animal-pet-store'),
     1266         '800' => __('800','animal-pet-store'),
     1267         '900' => __('900','animal-pet-store')
     1268     ),
     1269        ) );
     1270
     1271        $wp_customize->add_setting('animal_pet_store_footer_widget_title_text_tranform',array(
     1272                'default' => '',
     1273                'sanitize_callback' => 'animal_pet_store_sanitize_choices'
     1274        ));
     1275        $wp_customize->add_control('animal_pet_store_footer_widget_title_text_tranform',array(
     1276                'type' => 'select',
     1277                'label' => __('Change Footer Widget Title Letter Case','animal-pet-store'),
     1278                'section' => 'animal_pet_store_footer_section',
     1279                'choices' => array(
     1280                   'Uppercase' => __('Uppercase','animal-pet-store'),
     1281                   'Lowercase' => __('Lowercase','animal-pet-store'),
     1282                   'Capitalize' => __('Capitalize','animal-pet-store'),
     1283                ),
     1284        ) );
     1285
     1286        // Add Settings and Controls for position
     1287        $wp_customize->add_setting('animal_pet_store_footer_widget_title_position',array(
     1288        'default' => '',
     1289        'sanitize_callback' => 'animal_pet_store_sanitize_choices'
     1290        ));
     1291        $wp_customize->add_control('animal_pet_store_footer_widget_title_position',array(
     1292        'type' => 'radio',
     1293        'label'     => __('Change Footer Widget Position', 'animal-pet-store'),
     1294        'description'   => __('This option work for Footer Widget', 'animal-pet-store'),
     1295        'section' => 'animal_pet_store_footer_section',
     1296        'choices' => array(
     1297            'Right' => __('Right','animal-pet-store'),
     1298            'Left' => __('Left','animal-pet-store'),
     1299            'Center' => __('Center','animal-pet-store')
     1300        ),
     1301        ) );
    12481302       
    12491303        $wp_customize->add_setting( 'animal_pet_store_return_to_header', array(
  • animal-pet-store/3.5/readme.txt

    r302815 r306099  
    33Tags: wide-blocks, block-styles, one-column, two-columns, right-sidebar, left-sidebar, three-columns, four-columns, grid-layout, custom-colors, custom-header, custom-background, custom-menu, custom-logo, editor-style, featured-images, featured-image-header, flexible-header, footer-widgets, full-width-template, rtl-language-support,  translation-ready, sticky-post, theme-options, post-formats, threaded-comments, photography, e-commerce, portfolio
    44Requires at least: 5.0
    5 Tested up to: 6.8
     5Tested up to: 6.9
    66Requires PHP: 5.6
    7 Stable tag: 3.4
     7Stable tag: 3.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    … …  
    224224    * Resolved theme css errors.
    225225
     226= 3.5 =
     227    * Updated to the latest WordPress version.
     228    * Added editor styles in theme functions.
     229    * Added setting to change footer widget title text transform.
     230    * Added setting to change footer widget title font weight.
     231    * Added setting to change footer widget position.
     232
    226233== Resources ==
    227234
  • animal-pet-store/3.5/style.css

    r302815 r306099  
    55Author URI: https://www.themespride.com/
    66Description: The Animal Pet Store WordPress Theme is an ideal online habitat for pet store owners, veterinarians, dog trainers, cat breeders, animal rescues, pet adoption centers, pet accessory shops, animal nutritionists, and exotic pet dealers. It’s a digital sanctuary designed to enchant pet enthusiasts, with a responsive layout that adapts to the varied screen sizes of desktops, tablets, and smartphones, ensuring a seamless user experience. This theme serves as a vibrant showcase for a wide array of pet supplies, including dog food, cat toys, aquariums, bird cages, and small mammal accessories. It’s also perfect for promoting specialized services like pet grooming, dog walking, pet sitting, Pet care products, Dog grooming, Cat litter, Aquarium maintenance, Bird feed, Small animal habitats, Pet training, Veterinary services, Pet adoption, Pet health supplements, Pet clothing, Dog collars, Cat scratching posts, Pet carriers, Pet nutrition, Pet boarding services, Pet insurance, Exotic pet supplies, Pet daycare, Pet behavior training, animal healthcare, pet boarding, and training sessions. Featuring an intuitive e-commerce setup, it’s a breeze for customers to browse and purchase products. The theme’s seamless integration with WooCommerce allows for easy management of online inventory, sales, and customer interactions. It’s also equipped with a blog section for sharing pet care tips, animal health advice, and the latest trends in pet fashion. With its SEO-friendly structure, the Animal Pet Store Theme ensures that your website ranks well in search engine results, driving more traffic and potential customers to your business. Social media integration allows for effective engagement and marketing across platforms like Facebook, Instagram, Twitter, and YouTube, widening your reach and community. The theme’s customization capabilities are extensive. Tailor it with a variety of color schemes, font styles, and layout options to mirror the unique branding and ethos of your pet business. Include features like pet adoption forms, a photo gallery of pets and products, customer testimonials, a pet care blog, interactive maps for store locations, and an events calendar for community events or pet shows. Moreover, it’s GDPR compliant, ensuring data protection and privacy for your customers. The theme is also translation-ready, making it accessible to a global audience, and includes customer support features like live chat, FAQs, and a contact form for inquiries and support. Overall, the Animal Pet Store Theme is a comprehensive digital solution for the pet industry, blending functionality, style, and user-friendliness to support the growth and success of your pet-related business.
    7 Version: 3.4
    8 Tested up to: 6.8
     7Version: 3.5
     8Tested up to: 6.9
    99Requires PHP: 5.6
    1010Requires at least: 5.0
  • animal-pet-store/3.5/tp-body-width-layout.php

    r286406 r306099  
    427427        $animal_pet_store_tp_theme_css .='}';
    428428    }
     429
     430   
     431// footer widget letter case
     432$animal_pet_store_footer_widget_title_text_tranform = get_theme_mod( 'animal_pet_store_footer_widget_title_text_tranform','');
     433if($animal_pet_store_footer_widget_title_text_tranform == 'Uppercase'){
     434$animal_pet_store_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
     435    $animal_pet_store_tp_theme_css .='text-transform: uppercase;';
     436$animal_pet_store_tp_theme_css .='}';
     437}else if($animal_pet_store_footer_widget_title_text_tranform == 'Lowercase'){
     438$animal_pet_store_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
     439    $animal_pet_store_tp_theme_css .='text-transform: lowercase;';
     440$animal_pet_store_tp_theme_css .='}';
     441}
     442else if($animal_pet_store_footer_widget_title_text_tranform == 'Capitalize'){
     443$animal_pet_store_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
     444    $animal_pet_store_tp_theme_css .='text-transform: capitalize;';
     445$animal_pet_store_tp_theme_css .='}';
     446}
     447
     448//Footer Font Weight
     449$animal_pet_store_footer_widget_title_font_weight = get_theme_mod( 'animal_pet_store_footer_widget_title_font_weight','');
     450if($animal_pet_store_footer_widget_title_font_weight == '100'){
     451$animal_pet_store_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
     452    $animal_pet_store_tp_theme_css .='font-weight: 100;';
     453$animal_pet_store_tp_theme_css .='}';
     454}else if($animal_pet_store_footer_widget_title_font_weight == '200'){
     455$animal_pet_store_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
     456    $animal_pet_store_tp_theme_css .='font-weight: 200;';
     457$animal_pet_store_tp_theme_css .='}';
     458}else if($animal_pet_store_footer_widget_title_font_weight == '300'){
     459$animal_pet_store_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
     460    $animal_pet_store_tp_theme_css .='font-weight: 300;';
     461$animal_pet_store_tp_theme_css .='}';
     462}else if($animal_pet_store_footer_widget_title_font_weight == '400'){
     463$animal_pet_store_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
     464    $animal_pet_store_tp_theme_css .='font-weight: 400;';
     465$animal_pet_store_tp_theme_css .='}';
     466}else if($animal_pet_store_footer_widget_title_font_weight == '500'){
     467$animal_pet_store_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
     468    $animal_pet_store_tp_theme_css .='font-weight: 500;';
     469$animal_pet_store_tp_theme_css .='}';
     470}else if($animal_pet_store_footer_widget_title_font_weight == '600'){
     471$animal_pet_store_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
     472    $animal_pet_store_tp_theme_css .='font-weight: 600;';
     473$animal_pet_store_tp_theme_css .='}';
     474}else if($animal_pet_store_footer_widget_title_font_weight == '700'){
     475$animal_pet_store_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
     476    $animal_pet_store_tp_theme_css .='font-weight: 700;';
     477$animal_pet_store_tp_theme_css .='}';
     478}else if($animal_pet_store_footer_widget_title_font_weight == '800'){
     479$animal_pet_store_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
     480    $animal_pet_store_tp_theme_css .='font-weight: 800;';
     481$animal_pet_store_tp_theme_css .='}';
     482}else if($animal_pet_store_footer_widget_title_font_weight == '900'){
     483$animal_pet_store_tp_theme_css .='#footer h2, #footer h3, #footer h1.wp-block-heading, #footer h2.wp-block-heading, #footer h3.wp-block-heading, #footer h4.wp-block-heading, #footer h5.wp-block-heading, #footer h6.wp-block-heading {';
     484    $animal_pet_store_tp_theme_css .='font-weight: 900;';
     485$animal_pet_store_tp_theme_css .='}';
     486}
     487
     488// footer widget position
     489$animal_pet_store_footer_widget_title_position = get_theme_mod( 'animal_pet_store_footer_widget_title_position','');
     490if($animal_pet_store_footer_widget_title_position == 'Right'){
     491$animal_pet_store_tp_theme_css .='#footer aside.widget-area{';
     492$animal_pet_store_tp_theme_css .='text-align: right;';
     493$animal_pet_store_tp_theme_css .='}';
     494}else if($animal_pet_store_footer_widget_title_position == 'Left'){
     495$animal_pet_store_tp_theme_css .='#footer aside.widget-area{';
     496$animal_pet_store_tp_theme_css .='text-align: left;';
     497$animal_pet_store_tp_theme_css .='}';
     498}else if($animal_pet_store_footer_widget_title_position == 'Center'){
     499$animal_pet_store_tp_theme_css .='#footer aside.widget-area{';
     500$animal_pet_store_tp_theme_css .='text-align: center;';
     501$animal_pet_store_tp_theme_css .='}';
     502}
Note: See TracChangeset for help on using the changeset viewer.