mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-18 14:03:20 +09:00
Add archive links to term/CPT widgets
This commit is contained in:
@@ -146,6 +146,30 @@ class DisplayFeaturedImageGenesisWidgetsForm {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the archive fields (used in term and CPT widgets).
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function get_archive_fields() {
|
||||
return array(
|
||||
array(
|
||||
'method' => 'checkbox',
|
||||
'args' => array(
|
||||
'id' => 'archive_link',
|
||||
'label' => __( 'Show Archive Link', 'display-featured-image-genesis' ),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'method' => 'text',
|
||||
'args' => array(
|
||||
'id' => 'archive_link_text',
|
||||
'label' => __( 'Archive Link Text', 'display-featured-image-genesis' ),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Build boxes with fields.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user