Plugin Directory

Changeset 2783512


Ignore:
Timestamp:
09/12/2022 05:18:55 PM (3 years ago)
Author:
jrobie23
Message:

trying to update plugin

Location:
hookywoo/trunk
Files:
7 added
6 edited

Legend:

Unmodified
Added
Removed
  • hookywoo/trunk/README.md

    r2133637 r2783512  
    44License: GNU GENERAL PUBLIC LICENSE
    55License URI: http://fsf.org/
    6 Requires at least: 3.7.1
    7 Tested up to: 5.2.2
    8 Stable tag: 1.5.1
    9 Requires PHP: 5.6
     6Requires at least: 5.0.1
     7Tested up to: 6.2.0
     8Stable tag: 2.0.0
     9Requires PHP: 7.0
    1010
    1111A WYSIWYG solution for adding content to the majority of all WooCommerce Action Hooks.
    12  
     12
    1313== Description ==
    1414
     
    20204. Check your work on the public facing side of the site.
    2121
    22 Stylesheet is included for the basic layout of the plugin. 
     22Stylesheet is included for the basic layout of the plugin.
    2323All hook divs have their own class so you can update the CSS however you need to.
    2424
     
    2626The "after cart" and "before product tabs" divs are both set to clear:all; for basic layout reasons. Those, and all others, can be over ridden in your own theme's stylesheet.
    2727
    28 Includes "Shop/Archive" , "Single Product" Hooks.
    29 For PRO Version (includes Checkout and Cart pages), please visit <a href="https://ridgeviewtechnology.com/product/hookywoo-woocommerce-hooks-customizer">RidgeView Technology</a>
     28Includes "Shop/Archive" , "Single Product", "Cart" and "Checkout" Hooks.
    3029
    31 <a href="https://ridgeviewtechnology.com/about-ridgeview-technology" target="_blank">Contact Us</a>
     30<a href="https://madcowweb.com/contact-us/" target="_blank">Contact Us</a>
    3231== Installation ==
    33  
     32
    3433Activate the plugin through the 'Plugins' menu in WordPress.
    3534Settings page is found under "WooCommerce - HookyWoo Settings".
     
    3736
    3837== Frequently Asked Questions ==
    39  
     38
    4039= What about styled text and images? =
    41  
     40
    4241You can put any sort of HTML you like in that text area.
    4342For example:
     
    4746`<div class="my-cool-div">My Awesome Stuff inside my div</div>`
    4847
    49 = Will I lose my changes if I upgrade =
    50  
    51 No. The data is stored safely in the database. Just remove the Standard Plugin and Upload the Pro version as you would any other plugin.
     48= Will I lose my changes if I update =
     49
     50No. The data is stored safely in the database.
    5251
    5352== Changelog ==
     53= 2.0.0 =
     54* Added Cart and Checkout page functionality
     55* Updated readme file with more instructions
     56* Removed images from interface
     57* Added new elements for cart and checkout - list items - so they display correctly
    5458= 1.1.0 =
    5559* Added tabbed function to better separate page sections
    5660* Updated readme file with more instructions
    57 
    58 a
    59 = 1.4.1 =
    60 * Core code update, Verify functionality with latest WooCommerce Updates
     61= 1.3.0 =
     62* Included Cart and Checkout pages
     63== Upgrade Notice ==
     641.3.0
     65Including cart and checkout pages
    6166= 1.4.5 =
    62 * Fix php errors for empty indexes on empty fields
     67fix php errors for empty indexes on empty fields
  • hookywoo/trunk/includes/hw-shop.php

    r1848019 r2783512  
    77    'wooHook' => 'woocommerce_before_main_content',
    88    'priority' => '',
    9     'div_class' => 'hw-before-shop-page-content',
     9    'elem_start' => '<div',
     10    'elem_end' => '</div>',
     11    'elem_class' => 'hw-before-shop-page-content',
    1012    'hooky_content' => get_option('before_shop_page_content'),
    1113  ),
     
    1315    'wooHook' => 'woocommerce_archive_description',
    1416    'priority' => '',
    15     'div_class' => 'hw-below-shop-title',
     17    'elem_start' => '<div',
     18    'elem_end' => '</div>',
     19    'elem_class' => 'hw-below-shop-title',
    1620    'hooky_content' => get_option('shop_page_description'),
    1721  ),
     
    1923    'wooHook' => 'woocommerce_before_shop_loop_item',
    2024    'priority' => '',
    21     'div_class' => 'hw-above-loop-image',
     25    'elem_start' => '<div',
     26    'elem_end' => '</div>',
     27    'elem_class' => 'hw-above-loop-image',
    2228    'hooky_content' => get_option('before_loop_product_image'),
    2329  ),
     
    2531    'wooHook' => 'woocommerce_shop_loop_item_title',
    2632    'priority' => '',
    27     'div_class' => 'hw-after-loop-image',
     33    'elem_start' => '<div',
     34    'elem_end' => '</div>',
     35    'elem_class' => 'hw-after-loop-image',
    2836    'hooky_content' => get_option('after_loop_product_image'),
    2937  ),
     
    3139    'wooHook' => 'woocommerce_after_shop_loop_item_title',
    3240    'priority' => '',
    33     'div_class' => 'hw-after-loop-title',
     41    'elem_start' => '<div',
     42    'elem_end' => '</div>',
     43    'elem_class' => 'hw-after-loop-title',
    3444    'hooky_content' => get_option('after_loop_product_title'),
    3545  ),
     
    3747    'wooHook' => 'woocommerce_after_shop_loop_item',
    3848    'priority' => '',
    39     'div_class' => 'hw-before-loop-item-cart-button',
     49    'elem_start' => '<div',
     50    'elem_end' => '</div>',
     51    'elem_class' => 'hw-before-loop-item-cart-button',
    4052    'hooky_content' => get_option('before_loop_product_cart_button'),
    4153  ),
     
    4355    'wooHook' => 'woocommerce_after_main_content',
    4456    'priority' => '',
    45     'div_class' => 'hw-after-shop-loop',
     57    'elem_start' => '<div',
     58    'elem_end' => '</div>',
     59    'elem_class' => 'hw-after-shop-loop',
    4660    'hooky_content' => get_option('after_main_shop_content'),
    47   ),               
     61  ),
    4862);
    4963
  • hookywoo/trunk/includes/hw-single-product.php

    r1848019 r2783512  
    77    'wooHook' => 'woocommerce_single_product_summary',
    88    'priority' => ', 3',
    9     'div_class' => 'hw-after-product',
     9    'elem_start' => '<div',
     10    'elem_end' => '</div>',
     11    'elem_class' => 'hw-after-product',
    1012    'hooky_content' => get_option('before_product_title'),
    1113  ),
     
    1315    'wooHook' => 'woocommerce_before_add_to_cart_form',
    1416    'priority' => '',
    15     'div_class' => 'hw-after-short-description',
     17    'elem_start' => '<div',
     18    'elem_end' => '</div>',
     19    'elem_class' => 'hw-after-short-description',
    1620    'hooky_content' => get_option('after_short_description'),
    1721  ),
     
    1923    'wooHook' => 'woocommerce_before_variations_form',
    2024    'priority' => '',
    21     'div_class' => 'hw-before-variations',
     25    'elem_start' => '<div',
     26    'elem_end' => '</div>',
     27    'elem_class' => 'hw-before-variations',
    2228    'hooky_content' => get_option('before_variations_content'),
    2329  ),
     
    2531    'wooHook' => 'woocommerce_after_add_to_cart_button',
    2632    'priority' => '',
    27     'div_class' => 'hw-after-cart',
     33    'elem_start' => '<div',
     34    'elem_end' => '</div>',
     35    'elem_class' => 'hw-after-cart',
    2836    'hooky_content' => get_option('after_add_to_cart_button'),
    2937  ),
     
    3139    'wooHook' => 'woocommerce_after_variations_form',
    3240    'priority' => '',
    33     'div_class' => 'hw-after-variations',
     41    'elem_start' => '<div',
     42    'elem_end' => '</div>',
     43    'elem_class' => 'hw-after-variations',
    3444    'hooky_content' => get_option('after_variations_content'),
    3545  ),
     
    3747    'wooHook' => 'woocommerce_product_meta_start',
    3848    'priority' => '',
    39     'div_class' => 'hw-before-product-meta',
     49    'elem_start' => '<div',
     50    'elem_end' => '</div>',
     51    'elem_class' => 'hw-before-product-meta',
    4052    'hooky_content' => get_option('before_product_meta'),
    4153  ),
     
    4355    'wooHook' => 'woocommerce_product_meta_end',
    4456    'priority' => '',
    45     'div_class' => 'hw-after-product-meta',
     57    'elem_start' => '<div',
     58    'elem_end' => '</div>',
     59    'elem_class' => 'hw-after-product-meta',
    4660    'hooky_content' => get_option('after_product_meta'),
    47   ), 
     61  ),
    4862  array(
    4963    'wooHook' => 'woocommerce_after_single_product_summary',
    5064    'priority' => '',
    51     'div_class' => 'hw-before-product-tabs',
     65    'elem_start' => '<div',
     66    'elem_end' => '</div>',
     67    'elem_class' => 'hw-before-product-tabs',
    5268    'hooky_content' => get_option('before_tabs_section'),
    53   ), 
     69  ),
    5470  array(
    5571    'wooHook' => 'woocommerce_after_single_product',
    5672    'priority' => '',
    57     'div_class' => 'hw-after-product',
     73    'elem_start' => '<div',
     74    'elem_end' => '</div>',
     75    'elem_class' => 'hw-after-product',
    5876    'hooky_content' => get_option('after_product_content'),
    59   ),                 
     77  ),
    6078);
    6179require_once( 'loop-classes.php' );
  • hookywoo/trunk/includes/loop-classes.php

    r1848022 r2783512  
    22//This class generates all of the hooks from hw-single-product and hw-shop
    33class Hooky_Loop_Class{
    4  
     4
    55    public function __construct( $strings ){
    66        $this->strings = $strings;
     
    99        }
    1010    } // End function __construct()
    11  
     11
    1212    public function echo_strings() {
    13                 $hook = current_filter();
    14                 foreach ( $this->strings as $string ) {
    15                     if ( $string['wooHook'] == $hook ) {
    16                         echo '<div class="' . $string['div_class'] . '">' . $string['hooky_content'] . '</div>';
    17                     }
    18                 }
     13        $hook = current_filter();
     14        foreach ( $this->strings as $string ) {
     15            if ( $string['wooHook'] == $hook ) {
     16                echo $string['elem_start'] .  ' class="' . $string['elem_class'] . '">' . $string['hooky_content'] . $string['elem_end'];
     17            }
     18        }
    1919    } // End function echo_strings()
    20 } // End class Example_Class
     20} // End class Hooky_Loop_Class
  • hookywoo/trunk/includes/shop-page-fields.php

    r1846643 r2783512  
    6363foreach( $fields as $field ){
    6464    add_settings_field( $field['uid'], $field['label'], array( $this, 'field_callback' ), 'shop_archive_page_section', $field['section'], $field );
    65       register_setting( 'shop_archive_page_section', $field['uid'] );
     65    register_setting( 'shop_archive_page_section', $field['uid'] );
    6666}
  • hookywoo/trunk/includes/single-page-fields.php

    r1846643 r2783512  
    1 <?php 
     1<?php
    22if ( ! defined( 'ABSPATH' ) ) {
    33    exit; // Exit if accessed directly
    44}
    55$fields = array(
    6   array(
    7     'uid' => 'before_product_title',
    8     'label' => 'Before Product Title',
    9     'helper' => '',
    10     'supplemental' => '',
    11     'section' => 'single_product_page_section',
    12     'type' => 'textarea',
    13   ),
    14   array(
    15     'uid' => 'after_short_description',
    16     'label' => 'After Short Description',
    17     'helper' => '',
    18     'supplemental' => '',
    19     'section' => 'single_product_page_section',
    20     'type' => 'textarea',
    21   ),
    22   array(
    23     'uid' => 'before_variations_content',
    24     'label' => 'Before Varitions Section',
    25     'helper' => '',
    26     'supplemental' => '',
    27     'section' => 'single_product_page_section',
    28     'type' => 'textarea',
    29   ), 
    30   array(
    31     'uid' => 'after_add_to_cart_button',
    32     'label' => 'After Add to Cart button',
    33     'helper' => '',
    34     'supplemental' => '',
    35     'section' => 'single_product_page_section',
    36     'type' => 'textarea',
    37   ),
    38   array(
    39     'uid' => 'after_variations_content',
    40     'label' => 'After Variations',
    41     'helper' => '',
    42     'supplemental' => '',
    43     'section' => 'single_product_page_section',
    44     'type' => 'textarea',
    45   ),
    46   array(
    47     'uid' => 'before_product_meta',
    48     'label' => 'Before Product Meta',
    49     'helper' => '',
    50     'supplemental' => '',
    51     'section' => 'single_product_page_section',
    52     'type' => 'textarea',
    53   ),
    54   array(
    55     'uid' => 'after_product_meta',
    56     'label' => 'After Product Meta',
    57     'helper' => '',
    58     'supplemental' => '',
    59     'section' => 'single_product_page_section',
    60     'type' => 'textarea',
    61   ),
    62   array(
    63     'uid' => 'before_tabs_section',
    64     'label' => 'Before Tabs Section',
    65     'helper' => '',
    66     'supplemental' => '',
    67     'section' => 'single_product_page_section',
    68     'type' => 'textarea',
    69   ),
    70   array(
    71     'uid' => 'after_product_content',
    72     'label' => 'After Product Content',
    73     'helper' => '',
    74     'supplemental' => '',
    75     'section' => 'single_product_page_section',
    76     'type' => 'textarea',
    77   ),
     6    array(
     7        'uid' => 'before_product_title',
     8        'label' => 'Before Product Title',
     9        'helper' => '',
     10        'supplemental' => '',
     11        'section' => 'single_product_page_section',
     12        'type' => 'textarea',
     13    ),
     14    array(
     15        'uid' => 'after_short_description',
     16        'label' => 'After Short Description',
     17        'helper' => '',
     18        'supplemental' => '',
     19        'section' => 'single_product_page_section',
     20        'type' => 'textarea',
     21    ),
     22    array(
     23        'uid' => 'before_variations_content',
     24        'label' => 'Before Varitions Section',
     25        'helper' => '',
     26        'supplemental' => '',
     27        'section' => 'single_product_page_section',
     28        'type' => 'textarea',
     29    ),
     30    array(
     31        'uid' => 'after_add_to_cart_button',
     32        'label' => 'After Add to Cart button',
     33        'helper' => '',
     34        'supplemental' => '',
     35        'section' => 'single_product_page_section',
     36        'type' => 'textarea',
     37    ),
     38    array(
     39        'uid' => 'after_variations_content',
     40        'label' => 'After Variations',
     41        'helper' => '',
     42        'supplemental' => '',
     43        'section' => 'single_product_page_section',
     44        'type' => 'textarea',
     45    ),
     46    array(
     47        'uid' => 'before_product_meta',
     48        'label' => 'Before Product Meta',
     49        'helper' => '',
     50        'supplemental' => '',
     51        'section' => 'single_product_page_section',
     52        'type' => 'textarea',
     53    ),
     54    array(
     55        'uid' => 'after_product_meta',
     56        'label' => 'After Product Meta',
     57        'helper' => '',
     58        'supplemental' => '',
     59        'section' => 'single_product_page_section',
     60        'type' => 'textarea',
     61    ),
     62    array(
     63        'uid' => 'before_tabs_section',
     64        'label' => 'Before Tabs Section',
     65        'helper' => '',
     66        'supplemental' => '',
     67        'section' => 'single_product_page_section',
     68        'type' => 'textarea',
     69    ),
     70    array(
     71        'uid' => 'after_product_content',
     72        'label' => 'After Product Content',
     73        'helper' => '',
     74        'supplemental' => '',
     75        'section' => 'single_product_page_section',
     76        'type' => 'textarea',
     77    ),
    7878);
    7979foreach( $fields as $field ){
    8080    add_settings_field( $field['uid'], $field['label'], array( $this, 'field_callback' ), 'single_product_page_section', $field['section'], $field );
    81       register_setting( 'single_product_page_section', $field['uid'] );
     81    register_setting( 'single_product_page_section', $field['uid'] );
    8282}
Note: See TracChangeset for help on using the changeset viewer.