示例#1
0
				<div class="sub-panel clearfix">
					<a href="" class="style-save-button" data-step='5' data-intro='To Save Changes of your current work, click on this button.' data-position='right'><?php 
_e('Save Styles', 'ioa');
?>
</a>
					<a href="" class="concave-editor-init clearfix" data-step='6' data-intro='To add custom css code click on this button, an editor will open. You can add code there.' data-position='right'> <img src='<?php 
echo URL . '/sprites/i/enigma_sprites/editor-icon.png';
?>
' alt='doc-icon'/>CSS Editor</a>
				</div>

			
				
				<div class="dominant-color clearfix" data-step='3' data-intro='To set a common color for color areas quickly, set color here. Click apply and hit Save Styles Button.' data-position='right'>
					<?php 
$link = appendableLink(home_url('/'));
$frontpage_id = get_option('page_on_front');
if (get_option(SN . '_global_color')) {
    $dominant_color = get_option(SN . '_global_color');
}
echo getIOAInput(array("label" => __("Global Color", 'ioa'), "name" => "gcolor-field", "default" => "{$dominant_color}", "type" => "colorpicker", "description" => "", "length" => 'small', "value" => "{$dominant_color}", "after_input" => "<a href='{$link}enigma=styler&amp;pid={$frontpage_id}' class='gcolor'>Apply</a>"));
?>
				</div>

				<!--
				<div class="res-panel clearfix">
					<?php 
echo getIOAInput(array("label" => __("Style For", 'ioa'), "name" => "res_selector", "length" => "small", "default" => '', "type" => "select", "description" => "", "options" => array("Screen View", "Tablet Landscape", "Small Tablets", "Mobile Landscape", "Mobile Portrait"), "value" => "", "after_input" => "<a href='' class='res-preview'>Preview</a>"));
?>
				</div>	
			-->
示例#2
0
            function ioa_title_settings()
            {
                global $post, $IOA_templates, $ioa_portfolio_slug;
                $post_id = $post->ID;
                $ioa_options = get_post_meta($post_id, 'ioa_options', true);
                $temp = "default";
                $link = appendableLink(get_permalink());
                if (isset($ioa_options['ioa_custom_template'])) {
                    $temp = $ioa_options['ioa_custom_template'];
                }
                ?>
			 <div class="clearfix ioa-below-title-area">
			 	
				<ul class="ioa-context-bar clearfix">
							<?php 
                if ($post->post_type == 'page' || $post->post_type == 'post' || $post->post_type == strtolower($ioa_portfolio_slug)) {
                    ?>
								<li><a href="" class="ioa-page-builder-trigger">Switch To Page Builder</a></li>
							<?php 
                }
                ?>
							<li><a href="" id="ioa-intro-trigger">Quick Tour</a></li>
			 	</ul>
				<?php 
                if ($post->post_type == $ioa_portfolio_slug || $post->post_type == 'page') {
                    ?>
			 	<ul class="ioa-template-bar clearfix">
			 				<li>
								<span>Scroll down to custom page settings to cutomize the template </span>	
							</li>
							<li class='custom-template-wrap'>
								<div class="custom-template-select-wrap">
									<select name="ioa_custom_template" id="ioa-page-template">
									
									<?php 
                    if ($post->post_type == 'page') {
                        ?>
									
											<?php 
                        foreach ($IOA_templates as $key => $template) {
                            ?>
 
											<option <?php 
                            if ($temp == 'ioa-template-' . str_replace(" ", "-", strtolower(trim($key)))) {
                                echo "selected='selected' ";
                            }
                            ?>
 value="<?php 
                            echo 'ioa-template-' . str_replace(" ", "-", strtolower(trim($key)));
                            ?>
"> 
												<?php 
                            echo $template;
                            ?>
											</option>

									<?php 
                        }
                    }
                    if ($post->post_type == $ioa_portfolio_slug) {
                        $single_portfolio_templates = array("default" => __("Set {$ioa_portfolio_slug} Template", 'ioa'), "full-screen" => __("Full Screen", 'ioa'), "full-screen-porportional" => __("Full Screen Proportional", 'ioa'), "model" => __("Horizontal Images", 'ioa'), "side" => __("Side Layout", 'ioa'));
                        ?>
									
											 <?php 
                        foreach ($single_portfolio_templates as $key => $template) {
                            ?>
  
												<option <?php 
                            if ($temp == $key) {
                                echo "selected='selected' ";
                            }
                            ?>
 value="<?php 
                            echo $key;
                            ?>
"> 
													<?php 
                            echo $template;
                            ?>
												</option>
												<?php 
                        }
                        ?>
									<?php 
                    }
                    ?>
									</select>	
								</div>
							</li>
							
			 	</ul>
			 <?php 
                }
                ?>

			 </div>

		<?php 
            }