Changeset 1712107
- Timestamp:
- 08/11/2017 02:17:20 PM (9 years ago)
- Location:
- helpful-features/trunk
- Files:
-
- 2 edited
-
helpful-features.php (modified) (1 diff)
-
inc/twentytwenty/functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
helpful-features/trunk/helpful-features.php
r1710496 r1712107 741 741 echo '<h3>CHILD</h3>'; 742 742 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>'; 744 744 echo '<hr />'; 745 745 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 87 87 if(get_option('hefe_customizer_control_shortcode_name')){ 88 88 add_shortcode(hefe_shortcode_name.'_before_after_parent', 'hefe_twentytwenty_shortcode_parent'); 89 add_shortcode(hefe_shortcode_name.'_twentytwenty_parent', 'hefe_twentytwenty_shortcode_parent'); 89 90 } 90 91 add_shortcode('hefe_before_after_parent', 'hefe_twentytwenty_shortcode_parent'); 92 add_shortcode('hefe_twentytwenty_parent', 'hefe_twentytwenty_shortcode_parent'); 91 93 function hefe_twentytwenty_shortcode_parent($atts, $content = null){ 92 94 wp_enqueue_style('hefe-twentytwnty-style'); … … 106 108 if(!function_exists('hefe_twentytwenty_shortcode_child')){ 107 109 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'); 108 113 add_shortcode(hefe_shortcode_name.'_twentytwenty_child', 'hefe_twentytwenty_shortcode_child'); 109 114 add_shortcode(hefe_shortcode_name.'_twentytwenty_child_before', 'hefe_twentytwenty_shortcode_child'); 110 115 add_shortcode(hefe_shortcode_name.'_twentytwenty_child_after', 'hefe_twentytwenty_shortcode_child'); 111 116 } 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'); 112 120 add_shortcode('hefe_twentytwenty_child', 'hefe_twentytwenty_shortcode_child'); 113 121 add_shortcode('hefe_twentytwenty_child_before', 'hefe_twentytwenty_shortcode_child');
Note: See TracChangeset
for help on using the changeset viewer.