Skip to content

Commit

Permalink
Update comments on all widgets for new upload_* parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Gliebe committed Oct 25, 2016
1 parent 85cba0d commit 7e995ca
Show file tree
Hide file tree
Showing 13 changed files with 355 additions and 1 deletion.
18 changes: 18 additions & 0 deletions includes/classes/widget-archives.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down
27 changes: 27 additions & 0 deletions includes/classes/widget-categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down
Loading

0 comments on commit 7e995ca

Please sign in to comment.