Plugin Directory

Changeset 2913897


Ignore:
Timestamp:
05/17/2023 06:20:59 PM (3 years ago)
Author:
nicdark
Message:

edit files for version 6.9

Location:
nd-shortcodes/trunk
Files:
24 added
53 edited

Legend:

Unmodified
Added
Removed
  • nd-shortcodes/trunk/nd-shortcodes.php

    r2894413 r2913897  
    33Plugin Name:       ND Shortcodes
    44Description:       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.8
     5Version:           6.9
    66Plugin URI:        https://nicdark.com
    77Author:            Nicdark
  • nd-shortcodes/trunk/readme.txt

    r2894413 r2913897  
    44Requires at least: 4.5
    55Tested up to: 6.2
    6 Stable tag: 6.8
     6Stable tag: 6.9
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2727
    2828== Changelog ==
     29
     30= 6.9 =
     31* added escaping variables on shortcodes folder
     32* added sanitize_key() function on layout variable inclusion
    2933
    3034= 6.8 =
  • nd-shortcodes/trunk/shortcodes/custom/badge/index.php

    r2131078 r2913897  
    5454   ';
    5555
    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);
    5759}
    5860//END PRICE
  • nd-shortcodes/trunk/shortcodes/custom/beforeafter/index.php

    r2241937 r2913897  
    2323
    2424  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__ ) ) );
    2728
    28   <style>
    29  
    30   #nd_options_beforeafter_component img { float:left; width:100%;  }
    3129
    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 = '
    4031  #nd_options_beforeafter_component .ui-slider-range {
    4132    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;
    4833  }
    4934
    5035  #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.';
    5737  }
    5838
    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 {
    6340    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%;
    7041    background-image:url('.esc_url(plugins_url('ico.png', __FILE__ )).');
    71     background-size: 30px;
    72     background-position: center;
    73     background-repeat: no-repeat;
    7442  }
    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 .= '
    9147  <div class="'.$nd_options_class.' nd_options_section">
    9248      <div id="nd_options_beforeafter_component">
     
    9551  </div>';
    9652
     53  $nd_options_str_shortcode = wp_kses_post( $str );
    9754  return apply_filters('uds_shortcode_out_filter', $str);
    9855
  • nd-shortcodes/trunk/shortcodes/custom/button/index.php

    r2750702 r2913897  
    8484
    8585  // the layout selected
     86  $nd_options_layout = sanitize_key($nd_options_layout);
    8687  $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php';
    8788  include realpath($nd_options_layout_selected);
    8889
    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 
    9094}
    9195//END PRICE
  • nd-shortcodes/trunk/shortcodes/custom/cf7/index.php

    r2750702 r2913897  
    1717  ), $atts);
    1818
     19  wp_enqueue_style( 'nd_options_cf7_style', esc_url( plugins_url( 'css/cf7.css', __FILE__ ) ) );
     20
    1921  $str = '';
    2022
     
    3436
    3537  // the layout selected
     38  $nd_options_layout = sanitize_key($nd_options_layout);
    3639  $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php';
    3740  include realpath($nd_options_layout_selected);
    3841
    3942
    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 
    41138}
    42139//END CF7
  • nd-shortcodes/trunk/shortcodes/custom/cf7/layout/layout-1.php

    r1452622 r2913897  
    55  if ( $nd_options_fields_full_width == 1 ) {
    66
    7     $str .= '
    87
    9     <style>
    10 
     8    $nd_options_style = '
    119    #nd_options_shortcode_cf7_'.$atts['nd_options_cf7'].' input[type="text"],
    1210    #nd_options_shortcode_cf7_'.$atts['nd_options_cf7'].' input[type="email"],
     
    3836
    3937    }
     38    ';
     39    wp_add_inline_style('nd_options_cf7_style',$nd_options_style);
    4040
    41     </style>
    4241
    43   ';
     42    $str .= '';
    4443
    4544  }
  • nd-shortcodes/trunk/shortcodes/custom/cf7/layout/layout-2.php

    r1452622 r2913897  
    55  if ( $nd_options_fields_full_width == 1 ) {
    66
    7     $str .= '
    87
    9     <style>
     8    $nd_options_style = '
    109
    1110    #nd_options_shortcode_cf7_'.$atts['nd_options_cf7'].' input[type="text"],
     
    3837    }
    3938
    40     </style>
     39    ';
     40    wp_add_inline_style('nd_options_cf7_style',$nd_options_style);
    4141
    42   ';
     42
     43    $str .= '';
    4344
    4445  }
  • nd-shortcodes/trunk/shortcodes/custom/column/index.php

    r1461374 r2913897  
    1919
    2020
    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   
    2226}
    2327
  • nd-shortcodes/trunk/shortcodes/custom/countdown/index.php

    r2750702 r2913897  
    7070  //add script
    7171  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__ ) ) );
    7373
    7474
     
    7979
    8080  // the layout selected
     81  $nd_options_layout = sanitize_key($nd_options_layout);
    8182  $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php';
    8283  include realpath($nd_options_layout_selected);
     
    8485  $str .= '<div class="nd_options_countdown"></div>';
    8586
    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);
    8789}
    8890//END
  • nd-shortcodes/trunk/shortcodes/custom/countdown/layout/layout-1.php

    r1512796 r2913897  
    11<?php
    22
     3 
     4  $nd_options_script = '
    35
    4   $str .='
    5  
    6  
    7 
    8 
    9   <script type="text/javascript">
    10     //<![CDATA[
    11    
    126    jQuery(document).ready(function() {
    137
     
    3933    });
    4034
    41     //]]>
    42   </script>
     35  ';
    4336
    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  
    22
    33
    4   $str .='
    5  
    6  
     4   
     5  $nd_options_script = '
    76
    8 
    9   <script type="text/javascript">
    10     //<![CDATA[
    11    
    12     jQuery(document).ready(function() {
     7  jQuery(document).ready(function() {
    138
    149      //START counter
     
    3833
    3934    });
    40 
    41     //]]>
    42   </script>
     35   
    4336
    4437  ';
     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  
    11<?php
    22
     3     
     4  $nd_options_script = '
    35
    4   $str .='
    5  
    6  
    7 
    8 
    9   <script type="text/javascript">
    10     //<![CDATA[
    11    
    12     jQuery(document).ready(function() {
     6  jQuery(document).ready(function() {
    137
    148      //START counter
     
    3832
    3933    });
    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   
    6435
    6536  ';
     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  
    3232  wp_enqueue_script( 'nd_options_counter_plugin', esc_url( plugins_url( 'js/counter.js', __FILE__ ) ) );
    3333
    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() {
    4037
    4138      //START counter
     
    5451      //END counter
    5552
    56     });
    57 
    58     //]]>
    59   </script>
     53    }); 
    6054
    6155  ';
    6256
     57  wp_add_inline_script('nd_options_counter_plugin',$nd_options_script);
     58
     59  $str .='';
    6360
    6461  //default value for avoid error
     
    6663
    6764  // the layout selected
     65  $nd_options_layout = sanitize_key($nd_options_layout);
    6866  $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php';
    6967  include realpath($nd_options_layout_selected);
    7068
    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 
    7372}
    7473//END
  • nd-shortcodes/trunk/shortcodes/custom/divider/index.php

    r2750702 r2913897  
    3030
    3131  // the layout selected
     32  $nd_options_layout = sanitize_key($nd_options_layout);
    3233  $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php';
    3334  include realpath($nd_options_layout_selected);
    3435
    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 
    3640}
    3741//END FOCUS
  • nd-shortcodes/trunk/shortcodes/custom/focus-number/index.php

    r2750702 r2913897  
    1717    'nd_options_image_bg' => '',
    1818  ), $atts);
     19
     20  wp_enqueue_style( 'nd_options_focus_number_style', esc_url( plugins_url( 'css/focus-number.css', __FILE__ ) ) );
    1921
    2022  $str = '';
     
    4244
    4345  // the layout selected
     46  $nd_options_layout = sanitize_key($nd_options_layout);
    4447  $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php';
    4548  include realpath($nd_options_layout_selected);
    4649
    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 
    4953}
    5054//END FOCUS
  • nd-shortcodes/trunk/shortcodes/custom/focus-number/layout/layout-2.php

    r1512796 r2913897  
    11<?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
     12wp_add_inline_style('nd_options_focus_number_style',$nd_options_style);
    213
    314 
    415$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>
    916
    1017  <!--START FOCUS NUMBER-->
  • nd-shortcodes/trunk/shortcodes/custom/image/index.php

    r2131078 r2913897  
    2929   ';
    3030
    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   
    3234}
    3335//END PRICE
  • nd-shortcodes/trunk/shortcodes/custom/list/index.php

    r2131078 r2913897  
    6767  ';
    6868
    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 
    7072}
    7173//END PRICE
  • nd-shortcodes/trunk/shortcodes/custom/magic-popup/index.php

    r2788073 r2913897  
    8383
    8484  //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 
    8892}
    8993//END FOCUS
  • nd-shortcodes/trunk/shortcodes/custom/menu/index.php

    r2131078 r2913897  
    4343    'nd_options_menu_padding' => '',
    4444  ), $atts);
     45
     46  wp_enqueue_style( 'nd_options_menu_style', esc_url( plugins_url( 'css/menu.css', __FILE__ ) ) );
    4547
    4648  $str = '';
     
    101103  $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>';
    102104
    103   $str .= '
    104 
    105   <style>
     105  $str .= '';
     106
     107
     108  $nd_options_style = '';
     109  $nd_options_style .= '
     110
    106111
    107112  .nd_options_menu_component_'.$nd_options_menu_id.' ul.menu{
     
    138143  //adjust padding based on aligm
    139144  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; }';
    141146  }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 .= '
    146151  #nd_options_header_5 .vc_row[data-vc-full-width] { overflow:visible; }
    147152
     
    164169
    165170
    166   </style>
     171
    167172
    168173  ';
    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 
    172181}
    173182//END
  • nd-shortcodes/trunk/shortcodes/custom/open-sidebar/index.php

    r2750702 r2913897  
    2020  ), $atts);
    2121
     22  wp_enqueue_script( 'nd_options_open_sidebar_plugin', esc_url( plugins_url( 'js/open-sidebar.js', __FILE__ ) ) );
     23
    2224  $str = '';
    2325
     
    5355  $nd_options_icon_position_right = $nd_options_icon_positions[0];
    5456  $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() {
    6461
    6562     
     
    103100    });
    104101
    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 .= '
    110108
    111109    <div style="text-align:'.$nd_options_align.';" class="nd_options_section">
     
    148146    <!--END sidebar-->';
    149147
    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   
    151152}
    152153//END PRICE
  • nd-shortcodes/trunk/shortcodes/custom/post-grid/index.php

    r2750702 r2913897  
    2222  ), $atts);
    2323
     24  wp_enqueue_script( 'nd_options_post_grid_plugin', esc_url( plugins_url( 'js/post-grid.js', __FILE__ ) ) );
     25
    2426  $str = '';
    2527
     
    6365 
    6466  // the layout selected
     67  $nd_options_layout = sanitize_key($nd_options_layout);
    6568  $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php';
    6669  include realpath($nd_options_layout_selected);
     
    6972  wp_reset_postdata();
    7073
    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
    7377}
    7478//END
  • nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-1.php

    r1456997 r2913897  
    44wp_enqueue_script('masonry');
    55
    6 $str .= '
     6$nd_options_script = '
    77
    8 
    9     <script type="text/javascript">
    10     //<![CDATA[
    11    
    12     jQuery(document).ready(function() {
     8jQuery(document).ready(function() {
    139
    1410      //START masonry
     
    2824
    2925    });
    30 
    31     //]]>
    32   </script>
     26';
     27wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script);
    3328
    3429
    35 ';
     30$str .= '';
    3631
    3732
  • nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-10.php

    r2131078 r2913897  
    44wp_enqueue_script('masonry');
    55
    6 
    7 $str .= '
    8 
    9 
    10     <script type="text/javascript">
    11     //<![CDATA[
    12    
    13     jQuery(document).ready(function() {
     6$nd_options_script = '
     7jQuery(document).ready(function() {
    148
    159      //START masonry
     
    3024    });
    3125
    32     //]]>
    33   </script>
    34 
    35 
    3626';
     27wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script);
     28
     29
     30$str .= '';
    3731
    3832
  • nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-11.php

    r2131078 r2913897  
    44wp_enqueue_script('masonry');
    55
    6 
    7 $str .= '
    8 
    9 
    10     <script type="text/javascript">
    11     //<![CDATA[
    12    
    13     jQuery(document).ready(function() {
     6$nd_options_script = '
     7jQuery(document).ready(function() {
    148
    159      //START masonry
     
    3024    });
    3125
    32     //]]>
    33   </script>
    34 
    35 
    3626';
     27wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script);
     28
     29
     30$str .= '';
    3731
    3832
  • nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-12.php

    r1970394 r2913897  
    44wp_enqueue_script('masonry');
    55
     6$nd_options_script = '
    67
    7 $str .= '
    8 
    9     <script type="text/javascript">
    10     //<![CDATA[
    11    
    12     jQuery(document).ready(function() {
     8jQuery(document).ready(function() {
    139
    1410      //START masonry
     
    2925    });
    3026
    31     //]]>
    32   </script>
     27';
     28wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script);
    3329
    34 ';
     30
     31$str .= '';
    3532
    3633
  • nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-13.php

    r1970394 r2913897  
    44wp_enqueue_script('masonry');
    55
    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() {
    148
    159      //START masonry
     
    2923
    3024    });
    31 
    32     //]]>
    33   </script>
     25';
     26wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script);
    3427
    3528
    36 ';
     29$str .= '';
    3730
    3831
  • nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-14.php

    r2131078 r2913897  
    44wp_enqueue_script('masonry');
    55
    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() {
    149
    1510      //START masonry
     
    3025    });
    3126
    32     //]]>
    33   </script>
    34 
    35 
    3627';
     28wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script);
     29
     30
     31$str .= '';
    3732
    3833
  • nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-15.php

    r2185647 r2913897  
    44wp_enqueue_script('masonry');
    55
    6 
    7 $str .= '
    8 
    9 
    10     <script type="text/javascript">
    11     //<![CDATA[
    12    
    13     jQuery(document).ready(function() {
     6$nd_options_script = '
     7jQuery(document).ready(function() {
    148
    159      //START masonry
     
    3024    });
    3125
    32     //]]>
    33   </script>
    34 
    35 
    3626';
     27wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script);
     28
     29
     30$str .= '';
    3731
    3832
  • nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-2.php

    r1451436 r2913897  
    44wp_enqueue_script('masonry');
    55
    6 
    7 $str .= '
    8 
    9 
    10     <script type="text/javascript">
    11     //<![CDATA[
    12    
    13     jQuery(document).ready(function() {
     6$nd_options_script = '
     7jQuery(document).ready(function() {
    148
    159      //START masonry
     
    3024    });
    3125
    32     //]]>
    33   </script>
     26';
     27wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script);
    3428
    3529
    36 ';
     30$str .= '';
    3731
    3832
  • nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-3.php

    r2131078 r2913897  
    44wp_enqueue_script('masonry');
    55
    6 
    7 $str .= '
    8 
    9 
    10     <script type="text/javascript">
    11     //<![CDATA[
    12    
    13     jQuery(document).ready(function() {
     6$nd_options_script = '
     7jQuery(document).ready(function() {
    148
    159      //START masonry
     
    3024    });
    3125
    32     //]]>
    33   </script>
    34 
    35 
    3626';
     27wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script);
     28
     29
     30$str .= '';
    3731
    3832
  • nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-4.php

    r2098338 r2913897  
    44wp_enqueue_script('masonry');
    55
    6 
    7 $str .= '
    8 
    9 
    10     <script type="text/javascript">
    11     //<![CDATA[
    12    
    13     jQuery(document).ready(function() {
     6$nd_options_script = '
     7jQuery(document).ready(function() {
    148
    159      //START masonry
     
    1711       
    1812        //Masonry
    19         var $nd_options_masonry_content = $(".nd_options_masonry_content").imagesLoaded( function() {
    20           // init Masonry after all images have loaded
    21           $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    });
    2519
    2620
     
    3024    });
    3125
    32     //]]>
    33   </script>
     26';
     27wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script);
    3428
    3529
    36 ';
     30$str .= '';
    3731
    3832
  • nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-5.php

    r1593395 r2913897  
    44wp_enqueue_script('masonry');
    55
    6 
    7 $str .= '
    8 
    9 
    10     <script type="text/javascript">
    11     //<![CDATA[
    12    
    13     jQuery(document).ready(function() {
     6$nd_options_script = '
     7jQuery(document).ready(function() {
    148
    159      //START masonry
     
    3024    });
    3125
    32     //]]>
    33   </script>
     26';
     27wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script);
    3428
    3529
    36 ';
     30$str .= '';
    3731
    3832
  • nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-6.php

    r2131078 r2913897  
    44wp_enqueue_script('masonry');
    55
    6 
    7 $str .= '
    8 
    9 
    10     <script type="text/javascript">
    11     //<![CDATA[
    12    
    13     jQuery(document).ready(function() {
     6$nd_options_script = '
     7jQuery(document).ready(function() {
    148
    159      //START masonry
     
    3024    });
    3125
    32     //]]>
    33   </script>
    34 
    35 
    3626';
     27wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script);
     28
     29
     30$str .= '';
    3731
    3832
  • nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-7.php

    r1580459 r2913897  
    44wp_enqueue_script('masonry');
    55
     6$nd_options_script = '
    67
    7 $str .= '
    8 
    9 
    10     <script type="text/javascript">
    11     //<![CDATA[
    12    
    13     jQuery(document).ready(function() {
     8jQuery(document).ready(function() {
    149
    1510      //START masonry
     
    2924
    3025    });
    31 
    32     //]]>
    33   </script>
     26';
     27wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script);
    3428
    3529
    36 ';
     30$str .= '';
    3731
    3832
  • nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-8.php

    r2131078 r2913897  
    44wp_enqueue_script('masonry');
    55
    6 
    7 $str .= '
    8 
    9 
    10     <script type="text/javascript">
    11     //<![CDATA[
    12    
    13     jQuery(document).ready(function() {
     6$nd_options_script = '
     7jQuery(document).ready(function() {
    148
    159      //START masonry
     
    3024    });
    3125
    32     //]]>
    33   </script>
     26';
     27wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script);
    3428
    3529
    36 ';
     30$str .= '';
    3731
    3832
  • nd-shortcodes/trunk/shortcodes/custom/post-grid/layout/layout-9.php

    r2131078 r2913897  
    44wp_enqueue_script('masonry');
    55
    6 
    7 $str .= '
    8 
    9 
    10     <script type="text/javascript">
    11     //<![CDATA[
    12    
    13     jQuery(document).ready(function() {
     6$nd_options_script = '
     7jQuery(document).ready(function() {
    148
    159      //START masonry
     
    3024    });
    3125
    32     //]]>
    33   </script>
    34 
    35 
    3626';
     27wp_add_inline_script('nd_options_post_grid_plugin',$nd_options_script);
     28
     29
     30$str .= '';
    3731
    3832
  • nd-shortcodes/trunk/shortcodes/custom/post-search/index.php

    r2750702 r2913897  
    2929  );
    3030
     31  wp_enqueue_style( 'nd_options_post_search_style', esc_url( plugins_url( 'css/post-search.css', __FILE__ ) ) );
    3132  wp_enqueue_script( 'nd_options_post_search_plugin', esc_url( plugins_url( 'js/post_search.js', __FILE__ ) ), array( 'jquery' ) );
    3233  wp_localize_script( 'nd_options_post_search_plugin', 'nd_options_my_vars_get_search_results', $nd_options_get_search_results_params );
    3334
     35
    3436  //default value for avoid error
    3537  if ($nd_options_layout == '') { $nd_options_layout = "layout-1"; }
    3638
    3739  // the layout selected
     40  $nd_options_layout = sanitize_key($nd_options_layout);
    3841  $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php';
    3942  include realpath($nd_options_layout_selected);
    4043
    4144
    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() {
    4848
    4949      //START counter
     
    7171    });
    7272
    73     //]]>
    74   </script>
    75 
    7673  ';
     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
    77114
    78115   return apply_filters('uds_shortcode_out_filter', $str);
  • nd-shortcodes/trunk/shortcodes/custom/post-search/layout/layout-1.php

    r2134104 r2913897  
    11<?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
     48wp_add_inline_style('nd_options_post_search_style',$nd_options_style);
     49
    250
    351 
    452$str .= '
    553
     54    <!--start post search-->
    655    <div id="nd_options_autocomplete_search_container" class="nd_options_section nd_options_position_relative nd_options_z_index_98 '.$nd_options_class.' ">
    756        <form method="get" action="'.esc_url(home_url()).'">
     
    1665        </form>
    1766    </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-->
    6468
    6569';
  • nd-shortcodes/trunk/shortcodes/custom/price/index.php

    r2750702 r2913897  
    6363
    6464  // the layout selected
     65  $nd_options_layout = sanitize_key($nd_options_layout);
    6566  $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php';
    6667  include realpath($nd_options_layout_selected);
    6768     
    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   
    6973}
    7074//END PRICE
  • nd-shortcodes/trunk/shortcodes/custom/service-pro/index.php

    r2750702 r2913897  
    107107
    108108  // the layout selected
     109  $nd_options_layout = sanitize_key($nd_options_layout);
    109110  $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php';
    110111  include realpath($nd_options_layout_selected);
    111112
    112113  //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);
    114116
    115117}
  • nd-shortcodes/trunk/shortcodes/custom/service/index.php

    r2750702 r2913897  
    6060
    6161  // the layout selected
     62  $nd_options_layout = sanitize_key($nd_options_layout);
    6263  $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php';
    6364  include realpath($nd_options_layout_selected);
    6465
    6566  //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);
    6769
    6870}
  • nd-shortcodes/trunk/shortcodes/custom/spacer/index.php

    r2131078 r2913897  
    2323  $str .= '<div style="background-color:'.$nd_options_bg.'; height: '.$nd_options_height.'px;" class="nicdark_section '.$nd_options_class.' "></div>';
    2424
    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);
    2627}
    2728//END
  • nd-shortcodes/trunk/shortcodes/custom/text/index.php

    r2131078 r2913897  
    2525  ), $atts);
    2626
     27  wp_enqueue_style( 'nd_options_text_style', esc_url( plugins_url( 'css/text.css', __FILE__ ) ) );
     28
    2729  $str = '';
    2830
     
    4951    $nd_options_underline_effect_class = 'nd_options_underline_effect nd_options_underline_effect_'.$nd_options_id_underline;
    5052
    51     $str .= '
    5253
    53       <style>
     54    $nd_options_style = '
     55
    5456      .nd_options_underline_effect.nd_options_underline_effect_'.$nd_options_id_underline.' u:after {
    5557        background-color:'.$nd_options_underline_effect_color.';
    5658      }
    57       </style>
    5859
    5960    ';
     61    wp_add_inline_style('nd_options_text_style',$nd_options_style);
     62
     63    $str .= '';
    6064
    6165  }else{
     
    6670  $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.'> ';
    6771
    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);
    6975}
    7076//END
  • nd-shortcodes/trunk/shortcodes/custom/toogle/index.php

    r2131078 r2913897  
    1616  $str = '';
    1717
     18
     19  wp_enqueue_script( 'nd_options_toogle_plugin', esc_url( plugins_url( 'js/toogle.js', __FILE__ ) ) );
     20
     21
    1822  //get variables
    1923  $nd_options_class = $atts['nd_options_class'];
     
    2529  $nd_options_id_component = rand(0, 1000);
    2630
    27  
    28   $str .='
    29  
    30   <script type="text/javascript">
    31     //<![CDATA[
    32    
    33     jQuery(document).ready(function() {
    3431
    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");
    4142      });
    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      });
    4949    });
    5050
    51     //]]>
    52   </script>
     51  });
    5352
    5453  ';
    5554
     55  wp_add_inline_script('nd_options_toogle_plugin',$nd_options_script);
    5656
    5757
     
    8080   ';
    8181
    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);
    8484}
    8585//END PRICE
  • nd-shortcodes/trunk/shortcodes/custom/typewriter/index.php

    r2131078 r2913897  
    3535 
    3636  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__ ) ) );
    4238
    4339
    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.';
    4647   
    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() {
    4857
    4958      //typed
     
    5968    });
    6069
    61     //]]>
    62   </script>
     70  ';
     71  wp_add_inline_script('nd_options_typed_plugin',$nd_options_script);
     72 
    6373
    6474 
    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 .='';
    7976
    8077
     
    108105  ';
    109106
    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);
    111109}
    112110//END
  • nd-shortcodes/trunk/shortcodes/focus/index.php

    r2750702 r2913897  
    5454
    5555  // the layout selected
     56  $nd_options_layout = sanitize_key($nd_options_layout);
    5657  $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php';
    5758  include realpath($nd_options_layout_selected);
     59   
    5860
    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 
    6164}
    6265//END FOCUS
  • nd-shortcodes/trunk/shortcodes/price/index.php

    r2131078 r2913897  
    9393   ';
    9494
    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
    9699}
    97100//END PRICE
  • nd-shortcodes/trunk/shortcodes/progress/index.php

    r2750702 r2913897  
    3333
    3434  // the layout selected
     35  $nd_options_layout = sanitize_key($nd_options_layout);
    3536  $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php';
    3637  include realpath($nd_options_layout_selected);
    3738
     39  $nd_options_str_shortcode = wp_kses_post( $str );
     40  return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode);
    3841 
    39   return apply_filters('uds_shortcode_out_filter', $str);
    4042}
    4143//END progress
  • nd-shortcodes/trunk/shortcodes/service/index.php

    r2131078 r2913897  
    5252   ';
    5353
    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   
    5557}
    5658//END SERVICE
  • nd-shortcodes/trunk/shortcodes/team/index.php

    r2750702 r2913897  
    8383
    8484  // the layout selected
     85  $nd_options_layout = sanitize_key($nd_options_layout);
    8586  $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php';
    8687  include realpath($nd_options_layout_selected);
    8788
     89  $nd_options_str_shortcode = wp_kses_post( $str );
     90  return apply_filters('uds_shortcode_out_filter', $nd_options_str_shortcode);
    8891 
    89   return apply_filters('uds_shortcode_out_filter', $str);
    9092}
    9193//END TEAM
  • nd-shortcodes/trunk/shortcodes/testimonial/index.php

    r2850442 r2913897  
    3636
    3737  //the layout selected
     38  $nd_options_layout = sanitize_key($nd_options_layout);
    3839  $nd_options_layout_selected = dirname( __FILE__ ).'/layout/'.$nd_options_layout.'.php';
    3940  include realpath($nd_options_layout_selected);
Note: See TracChangeset for help on using the changeset viewer.