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


PHP genesis_code函数代码示例

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


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

示例1: seo_box


//.........这里部分代码省略.........
        ?>
" /></p>
				</td>
			</tr>

			<tr valign="top">
				<th scope="row"><label for="<?php 
        $this->field_id('doctitle');
        ?>
"><b><?php 
        _e('Meta Keywords', 'genesis');
        ?>
</th>
				<td>
					<p><input class="large-text" type="text" name="<?php 
        $this->field_name('keywords');
        ?>
" id="<?php 
        $this->field_id('keywords');
        ?>
" value="<?php 
        echo esc_attr($this->get_field_value('keywords'));
        ?>
" /></p>
					<p class="description"><?php 
        _e('Comma separated list', 'genesis');
        ?>
</p>
				</td>
			</tr>

			<tr valign="top">
				<th scope="row"><?php 
        _e('Robots Meta Tags:', 'genesis');
        ?>
</th>
				<td>
					<p>
						<label for="<?php 
        $this->field_id('noindex');
        ?>
"><input type="checkbox" name="<?php 
        $this->field_name('noindex');
        ?>
" id="<?php 
        $this->field_id('noindex');
        ?>
" value="1" <?php 
        checked($this->get_field_value('noindex'));
        ?>
 />
						<?php 
        printf(__('Apply %s to this archive', 'genesis'), genesis_code('noindex'));
        ?>
 <a href="http://yoast.com/articles/robots-meta-tags/" target="_blank">[?]</a></label><br />

						<label for="<?php 
        $this->field_id('nofollow');
        ?>
"><input type="checkbox" name="<?php 
        $this->field_name('nofollow');
        ?>
" id="<?php 
        $this->field_id('nofollow');
        ?>
" value="1" <?php 
        checked($this->get_field_value('nofollow'));
        ?>
 />
						<?php 
        printf(__('Apply %s to this archive', 'genesis'), genesis_code('nofollow'));
        ?>
 <a href="http://yoast.com/articles/robots-meta-tags/" target="_blank">[?]</a></label><br />

						<label for="<?php 
        $this->field_id('noarchive');
        ?>
"><input type="checkbox" name="<?php 
        $this->field_name('noarchive');
        ?>
" id="<?php 
        $this->field_id('noarchive');
        ?>
" value="1" <?php 
        checked($this->get_field_value('noarchive'));
        ?>
 />
						<?php 
        printf(__('Apply %s to this archive', 'genesis'), genesis_code('noarchive'));
        ?>
 <a href="http://yoast.com/articles/robots-meta-tags/" target="_blank">[?]</a></label>
					</p>
				</td>
			</tr>

		</tbody>
		</table>

		<?php 
    }
开发者ID:robalford,项目名称:alfordhomesinc,代码行数:101,代码来源:cpt-archive-settings.php

示例2: scripts_box

    /**
     * Callback for Theme Settings Header / Footer Scripts meta box.
     *
     * @since 1.0.0
     *
     * @uses \Genesis_Admin::get_field_id()    Construct field ID.
     * @uses \Genesis_Admin::get_field_name()  Construct field name.
     * @uses \Genesis_Admin::get_field_value() Retrieve value of key under $this->settings_field.
     *
     * @see \Genesis_Admin_Settings::metaboxes() Register meta boxes on the Theme Settings page.
     */
    function scripts_box()
    {
        ?>
		<p>
			<label for="<?php 
        $this->field_id('header_scripts');
        ?>
"><?php 
        printf(__('Enter scripts or code you would like output to %s:', 'genesis'), genesis_code('wp_head()'));
        ?>
</label>
		</p>

		<textarea name="<?php 
        $this->field_name('header_scripts');
        ?>
" class="large-text" id="<?php 
        $this->field_id('header_scripts');
        ?>
" cols="78" rows="8"><?php 
        echo esc_textarea($this->get_field_value('header_scripts'));
        ?>
</textarea>

		<p><span class="description"><?php 
        printf(__('The %1$s hook executes immediately before the closing %2$s tag in the document source.', 'genesis'), genesis_code('wp_head()'), genesis_code('</head>'));
        ?>
</span></p>

		<hr class="div" />

		<p>
			<label for="<?php 
        $this->field_id('footer_scripts');
        ?>
"><?php 
        printf(__('Enter scripts or code you would like output to %s:', 'genesis'), genesis_code('wp_footer()'));
        ?>
</label>
		</p>

		<textarea name="<?php 
        $this->field_name('footer_scripts');
        ?>
" class="large-text" id="<?php 
        $this->field_id('footer_scripts');
        ?>
" cols="78" rows="8"><?php 
        echo esc_textarea($this->get_field_value('footer_scripts'));
        ?>
</textarea>

		<p><span class="description"><?php 
        printf(__('The %1$s hook executes immediately before the closing %2$s tag in the document source.', 'genesis'), genesis_code('wp_footer()'), genesis_code('</body>'));
        ?>
</span></p>
		<?php 
    }
