Plugin Directory

Changeset 2239593


Ignore:
Timestamp:
02/06/2020 10:07:20 AM (6 years ago)
Author:
obox
Message:

Added full WooCommerce customiser support

Location:
obox-mobile
Files:
124 added
8 edited

Legend:

Unmodified
Added
Removed
  • obox-mobile/trunk/admin/config/options.php

    r2213386 r2239593  
    435435                ),// Header
    436436
    437 
    438437                array(
    439438                    "main_section" => "Body",
    440439                    "sub_elements" => array(
    441440                        array(
    442                             "label" => "Body Font",
     441                            "label" => "Fonts",
    443442                            "description" => '',
    444443                            "name" => "body_fonts",
     
    454453                        ),
    455454                        array(
    456                             "label" => "Body Background",
     455                            "label" => "Background",
    457456                            "description" => '',
    458457                            "name" => "post_bg_color",
     
    519518                        ),
    520519                        array(
     520                            "label" => "Breadcrumbs",
     521                            "description" => '',
     522                            "name" => "breadcrumbs",
     523                            "default" => "#",
     524                            "id" => "breadcrumbs",
     525                            "input_type" => "colour",
     526                            "selector" => ".bread-crumbs li a",
     527                            "effect" => 'color'
     528                        ),
     529                        array(
    521530                            "label" => "Post Meta",
    522531                            "description" => '',
     
    578587                    )
    579588                ),// Body
     589
     590                array(
     591                    "main_section" => "WooCommerce",
     592                    "sub_elements" => array(
     593                        array(
     594                            "label" => "Catalogue Titles",
     595                            "description" => '',
     596                            "name" => "woo_archive_product_title",
     597                            "default" => "#",
     598                            "id" => "woo_archive_product_title",
     599                            "input_type" => "colour",
     600                            "selector" => ".woocommerce-loop-product__title",
     601                            "effect" => 'color'
     602                        ),
     603                        array(
     604                            "label" => "Catalogue Pricing",
     605                            "description" => '',
     606                            "name" => "woo_archive_price",
     607                            "default" => "#",
     608                            "id" => "woo_archive_price",
     609                            "input_type" => "colour",
     610                            "selector" => ".archive .price .woocommerce-Price-amount.amount",
     611                            "effect" => 'color'
     612                        ),
     613                        array(
     614                            "label" => "Catalogue Tile Background",
     615                            "description" => '',
     616                            "name" => "woo_archive_tile",
     617                            "default" => "#",
     618                            "id" => "woo_archive_tile",
     619                            "input_type" => "colour",
     620                            "selector" => ".archive .products li",
     621                            "effect" => 'background-color',
     622                            "pro" => true
     623                        ), 
     624                        array(
     625                            "label" => "Catalogue Btn Background",
     626                            "description" => '',
     627                            "name" => "woo_archive_button_background",
     628                            "default" => "#",
     629                            "id" => "woo_archive_button_background",
     630                            "input_type" => "colour",
     631                            "selector" => ".archive .products li .add_to_cart_button,.archive .products li .button.product_type_variable",
     632                            "effect" => 'background-color',
     633                            "pro" => true
     634                        ),     
     635                        array(
     636                            "label" => "Catalogue Btn Text",
     637                            "description" => '',
     638                            "name" => "woo_archive_button_text",
     639                            "default" => "#",
     640                            "id" => "woo_archive_button_text",
     641                            "input_type" => "colour",
     642                            "selector" => ".archive .products li .add_to_cart_button",
     643                            "effect" => 'color',
     644                            "pro" => true
     645                        ),
     646                        array(
     647                            "label" => "Product Title",
     648                            "description" => '',
     649                            "name" => "woo_single_product_title",
     650                            "default" => "#",
     651                            "id" => "woo_single_product_title",
     652                            "input_type" => "colour",
     653                            "selector" => "h1.product_title",
     654                            "effect" => 'color'
     655                        ),                     
     656                        array(
     657                            "label" => "Product Pricing",
     658                            "description" => '',
     659                            "name" => "woo_single_product_price",
     660                            "default" => "#",
     661                            "id" => "woo_single_product_price",
     662                            "input_type" => "colour",
     663                            "selector" => ".single .price .woocommerce-Price-amount.amount",
     664                            "effect" => 'color'
     665                        ),
     666                        array(
     667                            "label" => "Product Short Description",
     668                            "description" => '',
     669                            "name" => "woo_short_description",
     670                            "default" => "#",
     671                            "id" => "woo_short_description",
     672                            "input_type" => "colour",
     673                            "selector" => ".single .woocommerce-product-details__short-description p",
     674                            "effect" => 'color',
     675                            "pro" => true
     676                        ),
     677
     678                        array(
     679                            "label" => "Product Btn Background",
     680                            "description" => '',
     681                            "name" => "woo_single_button_background",
     682                            "default" => "#",
     683                            "id" => "woo_single_button_background",
     684                            "input_type" => "colour",
     685                            "selector" => ".single .cart .button",
     686                            "effect" => 'background-color',
     687                            "pro" => true
     688                        ),     
     689                        array(
     690                            "label" => "Product Btn Text",
     691                            "description" => '',
     692                            "name" => "woo_single_button_text",
     693                            "default" => "#",
     694                            "id" => "woo_single_button_text",
     695                            "input_type" => "colour",
     696                            "selector" => ".single .cart .button",
     697                            "effect" => 'color',
     698                            "pro" => true
     699                        ),     
     700
     701                        array(
     702                            "label" => "Tab Btn Background",
     703                            "description" => '',
     704                            "name" => "woo_tab_button_background",
     705                            "default" => "#",
     706                            "id" => "woo_tab_button_background",
     707                            "input_type" => "colour",
     708                            "selector" => ".woocommerce .woocommerce-tabs ul.tabs li:not(.active)",
     709                            "effect" => 'background-color',
     710                            "pro" => true
     711                        ),     
     712                        array(
     713                            "label" => "Active Tab Btn Background",
     714                            "description" => '',
     715                            "name" => "woo_tab_button_background",
     716                            "default" => "#",
     717                            "id" => "woo_tab_button_background",
     718                            "input_type" => "colour",
     719                            "selector" => ".woocommerce .woocommerce-tabs ul.tabs li.active",
     720                            "effect" => 'background-color',
     721                            "pro" => true
     722                        ),     
     723                        array(
     724                            "label" => "Tab Btn Text",
     725                            "description" => '',
     726                            "name" => "woo_tab_button_text",
     727                            "default" => "#",
     728                            "id" => "woo_tab_button_text",
     729                            "input_type" => "colour",
     730                            "selector" => ".woocommerce .woocommerce-tabs ul.tabs li a",
     731                            "effect" => 'color',
     732                            "pro" => true
     733                        ), 
     734                        array(
     735                            "label" => "Tab Body Text",
     736                            "description" => '',
     737                            "name" => "woo_tab_body_text",
     738                            "default" => "#",
     739                            "id" => "woo_tab_body_text",
     740                            "input_type" => "colour",
     741                            "selector" => ".woocommerce .woocommerce-Tabs-panel--description",
     742                            "effect" => 'color',
     743                            "pro" => true
     744                        ),         
     745                    )
     746                ),
    580747                array(
    581748                    "main_section" => "Pagination",
  • obox-mobile/trunk/admin/interface/form-items.php

    r2213386 r2239593  
    161161                <?php if( isset( $input['pro'] ) && !obox_mobile_is_pro_active() ) : ?>
    162162                    <a href="https://oboxthemes.com/obox-mobile/?utm_source=obox%mobile&utm_medium=upsell&utm_campaign=Obox%20Mobile%20Upsell&utm_content=<?php echo $input["name"]; ?>">
    163                         <img src="<?php echo OBOXMOBILEURL; ?>/admin/images/[email protected]" />
     163                        <img src="<?php echo OBOXMOBILEURL; ?>/admin/images/[email protected]" /><br />
     164                        Upgrade Now
    164165                    </a>
    165166                <?php else : ?>
  • obox-mobile/trunk/admin/interface/general.php

    r2213386 r2239593  
    8484   
    8585function obox_mobile_is_pro_active(){
    86     return apply_filters( 'obox_mobile_is_pro_active', false );
     86    return apply_filters( 'mobile_is_pro_active', false );
    8787}
  • obox-mobile/trunk/admin/js/admin.js

    r2239107 r2239593  
    208208    // Customization Page
    209209
    210     jQuery("#clear-form").bind('click', function(e){
     210    jQuery(document).on('click', "#clear-form", function(e){
    211211        e.preventDefault();
    212212        var clearform = confirm ( 'Are you sure you want to clear your customization options?' );
     
    242242                var selector = jQuery(this).attr("data-selector");
    243243                var effect = jQuery(this).attr("data-effect");
     244                console.log(selector);
     245                console.log(effect);
    244246                jQuery(this).wpColorPicker({
    245247                change: function(event, ui){
     
    249251        });
    250252    }
     253    jQuery("#obox-mobile-customizer").on("load", function () {
     254        jQuery("input[data-default-color*='#']").each(function(){
     255            var element = jQuery(this);
     256            var selector = jQuery(this).attr("data-selector");
     257            var effect = jQuery(this).attr("data-effect");
     258            jQuery("#obox-mobile-customizer").contents().find(selector).css(effect, element.val());
     259        });
     260    })
     261
     262    function reloadStyles(){
     263    }
     264
    251265    jQuery(".wp-picker-default").val("Clear");
    252266    jQuery("select").live("change", function(){
  • obox-mobile/trunk/mobile.php

    r2239107 r2239593  
    99 */
    1010
    11 define( "OBOXMOBILE_VER", "1.1.0" );
     11define( "OBOXMOBILE_VER", "1.1.1" );
    1212define( "OBOXMOBILEDIR", plugin_dir_path(__FILE__) );
    1313define( "OBOXMOBILEURL", plugin_dir_url(__FILE__) );
  • obox-mobile/trunk/readme.txt

    r2239107 r2239593  
    44Requires at least: 5.3.0
    55Tested up to: 5.3.1
    6 Stable tag: 1.0.0
     6Stable tag: 1.1.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2222As of March 2020, the Jetpack Mobile theme is being deprecated. Thankfully you can use Obox Mobile as an alternative, meaning you won't have to change your theme!
    2323
     24= Full WooCommerce Support =
     25
     26Obox Mobile has full WooCommerce support, allowing you to run a full mobile e-commerce website with a design completely optimized for mobile browsing.
     27
    2428**Unique Slider**
    2529Obox Mobile includes a beautiful intro slider for your site, activate the slider and show your featured posts.
     
    3135Upload a custom mobile logo, choose serif or san-serif fonts, and customze a multitude of color options with our unique in-built customizer. The PRO version brings full site customization and custom logo sizing.
    3236
    33 **Full WooCommerce Support**
    34 Obox Mobile has full WooCommerce support, allowing you to run a fully mobile-optimized online store.
     37You can even customize your WooCommerce store for mobile visiors.
     38
    3539
    3640**Works with any WordPress theme**
     
    7680
    7781* Enhancement - Added full WooCommerce support
     82
     83= 1.1.1 =
     84
     85* Enhancement - Added WooCommerce customizer controls
  • obox-mobile/trunk/theme/single-product.php

    r2239107 r2239593  
    2626        </div>
    2727   
    28                             <?php do_action( 'woocommerce_before_single_product' ); ?>
     28        <?php do_action( 'woocommerce_before_single_product' ); ?>
     29
    2930        <?php do_action( 'woocommerce_before_single_product_summary' ); ?>
    3031       
Note: See TracChangeset for help on using the changeset viewer.