diff --git a/includes/classes/widget-archives.php b/includes/classes/widget-archives.php index b4740a6..ab017f3 100644 --- a/includes/classes/widget-archives.php +++ b/includes/classes/widget-archives.php @@ -64,6 +64,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -88,6 +91,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => _x( 'Archives', 'archives widget title default', 'church-theme-framework' ), // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -111,6 +117,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => $this->ctfw_post_type_options(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'post', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -134,6 +143,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '0', // lowest possible value for number type 'number_max' => '100', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '0', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -157,6 +169,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_max' => '', // highest possible value for number type 'checkbox_label' => _x( 'Show counts', 'archives widget', 'church-theme-framework' ), //show text after checkbox 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => true, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -180,6 +195,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) diff --git a/includes/classes/widget-categories.php b/includes/classes/widget-categories.php index 3ec94d2..f0fe35f 100644 --- a/includes/classes/widget-categories.php +++ b/includes/classes/widget-categories.php @@ -67,6 +67,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -91,6 +94,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => _x( 'Categories', 'categories widget title default', 'church-theme-framework' ), // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -114,6 +120,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => $this->ctfw_taxonomy_options(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'category', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -141,6 +150,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'ID' => _x( 'Date', 'categories widget order by', 'church-theme-framework' ), 'count' => _x( 'Post Count', 'categories widget order by', 'church-theme-framework' ), ), + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame 'default' => 'title', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -167,6 +179,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'asc' => _x( 'Low to High', 'categories widget order', 'church-theme-framework' ), 'desc' => _x( 'High to Low', 'categories widget order', 'church-theme-framework' ), ), + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'asc', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -190,6 +205,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '0', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '0', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -213,6 +231,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_max' => '', // highest possible value for number type 'checkbox_label' => _x( 'Show counts', 'categories widget', 'church-theme-framework' ), //show text after checkbox 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => true, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -236,6 +257,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_max' => '', // highest possible value for number type 'checkbox_label' => _x( 'Show hierarchy', 'categories widget', 'church-theme-framework' ), //show text after checkbox 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => true, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -259,6 +283,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) diff --git a/includes/classes/widget-events.php b/includes/classes/widget-events.php index aa2cc4c..3cfc383 100644 --- a/includes/classes/widget-events.php +++ b/includes/classes/widget-events.php @@ -62,6 +62,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -86,6 +89,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => _x( 'Events', 'events widget title default', 'church-theme-framework' ), // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -112,6 +118,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'upcoming' => _x( 'Upcoming', 'events widget order', 'church-theme-framework' ), 'past' => _x( 'Past', 'events widget order', 'church-theme-framework' ), ), + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'upcoming', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -137,6 +146,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'options' => ctfw_term_options( 'ctc_event_category', array( // array of keys/values for radio or select 'all' => _x( 'All Categories', 'sermons widget', 'church-theme-framework' ) ) ), + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'all', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -160,6 +172,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '1', // lowest possible value for number type 'number_max' => '50', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '5', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -183,6 +198,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => true, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -206,6 +224,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_max' => '', // highest possible value for number type 'checkbox_label' => _x( 'Show date', 'events widget', 'church-theme-framework' ), //show text after checkbox 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => true, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -229,6 +250,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => false, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -252,6 +276,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_max' => '', // highest possible value for number type 'checkbox_label' => _x( 'Show category', 'events widget', 'church-theme-framework' ), //show text after checkbox 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => false, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -275,6 +302,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => false, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) diff --git a/includes/classes/widget-galleries.php b/includes/classes/widget-galleries.php index 10ee507..3f8a905 100644 --- a/includes/classes/widget-galleries.php +++ b/includes/classes/widget-galleries.php @@ -64,6 +64,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -88,6 +91,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => _x( 'Galleries', 'galleries widget title default', 'church-theme-framework' ), // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -114,6 +120,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'date' => _x( 'Date Added', 'galleries widget order by', 'church-theme-framework' ), 'title' => _x( 'Title', 'galleries widget order by', 'church-theme-framework' ), ), + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'date', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -140,6 +149,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'asc' => _x( 'Low to High', 'galleries widget order', 'church-theme-framework' ), 'desc' => _x( 'High to Low', 'galleries widget order', 'church-theme-framework' ), ), + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'desc', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -163,6 +175,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '0', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '5', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) diff --git a/includes/classes/widget-gallery.php b/includes/classes/widget-gallery.php index c09454f..9be46cb 100644 --- a/includes/classes/widget-gallery.php +++ b/includes/classes/widget-gallery.php @@ -73,6 +73,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -97,6 +100,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => _x( 'Gallery', 'gallery widget title default', 'church-theme-framework' ), // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -120,6 +126,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => $gallery_posts_options, // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'all', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -143,6 +152,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => false, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -170,6 +182,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'title' => _x( 'Title', 'gallery widget order by', 'church-theme-framework' ), 'comment_count' => _x( 'Comment Count', 'gallery widget order by', 'church-theme-framework' ), ), + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'publish_date', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -196,6 +211,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'asc' => _x( 'Low to High', 'gallery widget order', 'church-theme-framework' ), 'desc' => _x( 'High to Low', 'gallery widget order', 'church-theme-framework' ), ), + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'desc', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -219,6 +237,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '1', // lowest possible value for number type 'number_max' => '50', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '6', // 6 is a versatile default for one, two or three per row 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -246,6 +267,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'medium' => _x( 'Medium', 'gallery widget', 'church-theme-framework' ), 'large' => _x( 'Large', 'gallery widget', 'church-theme-framework' ), ), + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'medium', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) diff --git a/includes/classes/widget-giving.php b/includes/classes/widget-giving.php index 5589ffa..f409607 100644 --- a/includes/classes/widget-giving.php +++ b/includes/classes/widget-giving.php @@ -62,6 +62,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -86,6 +89,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => _x( 'Giving', 'giving widget default title', 'church-theme-framework' ), // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -109,6 +115,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => __( 'You may give online by clicking below.', 'church-theme-framework' ), // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => true, // allow HTML to be used in the value (text, textarea) @@ -132,6 +141,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => _x( 'Give Now', 'giving widget', 'church-theme-framework' ), // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -155,6 +167,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) diff --git a/includes/classes/widget-highlight.php b/includes/classes/widget-highlight.php index 3aa8ebb..648c104 100644 --- a/includes/classes/widget-highlight.php +++ b/includes/classes/widget-highlight.php @@ -62,6 +62,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -86,6 +89,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -109,6 +115,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -132,6 +141,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -155,6 +167,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => false, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -178,6 +193,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) diff --git a/includes/classes/widget-locations.php b/includes/classes/widget-locations.php index 9eec539..de155b1 100644 --- a/includes/classes/widget-locations.php +++ b/includes/classes/widget-locations.php @@ -62,6 +62,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -86,6 +89,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => _x( 'Locations', 'locations widget title default', 'church-theme-framework' ), // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -112,6 +118,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'menu_order' => _x( 'Custom Order', 'locations widget order by', 'church-theme-framework' ), 'title' => _x( 'Name', 'locations widget order by', 'church-theme-framework' ), ), + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'menu_order', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -138,6 +147,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'asc' => _x( 'Low to High', 'locations widget order', 'church-theme-framework' ), 'desc' => _x( 'High to Low', 'locations widget order', 'church-theme-framework' ), ), + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'asc', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -161,6 +173,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '1', // lowest possible value for number type 'number_max' => '50', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '5', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -184,6 +199,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => true, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -207,6 +225,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => true, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -230,6 +251,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => false, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -253,6 +277,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_max' => '', // highest possible value for number type 'checkbox_label' => _x( 'Show email', 'locations widget', 'church-theme-framework' ), //show text after checkbox 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => false, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -276,6 +303,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => false, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -299,6 +329,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => false, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) diff --git a/includes/classes/widget-people.php b/includes/classes/widget-people.php index 4856273..b235d60 100644 --- a/includes/classes/widget-people.php +++ b/includes/classes/widget-people.php @@ -62,6 +62,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -86,6 +89,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => _x( 'People', 'people widget title default', 'church-theme-framework' ), // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -111,6 +117,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'options' => ctfw_term_options( 'ctc_person_group', array( // array of keys/values for radio or select 'all' => _x( 'All Groups', 'people widget', 'church-theme-framework' ) ) ), + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'all', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -137,6 +146,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'menu_order' => _x( 'Custom Order', 'people widget order by', 'church-theme-framework' ), 'title' => _x( 'Name', 'people widget order by', 'church-theme-framework' ), ), + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'menu_order', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -163,6 +175,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'asc' => _x( 'Low to High', 'people widget order', 'church-theme-framework' ), 'desc' => _x( 'High to Low', 'people widget order', 'church-theme-framework' ), ), + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'asc', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -186,6 +201,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '1', // lowest possible value for number type 'number_max' => '50', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '5', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -209,6 +227,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => true, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -232,6 +253,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => true, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -255,6 +279,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => true, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -278,6 +305,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => false, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -301,6 +331,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => false, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -324,6 +357,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => false, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) diff --git a/includes/classes/widget-posts.php b/includes/classes/widget-posts.php index ec23c9d..bd1ee28 100644 --- a/includes/classes/widget-posts.php +++ b/includes/classes/widget-posts.php @@ -64,6 +64,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -88,6 +91,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => _x( 'Posts', 'posts widget title default', 'church-theme-framework' ), // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -113,6 +119,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'options' => ctfw_term_options( 'category', array( // array of keys/values for radio or select 'all' => _x( 'All Categories', 'posts widget', 'church-theme-framework' ) ) ), + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'all', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -140,6 +149,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'publish_date' => _x( 'Date', 'posts widget order by', 'church-theme-framework' ), 'comment_count' => _x( 'Comment Count', 'posts widget order by', 'church-theme-framework' ), ), + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'publish_date', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -166,6 +178,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'asc' => _x( 'Low to High', 'posts widget order', 'church-theme-framework' ), 'desc' => _x( 'High to Low', 'posts widget order', 'church-theme-framework' ), ), + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'desc', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -189,6 +204,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '1', // lowest possible value for number type 'number_max' => '50', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '5', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -212,6 +230,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => true, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -235,6 +256,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_max' => '', // highest possible value for number type 'checkbox_label' => _x( 'Show date', 'posts widget', 'church-theme-framework' ), //show text after checkbox 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => true, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -258,6 +282,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_max' => '', // highest possible value for number type 'checkbox_label' => _x( 'Show author', 'posts widget', 'church-theme-framework' ), //show text after checkbox 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => false, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -281,6 +308,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_max' => '', // highest possible value for number type 'checkbox_label' => _x( 'Show category', 'posts widget', 'church-theme-framework' ), //show text after checkbox 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => false, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -304,6 +334,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => false, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) diff --git a/includes/classes/widget-section.php b/includes/classes/widget-section.php index 7253657..aaed162 100644 --- a/includes/classes/widget-section.php +++ b/includes/classes/widget-section.php @@ -64,6 +64,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -134,6 +137,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -167,7 +173,7 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'class' => '', // class(es) to add to input 'field_attributes' => array(), // attr => value array for field container 'field_class' => '', // class(es) to add to field container - 'custom_sanitize' => 'esc_url_raw', // function to do additional sanitization (or array( &$this, 'method' )) + 'custom_sanitize' => '', // function to do additional sanitization (or array( &$this, 'method' )) 'custom_field' => '', // function for custom display of field input 'taxonomies' => array(), // hide field if taxonomies are not supported ), @@ -184,6 +190,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '1', // lowest possible value for number type 'number_max' => '100', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '10', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -209,6 +218,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -234,6 +246,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -259,6 +274,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -284,6 +302,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -309,6 +330,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -334,6 +358,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -359,6 +386,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -384,6 +414,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) diff --git a/includes/classes/widget-sermons.php b/includes/classes/widget-sermons.php index 2073832..ab27a3d 100644 --- a/includes/classes/widget-sermons.php +++ b/includes/classes/widget-sermons.php @@ -62,6 +62,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -86,6 +89,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => _x( 'Sermons', 'sermons widget title default', 'church-theme-framework' ), // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -111,6 +117,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'options' => ctfw_term_options( 'ctc_sermon_topic', array( // array of keys/values for radio or select 'all' => _x( 'All Topics', 'sermons widget', 'church-theme-framework' ) ) ), + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'all', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -136,6 +145,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'options' => ctfw_term_options( 'ctc_sermon_book', array( // array of keys/values for radio or select 'all' => _x( 'All Books', 'sermons widget', 'church-theme-framework' ) ) ), + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'all', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -161,6 +173,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'options' => ctfw_term_options( 'ctc_sermon_series', array( // array of keys/values for radio or select 'all' => _x( 'All Series', 'sermons widget', 'church-theme-framework' ) ) ), + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'all', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -186,6 +201,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'options' => ctfw_term_options( 'ctc_sermon_speaker', array( // array of keys/values for radio or select 'all' => _x( 'All Speakers', 'sermons widget', 'church-theme-framework' ) ) ), + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'all', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -213,6 +231,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'publish_date' => _x( 'Date', 'sermons widget order by', 'church-theme-framework' ), 'comment_count' => _x( 'Comment Count', 'sermons widget order by', 'church-theme-framework' ), ), + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'publish_date', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -239,6 +260,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'asc' => _x( 'Low to High', 'sermons widget order', 'church-theme-framework' ), 'desc' => _x( 'High to Low', 'sermons widget order', 'church-theme-framework' ), ), + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => 'desc', // value to pre-populate option with (before first save or on reset) 'no_empty' => true, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -262,6 +286,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '1', // lowest possible value for number type 'number_max' => '50', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '5', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -285,6 +312,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => true, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -308,6 +338,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_max' => '', // highest possible value for number type 'checkbox_label' => _x( 'Show date', 'sermons widget', 'church-theme-framework' ), //show text after checkbox 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => true, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -331,6 +364,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_max' => '', // highest possible value for number type 'checkbox_label' => _x( 'Show topic', 'sermons widget', 'church-theme-framework' ), //show text after checkbox 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => false, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -354,6 +390,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_max' => '', // highest possible value for number type 'checkbox_label' => _x( 'Show book', 'sermons widget', 'church-theme-framework' ), //show text after checkbox 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => false, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -377,6 +416,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_max' => '', // highest possible value for number type 'checkbox_label' => _x( 'Show series', 'sermons widget', 'church-theme-framework' ), //show text after checkbox 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => false, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -400,6 +442,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_max' => '', // highest possible value for number type 'checkbox_label' => _x( 'Show speaker', 'sermons widget', 'church-theme-framework' ), //show text after checkbox 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => false, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -423,6 +468,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => true, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -446,6 +494,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => false, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) diff --git a/includes/classes/widget-slide.php b/includes/classes/widget-slide.php index 0388490..a7d4866 100644 --- a/includes/classes/widget-slide.php +++ b/includes/classes/widget-slide.php @@ -62,6 +62,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -86,6 +89,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -109,6 +115,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -132,6 +141,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -155,6 +167,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => false, // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -178,6 +193,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea) @@ -201,6 +219,9 @@ function ctfw_fields() { // prefix in case WP core adds method with same name 'number_min' => '', // lowest possible value for number type 'number_max' => '', // highest possible value for number type 'options' => array(), // array of keys/values for radio or select + 'upload_button' => '', // for url field; text for button that opens media frame + 'upload_title' => '', // for url field; title appearing at top of media frame + 'upload_type' => '', // for url field; optional type of media to filter by (image, audio, video, application/pdf) 'default' => '', // value to pre-populate option with (before first save or on reset) 'no_empty' => false, // if user empties value, force default to be saved instead 'allow_html' => false, // allow HTML to be used in the value (text, textarea)