开发者ID:Oak86,项目名称:matthewbuttler.work,代码行数:69,代码来源:theme-settings.php

示例3: genesis_inpost_scripts_box

/**
 * Callback for in-post Scripts meta box.
 *
 * @since 2.0.0
 *
 * @uses genesis_get_custom_field() Get custom field value.
 */
function genesis_inpost_scripts_box()
{
    wp_nonce_field('genesis_inpost_scripts_save', 'genesis_inpost_scripts_nonce');
    ?>

	<p><label for="genesis_scripts" class="screen-reader-text"><strong><?php 
    _e('Page-specific Scripts', 'genesis');
    ?>
</strong></label></p>
	<p><textarea class="widefat" rows="4" cols="4" name="genesis_seo[_genesis_scripts]" id="genesis_scripts"><?php 
    echo esc_textarea(genesis_get_custom_field('_genesis_scripts'));
    ?>
</textarea></p>
	<p><?php 
    printf(__('Suitable for custom tracking, conversion or other page-specific script. Must include %s tags.', 'genesis'), genesis_code('script'));
    ?>
</p>
	<?php 
}
开发者ID:Oak86,项目名称:matthewbuttler.work,代码行数:26,代码来源:inpost-metaboxes.php

示例4: genesis_taxonomy_seo_options

/**
 * Echo title, description, keywords and robots meta SEO fields on the taxonomy term edit form.
 *
 * If populated, the values saved in these fields may be used on taxonomy archives.
 *
 * @since 1.2.0
 *
 * @see genesis_add-taxonomy_seo_options() Callback caller.
 *
 * @param \stdClass $tag      Term object.
 * @param string    $taxonomy Name of the taxonomy.
 */
