當前位置: 首頁>>代碼示例>>PHP>>正文


PHP kubrick_header_color函數代碼示例

本文整理匯總了PHP中kubrick_header_color函數的典型用法代碼示例。如果您正苦於以下問題:PHP kubrick_header_color函數的具體用法?PHP kubrick_header_color怎麽用?PHP kubrick_header_color使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了kubrick_header_color函數的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_color函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。