当前位置: 首页>>代码示例>>PHP>>正文


PHP kubrick_header_image函数代码示例

本文整理汇总了PHP中kubrick_header_image函数的典型用法代码示例。如果您正苦于以下问题:PHP kubrick_header_image函数的具体用法?PHP kubrick_header_image怎么用?PHP kubrick_header_image使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了kubrick_header_image函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: kubrick_theme_page

function kubrick_theme_page()
{
    if (isset($_REQUEST['saved'])) {
        echo '<div id="message" class="updated fade"><p><strong>' . __('Options saved.') . '</strong></p></div>';
    }
    ?>
<div class='wrap'>
	<h2><?php 
    _e('Customize Header');
    ?>
</h2>
	<div id="kubrick-header">
		<div id="headwrap">
			<div id="header">
				<div id="headerimg">
					<h1><?php 
    bloginfo('name');
    ?>
</h1>
					<div class="description"><?php 
    bloginfo('description');
    ?>
</div>
				</div>
			</div>
		</div>
		<br />
		<div id="nonJsForm">
			<form method="post" action="">
				<?php 
    wp_nonce_field('kubrick-header');
    ?>
				<div class="zerosize"><input type="submit" name="defaultsubmit" value="<?php 
    esc_attr_e('Save');
    ?>
" /></div>
					<label for="njfontcolor"><?php 
    _e('Font Color:');
    ?>
</label><input type="text" name="njfontcolor" id="njfontcolor" value="<?php 
    echo esc_attr(kubrick_header_color());
    ?>
" /> <?php 
    printf(__('Any CSS color (%s or %s or %s)'), '<code>red</code>', '<code>#FF0000</code>', '<code>rgb(255, 0, 0)</code>');
    ?>
<br />
					<label for="njuppercolor"><?php 
    _e('Upper Color:');
    ?>
</label><input type="text" name="njuppercolor" id="njuppercolor" value="#<?php 
    echo esc_attr(kubrick_upper_color());
    ?>
" /> <?php 
    printf(__('HEX only (%s or %s)'), '<code>#FF0000</code>', '<code>#F00</code>');
    ?>
<br />
				<label for="njlowercolor"><?php 
    _e('Lower Color:');
    ?>
</label><input type="text" name="njlowercolor" id="njlowercolor" value="#<?php 
    echo esc_attr(kubrick_lower_color());
    ?>
" /> <?php 
    printf(__('HEX only (%s or %s)'), '<code>#FF0000</code>', '<code>#F00</code>');
    ?>
<br />
				<input type="hidden" name="hi" id="hi" value="<?php 
    echo esc_attr(kubrick_header_image());
    ?>
" />
				<input type="submit" name="toggledisplay" id="toggledisplay" value="<?php 
    esc_attr_e('Toggle Text');
    ?>
" />
				<input type="submit" name="defaults" value="<?php 
    esc_attr_e('Use Defaults');
    ?>
" />
				<input type="submit" class="defbutton" name="submitform" value="&nbsp;&nbsp;<?php 
    esc_attr_e('Save');
    ?>
&nbsp;&nbsp;" />
				<input type="hidden" name="action" value="save" />
				<input type="hidden" name="njform" value="true" />
			</form>
		</div>
		<div id="jsForm">
			<form style="display:inline;" method="post" name="hicolor" id="hicolor" action="<?php 
    echo esc_attr($_SERVER['REQUEST_URI']);
    ?>
">
				<?php 
    wp_nonce_field('kubrick-header');
    ?>
	<input type="button"  class="button-secondary" onclick="tgt=document.getElementById('fontcolor');colorSelect(tgt,'pick1');return false;" name="pick1" id="pick1" value="<?php 
    esc_attr_e('Font Color');
    ?>
"></input>
		<input type="button" class="button-secondary" onclick="tgt=document.getElementById('uppercolor');colorSelect(tgt,'pick2');return false;" name="pick2" id="pick2" value="<?php 
    esc_attr_e('Upper Color');
//.........这里部分代码省略.........
开发者ID:nisargadesign,项目名称:CES,代码行数:101,代码来源:functions.php

示例2: kubrick_theme_page

function kubrick_theme_page()
{
    if ($_REQUEST['saved']) {
        echo '<div id="message" class="updated fade"><p><strong>Options saved.</strong></p></div>';
    }
    ?>
<div class='wrap'>
	<div id="kubrick-header">
		<h2>Header Image and Color</h2>
		<div id="headwrap">
			<div id="header">
				<div id="headerimg">
					<h1><?php 
    bloginfo('name');
    ?>
</h1>
					<div class="description"><?php 
    bloginfo('description');
    ?>
</div>
				</div>
			</div>
		</div>
		<br />
		<div id="nonJsForm">
			<form method="POST">
				<div class="zerosize"><input type="submit" name="defaultsubmit" value="Save" /></div>
				<label for="njfontcolor">Font Color:</label><input type="text" name="njfontcolor" id="njfontcolor" value="<?php 
    echo kubrick_header_color();
    ?>
" /> Any CSS color (<code>red</code> or <code>#FF0000</code> or <code>rgb(255, 0, 0)</code>)<br />
				<label for="njuppercolor">Upper Color:</label><input type="text" name="njuppercolor" id="njuppercolor" value="#<?php 
    echo kubrick_upper_color();
    ?>
" /> HEX only (<code>#FF0000</code> or <code>#F00</code>)<br />
				<label for="njlowercolor">Lower Color:</label><input type="text" name="njlowercolor" id="njlowercolor" value="#<?php 
    echo kubrick_lower_color();
    ?>
" /> HEX only (<code>#FF0000</code> or <code>#F00</code>)<br />
				<input type="hidden" name="hi" id="hi" value="<?php 
    echo kubrick_header_image();
    ?>
" />
				<label> </label><input type="submit" name="toggledisplay" id="toggledisplay" value="Toggle Text" />
				<input type="submit" name="defaults" value="Use Defaults" />
				<input type="submit" class="defbutton" name="submitform" value="&nbsp;&nbsp;Save&nbsp;&nbsp;" />
				<input type="hidden" name="action" value="save" />
				<input type="hidden" name="njform" value="true" />
			</form>
		</div>
		<div id="jsForm">
			<form style="display:inline;" method="post" name="hicolor" id="hicolor" action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
">
				<input type="button" onclick="tgt=document.getElementById('fontcolor');colorSelect(tgt,'pick1');return false;" name="pick1" id="pick1" value="Font Color"></input>
				<input type="button" onclick="tgt=document.getElementById('uppercolor');colorSelect(tgt,'pick2');return false;" name="pick2" id="pick2" value="Upper Color"></input>
				<input type="button" onclick="tgt=document.getElementById('lowercolor');colorSelect(tgt,'pick3');return false;" name="pick3" id="pick3" value="Lower Color"></input>
				<input type="button" name="revert" value="Revert" onclick="kRevert()" />
				<input type="button" value="Advanced" onclick="toggleAdvanced()" />
				<input type="submit" name="submitform" class="defbutton" value="Save" onclick="cp.hidePopup('prettyplease')" />
				<input type="hidden" name="action" value="save" />
				<input type="hidden" name="fontdisplay" id="fontdisplay" value="<?php 
    echo kubrick_header_display();
    ?>
" />
				<input type="hidden" name="fontcolor" id="fontcolor" value="<?php 
    echo kubrick_header_color();
    ?>
" />
				<input type="hidden" name="uppercolor" id="uppercolor" value="<?php 
    echo kubrick_upper_color();
    ?>
" />
				<input type="hidden" name="lowercolor" id="lowercolor" value="<?php 
    echo kubrick_lower_color();
    ?>
" />
				<input type="hidden" name="headerimage" id="headerimage" value="<?php 
    echo kubrick_header_image();
    ?>
" />
			</form>
			<div id="colorPickerDiv" style="z-index: 100;background:#eee;border:1px solid #ccc;position:absolute;visibility:hidden;"> </div>
			<div id="advanced">
				<form id="jsAdvanced" style="display:none;">
					<label for="advfontcolor">Font Color (CSS): </label><input type="text" id="advfontcolor" onchange="advUpdate(this.value, 'fontcolor')" value="<?php 
    echo kubrick_header_color();
    ?>
" /><br />
					<label for="advuppercolor">Upper Color (HEX): </label><input type="text" id="advuppercolor" onchange="advUpdate(this.value, 'uppercolor')" value="#<?php 
    echo kubrick_upper_color();
    ?>
" /><br />
					<label for="advlowercolor">Lower Color (HEX): </label><input type="text" id="advlowercolor" onchange="advUpdate(this.value, 'lowercolor')" value="#<?php 
    echo kubrick_lower_color();
    ?>
" /><br />
					<input type="button" name="default" value="Select Default Colors" onclick="kDefaults()" /><br />
					<input type="button" onclick="toggleDisplay();return false;" name="pick" id="pick" value="Toggle Text Display"></input><br />
//.........这里部分代码省略.........
开发者ID:sajidsan,项目名称:sajidsan.github.io,代码行数:101,代码来源:functions.php


注:本文中的kubrick_header_image函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。