Changeset 2913897
- Timestamp:
- 05/17/2023 06:20:59 PM (3 years ago)
- Location:
- nd-shortcodes/trunk
- Files:
-
- 24 added
- 53 edited
-
nd-shortcodes.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
shortcodes/custom/badge/index.php (modified) (1 diff)
-
shortcodes/custom/beforeafter/css (added)
-
shortcodes/custom/beforeafter/css/before-after.css (added)
-
shortcodes/custom/beforeafter/index.php (modified) (2 diffs)
-
shortcodes/custom/beforeafter/js (added)
-
shortcodes/custom/beforeafter/js/before-after.js (added)
-
shortcodes/custom/button/index.php (modified) (1 diff)
-
shortcodes/custom/cf7/css (added)
-
shortcodes/custom/cf7/css/cf7.css (added)
-
shortcodes/custom/cf7/index.php (modified) (2 diffs)
-
shortcodes/custom/cf7/layout/layout-1.php (modified) (2 diffs)
-
shortcodes/custom/cf7/layout/layout-2.php (modified) (2 diffs)
-
shortcodes/custom/column/index.php (modified) (1 diff)
-
shortcodes/custom/countdown/css (added)
-
shortcodes/custom/countdown/css/countdown.css (added)
-
shortcodes/custom/countdown/index.php (modified) (3 diffs)
-
shortcodes/custom/countdown/layout/layout-1.php (modified) (2 diffs)
-
shortcodes/custom/countdown/layout/layout-2.php (modified) (2 diffs)
-
shortcodes/custom/countdown/layout/layout-3.php (modified) (2 diffs)
-
shortcodes/custom/counter/index.php (modified) (3 diffs)
-
shortcodes/custom/divider/index.php (modified) (1 diff)
-
shortcodes/custom/focus-number/css (added)
-
shortcodes/custom/focus-number/css/focus-number.css (added)
-
shortcodes/custom/focus-number/index.php (modified) (2 diffs)
-
shortcodes/custom/focus-number/layout/layout-2.php (modified) (1 diff)
-
shortcodes/custom/image/index.php (modified) (1 diff)
-
shortcodes/custom/list/index.php (modified) (1 diff)
-
shortcodes/custom/magic-popup/index.php (modified) (1 diff)
-
shortcodes/custom/menu/css (added)
-
shortcodes/custom/menu/css/menu.css (added)
-
shortcodes/custom/menu/index.php (modified) (4 diffs)
-
shortcodes/custom/open-sidebar/index.php (modified) (4 diffs)
-
shortcodes/custom/open-sidebar/js (added)
-
shortcodes/custom/open-sidebar/js/open-sidebar.js (added)
-
shortcodes/custom/post-grid/index.php (modified) (3 diffs)
-
shortcodes/custom/post-grid/js (added)
-
shortcodes/custom/post-grid/js/post-grid.js (added)
-
shortcodes/custom/post-grid/layout/layout-1.php (modified) (2 diffs)
-
shortcodes/custom/post-grid/layout/layout-10.php (modified) (2 diffs)
-
shortcodes/custom/post-grid/layout/layout-11.php (modified) (2 diffs)
-
shortcodes/custom/post-grid/layout/layout-12.php (modified) (2 diffs)
-
shortcodes/custom/post-grid/layout/layout-13.php (modified) (2 diffs)
-
shortcodes/custom/post-grid/layout/layout-14.php (modified) (2 diffs)
-
shortcodes/custom/post-grid/layout/layout-15.php (modified) (2 diffs)
-
shortcodes/custom/post-grid/layout/layout-2.php (modified) (2 diffs)
-
shortcodes/custom/post-grid/layout/layout-3.php (modified) (2 diffs)
-
shortcodes/custom/post-grid/layout/layout-4.php (modified) (3 diffs)
-
shortcodes/custom/post-grid/layout/layout-5.php (modified) (2 diffs)
-
shortcodes/custom/post-grid/layout/layout-6.php (modified) (2 diffs)
-
shortcodes/custom/post-grid/layout/layout-7.php (modified) (2 diffs)
-
shortcodes/custom/post-grid/layout/layout-8.php (modified) (2 diffs)
-
shortcodes/custom/post-grid/layout/layout-9.php (modified) (2 diffs)
-
shortcodes/custom/post-search/css (added)
-
shortcodes/custom/post-search/css/post-search.css (added)
-
shortcodes/custom/post-search/index.php (modified) (2 diffs)
-
shortcodes/custom/post-search/layout/layout-1.php (modified) (2 diffs)
-
shortcodes/custom/price/index.php (modified) (1 diff)
-
shortcodes/custom/service-pro/index.php (modified) (1 diff)
-
shortcodes/custom/service/index.php (modified) (1 diff)
-
shortcodes/custom/spacer/index.php (modified) (1 diff)
-
shortcodes/custom/text/css (added)
-
shortcodes/custom/text/css/text.css (added)
-
shortcodes/custom/text/index.php (modified) (3 diffs)
-
shortcodes/custom/toogle/index.php (modified) (3 diffs)
-
shortcodes/custom/toogle/js (added)
-
shortcodes/custom/toogle/js/toogle.js (added)
-
shortcodes/custom/typewriter/css (added)
-
shortcodes/custom/typewriter/css/typewriter.css (added)
-
shortcodes/custom/typewriter/index.php (modified) (3 diffs)
-
shortcodes/focus/index.php (modified) (1 diff)
-
shortcodes/price/index.php (modified) (1 diff)
-
shortcodes/progress/index.php (modified) (1 diff)
-
shortcodes/service/index.php (modified) (1 diff)
-
shortcodes/team/index.php (modified) (1 diff)
-
shortcodes/testimonial/index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
nd-shortcodes/trunk/nd-shortcodes.php
r2894413 r2913897 3 3 Plugin Name: ND Shortcodes 4 4 Description: The plugin adds some useful components to your page builder ( Elementor or WP Bakery Page Builder ). All components are full responsive and retina ready. 5 Version: 6. 85 Version: 6.9 6 6 Plugin URI: https://nicdark.com 7 7 Author: Nicdark -
nd-shortcodes/trunk/readme.txt
r2894413 r2913897 4 4 Requires at least: 4.5 5 5 Tested up to: 6.2 6 Stable tag: 6. 86 Stable tag: 6.9 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 27 27 28 28 == Changelog == 29 30 = 6.9 = 31 * added escaping variables on shortcodes folder 32 * added sanitize_key() function on layout variable inclusion 29 33 30 34 = 6.8 = -
nd-shortcodes/trunk/shortcodes/custom/badge/index.php
r2131078 r2913897 54 54 '; 55 55 56 return apply_filters('uds_shortcode_out_filter', $str); 56 57 $nd_options_str_shortcode = wp_kses_post( $str ); 58 return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode); 57 59 } 58 60 //END PRICE -
nd-shortcodes/trunk/shortcodes/custom/beforeafter/index.php
r2241937 r2913897 23 23 24 24 wp_enqueue_script('jquery-ui-slider'); 25 26 $str .= ' 25 wp_enqueue_script('jquery-ui-slider'); 26 wp_enqueue_style( 'nd_options_before_after_style', esc_url( plugins_url( 'css/before-after.css', __FILE__ ) ) ); 27 wp_enqueue_script( 'nd_options_before_after_script', esc_url( plugins_url( 'js/before-after.js', __FILE__ ) ) ); 27 28 28 <style>29 30 #nd_options_beforeafter_component img { float:left; width:100%; }31 29 32 #nd_options_beforeafter_component { 33 float: left; 34 width: 100% !important; 35 margin: 0px !important; 36 padding: 0px !important; 37 position: relative; 38 } 39 30 $nd_options_style = ' 40 31 #nd_options_beforeafter_component .ui-slider-range { 41 32 background-image: url('.$nd_options_image_after[0].'); 42 background-color: #000;43 z-index: 9;44 position: absolute;45 height: 100%;46 background-repeat: no-repeat;47 background-size: cover;48 33 } 49 34 50 35 #nd_options_beforeafter_component .ui-slider-handle { 51 background-color: '.$nd_options_color.'; 52 width: 4px; 53 position: absolute; 54 height: 100%; 55 outline: 0px; 56 cursor: ew-resize; 36 background-color: '.$nd_options_color.'; 57 37 } 58 38 59 #nd_options_beforeafter_component .ui-slider-handle:after { 60 content: ""; 61 width: 40px; 62 height: 40px; 39 #nd_options_beforeafter_component .ui-slider-handle::after { 63 40 background-color: '.$nd_options_color.'; 64 position: absolute;65 top: 50%;66 margin-top: -20px;67 margin-left: -18px;68 z-index: 9;69 border-radius: 100%;70 41 background-image:url('.esc_url(plugins_url('ico.png', __FILE__ )).'); 71 background-size: 30px;72 background-position: center;73 background-repeat: no-repeat;74 42 } 75 76 </style> 77 78 <script> 79 jQuery( function() { 80 81 jQuery( "#nd_options_beforeafter_component" ).slider({ 82 value: 50, 83 orientation: "horizontal", 84 range: "min", 85 animate: true 86 }); 87 88 } ); 89 </script> 90 43 '; 44 wp_add_inline_style('nd_options_before_after_style',$nd_options_style); 45 46 $str .= ' 91 47 <div class="'.$nd_options_class.' nd_options_section"> 92 48 <div id="nd_options_beforeafter_component"> … … 95 51 </div>'; 96 52 53 $nd_options_str_shortcode = wp_kses_post( $str ); 97 54 return apply_filters('uds_shortcode_out_filter', $str); 98 55 -
nd-shortcodes/trunk/shortcodes/custom/button/index.php
r2750702 r2913897 84 84 85 85 // the layout selected 86 $nd_options_layout = sanitize_key($nd_options_layout); 86 87 $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php'; 87 88 include realpath($nd_options_layout_selected); 88 89 89 return apply_filters('uds_shortcode_out_filter', $str); 90 91 $nd_options_str_shortcode = wp_kses_post( $str ); 92 return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode); 93 90 94 } 91 95 //END PRICE -
nd-shortcodes/trunk/shortcodes/custom/cf7/index.php
r2750702 r2913897 17 17 ), $atts); 18 18 19 wp_enqueue_style( 'nd_options_cf7_style', esc_url( plugins_url( 'css/cf7.css', __FILE__ ) ) ); 20 19 21 $str = ''; 20 22 … … 34 36 35 37 // the layout selected 38 $nd_options_layout = sanitize_key($nd_options_layout); 36 39 $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php'; 37 40 include realpath($nd_options_layout_selected); 38 41 39 42 40 return apply_filters('uds_shortcode_out_filter', $str); 43 //check datas 44 $nd_options_allowed_html = [ 45 'div' => [ 46 'id' => [], 47 'class' => [], 48 'style' => [], 49 'lang' => [], 50 'dir' => [], 51 'aria-hidden' => [], 52 ], 53 'h6' => [ 54 'id' => [], 55 'class' => [], 56 'style' => [], 57 ], 58 'h1' => [ 59 'id' => [], 60 'class' => [], 61 'style' => [], 62 ], 63 'strong' => [ 64 'id' => [], 65 'class' => [], 66 'style' => [], 67 ], 68 'p' => [ 69 'id' => [], 70 'class' => [], 71 'style' => [], 72 'role' => [], 73 'aria-live' => [], 74 'aria-atomic' => [], 75 ], 76 'ul' => [ 77 'id' => [], 78 'class' => [], 79 'style' => [], 80 ], 81 'li' => [ 82 'id' => [], 83 'class' => [], 84 'style' => [], 85 ], 86 'form' => [ 87 'id' => [], 88 'class' => [], 89 'style' => [], 90 'action' => [], 91 'method' => [], 92 'aria-label' => [], 93 'novalidate' => [], 94 'data-status' => [], 95 ], 96 'input' => [ 97 'id' => [], 98 'class' => [], 99 'style' => [], 100 'type' => [], 101 'name' => [], 102 'value' => [], 103 'size' => [], 104 'autocomplete' => [], 105 'aria-required' => [], 106 'aria-invalid' => [], 107 ], 108 'label' => [ 109 'id' => [], 110 'class' => [], 111 'style' => [], 112 ], 113 'br' => [ 114 'id' => [], 115 'class' => [], 116 'style' => [], 117 ], 118 'span' => [ 119 'id' => [], 120 'class' => [], 121 'style' => [], 122 'data-name' => [], 123 ], 124 'textarea' => [ 125 'id' => [], 126 'class' => [], 127 'style' => [], 128 'cols' => [], 129 'rows' => [], 130 'aria-invalid' => [], 131 'name' => [], 132 ], 133 ]; 134 135 $str = wp_kses( $str, $nd_options_allowed_html ); 136 return apply_filters('uds_shortcode_out_filter', $str); 137 41 138 } 42 139 //END CF7 -
nd-shortcodes/trunk/shortcodes/custom/cf7/layout/layout-1.php
r1452622 r2913897 5 5 if ( $nd_options_fields_full_width == 1 ) { 6 6 7 $str .= '8 7 9 <style> 10 8 $nd_options_style = ' 11 9 #nd_options_shortcode_cf7_'.$atts['nd_options_cf7'].' input[type="text"], 12 10 #nd_options_shortcode_cf7_'.$atts['nd_options_cf7'].' input[type="email"], … … 38 36 39 37 } 38 '; 39 wp_add_inline_style('nd_options_cf7_style',$nd_options_style); 40 40 41 </style>42 41 43 ';42 $str .= ''; 44 43 45 44 } -
nd-shortcodes/trunk/shortcodes/custom/cf7/layout/layout-2.php
r1452622 r2913897 5 5 if ( $nd_options_fields_full_width == 1 ) { 6 6 7 $str .= '8 7 9 <style>8 $nd_options_style = ' 10 9 11 10 #nd_options_shortcode_cf7_'.$atts['nd_options_cf7'].' input[type="text"], … … 38 37 } 39 38 40 </style> 39 '; 40 wp_add_inline_style('nd_options_cf7_style',$nd_options_style); 41 41 42 '; 42 43 $str .= ''; 43 44 44 45 } -
nd-shortcodes/trunk/shortcodes/custom/column/index.php
r1461374 r2913897 19 19 20 20 21 return '<div class="nd_options_float_left nd_options_box_sizing_border_box nd_options_width_100_percentage_all_iphone_important nd_options_padding_0_right_important_all_iphone nd_options_padding_0_left_important_all_iphone " style="padding: '.$nd_options_padding.'; width:'.$nd_options_width.';" >'.do_shortcode($nd_options_content).'</div>'; 21 $str = '<div class="nd_options_float_left nd_options_box_sizing_border_box nd_options_width_100_percentage_all_iphone_important nd_options_padding_0_right_important_all_iphone nd_options_padding_0_left_important_all_iphone " style="padding: '.$nd_options_padding.'; width:'.$nd_options_width.';" >'.do_shortcode($nd_options_content).'</div>'; 22 23 $nd_options_str_shortcode = wp_kses_post( $str ); 24 return $nd_options_str_shortcode; 25 22 26 } 23 27 -
nd-shortcodes/trunk/shortcodes/custom/countdown/index.php
r2750702 r2913897 70 70 //add script 71 71 wp_enqueue_script( 'nd_options_countdown_plugin', esc_url( plugins_url( 'js/countdown.js', __FILE__ ) ) ); 72 72 wp_enqueue_style( 'nd_options_countdown_style', esc_url( plugins_url( 'css/countdown.css', __FILE__ ) ) ); 73 73 74 74 … … 79 79 80 80 // the layout selected 81 $nd_options_layout = sanitize_key($nd_options_layout); 81 82 $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php'; 82 83 include realpath($nd_options_layout_selected); … … 84 85 $str .= '<div class="nd_options_countdown"></div>'; 85 86 86 return apply_filters('uds_shortcode_out_filter', $str); 87 $nd_options_str_shortcode = wp_kses_post( $str ); 88 return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode); 87 89 } 88 90 //END -
nd-shortcodes/trunk/shortcodes/custom/countdown/layout/layout-1.php
r1512796 r2913897 1 1 <?php 2 2 3 4 $nd_options_script = ' 3 5 4 $str .='5 6 7 8 9 <script type="text/javascript">10 //<![CDATA[11 12 6 jQuery(document).ready(function() { 13 7 … … 39 33 }); 40 34 41 //]]> 42 </script> 35 '; 43 36 44 '; 37 wp_add_inline_script('nd_options_countdown_plugin',$nd_options_script); 38 39 40 $str .=''; -
nd-shortcodes/trunk/shortcodes/custom/countdown/layout/layout-2.php
r1512796 r2913897 2 2 3 3 4 $str .=' 5 6 4 5 $nd_options_script = ' 7 6 8 9 <script type="text/javascript"> 10 //<![CDATA[ 11 12 jQuery(document).ready(function() { 7 jQuery(document).ready(function() { 13 8 14 9 //START counter … … 38 33 39 34 }); 40 41 //]]> 42 </script> 35 43 36 44 37 '; 38 39 wp_add_inline_script('nd_options_countdown_plugin',$nd_options_script); 40 41 42 $str .=''; -
nd-shortcodes/trunk/shortcodes/custom/countdown/layout/layout-3.php
r1970394 r2913897 1 1 <?php 2 2 3 4 $nd_options_script = ' 3 5 4 $str .=' 5 6 7 8 9 <script type="text/javascript"> 10 //<![CDATA[ 11 12 jQuery(document).ready(function() { 6 jQuery(document).ready(function() { 13 7 14 8 //START counter … … 38 32 39 33 }); 40 41 //]]> 42 </script> 43 44 45 <style> 46 47 .nd_options_countdown_l3_elem { position:relative; } 48 .nd_options_countdown_l3_elem:after { 49 position: absolute; 50 content: "/"; 51 top: 30px; 52 right: -12px; 53 font-size: 60px; 54 color: #000; 55 opacity: 0.05; 56 font-weight: 100; 57 z-index: 9; 58 line-height: 60px; 59 } 60 .nd_options_countdown_l3 .nd_options_countdown_l3_elem:last-child:after { 61 display:none; 62 } 63 </style> 34 64 35 65 36 '; 37 38 wp_add_inline_script('nd_options_countdown_plugin',$nd_options_script); 39 40 41 $str .=''; -
nd-shortcodes/trunk/shortcodes/custom/counter/index.php
r2750702 r2913897 32 32 wp_enqueue_script( 'nd_options_counter_plugin', esc_url( plugins_url( 'js/counter.js', __FILE__ ) ) ); 33 33 34 $str .=' 35 36 <script type="text/javascript"> 37 //<![CDATA[ 38 39 jQuery(document).ready(function() { 34 $nd_options_script = ' 35 36 jQuery(document).ready(function() { 40 37 41 38 //START counter … … 54 51 //END counter 55 52 56 }); 57 58 //]]> 59 </script> 53 }); 60 54 61 55 '; 62 56 57 wp_add_inline_script('nd_options_counter_plugin',$nd_options_script); 58 59 $str .=''; 63 60 64 61 //default value for avoid error … … 66 63 67 64 // the layout selected 65 $nd_options_layout = sanitize_key($nd_options_layout); 68 66 $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php'; 69 67 include realpath($nd_options_layout_selected); 70 68 71 72 return apply_filters('uds_shortcode_out_filter', $str); 69 $nd_options_str_shortcode = wp_kses_post( $str ); 70 return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode); 71 73 72 } 74 73 //END -
nd-shortcodes/trunk/shortcodes/custom/divider/index.php
r2750702 r2913897 30 30 31 31 // the layout selected 32 $nd_options_layout = sanitize_key($nd_options_layout); 32 33 $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php'; 33 34 include realpath($nd_options_layout_selected); 34 35 35 return apply_filters('uds_shortcode_out_filter', $str); 36 37 $nd_options_str_shortcode = wp_kses_post( $str ); 38 return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode); 39 36 40 } 37 41 //END FOCUS -
nd-shortcodes/trunk/shortcodes/custom/focus-number/index.php
r2750702 r2913897 17 17 'nd_options_image_bg' => '', 18 18 ), $atts); 19 20 wp_enqueue_style( 'nd_options_focus_number_style', esc_url( plugins_url( 'css/focus-number.css', __FILE__ ) ) ); 19 21 20 22 $str = ''; … … 42 44 43 45 // the layout selected 46 $nd_options_layout = sanitize_key($nd_options_layout); 44 47 $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php'; 45 48 include realpath($nd_options_layout_selected); 46 49 47 48 return apply_filters('uds_shortcode_out_filter', $str); 50 $nd_options_str_shortcode = wp_kses_post( $str ); 51 return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode); 52 49 53 } 50 54 //END FOCUS -
nd-shortcodes/trunk/shortcodes/custom/focus-number/layout/layout-2.php
r1512796 r2913897 1 1 <?php 2 3 4 $nd_options_style = ' 5 6 .nd_options_focus_number_2_vertical_line:after{ 7 content:"";width: 0px;height: 100%;position: absolute;left: 40px;z-index: 9;border-left: 2px dashed #f1f1f1; 8 } 9 10 '; 11 12 wp_add_inline_style('nd_options_focus_number_style',$nd_options_style); 2 13 3 14 4 15 $str .= ' 5 6 <style>7 .nd_options_focus_number_2_vertical_line:after{content:"";width: 0px;height: 100%;position: absolute;left: 40px;z-index: 9;border-left: 2px dashed #f1f1f1;}8 </style>9 16 10 17 <!--START FOCUS NUMBER--> -
nd-shortcodes/trunk/shortcodes/custom/image/index.php
r2131078 r2913897 29 29 '; 30 30 31 return apply_filters('uds_shortcode_out_filter', $str); 31 $nd_options_str_shortcode = wp_kses_post( $str ); 32 return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode); 33 32 34 } 33 35 //END PRICE -
nd-shortcodes/trunk/shortcodes/custom/list/index.php
r2131078 r2913897 67 67 '; 68 68 69 return apply_filters('uds_shortcode_out_filter', $str); 69 $nd_options_str_shortcode = wp_kses_post( $str ); 70 return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode); 71 70 72 } 71 73 //END PRICE -
nd-shortcodes/trunk/shortcodes/custom/magic-popup/index.php
r2788073 r2913897 83 83 84 84 //include the layout selected 85 include 'layout/'.$nd_options_layout.'.php'; 86 87 return apply_filters('uds_shortcode_out_filter', $str); 85 $nd_options_layout = sanitize_key($nd_options_layout); 86 $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php'; 87 include realpath($nd_options_layout_selected); 88 89 $nd_options_str_shortcode = wp_kses_post( $str ); 90 return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode); 91 88 92 } 89 93 //END FOCUS -
nd-shortcodes/trunk/shortcodes/custom/menu/index.php
r2131078 r2913897 43 43 'nd_options_menu_padding' => '', 44 44 ), $atts); 45 46 wp_enqueue_style( 'nd_options_menu_style', esc_url( plugins_url( 'css/menu.css', __FILE__ ) ) ); 45 47 46 48 $str = ''; … … 101 103 $str .= '<div class=" '.$nd_options_class.' nd_options_menu_component nd_options_section nd_options_menu_component_'.$nd_options_menu_id.'">'.wp_nav_menu( $args ).'</div>'; 102 104 103 $str .= ' 104 105 <style> 105 $str .= ''; 106 107 108 $nd_options_style = ''; 109 $nd_options_style .= ' 110 106 111 107 112 .nd_options_menu_component_'.$nd_options_menu_id.' ul.menu{ … … 138 143 //adjust padding based on aligm 139 144 if ( $nd_options_menu_align == 'left' ) { 140 $ str.= '.nd_options_menu_component_'.$nd_options_menu_id.' ul.menu > li:first-child a{ padding-left: 0px; }';145 $nd_options_style .= '.nd_options_menu_component_'.$nd_options_menu_id.' ul.menu > li:first-child a{ padding-left: 0px; }'; 141 146 }elseif ( $nd_options_menu_align == 'right' ) { 142 $ str.= '.nd_options_menu_component_'.$nd_options_menu_id.' ul.menu > li:last-child a{ padding-right: 0px; }';143 } 144 145 $ str.= '147 $nd_options_style .= '.nd_options_menu_component_'.$nd_options_menu_id.' ul.menu > li:last-child a{ padding-right: 0px; }'; 148 } 149 150 $nd_options_style .= ' 146 151 #nd_options_header_5 .vc_row[data-vc-full-width] { overflow:visible; } 147 152 … … 164 169 165 170 166 </style> 171 167 172 168 173 '; 169 170 171 return apply_filters('uds_shortcode_out_filter', $str); 174 wp_add_inline_style('nd_options_menu_style',$nd_options_style); 175 176 177 178 $nd_options_str_shortcode = wp_kses_post( $str ); 179 return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode); 180 172 181 } 173 182 //END -
nd-shortcodes/trunk/shortcodes/custom/open-sidebar/index.php
r2750702 r2913897 20 20 ), $atts); 21 21 22 wp_enqueue_script( 'nd_options_open_sidebar_plugin', esc_url( plugins_url( 'js/open-sidebar.js', __FILE__ ) ) ); 23 22 24 $str = ''; 23 25 … … 53 55 $nd_options_icon_position_right = $nd_options_icon_positions[0]; 54 56 $nd_options_icon_position_top = $nd_options_icon_positions[1]; 55 56 $str .= ' 57 58 59 <!--START js--> 60 <script type="text/javascript"> 61 //<![CDATA[ 62 63 jQuery(document).ready(function() { 57 58 $nd_options_script = ' 59 60 jQuery(document).ready(function() { 64 61 65 62 … … 103 100 }); 104 101 105 //]]> 106 </script> 107 <!--END js--> 108 109 102 '; 103 104 wp_add_inline_script('nd_options_open_sidebar_plugin',$nd_options_script); 105 106 107 $str .= ' 110 108 111 109 <div style="text-align:'.$nd_options_align.';" class="nd_options_section"> … … 148 146 <!--END sidebar-->'; 149 147 150 return apply_filters('uds_shortcode_out_filter', $str); 148 149 $nd_options_str_shortcode = wp_kses_post( $str ); 150 return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode); 151 151 152 } 152 153 //END PRICE -
nd-shortcodes/trunk/shortcodes/custom/post-grid/index.php
r2750702 r2913897 22 22 ), $atts); 23 23 24 wp_enqueue_script( 'nd_options_post_grid_plugin', esc_url( plugins_url( 'js/post-grid.js', __FILE__ ) ) ); 25 24 26 $str = ''; 25 27 … … 63 65 64 66 // the layout selected 67 $nd_options_layout = sanitize_key($nd_options_layout); 65 68 $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php'; 66 69 include realpath($nd_options_layout_selected); … … 69 72 wp_reset_postdata(); 70 73 71 72 return apply_filters('uds_shortcode_out_filter', $str); 74 $nd_options_str_shortcode = wp_kses_post( $str ); 75 return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode); 76 73 77 } 74 78 //END -
nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-1.php
r1456997 r2913897 4 4 wp_enqueue_script('masonry'); 5 5 6 $ str .= '6 $nd_options_script = ' 7 7 8 9 <script type="text/javascript"> 10 //<![CDATA[ 11 12 jQuery(document).ready(function() { 8 jQuery(document).ready(function() { 13 9 14 10 //START masonry … … 28 24 29 25 }); 30 31 //]]> 32 </script> 26 '; 27 wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script); 33 28 34 29 35 ';30 $str .= ''; 36 31 37 32 -
nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-10.php
r2131078 r2913897 4 4 wp_enqueue_script('masonry'); 5 5 6 7 $str .= ' 8 9 10 <script type="text/javascript"> 11 //<![CDATA[ 12 13 jQuery(document).ready(function() { 6 $nd_options_script = ' 7 jQuery(document).ready(function() { 14 8 15 9 //START masonry … … 30 24 }); 31 25 32 //]]>33 </script>34 35 36 26 '; 27 wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script); 28 29 30 $str .= ''; 37 31 38 32 -
nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-11.php
r2131078 r2913897 4 4 wp_enqueue_script('masonry'); 5 5 6 7 $str .= ' 8 9 10 <script type="text/javascript"> 11 //<![CDATA[ 12 13 jQuery(document).ready(function() { 6 $nd_options_script = ' 7 jQuery(document).ready(function() { 14 8 15 9 //START masonry … … 30 24 }); 31 25 32 //]]>33 </script>34 35 36 26 '; 27 wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script); 28 29 30 $str .= ''; 37 31 38 32 -
nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-12.php
r1970394 r2913897 4 4 wp_enqueue_script('masonry'); 5 5 6 $nd_options_script = ' 6 7 7 $str .= ' 8 9 <script type="text/javascript"> 10 //<![CDATA[ 11 12 jQuery(document).ready(function() { 8 jQuery(document).ready(function() { 13 9 14 10 //START masonry … … 29 25 }); 30 26 31 //]]> 32 </script> 27 '; 28 wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script); 33 29 34 '; 30 31 $str .= ''; 35 32 36 33 -
nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-13.php
r1970394 r2913897 4 4 wp_enqueue_script('masonry'); 5 5 6 7 $str .= ' 8 9 10 <script type="text/javascript"> 11 //<![CDATA[ 12 13 jQuery(document).ready(function() { 6 $nd_options_script = ' 7 jQuery(document).ready(function() { 14 8 15 9 //START masonry … … 29 23 30 24 }); 31 32 //]]> 33 </script> 25 '; 26 wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script); 34 27 35 28 36 ';29 $str .= ''; 37 30 38 31 -
nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-14.php
r2131078 r2913897 4 4 wp_enqueue_script('masonry'); 5 5 6 7 $str .= ' 8 9 10 <script type="text/javascript"> 11 //<![CDATA[ 12 13 jQuery(document).ready(function() { 6 $nd_options_script = ' 7 8 jQuery(document).ready(function() { 14 9 15 10 //START masonry … … 30 25 }); 31 26 32 //]]>33 </script>34 35 36 27 '; 28 wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script); 29 30 31 $str .= ''; 37 32 38 33 -
nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-15.php
r2185647 r2913897 4 4 wp_enqueue_script('masonry'); 5 5 6 7 $str .= ' 8 9 10 <script type="text/javascript"> 11 //<![CDATA[ 12 13 jQuery(document).ready(function() { 6 $nd_options_script = ' 7 jQuery(document).ready(function() { 14 8 15 9 //START masonry … … 30 24 }); 31 25 32 //]]>33 </script>34 35 36 26 '; 27 wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script); 28 29 30 $str .= ''; 37 31 38 32 -
nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-2.php
r1451436 r2913897 4 4 wp_enqueue_script('masonry'); 5 5 6 7 $str .= ' 8 9 10 <script type="text/javascript"> 11 //<![CDATA[ 12 13 jQuery(document).ready(function() { 6 $nd_options_script = ' 7 jQuery(document).ready(function() { 14 8 15 9 //START masonry … … 30 24 }); 31 25 32 //]]> 33 </script> 26 '; 27 wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script); 34 28 35 29 36 ';30 $str .= ''; 37 31 38 32 -
nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-3.php
r2131078 r2913897 4 4 wp_enqueue_script('masonry'); 5 5 6 7 $str .= ' 8 9 10 <script type="text/javascript"> 11 //<![CDATA[ 12 13 jQuery(document).ready(function() { 6 $nd_options_script = ' 7 jQuery(document).ready(function() { 14 8 15 9 //START masonry … … 30 24 }); 31 25 32 //]]>33 </script>34 35 36 26 '; 27 wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script); 28 29 30 $str .= ''; 37 31 38 32 -
nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-4.php
r2098338 r2913897 4 4 wp_enqueue_script('masonry'); 5 5 6 7 $str .= ' 8 9 10 <script type="text/javascript"> 11 //<![CDATA[ 12 13 jQuery(document).ready(function() { 6 $nd_options_script = ' 7 jQuery(document).ready(function() { 14 8 15 9 //START masonry … … 17 11 18 12 //Masonry 19 var $nd_options_masonry_content = $(".nd_options_masonry_content").imagesLoaded( function() {20 // init Masonry after all images have loaded21 $nd_options_masonry_content.masonry({22 itemSelector: ".nd_options_masonry_item"23 });24 });13 var $nd_options_masonry_content = $(".nd_options_masonry_content").imagesLoaded( function() { 14 // init Masonry after all images have loaded 15 $nd_options_masonry_content.masonry({ 16 itemSelector: ".nd_options_masonry_item" 17 }); 18 }); 25 19 26 20 … … 30 24 }); 31 25 32 //]]> 33 </script> 26 '; 27 wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script); 34 28 35 29 36 ';30 $str .= ''; 37 31 38 32 -
nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-5.php
r1593395 r2913897 4 4 wp_enqueue_script('masonry'); 5 5 6 7 $str .= ' 8 9 10 <script type="text/javascript"> 11 //<![CDATA[ 12 13 jQuery(document).ready(function() { 6 $nd_options_script = ' 7 jQuery(document).ready(function() { 14 8 15 9 //START masonry … … 30 24 }); 31 25 32 //]]> 33 </script> 26 '; 27 wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script); 34 28 35 29 36 ';30 $str .= ''; 37 31 38 32 -
nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-6.php
r2131078 r2913897 4 4 wp_enqueue_script('masonry'); 5 5 6 7 $str .= ' 8 9 10 <script type="text/javascript"> 11 //<![CDATA[ 12 13 jQuery(document).ready(function() { 6 $nd_options_script = ' 7 jQuery(document).ready(function() { 14 8 15 9 //START masonry … … 30 24 }); 31 25 32 //]]>33 </script>34 35 36 26 '; 27 wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script); 28 29 30 $str .= ''; 37 31 38 32 -
nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-7.php
r1580459 r2913897 4 4 wp_enqueue_script('masonry'); 5 5 6 $nd_options_script = ' 6 7 7 $str .= ' 8 9 10 <script type="text/javascript"> 11 //<![CDATA[ 12 13 jQuery(document).ready(function() { 8 jQuery(document).ready(function() { 14 9 15 10 //START masonry … … 29 24 30 25 }); 31 32 //]]> 33 </script> 26 '; 27 wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script); 34 28 35 29 36 ';30 $str .= ''; 37 31 38 32 -
nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-8.php
r2131078 r2913897 4 4 wp_enqueue_script('masonry'); 5 5 6 7 $str .= ' 8 9 10 <script type="text/javascript"> 11 //<![CDATA[ 12 13 jQuery(document).ready(function() { 6 $nd_options_script = ' 7 jQuery(document).ready(function() { 14 8 15 9 //START masonry … … 30 24 }); 31 25 32 //]]> 33 </script> 26 '; 27 wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script); 34 28 35 29 36 ';30 $str .= ''; 37 31 38 32 -
nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-9.php
r2131078 r2913897 4 4 wp_enqueue_script('masonry'); 5 5 6 7 $str .= ' 8 9 10 <script type="text/javascript"> 11 //<![CDATA[ 12 13 jQuery(document).ready(function() { 6 $nd_options_script = ' 7 jQuery(document).ready(function() { 14 8 15 9 //START masonry … … 30 24 }); 31 25 32 //]]>33 </script>34 35 36 26 '; 27 wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script); 28 29 30 $str .= ''; 37 31 38 32 -
nd-shortcodes/trunk/shortcodes/custom/post-search/index.php
r2750702 r2913897 29 29 ); 30 30 31 wp_enqueue_style( 'nd_options_post_search_style', esc_url( plugins_url( 'css/post-search.css', __FILE__ ) ) ); 31 32 wp_enqueue_script( 'nd_options_post_search_plugin', esc_url( plugins_url( 'js/post_search.js', __FILE__ ) ), array( 'jquery' ) ); 32 33 wp_localize_script( 'nd_options_post_search_plugin', 'nd_options_my_vars_get_search_results', $nd_options_get_search_results_params ); 33 34 35 34 36 //default value for avoid error 35 37 if ($nd_options_layout == '') { $nd_options_layout = "layout-1"; } 36 38 37 39 // the layout selected 40 $nd_options_layout = sanitize_key($nd_options_layout); 38 41 $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php'; 39 42 include realpath($nd_options_layout_selected); 40 43 41 44 42 $str .=' 43 44 <script type="text/javascript"> 45 //<![CDATA[ 46 47 jQuery(document).ready(function() { 45 $nd_options_script = ' 46 47 jQuery(document).ready(function() { 48 48 49 49 //START counter … … 71 71 }); 72 72 73 //]]>74 </script>75 76 73 '; 74 75 wp_add_inline_script('nd_options_post_search_plugin',$nd_options_script); 76 77 78 79 //check datas 80 $nd_options_allowed_html = [ 81 'div' => [ 82 'id' => [], 83 'class' => [], 84 'style' => [], 85 ], 86 'form' => [ 87 'method' => [], 88 'action' => [], 89 ], 90 'input' => [ 91 'id' => [], 92 'autocomplete' => [], 93 'value' => [], 94 'name' => [], 95 'class' => [], 96 'type' => [], 97 'placeholder' => [], 98 ], 99 'h4' => [ 100 'class' => [], 101 ], 102 'a' => [ 103 'class' => [], 104 'href' => [], 105 ], 106 'p' => [ 107 'class' => [], 108 ], 109 ]; 110 111 $str = wp_kses( $str, $nd_options_allowed_html ); 112 113 77 114 78 115 return apply_filters('uds_shortcode_out_filter', $str); -
nd-shortcodes/trunk/shortcodes/custom/post-search/layout/layout-1.php
r2134104 r2913897 1 1 <?php 2 3 4 $nd_options_style = ' 5 6 #nd_options_autocomplete_search_button { 7 background-image: url("'.esc_url(plugins_url('icon-search-grey.svg', __FILE__ )).'"); 8 background-size: 20px; 9 background-repeat: no-repeat; 10 background-position: left; 11 width: 40px; 12 height: 40px; 13 border: 0px solid #f1f1f1; 14 background-color: transparent; 15 } 16 17 #nd_options_autocomplete_search{ 18 border-radius: 25px; 19 font-size:15px; 20 border-bottom: 0px solid #f1f1f1; 21 } 22 23 #nd_options_autocomplete_search_loader { 24 background-image: url("'.esc_url(plugins_url('icon-loader-grey.svg', __FILE__ )).'"); 25 background-size: 15px; 26 background-repeat: no-repeat; 27 background-position: center; 28 width: 40px; 29 height: 40px; 30 right: 47px; 31 } 32 33 #nd_options_site_filter.nd_options_active { 34 background-color: rgba(101, 100, 96, 0.90); 35 position: fixed; 36 width: 100%; 37 height: 100%; 38 cursor: zoom-out; 39 z-index:9; 40 } 41 42 #nd_options_btn_view_more_results { 43 border-radius:0px; 44 } 45 46 '; 47 48 wp_add_inline_style('nd_options_post_search_style',$nd_options_style); 49 2 50 3 51 4 52 $str .= ' 5 53 54 <!--start post search--> 6 55 <div id="nd_options_autocomplete_search_container" class="nd_options_section nd_options_position_relative nd_options_z_index_98 '.$nd_options_class.' "> 7 56 <form method="get" action="'.esc_url(home_url()).'"> … … 16 65 </form> 17 66 </div> 18 19 20 21 <style type="text/css"> 22 /* autocomplete */ 23 #nd_options_autocomplete_search_button { 24 background-image: url("'.esc_url(plugins_url('icon-search-grey.svg', __FILE__ )).'"); 25 background-size: 20px; 26 background-repeat: no-repeat; 27 background-position: left; 28 width: 40px; 29 height: 40px; 30 border: 0px solid #f1f1f1; 31 background-color: transparent; 32 } 33 34 #nd_options_autocomplete_search{ 35 border-radius: 25px; 36 font-size:15px; 37 border-bottom: 0px solid #f1f1f1; 38 } 39 40 #nd_options_autocomplete_search_loader { 41 background-image: url("'.esc_url(plugins_url('icon-loader-grey.svg', __FILE__ )).'"); 42 background-size: 15px; 43 background-repeat: no-repeat; 44 background-position: center; 45 width: 40px; 46 height: 40px; 47 right: 47px; 48 } 49 50 #nd_options_site_filter.nd_options_active { 51 background-color: rgba(101, 100, 96, 0.90); 52 position: fixed; 53 width: 100%; 54 height: 100%; 55 cursor: zoom-out; 56 z-index:9; 57 } 58 59 #nd_options_btn_view_more_results { 60 border-radius:0px; 61 } 62 </style> 63 67 <!--end post search--> 64 68 65 69 '; -
nd-shortcodes/trunk/shortcodes/custom/price/index.php
r2750702 r2913897 63 63 64 64 // the layout selected 65 $nd_options_layout = sanitize_key($nd_options_layout); 65 66 $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php'; 66 67 include realpath($nd_options_layout_selected); 67 68 68 return apply_filters('uds_shortcode_out_filter', $str); 69 70 $nd_options_str_shortcode = wp_kses_post( $str ); 71 return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode); 72 69 73 } 70 74 //END PRICE -
nd-shortcodes/trunk/shortcodes/custom/service-pro/index.php
r2750702 r2913897 107 107 108 108 // the layout selected 109 $nd_options_layout = sanitize_key($nd_options_layout); 109 110 $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php'; 110 111 include realpath($nd_options_layout_selected); 111 112 112 113 //return the code 113 return apply_filters('uds_shortcode_out_filter', $str); 114 $nd_options_str_shortcode = wp_kses_post( $str ); 115 return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode); 114 116 115 117 } -
nd-shortcodes/trunk/shortcodes/custom/service/index.php
r2750702 r2913897 60 60 61 61 // the layout selected 62 $nd_options_layout = sanitize_key($nd_options_layout); 62 63 $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php'; 63 64 include realpath($nd_options_layout_selected); 64 65 65 66 //return the code 66 return apply_filters('uds_shortcode_out_filter', $str); 67 $nd_options_str_shortcode = wp_kses_post( $str ); 68 return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode); 67 69 68 70 } -
nd-shortcodes/trunk/shortcodes/custom/spacer/index.php
r2131078 r2913897 23 23 $str .= '<div style="background-color:'.$nd_options_bg.'; height: '.$nd_options_height.'px;" class="nicdark_section '.$nd_options_class.' "></div>'; 24 24 25 return apply_filters('uds_shortcode_out_filter', $str); 25 $nd_options_str_shortcode = wp_kses_post( $str ); 26 return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode); 26 27 } 27 28 //END -
nd-shortcodes/trunk/shortcodes/custom/text/index.php
r2131078 r2913897 25 25 ), $atts); 26 26 27 wp_enqueue_style( 'nd_options_text_style', esc_url( plugins_url( 'css/text.css', __FILE__ ) ) ); 28 27 29 $str = ''; 28 30 … … 49 51 $nd_options_underline_effect_class = 'nd_options_underline_effect nd_options_underline_effect_'.$nd_options_id_underline; 50 52 51 $str .= '52 53 53 <style> 54 $nd_options_style = ' 55 54 56 .nd_options_underline_effect.nd_options_underline_effect_'.$nd_options_id_underline.' u:after { 55 57 background-color:'.$nd_options_underline_effect_color.'; 56 58 } 57 </style>58 59 59 60 '; 61 wp_add_inline_style('nd_options_text_style',$nd_options_style); 62 63 $str .= ''; 60 64 61 65 }else{ … … 66 70 $str .= ' <'.$nd_options_text_tag.' style="color:'.$nd_options_text_color.'; padding:'.$nd_options_text_padding.'px; text-align:'.$nd_options_text_align.'; font-size:'.$nd_options_text_font_size.'px; line-height:'.$nd_options_text_line_height.'px; letter-spacing: '.$nd_options_text_letter_spacing.'px; font-weight:'.$nd_options_text_weight.';" class=" '.$nd_options_underline_effect_class.' '.$nd_options_class.' '.$nd_options_text_family.' ">'.$nd_options_text.'</'.$nd_options_text_tag.'> '; 67 71 68 return apply_filters('uds_shortcode_out_filter', $str); 72 73 $nd_options_str_shortcode = wp_kses_post( $str ); 74 return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode); 69 75 } 70 76 //END -
nd-shortcodes/trunk/shortcodes/custom/toogle/index.php
r2131078 r2913897 16 16 $str = ''; 17 17 18 19 wp_enqueue_script( 'nd_options_toogle_plugin', esc_url( plugins_url( 'js/toogle.js', __FILE__ ) ) ); 20 21 18 22 //get variables 19 23 $nd_options_class = $atts['nd_options_class']; … … 25 29 $nd_options_id_component = rand(0, 1000); 26 30 27 28 $str .='29 30 <script type="text/javascript">31 //<![CDATA[32 33 jQuery(document).ready(function() {34 31 35 //toogle 36 jQuery( ".nd_options_toogle_title_open_'.$nd_options_id_component.'" ).click(function() { 37 jQuery( ".nd_options_toogle_content_'.$nd_options_id_component.'" ).show( "slow", function() { 38 jQuery( ".nd_options_toogle_title_open_'.$nd_options_id_component.'" ).css("display","none"); 39 jQuery( ".nd_options_toogle_title_close_'.$nd_options_id_component.'" ).css("display","block"); 40 }); 32 33 $nd_options_script = ' 34 35 jQuery(document).ready(function() { 36 37 //toogle 38 jQuery( ".nd_options_toogle_title_open_'.$nd_options_id_component.'" ).click(function() { 39 jQuery( ".nd_options_toogle_content_'.$nd_options_id_component.'" ).show( "slow", function() { 40 jQuery( ".nd_options_toogle_title_open_'.$nd_options_id_component.'" ).css("display","none"); 41 jQuery( ".nd_options_toogle_title_close_'.$nd_options_id_component.'" ).css("display","block"); 41 42 }); 42 jQuery( ".nd_options_toogle_title_close_'.$nd_options_id_component.'" ).click(function() { 43 jQuery( ".nd_options_toogle_content_'.$nd_options_id_component.'" ).hide( "slow", function() { 44 jQuery( ".nd_options_toogle_title_close_'.$nd_options_id_component.'" ).css("display","none"); 45 jQuery( ".nd_options_toogle_title_open_'.$nd_options_id_component.'" ).css("display","block"); 46 }); 47 }); 48 43 }); 44 jQuery( ".nd_options_toogle_title_close_'.$nd_options_id_component.'" ).click(function() { 45 jQuery( ".nd_options_toogle_content_'.$nd_options_id_component.'" ).hide( "slow", function() { 46 jQuery( ".nd_options_toogle_title_close_'.$nd_options_id_component.'" ).css("display","none"); 47 jQuery( ".nd_options_toogle_title_open_'.$nd_options_id_component.'" ).css("display","block"); 48 }); 49 49 }); 50 50 51 //]]> 52 </script> 51 }); 53 52 54 53 '; 55 54 55 wp_add_inline_script('nd_options_toogle_plugin',$nd_options_script); 56 56 57 57 … … 80 80 '; 81 81 82 83 return apply_filters('uds_shortcode_out_filter', $ str);82 $nd_options_str_shortcode = wp_kses_post( $str ); 83 return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode); 84 84 } 85 85 //END PRICE -
nd-shortcodes/trunk/shortcodes/custom/typewriter/index.php
r2131078 r2913897 35 35 36 36 wp_enqueue_script( 'nd_options_typed_plugin', esc_url( plugins_url( 'js/typewriter.js', __FILE__ ) ) ); 37 38 39 $str .=' 40 41 37 wp_enqueue_style( 'nd_options_typewriter_style', esc_url( plugins_url( 'css/typewriter.css', __FILE__ ) ) ); 42 38 43 39 44 <script type="text/javascript"> 45 //<![CDATA[ 40 41 $nd_options_style = ' 42 43 .nd_options_typewriter_'.$nd_options_id_component.' .typed-cursor{ 44 45 font-size: '.$nd_options_text_font_size.'px; 46 color: '.$nd_options_text_color.'; 46 47 47 jQuery(document).ready(function() { 48 } 49 50 '; 51 wp_add_inline_style('nd_options_typewriter_style',$nd_options_style); 52 53 54 $nd_options_script = ' 55 56 jQuery(document).ready(function() { 48 57 49 58 //typed … … 59 68 }); 60 69 61 //]]> 62 </script> 70 '; 71 wp_add_inline_script('nd_options_typed_plugin',$nd_options_script); 72 63 73 64 74 65 66 67 <style type="text/css"> 68 69 .nd_options_typewriter_'.$nd_options_id_component.' .typed-cursor{ 70 71 font-size: '.$nd_options_text_font_size.'px; 72 color: '.$nd_options_text_color.'; 73 74 } 75 76 </style> 77 78 '; 75 $str .=''; 79 76 80 77 … … 108 105 '; 109 106 110 return apply_filters('uds_shortcode_out_filter', $str); 107 $nd_options_str_shortcode = wp_kses_post( $str ); 108 return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode); 111 109 } 112 110 //END -
nd-shortcodes/trunk/shortcodes/focus/index.php
r2750702 r2913897 54 54 55 55 // the layout selected 56 $nd_options_layout = sanitize_key($nd_options_layout); 56 57 $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php'; 57 58 include realpath($nd_options_layout_selected); 59 58 60 59 60 return apply_filters('uds_shortcode_out_filter', $str); 61 $nd_options_str_shortcode = wp_kses_post( $str ); 62 return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode); 63 61 64 } 62 65 //END FOCUS -
nd-shortcodes/trunk/shortcodes/price/index.php
r2131078 r2913897 93 93 '; 94 94 95 return apply_filters('uds_shortcode_out_filter', $str); 95 96 $nd_options_str_shortcode = wp_kses_post( $str ); 97 return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode); 98 96 99 } 97 100 //END PRICE -
nd-shortcodes/trunk/shortcodes/progress/index.php
r2750702 r2913897 33 33 34 34 // the layout selected 35 $nd_options_layout = sanitize_key($nd_options_layout); 35 36 $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php'; 36 37 include realpath($nd_options_layout_selected); 37 38 39 $nd_options_str_shortcode = wp_kses_post( $str ); 40 return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode); 38 41 39 return apply_filters('uds_shortcode_out_filter', $str);40 42 } 41 43 //END progress -
nd-shortcodes/trunk/shortcodes/service/index.php
r2131078 r2913897 52 52 '; 53 53 54 return apply_filters('uds_shortcode_out_filter', $str); 54 $nd_options_str_shortcode = wp_kses_post( $str ); 55 return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode); 56 55 57 } 56 58 //END SERVICE -
nd-shortcodes/trunk/shortcodes/team/index.php
r2750702 r2913897 83 83 84 84 // the layout selected 85 $nd_options_layout = sanitize_key($nd_options_layout); 85 86 $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php'; 86 87 include realpath($nd_options_layout_selected); 87 88 89 $nd_options_str_shortcode = wp_kses_post( $str ); 90 return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode); 88 91 89 return apply_filters('uds_shortcode_out_filter', $str);90 92 } 91 93 //END TEAM -
nd-shortcodes/trunk/shortcodes/testimonial/index.php
r2850442 r2913897 36 36 37 37 //the layout selected 38 $nd_options_layout = sanitize_key($nd_options_layout); 38 39 $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php'; 39 40 include realpath($nd_options_layout_selected);
Note: See TracChangeset
for help on using the changeset viewer.