function ec3_k2mod_list_control() { if (isset($_POST['ec3_module_limit'])) { sbm_update_option('limit', $_POST['ec3_module_limit']); } ?> <p> <label for="ec3-module-num-events"> <?php _e('Number of events:', 'ec3'); ?> </label> <input id="ec3-module-num-events" name="ec3_module_limit" type="text" value="<?php echo sbm_get_option('limit'); ?> " size="4" /> </p> <p> <a href="options-general.php?page=ec3_admin"> <?php _e('Go to Event Calendar Options', 'ec3'); ?> . </a> </p> <?php }
function latest_posts_sidebar_module_control() { if (isset($_POST['latest_posts_module'])) { sbm_update_option('hide_asides', isset($_POST['latest_posts_module']['hide_asides'])); if (isset($_POST['latest_posts_module']['num_posts'])) { sbm_update_option('num_posts', $_POST['latest_posts_module']['num_posts']); } } ?> <p><label for="latest-posts-module-num-posts"><?php _e('Number of posts:', 'k2_domain'); ?> </label> <input id="latest-posts-module-num-posts" name="latest_posts_module[num_posts]" type="text" value="<?php echo sbm_get_option('num_posts'); ?> " size="2" /></p> <p><label for="latest-posts-module-hide-asides"><?php _e('Exclude Asides from list:', 'k2_domain'); ?> </label> <input id="latest-posts-module-hide-asides" name="latest_posts_module[hide_asides]" type="checkbox"<?php if (sbm_get_option('hide_asides')) { ?> checked="checked"<?php } ?> /></p> <?php }
function rss_sidebar_module_control() { if (isset($_POST['rss_module_feed'])) { sbm_update_option('feed', $_POST['rss_module_feed']); } if (isset($_POST['rss_module_icon'])) { sbm_update_option('icon', $_POST['rss_module_icon']); } if (isset($_POST['rss_module_num_items'])) { sbm_update_option('num_items', $_POST['rss_module_num_items']); } ?> <p><label for="rss-module-feed"><?php _e('RSS feed\'s URL:', 'k2_domain'); ?> </label> <input id="rss-module-feed" name="rss_module_feed" type="text" value="<?php echo sbm_get_option('feed'); ?> " /></p> <p><label for="rss-module-icon"><?php _e('RSS feed\'s icon:', 'k2_domain'); ?> </label> <input id="rss-module-icon" name="rss_module_icon" type="text" value="<?php echo sbm_get_option('icon'); ?> " /></p> <p><label for="rss-module-num-items"><?php _e('Number of items:', 'k2_domain'); ?> </label> <input id="rss-module-num-items" name="rss_module_num_items" type="text" value="<?php echo sbm_get_option('num_items'); ?> " size="2" /></p> <?php }
function asides_sidebar_module_control() { if (isset($_POST['asides_module_num_posts'])) { sbm_update_option('num_posts', $_POST['asides_module_num_posts']); } ?> <p><label for="asides-module-num-posts"><?php _e('Number of posts:', 'k2_domain'); ?> </label> <input id="asides-module-num-posts" name="asides_module_num_posts" type="text" value="<?php echo sbm_get_option('num_posts'); ?> " size="2" /></p> <?php }
function nav_sidebar_module_control() { if (isset($_POST['nav_sidebar_module_custom_title'])) { sbm_update_option('custom_title', $_POST['nav_sidebar_module_custom_title']); } ?> <p><label for="nav-sidebar-module-custom-title"><?php _e('Navigation heading:', 'k2_domain'); ?> </label> <input id="nav-sidebar-module-custom-title" name="nav_sidebar_module_custom_title" type="text" value="<?php echo sbm_get_option('custom_title'); ?> " size="30" /></p> <?php }
function php_sidebar_module_control() { if (isset($_POST['php_module_code'])) { sbm_update_option('code', stripslashes($_POST['php_module_code'])); } ?> <p> <label for="php-module-code"><?php _e('Module\'s code:', 'k2_domain'); ?> </label><br /> <textarea id="php-module-code" name="php_module_code" rows="6" cols="30"><?php echo wp_specialchars(htmlspecialchars(sbm_get_option('code'), ENT_QUOTES), 1); ?> </textarea> </p> <?php }
function latest_comments_sidebar_module_control() { if (isset($_POST['latest_comments_module'])) { // Trackbacks are a special case if (isset($_POST['latest_comments_module']['hide_trackbacks'])) { sbm_update_option('hide_trackbacks', true); unset($_POST['latest_comments_module']['hide_trackbacks']); } else { sbm_update_option('hide_trackbacks', false); } foreach ($_POST['latest_comments_module'] as $key => $value) { sbm_update_option($key, $value); } } if (function_exists('blc_latest_comments')) { ?> <p><label for="recent-comments-module-num-posts"><?php _e('Number of posts:', 'k2_domain'); ?> </label> <input id="recent-comments-module-num-posts" name="latest_comments_module[num_posts]" type="text" value="<?php echo sbm_get_option('num_posts'); ?> " size="2" /></p> <?php } ?> <p><label for="recent-comments-module-num-comments"><?php _e('Number of comments:', 'k2_domain'); ?> </label> <input id="recent-comments-module-num-comments" name="latest_comments_module[num_comments]" type="text" value="<?php echo sbm_get_option('num_comments'); ?> " size="2" /></p> <p><label for="recent-comments-module-hide-trackbacks"><?php _e('Hide trackbacks/pingbacks:', 'k2_domain'); ?> </label> <input id="recent-comments-module-hide-trackbacks" name="latest_comments_module[hide_trackbacks]" type="checkbox"<?php if (sbm_get_option('hide_trackbacks')) { ?> checked="checked"<?php } ?> /></p> <?php if (function_exists('blc_latest_comments')) { ?> <p><label for="recent-comments-module-new-color"><?php _e('Newest color:', 'k2_domain'); ?> </label> <input id="recent-comments-module-new-color" name="latest_comments_module[new_color]" type="text" value="<?php echo sbm_get_option('new_color'); ?> " size="7" /></p> <p><label for="recent-comments-module-old-color"><?php _e('Oldest color:', 'k2_domain'); ?> </label> <input id="recent-comments-module-old-color" name="latest_comments_module[old_color]" type="text" value="<?php echo sbm_get_option('old_color'); ?> " size="7" /></p> <?php } }
function about_sidebar_module_control() { if (isset($_POST['about_module_blurp'])) { sbm_update_option('aboutblurp', $_POST['about_module_blurp']); } ?> <p> <label for="about-module-blurp"><?php _e('About Text:', 'k2_domain'); ?> </label><br /> <textarea id="about-module-blurp" name="about_module_blurp" rows="6" cols="30"><?php echo wp_specialchars(htmlspecialchars(stripslashes(sbm_get_option('aboutblurp')), ENT_QUOTES), 1); ?> </textarea><br /> <small><?php _e('Enter a blurp about yourself here, and it will show up on the frontpage. Deleting the content disables the about blurp.', 'k2_domain'); ?> </small> </p> <?php }
function wptagcloud_sidebar_module_control() { if (isset($_POST['wptagcloud_module_blurp'])) { sbm_update_option('wptagcloud', $_POST['wptagclod_module_blurp']); } }