Add archive links to term/CPT widgets

This commit is contained in:
Robin Cornett
2017-12-06 14:11:53 -05:00
parent 5b4fa611bd
commit 7864160800
3 changed files with 92 additions and 17 deletions
@@ -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.
*