Example #1
0
/**
 * @desc takes the call from the number of boxes form and initiates new instances
 * @author Georg Leciejewski
 */
function c_widget_author_setup()
{
    $options = $newoptions = get_option('c_widget_author');
    if (isset($_POST['c_widget_author_number_submit'])) {
        $number = (int) $_POST['c_widget_author_number'];
        if ($number > 9) {
            $number = 9;
        }
        if ($number < 1) {
            $number = 1;
        }
        $newoptions['number'] = $number;
    }
    if ($options != $newoptions) {
        $options = $newoptions;
        update_option('c_widget_author', $options);
        c_widget_author_register($options['number']);
    }
}
Example #2
0
function c_widget_html($args)
{
}
/////////////////////////////////////////////////////////// Actions and Registrations
include_once ABSPATH . 'wp-content/plugins/king-includes/library/form.php';
include_once 'c_widget_title.php';
include_once 'c_widget_date.php';
include_once 'c_widget_author.php';
include_once 'c_widget_excerpt.php';
include_once 'c_widget_content.php';
include_once 'c_widget_category.php';
include_once 'c_widget_edit.php';
add_action('admin_menu', 'page_admin_setup');
//c_widget_start_loop_register(); ich kann irgendwie den while loop ncht richtig rausschreiben ??? deswegen vorerst nur alles inside des loops
//c_widget_end_while_register();
c_widget_title_register();
c_widget_date_register();
c_widget_author_register();
c_widget_excerpt_register();
c_widget_content_register();
c_widget_category_register();
c_widget_edit_register();
register_page_widget('Category', 'c_widget_category');
register_page_widget('Comments', 'c_widget_comments');
register_page_widget('Prev-Next Navi', 'c_widget_previousnext');
register_page_widget('Tags', 'c_widget_tags');
register_page_widget('HTML between', 'c_widget_html');
register_page_widget('Edit Link', 'c_widget_edit');
//register_page_widget('Start Loop', 'c_widget_start_loop');
//register_page_widget('End Loop Content', 'c_widget_end_loop_content');
//register_page_widget('End Loop', 'c_widget_end_while');