コード例 #1
0
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="">&mdash;<?php _e("SELECT", 'pagelines');?>&mdash;</option>

		<?php foreach($categories as $cid => $c):?>
			<option value="<?php echo $c->category_nicename;?>"><?php echo $c->cat_name;?></option>
		<?php endforeach;?>
	</select>
	
<?php }
コード例 #2
0
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 }	
コード例 #3
0
    /**
     *
     * @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="">&mdash;SELECT&mdash;</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 
    }