function wpc_shortcode_childpage($atts, $content = null) { // extract(shortcode_atts(array( // 'widget_title' => '', // 'parrent_page_id' => '', // 'order' => '', // 'orderby' => '', // 'exclude' => '', // 'layout' => '', // 'column' => '', // 'number' => '', // 'readmore_text' => '', // 'el_class' => '' // ), $atts)); $atts = vc_map_get_attributes('wpc_childpage', $atts); extract($atts); //$widget_title = $parrent_page_ID = $readmore_text = $el_class = null; if ($exclude) { $exclude = array($exclude); } else { $exclude = ''; } $output = null; $output .= ' <div class="child-page-wrapper">'; if ($widget_title) { $output .= ' <h3 class="builder-heading">' . wp_kses_post($widget_title) . '</h3>'; } $output .= wpcharming_list_child_pages($parrent_page_id, $order, $orderby, $exclude, $layout, $column, $number, $readmore_text); $output .= ' </div>'; return $output; }
function wpc_shortcode_childpage($atts, $content = null) { extract(shortcode_atts(array('widget_title' => '', 'parrent_page_id' => '', 'order' => '', 'orderby' => '', 'exclude' => '', 'layout' => '', 'column' => '', 'number' => '', 'readmore_text' => '', 'el_class' => ''), $atts)); //$widget_title = $parrent_page_ID = $readmore_text = $el_class = null; if ($exclude) { $exclude = array($exclude); } else { $exclude = ''; } $output = null; $output .= ' <div class="child-page-wrapper ' . esc_attr($el_class) . '">'; if ($widget_title) { $output .= ' <h3 class="builder-heading">' . esc_attr($widget_title) . '</h3>'; } $output .= wpcharming_list_child_pages($parrent_page_id, $order, $orderby, $exclude, $layout, $column, $number, $readmore_text); $output .= ' </div>'; return $output; }