function wppb_add_template_to_zip($template, $title, $name, $files, $folder) { if ('' != get_wppb_option($template)) { $files[$folder . '/' . $template . '.php'] = pixopoint_theme_header($title, $name) . pixopoint_remove_openclose_php(do_shortcode(get_wppb_option($template))); } return $files; }
/** * Register widgetized area and update sidebar with default widgets * @since 0.1 */ function wppb_settings_widgets_init() { // Widget areas foreach (wppb_settings_widgets_array() as $number) { if ('on' == get_wppb_option('show_widget' . $number)) { register_sidebar(array('name' => __(get_wppb_option('name_widget' . $number), 'wppb_settings'), 'id' => 'widgetarea' . $number, 'description' => __('The ' . get_wppb_option('name_widget' . $number) . ' widget area', 'wppb_settings'), 'before_widget' => get_wppb_option('before_widget' . $number), 'after_widget' => get_wppb_option('after_widget' . $number), 'before_title' => get_wppb_option('before_title' . $number), 'after_title' => get_wppb_option('after_title' . $number))); } } // Action hook for plugins to add code to functions.php do_action('wppb_widgets_functions_dot_php'); }