PATH:
home
/
letacommog
/
supportleta
/
wp-content
/
plugins
/
webnus-shortcodes
/
shortcodes
<?php function easyweb_webnus_checklist_custom_param($settings, $value) { $output = '<div class="easyweb_webnus_checklistbox_container" style="border:2px solid #ccc; width:100%; height: 100px; overflow-y: scroll;display:block">'; $output .= '<input id="easyweb_webnus_checklist" name="'.$settings['param_name'] .'" class="wpb_vc_param_value wpb-textinput ' .$settings['param_name'].' '.$settings['type'].'_field" type="hidden" value="' .$value.'">'; if(is_array($settings['value'])) $params = $settings['value']; else { $params = array(); } // For check the checkboxes in load,select previous values $values = array(); if(!empty($value)) $values = explode(',', $value); foreach($params as $param=>$val){ if(in_array($val, $values)) $output .= "<p><input checked='checked' type='checkbox' name='{$settings['param_name']}' value='$val' class='checkbox easyweb_webnus_checklist' /> <span style='display:width:90%'>$param </span></p>"; else $output .= "<p><input type='checkbox' name='{$settings['param_name']}' value='$val' class='checkbox easyweb_webnus_checklist' /> <span style='display:width:90%'>$param </span></p>"; } $output .= '</div>'; $output .= '<script type="text/javascript">jQuery(document).ready(function(){ jQuery(".easyweb_webnus_checklist").click(function(){ var listbox_values = []; jQuery(".easyweb_webnus_checklist:checked").each(function(index){ listbox_values.push(jQuery(this).val()); }); jQuery("#easyweb_webnus_checklist").val(listbox_values); }); });</script>'; return $output; } if ( class_exists( 'Vc_Manager' ) ) : vc_add_shortcode_param('checklist', 'easyweb_webnus_checklist_custom_param'); endif;
[+]
..
[-] ourclients.php
[edit]
[-] pricing-plan.php
[edit]
[-] callout.php
[edit]
[-] icon.php
[edit]
[-] blog.php
[edit]
[-] buy-process.php
[edit]
[-] tab.php
[edit]
[-] distance.php
[edit]
[-] heading.php
[edit]
[-] alerts.php
[edit]
[-] categorybox.php
[edit]
[-] columns.php
[edit]
[-] ministry.php
[edit]
[-] postfromblog.php
[edit]
[-] single-resource-books.php
[edit]
[-] ourteam.php
[edit]
[-] video-bg.php
[edit]
[-] accordion.php
[edit]
[-] title.php
[edit]
[-] portfolio-carousel.php
[edit]
[-] webtags.php
[edit]
[-] slide-up-note.php
[edit]
[-] latest-from-blog.php
[edit]
[-] iconbox.php
[edit]
[-] quote.php
[edit]
[-] iconfonts-param.php
[edit]
[-] subscribe.php
[edit]
[-] list.php
[edit]
[-] buttons.php
[edit]
[-] checklist-param.php
[edit]
[-] maxslider.php
[edit]
[-] teaser-box.php
[edit]
[-] latest-news.php
[edit]
[-] testimonial-carousel.php
[edit]
[-] our-porcess.php
[edit]
[-] lefttab.php
[edit]
[-] flexslider.php
[edit]
[-] icon-divider.php
[edit]
[-] googlemap.php
[edit]
[-] webnus-divider.php
[edit]
[-] tooltip.php
[edit]
[-] highlight.php
[edit]
[-] taglineslider.php
[edit]
[-] pie.php
[edit]
[-] countdown.php
[edit]
[-] maxcounter.php
[edit]
[-] testimonials.php
[edit]
[-] parallax.php
[edit]
[-] doublepromo.php
[edit]
[-] resource-books.php
[edit]
[-] progressbar.php
[edit]
[-] dropcap.php
[edit]
[-] video-play.php
[edit]
[-] blox.php
[edit]
[-] pricingtables.php
[edit]
[-] magicmore.php
[edit]