function genesis_taxonomy_seo_options($tag, $taxonomy)
{
    ?>
	<h3><?php 
    _e('Theme SEO Settings', 'genesis');
    ?>
</h3>
	<table class="form-table">
		<tbody>
			<tr class="form-field">
				<th scope="row"><label for="genesis-meta[doctitle]"><?php 
    _e('Custom Document Title', 'genesis');
    ?>
</label></th>
				<td>
					<input name="genesis-meta[doctitle]" id="genesis-meta[doctitle]" type="text" value="<?php 
    echo esc_attr(get_term_meta($tag->term_id, 'doctitle', true));
    ?>
" size="40" />
				</td>
			</tr>

			<tr class="form-field">
				<th scope="row"><label for="genesis-meta[description]"><?php 
    _e('Meta Description', 'genesis');
    ?>
</label></th>
				<td>
					<textarea name="genesis-meta[description]" id="genesis-meta[description]" rows="5" cols="50" class="large-text"><?php 
    echo esc_html(get_term_meta($tag->term_id, 'description', true));
    ?>
</textarea>
				</td>
			</tr>

			<tr class="form-field">
				<th scope="row"><label for="genesis-meta[keywords]"><?php 
    _e('Meta Keywords', 'genesis');
    ?>
</label></th>
				<td>
					<input name="genesis-meta[keywords]" id="genesis-meta[keywords]" type="text" value="<?php 
    echo esc_attr(get_term_meta($tag->term_id, 'keywords', true));
    ?>
" size="40" />
					<p class="description"><?php 
    _e('Comma separated list', 'genesis');
    ?>
</p>
				</td>
			</tr>

			<tr>
				<th scope="row"><?php 
    _e('Robots Meta', 'genesis');
    ?>
</th>
				<td>
					<label for="genesis-meta[noindex]"><input name="genesis-meta[noindex]" id="genesis-meta[noindex]" type="checkbox" value="1" <?php 
    checked(get_term_meta($tag->term_id, 'noindex', true));
    ?>
 />
					<?php 
    printf(__('Apply %s to this archive?', 'genesis'), genesis_code('noindex'));
    ?>
</label><br />

					<label for="genesis-meta[nofollow]"><input name="genesis-meta[nofollow]" id="genesis-meta[nofollow]" type="checkbox" value="1" <?php 
    checked(get_term_meta($tag->term_id, 'nofollow', true));
    ?>
 />
					<?php 
    printf(__('Apply %s to this archive?', 'genesis'), genesis_code('nofollow'));
    ?>
</label><br />

					<label for="genesis-meta[noarchive]"><input name="genesis-meta[noarchive]" id="genesis-meta[noarchive]" type="checkbox" value="1" <?php 
    checked(get_term_meta($tag->term_id, 'noarchive', true));
    ?>
 />
					<?php 
    printf(__('Apply %s to this archive?', 'genesis'), genesis_code('noarchive'));
    ?>
</label>
				</td>
			</tr>
		</tbody>
	</table>
//.........这里部分代码省略.........
开发者ID:tleonard2,项目名称:durablegbFeb,代码行数:101,代码来源:term-meta.php

示例5: admin

    /**
     * Callback for displaying the Genesis Import / Export admin page.
     *
     * Call the genesis_import_export_form action after the last default table row.
     *
     * @since 1.4.0
     *
     * @uses \Genesis_Admin_Import_Export::export_checkboxes()  Echo export checkboxes.
     * @uses \Genesis_Admin_Import_Export::get_export_options() Get array of export options.
     */
    public function admin()
    {
        ?>
		<div class="wrap">
			<?php 
        screen_icon('tools');
        ?>
			<h2><?php 
        echo esc_html(get_admin_page_title());
        ?>
</h2>

			<table class="form-table">
				<tbody>

					<tr>
						<th scope="row"><b><?php 
        _e('Import Genesis Settings File', 'genesis');
        ?>
</p></th>
						<td>
							<p><?php 
        printf(__('Upload the data file (%s) from your computer and we\'ll import your settings.', 'genesis'), genesis_code('.json'));
        ?>
</p>
							<p><?php 
        _e('Choose the file from your computer and click "Upload file and Import"', 'genesis');
        ?>
</p>
							<p>
								<form enctype="multipart/form-data" method="post" action="<?php 
        echo menu_page_url('genesis-import-export', 0);
        ?>
">
									<?php 
        wp_nonce_field('genesis-import');
        ?>
									<input type="hidden" name="genesis-import" value="1" />
									<label for="genesis-import-upload"><?php 
        sprintf(__('Upload File: (Maximum Size: %s)', 'genesis'), ini_get('post_max_size'));
        ?>
</label>
									<input type="file" id="genesis-import-upload" name="genesis-import-upload" size="25" />
									<?php 
        submit_button(__('Upload File and Import', 'genesis'), 'primary', 'upload');
        ?>
								</form>
							</p>
						</td>
					</tr>

					<tr>
						<th scope="row"><b><?php 
        _e('Export Genesis Settings File', 'genesis');
        ?>
</b></th>
						<td>
							<p><?php 
        printf(__('When you click the button below, Genesis will generate a data file (%s) for you to save to your computer.', 'genesis'), genesis_code('.json'));
        ?>
</p>
							<p><?php 
        _e('Once you have saved the download file, you can use the import function on another site to import this data.', 'genesis');
        ?>
</p>
							<p>
								<form method="post" action="<?php 
        echo menu_page_url('genesis-import-export', 0);
        ?>
">
									<?php 
        wp_nonce_field('genesis-export');
        $this->export_checkboxes();
        if ($this->get_export_options()) {
            submit_button(__('Download Export File', 'genesis'), 'primary', 'download');
        }
        ?>
								</form>
							</p>
						</td>
					</tr>

					<?php 
        do_action('genesis_import_export_form');
        ?>

				</tbody>
			</table>

		</div>
//.........这里部分代码省略.........
开发者ID:treydonovan,项目名称:innergame-anna,代码行数:101,代码来源:import-export.php

示例6: genesis_user_seo_fields

/**
 * Add fields for author archive SEO to the user edit screen.
 *
 * Input / Textarea fields are:
 *
 * * Custom Document Title
 * * Meta Description
 * * Meta Keywords
 *
 * Checkbox fields are:
 *
 * * Apply noindex to this archive?
 * * Apply nofollow to this archive?
 * * Apply noarchive to this archive?
 *
 * @since 1.4.0
 *
 * @param \WP_User $user User object.
 *
 * @return false Return false if current user can not edit users.
 */
function genesis_user_seo_fields($user)
{
    if (!current_user_can('edit_users', $user->ID)) {
        return false;
    }
    ?>
	<h3><?php 
    _e('Theme SEO Settings', 'genesis');
    ?>
</h3>
	<p><span class="description"><?php 
    _e('These settings apply to this author\'s archive pages.', 'genesis');
    ?>
</span></p>
	<table class="form-table">
		<tbody>
			<tr>
				<th scope="row" valign="top"><label for="doctitle"><?php 
    _e('Custom Document Title', 'genesis');
    ?>
</label></th>
				<td>
					<input name="meta[doctitle]" id="doctitle" type="text" value="<?php 
    echo esc_attr(get_the_author_meta('doctitle', $user->ID));
    ?>
" class="regular-text" />
				</td>
			</tr>

			<tr>
				<th scope="row" valign="top"><label for="meta-description"><?php 
    _e('Meta Description', 'genesis');
    ?>
</label></th>
				<td>
					<textarea name="meta[meta_description]" id="meta-description" rows="5" cols="30"><?php 
    echo esc_textarea(get_the_author_meta('meta_description', $user->ID));
    ?>
</textarea>
				</td>
			</tr>

			<tr>
				<th scope="row" valign="top"><label for="meta-keywords"><?php 
    _e('Meta Keywords', 'genesis');
    ?>
</label></th>
				<td>
					<input name="meta[meta_keywords]" id="meta-keywords" type="text" value="<?php 
    echo esc_attr(get_the_author_meta('meta_keywords', $user->ID));
    ?>
" class="regular-text" /><br />
					<span class="description"><?php 
    _e('Comma separated list', 'genesis');
    ?>
</span>
				</td>
			</tr>

			<tr>
				<th scope="row" valign="top"><?php 
    _e('Robots Meta', 'genesis');
    ?>
</th>
				<td>
					<label for="meta[noindex]"><input id="meta[noindex]" name="meta[noindex]" id="noindex" type="checkbox" value="1" <?php 
    checked(get_the_author_meta('noindex', $user->ID));
    ?>
 />
					<?php 
    printf(__('Apply %s to this archive?', 'genesis'), genesis_code('noindex'));
    ?>
</label><br />

					<label for="meta[nofollow]"><input id="meta[nofollow]" name="meta[nofollow]" id="nofollow" type="checkbox" value="1" <?php 
    checked(get_the_author_meta('nofollow', $user->ID));
    ?>
 />
					<?php 
//.........这里部分代码省略.........
开发者ID:TravisSperry,项目名称:mpa_website,代码行数:101,代码来源:user-meta.php

示例7: robots_meta_box

    /**
     * Callback for SEO Settings Robots meta box.
     *
     * Variations of some of the settings contained in this meta box were first added to a 'Search Engine Indexing' meta
     * box, added in 1.0.0.
     *
     * @since 1.3.0
     *
     * @see \Genesis_Admin_SEO_Settings::metaboxes() Register meta boxes on the SEO Settings page.
     */
    function robots_meta_box()
    {
        ?>

		<table class="form-table">
		<tbody>

			<tr valign="top">
				<th scope="row"><?php 
        _e('Indexing', 'genesis');
        ?>
</th>
				<td>
					<p>
						<label for="<?php 
        $this->field_id('noindex_cat_archive');
        ?>
"><input type="checkbox" name="<?php 
        $this->field_name('noindex_cat_archive');
        ?>
" id="<?php 
        $this->field_id('noindex_cat_archive');
        ?>
" value="1" <?php 
        checked($this->get_field_value('noindex_cat_archive'));
        ?>
 />
						<?php 
        printf(__('Apply %s to Category Archives?', 'genesis'), genesis_code('noindex'));
        ?>
</label>
						<br />
						<label for="<?php 
        $this->field_id('noindex_tag_archive');
        ?>
"><input type="checkbox" name="<?php 
        $this->field_name('noindex_tag_archive');
        ?>
" id="<?php 
        $this->field_id('noindex_tag_archive');
        ?>
" value="1" <?php 
        checked($this->get_field_value('noindex_tag_archive'));
        ?>
 />
						<?php 
        printf(__('Apply %s to Tag Archives?', 'genesis'), genesis_code('noindex'));
        ?>
</label>
						<br />
						<label for="<?php 
        $this->field_id('noindex_author_archive');
        ?>
"><input type="checkbox" name="<?php 
        $this->field_name('noindex_author_archive');
        ?>
" id="<?php 
        $this->field_id('noindex_author_archive');
        ?>
" value="1" <?php 
        checked($this->get_field_value('noindex_author_archive'));
        ?>
 />
						<?php 
        printf(__('Apply %s to Author Archives?', 'genesis'), genesis_code('noindex'));
        ?>
</label>
						<br />
						<label for="<?php 
        $this->field_id('noindex_date_archive');
        ?>
"><input type="checkbox" name="<?php 
        $this->field_name('noindex_date_archive');
        ?>
" id="<?php 
        $this->field_id('noindex_date_archive');
        ?>
" value="1" <?php 
        checked($this->get_field_value('noindex_date_archive'));
        ?>
 />
						<?php 
        printf(__('Apply %s to Date Archives?', 'genesis'), genesis_code('noindex'));
        ?>
</label>
						<br />
						<label for="<?php 
        $this->field_id('noindex_search_archive');
        ?>
"><input type="checkbox" name="<?php 
//.........这里部分代码省略.........
开发者ID:netmagik,项目名称:netmagik,代码行数:101,代码来源:seo-settings.php

示例8: robots_meta_box

    /**
     * Callback for SEO Settings Robots meta box.
     *
     * Variations of some of the settings contained in this meta box were first added to a 'Search Engine Indexing' meta
     * box, added in 1.0.0.
     *
     * @since 1.3.0
     *
     * @uses \Genesis_Admin::get_field_id()    Construct field ID.
     * @uses \Genesis_Admin::get_field_name()  Construct field name.
     * @uses \Genesis_Admin::get_field_value() Retrieve value of key under $this->settings_field.
     *
     * @see \Genesis_Admin_SEO_Settings::metaboxes() Register meta boxes on the SEO Settings page.
     */
    function robots_meta_box()
    {
        ?>
		<p><span class="description"><?php 
        _e('Depending on your situation, you may or may not want the following archive pages to be indexed by search engines. Only you can make that determination.', 'genesis');
        ?>
</span></p>

		<p>
			<label for="<?php 
        $this->field_id('noindex_cat_archive');
        ?>
"><input type="checkbox" name="<?php 
        $this->field_name('noindex_cat_archive');
        ?>
" id="<?php 
        $this->field_id('noindex_cat_archive');
        ?>
" value="1" <?php 
        checked($this->get_field_value('noindex_cat_archive'));
        ?>
 />
			<?php 
        printf(__('Apply %s to Category Archives?', 'genesis'), genesis_code('noindex'));
        ?>
</label>
			<br />
			<label for="<?php 
        $this->field_id('noindex_tag_archive');
        ?>
"><input type="checkbox" name="<?php 
        $this->field_name('noindex_tag_archive');
        ?>
" id="<?php 
        $this->field_id('noindex_tag_archive');
        ?>
" value="1" <?php 
        checked($this->get_field_value('noindex_tag_archive'));
        ?>
 />
			<?php 
        printf(__('Apply %s to Tag Archives?', 'genesis'), genesis_code('noindex'));
        ?>
</label>
			<br />
			<label for="<?php 
        $this->field_id('noindex_author_archive');
        ?>
"><input type="checkbox" name="<?php 
        $this->field_name('noindex_author_archive');
        ?>
" id="<?php 
        $this->field_id('noindex_author_archive');
        ?>
" value="1" <?php 
        checked($this->get_field_value('noindex_author_archive'));
        ?>
 />
			<?php 
        printf(__('Apply %s to Author Archives?', 'genesis'), genesis_code('noindex'));
        ?>
</label>
			<br />
			<label for="<?php 
        $this->field_id('noindex_date_archive');
        ?>
"><input type="checkbox" name="<?php 
        $this->field_name('noindex_date_archive');
        ?>
" id="<?php 
        $this->field_id('noindex_date_archive');
        ?>
" value="1" <?php 
        checked($this->get_field_value('noindex_date_archive'));
        ?>
 />
			<?php 
        printf(__('Apply %s to Date Archives?', 'genesis'), genesis_code('noindex'));
        ?>
</label>
			<br />
			<label for="<?php 
        $this->field_id('noindex_search_archive');
        ?>
"><input type="checkbox" name="<?php 
        $this->field_name('noindex_search_archive');
//.........这里部分代码省略.........
开发者ID:Oak86,项目名称:matthewbuttler.work,代码行数:101,代码来源:seo-settings.php

示例9: genesis_inpost_scripts_box

/**
 * Callback for in-post Scripts meta box.
 *
 * @since 2.0.0
 */
function genesis_inpost_scripts_box()
{
    wp_nonce_field('genesis_inpost_scripts_save', 'genesis_inpost_scripts_nonce');
    ?>

	<table class="form-table">
	<tbody>

		<tr valign="top">
			<th scope="row"><label for="genesis_scripts"><strong><?php 
    _e('Page-specific Scripts', 'genesis');
    ?>
</strong></label></th>
			<td>
				<p><textarea class="widefat" rows="4" name="genesis_seo[_genesis_scripts]" id="genesis_scripts"><?php 
    echo esc_textarea(genesis_get_custom_field('_genesis_scripts'));
    ?>
</textarea></p>
				<p><?php 
    printf(__('Suitable for custom tracking, conversion or other page-specific script. Must include %s tags.', 'genesis'), genesis_code('script'));
    ?>
</p>
			</td>
		</tr>

	</tbody>
	</table>

	<?php 
}
开发者ID:netmagik,项目名称:netmagik,代码行数:35,代码来源:inpost-metaboxes.php

示例10: printf

<p>
	<label for="<?php 
echo GENESIS_SETTINGS_FIELD . '[wpdc_body_scripts]';
?>
"><?php 
printf(__('Enter scripts or code you would like output just after the %s tag:', 'wpdc'), genesis_code('<body>'));
?>
</label>
</p>

<textarea name="<?php 
echo GENESIS_SETTINGS_FIELD . '[wpdc_body_scripts]';
?>
" class="large-text" id="wpdc_body_scripts" cols="78" rows="8"><?php 
echo esc_textarea(genesis_get_option('wpdc_body_scripts'));
?>
</textarea>
开发者ID:iCaspar,项目名称:WPDC_Core,代码行数:17,代码来源:metabox-genesis-theme-settings.php

示例11: scripts_box

    /**
     * Callback for Theme Settings Header / Footer Scripts meta box.
     *
     * @since 1.0.0
     *
     * @see \Genesis_Admin_Settings::metaboxes() Register meta boxes on the Theme Settings page.
     */
    function scripts_box()
    {
        ?>
		<table class="form-table">
		<tbody>

			<tr valign="top">
				<th scope="row"><label for="<?php 
        $this->field_id('header_scripts');
        ?>
"><?php 
        _e('Header Scripts', 'genesis');
        ?>
</label></th>
				<td>
					<p><textarea name="<?php 
        $this->field_name('header_scripts');
        ?>
" class="large-text" id="<?php 
        $this->field_id('header_scripts');
        ?>
" cols="78" rows="8"><?php 
        echo esc_textarea($this->get_field_value('header_scripts'));
        ?>
</textarea></p>
					<p><span class="description"><?php 
        printf(__('This code will output immediately before the closing %s tag in the document source.', 'genesis'), genesis_code('</head>'));
        ?>
</span></p>
				</td>
			</tr>

			<tr valign="top">
				<th scope="row"><label for="<?php 
        $this->field_id('footer_scripts');
        ?>
"><?php 
        _e('Footer Scripts', 'genesis');
        ?>
</label></th>
				<td>
					<p><textarea name="<?php 
        $this->field_name('footer_scripts');
        ?>
" class="large-text" id="<?php 
        $this->field_id('footer_scripts');
        ?>
" cols="78" rows="8"><?php 
        echo esc_textarea($this->get_field_value('footer_scripts'));
        ?>
</textarea></p>
					<p><span class="description"><?php 
        printf(__('This code will output immediately before the closing %s tag in the document source.', 'genesis'), genesis_code('</body>'));
        ?>
</span></p>
				</td>
			</tr>

		</tbody>
		</table>
		<?php 
    }
开发者ID:netmagik,项目名称:netmagik,代码行数:69,代码来源:theme-settings.php

示例12: gfb_customizer_box


//.........这里部分代码省略.........
        ?>
</p>
				</td>
			</tr>
			<tr>
				<td class="field-label">
				<p><label for="<?php 
        $this->field_id('gfb_disclaimer');
        ?>
"><?php 
        _e('Select a page: ', 'genesis-footer-builder');
        ?>
</label></p>
				</td>
				<td>
				<p><?php 
        wp_dropdown_pages(array('selected' => $this->get_field_value('gfb_disclaimer'), 'name' => $this->get_field_name('gfb_disclaimer'), 'exclude' => $invalid_pg, 'show_option_none' => __('&mdash; Select &mdash;', 'genesis-footer-builder')));
        ?>
</p>
				</td>
			</tr>
			</table>
		</div>
		
		<div class="gfb-inner gfb-fmenu">
			<table class="gfb-layout">
			<tr>
				<td colspan="3">
				<h4><?php 
        _e('Footer Menu', 'genesis-footer-builder');
        ?>
</h4>
				<p class="gfb-desc"><?php 
        printf(__('With this option enabled, Genesis Footer Builder allows you to set-up a footer menu and output it in the footer. This can come handy if you want to insert some useful links like Home, About Us, Contact Us, Sitemap etc. Enable this option and save the settings. Then you can go to %sMenus page%s, create a new menu or select an existing menu and assign %s location.', 'genesis-footer-builder'), '<a href="' . esc_url(admin_url('nav-menus.php')) . '">', '</a>', genesis_code('Genesis Footer Builder Menu'));
        ?>
</p>
				<p class="gfb-desc"><?php 
        _e('*Note: Only the first level menu-items will be displayed.', 'genesis-footer-builder');
        ?>
</p>
				</td>
			</tr>
			<tr>
				<td class="field-label">
				<p><label for="<?php 
        $this->field_id('gfb_footer_menu');
        ?>
"><?php 
        _e('Register and insert Footer Menu? ', 'genesis-footer-builder');
        ?>
</label></p>
				</td>
				<td>
				<p><input type="checkbox" name="<?php 
        $this->field_name('gfb_footer_menu');
        ?>
" id="<?php 
        $this->field_id('gfb_footer_menu');
        ?>
" value="1"<?php 
        checked($this->get_field_value('gfb_footer_menu'));
        ?>
 /></p>
				</td>
			</tr>
			</table>
开发者ID:JosephWesker,项目名称:InfoTrash-Web,代码行数:67,代码来源:gfb-admin.php


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