示例#1
0
/**
 * @desc Admin Form to select number of titles
 * @author Georg Leciejewski
 */
function c_widget_title_page()
{
    $options = $newoptions = get_option('c_widget_title');
    echo king_get_start_form('wrap', '', '', $k_Method = 'post');
    ?>
		<h2><?php 
    _e('Title Widgets', 'widgetContent');
    ?>
</h2>
		<?php 
    echo king_get_start_p();
    _e('How many Title Boxes would you like? ', 'widgetContent');
    echo king_get_select("c_widget_title_number", $options['number'], array('1', '2', '3', '4', '5', '6', '7', '8', '9'), 'c_widget_title_number');
    echo king_get_submit('c_widget_title_number_submit', '', 'c_widget_title_number_submit');
    echo king_get_end_p();
    echo king_get_end_form();
}
示例#2
0
    /**
     * @desc Admin Form to select number of logins
     * @author Georg Leciejewski
     */
    function widget_king_login_page()
    {
        /*$framework_options = get_option('king_framework');
                for ($i = 1; $i <= $framework_options['widgets_number']; $i++) {
        			$number[]=$i;
        		}*/
        $options = $newoptions = get_option('widget_king_login');
        echo king_get_start_form('wrap', '', '', $k_Method = 'post');
        ?>
		<h2><?php 
        _e('King Login', 'widgetKing');
        ?>
</h2>
		<?php 
        echo '<p>';
        _e('How many Login Widgets do you need?', 'widgetKing');
        echo king_get_select("king_login_number", $options['number'], array('1', '2', '3', '4', '5', '6', '7', '8', '9'), 'king_login_number');
        echo king_get_submit('king_login_number_submit', '', 'king_login_number_submit');
        echo king_get_end_p();
        echo king_get_end_form();
    }
示例#3
0
    /**
     * @desc Admin Form to select number of categories
     * @author Georg Leciejewski
     */
    function widget_king_links_page()
    {
        $options = $newoptions = get_option('widget_king_links');
        echo king_get_start_form('wrap', '', '', $k_Method = 'post');
        ?>
		<h2><?php 
        _e('King Link Menu', 'widgetKing');
        ?>
</h2>
		<?php 
        echo '<p>';
        _e('How many Link Boxes would you like?', 'widgetKing');
        echo king_get_select("king_links_number", $options['number'], array('1', '2', '3', '4', '5', '6', '7', '8', '9'), 'king_links_number');
        echo king_get_submit('king_links_number_submit', '', 'king_links_number_submit');
        echo king_get_end_p();
        echo king_get_end_form();
    }
示例#4
0
    /**
     * @desc Admin Form to select number of calendars
     * @author Georg Leciejewski
     */
    function widget_king_calendar_page()
    {
        $options = $newoptions = get_option('widget_king_calendar');
        echo king_get_start_form('wrap', '', '', $k_Method = 'post');
        ?>
		<h2><?php 
        _e('King Calendar', 'widgetKing');
        ?>
</h2>
		<?php 
        echo '<p>';
        _e('How many Calendars would you like?', 'widgetKing');
        echo king_get_select("king_calendar_number", $options['number'], array('1', '2', '3', '4', '5', '6', '7', '8', '9'), 'king_calendar_number');
        echo king_get_submit('king_calendar_number_submit', '', 'king_calendar_number_submit');
        echo king_get_end_p();
        echo '<p>';
        _e('If using Multiple Calendars show only one on a site by using the Category Option. This makes sence if you have Events installed  and want to show the Events Calendar on a special Category.', 'widgetKing');
        echo king_get_end_p();
        echo king_get_end_form();
    }
示例#5
0
    /**
     * @desc Admin Form to select number of categories
     * @author Georg Leciejewski
     */
    function widget_king_rss_page()
    {
        $options = $newoptions = get_option('widget_king_rss');
        echo king_get_start_form('wrap', '', '', $k_Method = 'post');
        ?>
		<h2><?php 
        _e('King RSS Boxes', 'widgetKing');
        ?>
</h2>
		<?php 
        echo '<p>';
        _e('How many RSS Boxes would you like? ', 'widgetKing');
        echo king_get_select("king_rss_number", $options['number'], array('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20'), 'king_rss_number');
        echo king_get_submit('king_rss_number_submit', '', 'king_rss_number_submit');
        echo king_get_end_p();
        echo king_get_end_form();
    }
示例#6
0
/**
* @desc get select element row with p and label. Is used for the AJAX popup Options
* @author Georg Leciejewski
* @param array $options 		with following params
* @param string $k_Label_Id_Name p Label + IDs + select Name
* @param string $k_P_Class 	Class of the surrounding p
* @param string $k_Label_Class  Class of the label field
* @param string $k_Description  Description shown before select
* @param string $k_Value 		Value for select
* @param string $select_options Select Options
* @param string $k_Label_Title  Description shown for label
* @return string  				p with checkbox
*/
function king_get_select_p($options)
{
    $result = king_get_start_p($options['Label_Id_Name'], $options['Description'], $options['Label_Title']);
    $result .= king_get_select($options['Label_Id_Name'], $options['Value'], $options['select_options'], '');
    $result .= king_get_end_p();
    return $result;
}
示例#7
0
    /**
     * @desc Admin Form to select number of categories
     * @author Georg Leciejewski
     */
    function widget_king_text_page()
    {
        $options = $newoptions = get_option('widget_king_text');
        echo king_get_start_form('wrap', '', '', $k_Method = 'post');
        ?>
		<h2><?php 
        _e('King Text Boxes', 'widgetKing');
        ?>
</h2>
		<?php 
        echo '<p>';
        _e('How many Text Boxes would you like? ', 'widgetKing');
        echo king_get_select("king_text_number", $options['number'], array('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20'), 'king_text_number');
        echo king_get_submit('king_text_number_submit', '', 'king_text_number_submit');
        echo king_get_end_p();
        echo king_get_end_form();
        //echo '<script type="text/javascript" src="../wp-includes/js/tinymce/tiny_mce_gzip.php?ver=20051211"></script>';
    }