mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-19 14:33:32 +09:00
Move widget field definitions to view files
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Define text fields.
|
||||
*/
|
||||
if ( ! isset( $label ) ) {
|
||||
$label = '';
|
||||
}
|
||||
return array(
|
||||
array(
|
||||
'method' => 'checkbox',
|
||||
'args' => array(
|
||||
'id' => 'show_title',
|
||||
/* translators: this will read Term or Archive */
|
||||
'label' => sprintf( __( 'Show %s Title', 'display-featured-image-genesis' ), $label ),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'method' => 'select',
|
||||
'args' => array(
|
||||
'id' => 'show_content',
|
||||
/* translators: this will read Term or Archive */
|
||||
'label' => sprintf( __( 'Show %s Intro Text', 'display-featured-image-genesis' ), $label ),
|
||||
'choices' => array(
|
||||
'' => __( 'None', 'display-featured-image-genesis' ),
|
||||
1 => __( 'Intro Text', 'display-featured-image-genesis' ),
|
||||
'custom' => __( 'Custom Text (below)', 'display-featured-image-genesis' ),
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'method' => 'textarea',
|
||||
'args' => array(
|
||||
'id' => 'custom_content',
|
||||
'label' => __( 'Custom Intro Text', 'display-featured-image-genesis' ),
|
||||
),
|
||||
),
|
||||
);
|
||||
Reference in New Issue
Block a user