示例#1
0
文件: modal.php 项目: WaitButWhy/www
                 $sub_sc_data = IG_Pb_Helper_Shortcode::extract_sub_shortcode($params, true);
                 $sub_sc_data = apply_filters('ig_pb_sub_items_filter', $sub_sc_data, $shortcode, isset($_COOKIE['ig_pb_data_for_modal']) ? $_COOKIE['ig_pb_data_for_modal'] : '');
                 $extract_params['sub_items_content'] = $sub_sc_data;
             }
             // Set auto title for the subitem if have
             $extract_title = isset($el_title) && $el_title != __('(Untitled)', IGPBL) ? $el_title : '';
             // MODIFY $instance->items
             IG_Pb_Helper_Shortcode::generate_shortcode_params($instance->items, NULL, $extract_params, TRUE, FALSE, $extract_title);
             // if have sub-shortcode, re-generate shortcode structure
             if (!empty($instance->config['has_subshortcode'])) {
                 $instance->shortcode_data();
             }
         }
         // get Modal setting box
         $settings = $instance->items;
         $settings_html = IG_Pb_Objects_Modal::get_shortcode_modal_settings($settings, $shortcode, $extract_params, $params);
         echo balanceTags($settings_html);
     }
     ?>
     <form id="frm_shortcode_settings" action="" method="post">
         <?php 
     // Render the inputs to store element setting data for Copy style feature
     foreach ($_POST as $k => $v) {
         echo '<input type="hidden" id="hid-' . $k . '" name="' . $k . '" value="' . urlencode($v) . '" />';
     }
     echo '<input type="hidden" id="hid-init_tab" name="init_tab" value="styling" />';
     ?>
     </form>
     <?php 
 } else {
     if ($el_type == 'widget') {