FCDM-website-new/wp-content/themes/genesis/lib/views/meta-boxes/genesis-cpt-archives-settin...

60 lines
1.9 KiB
PHP

<?php
/**
* Genesis Framework.
*
* WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
* Please do all modifications in the form of a child theme.
*
* @package StudioPress\Genesis
* @author StudioPress
* @license GPL-2.0+
* @link https://my.studiopress.com/themes/genesis/
*/
?>
<p>
<?php
$archive = '<a href="' . get_post_type_archive_link( $this->post_type->name ) . '">';
/* translators: Opn and close post type archive link, post type name. */
printf( esc_html__( 'View the %1$s%3$s archive%2$s.', 'genesis' ), $archive, '</a>', $this->post_type->name );
?>
</p>
<table class="form-table">
<tbody>
<tr valign="top">
<th scope="row"><label for="<?php $this->field_id( 'headline' ); ?>"><b><?php esc_html_e( 'Archive Headline', 'genesis' ); ?></b></label></th>
<td>
<p><input class="large-text" type="text" name="<?php $this->field_name( 'headline' ); ?>" id="<?php $this->field_id( 'headline' ); ?>" value="<?php echo esc_attr( $this->get_field_value( 'headline' ) ); ?>" /></p>
<p class="description">
<?php
if ( genesis_a11y( 'headings' ) ) {
esc_html_e( 'Your child theme uses accessible headings. If you leave this blank, the default accessible heading will be used.', 'genesis' );
} else {
esc_html_e( 'Leave empty if you do not want to display a headline.', 'genesis' );
}
?>
</p>
</td>
</tr>
<tr valign="top">
<th scope="row"><label for="<?php $this->field_id( 'intro_text' ); ?>"><b><?php esc_html_e( 'Archive Intro Text', 'genesis' ); ?></b></label></th>
<td>
<?php
wp_editor(
$this->get_field_value( 'intro_text' ),
$this->settings_field . '-intro-text',
array(
'textarea_name' => $this->get_field_name( 'intro_text' ),
)
);
?>
<p class="description"><?php esc_html_e( 'Leave empty if you do not want to display any intro text.', 'genesis' ); ?></p>
</td>
</tr>
</tbody>
</table>