function setup_google_loaders(){ foreach (get_option_array() as $menuitem): foreach($menuitem as $oid => $o): if( $o['type'] == 'typography' ): $style_id = get_epanel_option_id($oid, 'font_style'); $initial_style = $this->gfont_base_uri. $this->gfont_key(epanel_sub_option($oid, 'font')); echo '<link id="'.$style_id.'" rel="stylesheet" media="screen" type="text/css" href="'.$initial_style.'" />'; endif; endforeach; endforeach; }
function _get_type_select($oid, $o){ $option_value = ( epanel_sub_option($oid, $o['id']) ) ? epanel_sub_option($oid, $o['id']) : $o['default']; ?> <div class="type_select"> <label for="<?php epanel_option_id($oid, $o['id']); ?>" class="context"><?php echo $o['inputlabel'];?></label><br/> <select id="<?php epanel_option_id($oid, $o['id']); ?>" name="<?php epanel_option_name($oid, $o['id']); ?>" onChange="EPANEL_WPStyleFont(this, '<?php echo $o['prop'];?>')"> <option value="">Please select an option »</option> <?php foreach($o['selectvalues'] as $sid => $s):?> <option value="<?php echo $sid;?>" <?php selected($sid, $option_value); ?>><?php echo $s;?></option> <?php endforeach;?> </select> </div> <?php }