Plugin Directory

Changeset 1712107


Ignore:
Timestamp:
08/11/2017 02:17:20 PM (9 years ago)
Author:
oxsn
Message:

General Update

Location:
helpful-features/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • helpful-features/trunk/helpful-features.php

    r1710496 r1712107  
    741741                        echo '<h3>CHILD</h3>';
    742742                        echo '<p>This is a shortcode used in creating a child item from TwentyTwenty. Add this shortcode within your TwentyTwenty parent shortcode to display it. When using this shortcode you do not need to enqueue the code, it just works like magic.</p>';
    743                         echo '<p><strong>Usage</strong><br>['.hefe_shortcode_name.'_twentytwenty_child image_url=""]<br>CONTENT<br>[/'.hefe_shortcode_name.'_twentytwenty_child]</p>';
     743                        echo '<p><strong>Usage</strong><br>['.hefe_shortcode_name.'_twentytwenty_child src=""]<br>CONTENT<br>[/'.hefe_shortcode_name.'_twentytwenty_child]</p>';
    744744                        echo '<hr />';
    745745                        echo '<p><strong>Alts</strong><br>'.hefe_shortcode_name.'_twentytwenty_child_before, '.hefe_shortcode_name.'_twentytwenty_child_after</p>';
  • helpful-features/trunk/inc/twentytwenty/functions.php

    r1709283 r1712107  
    8787    if(get_option('hefe_customizer_control_shortcode_name')){
    8888        add_shortcode(hefe_shortcode_name.'_before_after_parent', 'hefe_twentytwenty_shortcode_parent');
     89        add_shortcode(hefe_shortcode_name.'_twentytwenty_parent', 'hefe_twentytwenty_shortcode_parent');
    8990    }
    9091    add_shortcode('hefe_before_after_parent', 'hefe_twentytwenty_shortcode_parent');
     92    add_shortcode('hefe_twentytwenty_parent', 'hefe_twentytwenty_shortcode_parent');
    9193    function hefe_twentytwenty_shortcode_parent($atts, $content = null){
    9294        wp_enqueue_style('hefe-twentytwnty-style');
     
    106108if(!function_exists('hefe_twentytwenty_shortcode_child')){
    107109    if(get_option('hefe_customizer_control_shortcode_name')){
     110        add_shortcode(hefe_shortcode_name.'_before_after_child', 'hefe_twentytwenty_shortcode_child');
     111        add_shortcode(hefe_shortcode_name.'_before_after_child_before', 'hefe_twentytwenty_shortcode_child');
     112        add_shortcode(hefe_shortcode_name.'_before_after_child_after', 'hefe_twentytwenty_shortcode_child');
    108113        add_shortcode(hefe_shortcode_name.'_twentytwenty_child', 'hefe_twentytwenty_shortcode_child');
    109114        add_shortcode(hefe_shortcode_name.'_twentytwenty_child_before', 'hefe_twentytwenty_shortcode_child');
    110115        add_shortcode(hefe_shortcode_name.'_twentytwenty_child_after', 'hefe_twentytwenty_shortcode_child');
    111116    }
     117    add_shortcode('hefe_before_after_child', 'hefe_twentytwenty_shortcode_child');
     118    add_shortcode('hefe_before_after_child_before', 'hefe_twentytwenty_shortcode_child');
     119    add_shortcode('hefe_before_after_child_after', 'hefe_twentytwenty_shortcode_child');
    112120    add_shortcode('hefe_twentytwenty_child', 'hefe_twentytwenty_shortcode_child');
    113121    add_shortcode('hefe_twentytwenty_child_before', 'hefe_twentytwenty_shortcode_child');
Note: See TracChangeset for help on using the changeset viewer.