function custom_cat_select($oid, $o){ global $post; $categories = get_categories( $args ); ?> <label class="context" for="<?php pagelines_option_id($oid);?>"><?php echo $o['inputlabel'];?></label><br/> <select id="<?php pagelines_option_id($oid);?>" name="<?php pagelines_option_name($oid);?>"> <option value="">—<?php _e("SELECT", 'pagelines');?>—</option> <?php foreach($categories as $cid => $c):?> <option value="<?php echo $c->category_nicename;?>"><?php echo $c->cat_name;?></option> <?php endforeach;?> </select> <?php }
function _get_check_option($oid, $o){ ?> <p> <label for="<?php pagelines_option_id($oid); ?>" class="context"> <input class="admin_checkbox" type="checkbox" id="<?php pagelines_option_id($oid); ?>" name="<?php pagelines_option_name($oid); ?>" <?php checked((bool) pagelines_option($oid)); ?> /> <?php echo $o['inputlabel'];?> </label> </p> <?php }
/** * * @TODO document * */ function _get_type_select($oid, $o) { $option_value = pagelines_sub_option($oid, $o['id']) ? pagelines_sub_option($oid, $o['id']) : $o['default']; ?> <div class="type_select"> <?php echo OptEngine::input_label(get_pagelines_option_id($oid, $o['id']), $o['inputlabel']); ?> <select id="<?php pagelines_option_id($oid, $o['id']); ?> " name="<?php pagelines_option_name($oid, $o['id']); ?> " onChange="PageLinesStyleFont(this, '<?php echo $o['prop']; ?> ')"> <option value="">—SELECT—</option> <?php foreach ($o['selectvalues'] as $sid => $s) { ?> <option value="<?php echo $sid; ?> " <?php selected($sid, $option_value); ?> ><?php echo $s; ?> </option> <?php } ?> </select> </div> <?php }