@@ -23,7 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | protected function _get() { |
25 | 25 | |
26 | - $_sSpinnerURL = esc_url( admin_url( '/images/wpspin_light-2x.gif' ) ); |
|
26 | + $_sSpinnerURL = esc_url( admin_url( '/images/wpspin_light-2x.gif' ) ); |
|
27 | 27 | return <<<CSSRULES |
28 | 28 | .admin-page-framework-form-warning { |
29 | 29 | font-weight: bold; |
@@ -23,11 +23,11 @@ |
||
23 | 23 | */ |
24 | 24 | protected function _get() { |
25 | 25 | |
26 | - $_sSpinnerPath = $this->getWPAdminDirPath() . '/images/wpspin_light-2x.gif'; |
|
27 | - if ( ! file_exists( $_sSpinnerPath ) ) { |
|
26 | + $_sSpinnerPath = $this->getWPAdminDirPath().'/images/wpspin_light-2x.gif'; |
|
27 | + if ( !file_exists( $_sSpinnerPath ) ) { |
|
28 | 28 | return ''; |
29 | 29 | } |
30 | - $_sSpinnerURL = esc_url( admin_url( '/images/wpspin_light-2x.gif' ) ); |
|
30 | + $_sSpinnerURL = esc_url( admin_url( '/images/wpspin_light-2x.gif' ) ); |
|
31 | 31 | return <<<CSSRULES |
32 | 32 | .admin-page-framework-form-loading { |
33 | 33 | position: absolute; |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | 1 => 'get_network_admin_url' |
33 | 33 | ); |
34 | 34 | $_sWPAdminPath = str_replace( |
35 | - get_bloginfo( 'url' ) . '/', |
|
35 | + get_bloginfo( 'url' ).'/', |
|
36 | 36 | ABSPATH, |
37 | 37 | call_user_func( $_aFunctionNames[ ( integer ) is_network_admin() ] ) |
38 | 38 | ); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * @since DEVVER |
50 | 50 | * @return void |
51 | 51 | */ |
52 | - static public function goToLocalURL( $sURL, $oCallbackOnError=null ) { |
|
52 | + static public function goToLocalURL( $sURL, $oCallbackOnError = null ) { |
|
53 | 53 | self::redirectByType( $sURL, 1, $oCallbackOnError ); |
54 | 54 | } |
55 | 55 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * @since DEVVER Added the second callback parameter. |
61 | 61 | * @return void |
62 | 62 | */ |
63 | - static public function goToURL( $sURL, $oCallbackOnError=null ) { |
|
63 | + static public function goToURL( $sURL, $oCallbackOnError = null ) { |
|
64 | 64 | self::redirectByType( $sURL, 0, $oCallbackOnError ); |
65 | 65 | } |
66 | 66 | |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * @param integer $iType 0: external site, 1: local site (within the same domain). |
71 | 71 | * @param callable $oCallbackOnError |
72 | 72 | */ |
73 | - static public function redirectByType( $sURL, $iType=0, $oCallbackOnError=null ) { |
|
73 | + static public function redirectByType( $sURL, $iType = 0, $oCallbackOnError = null ) { |
|
74 | 74 | |
75 | 75 | $_iRedirectError = self::getRedirectPreError( $sURL, $iType ); |
76 | 76 | if ( $_iRedirectError && is_callable( $oCallbackOnError ) ) { |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | static public function getRedirectPreError( $sURL, $iType ) { |
102 | 102 | |
103 | 103 | // check only externnal urls as local ones can be a relative url and always fails the below check. |
104 | - if ( ! $iType && filter_var( $sURL, FILTER_VALIDATE_URL) === false ) { |
|
104 | + if ( !$iType && filter_var( $sURL, FILTER_VALIDATE_URL ) === false ) { |
|
105 | 105 | return 1; |
106 | 106 | } |
107 | 107 | // If HTTP headers are already sent, redirect cannot be done. |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | |
24 | 24 | $_aItems = $this->getContentsByHeader( $this->getReadmeContents(), 3 ); |
25 | 25 | $_iLastIndex = count( $_aItems ) - 1; |
26 | - foreach( $_aItems as $_iIndex => $_aContent ) { |
|
26 | + foreach ( $_aItems as $_iIndex => $_aContent ) { |
|
27 | 27 | |
28 | 28 | $_oParser = new AdminPageFramework_WPReadmeParser; |
29 | 29 | $_oParser->setText( $_aContent[ 1 ] ); |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $oAdminPage->addSettingSections( |
32 | 32 | $this->sPageSlug, // the target page slug |
33 | 33 | array( |
34 | - 'section_id' => 'examples_' . $_iIndex, |
|
34 | + 'section_id' => 'examples_'.$_iIndex, |
|
35 | 35 | 'title' => $_aContent[ 0 ], |
36 | 36 | 'collapsible' => array( |
37 | 37 | 'toggle_all_button' => $_iLastIndex === $_iIndex |
@@ -52,9 +52,9 @@ discard block |
||
52 | 52 | /** |
53 | 53 | * @return string |
54 | 54 | */ |
55 | - private function getReadMeContents() { |
|
55 | + private function getReadMeContents() { |
|
56 | 56 | return $this->_getReadmeContents( |
57 | - AdminPageFrameworkLoader_Registry::$sDirPath . '/asset/text/examples.txt', |
|
57 | + AdminPageFrameworkLoader_Registry::$sDirPath.'/asset/text/examples.txt', |
|
58 | 58 | '', |
59 | 59 | array( 'Examples' ) |
60 | 60 | ); |
@@ -53,7 +53,7 @@ |
||
53 | 53 | /** |
54 | 54 | * @return string |
55 | 55 | */ |
56 | - private function getReadMeContents() { |
|
56 | + private function getReadMeContents() { |
|
57 | 57 | return $this->_getReadmeContents( |
58 | 58 | AdminPageFrameworkLoader_Registry::$sDirPath . '/readme.txt', // source path |
59 | 59 | '', // TOC title |
@@ -21,8 +21,8 @@ discard block |
||
21 | 21 | */ |
22 | 22 | public function replyToLoadTab( $oAdminPage ) { |
23 | 23 | |
24 | - $_aSections = $this->getContentsByHeader( $this->getFAQContents(), 4 ); |
|
25 | - foreach( $_aSections as $_iIndex => $_aContent ) { |
|
24 | + $_aSections = $this->getContentsByHeader( $this->getFAQContents(), 4 ); |
|
25 | + foreach ( $_aSections as $_iIndex => $_aContent ) { |
|
26 | 26 | |
27 | 27 | $_sTitle = $_aContent[ 0 ]; |
28 | 28 | $_sContent = $this->_getFAQSubSections( $_aContent[ 1 ] ); |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | $oAdminPage->addSettingSections( |
33 | 33 | $this->sPageSlug, // the target page slug |
34 | 34 | array( |
35 | - 'section_id' => 'faq_sections_' . $_iIndex, |
|
35 | + 'section_id' => 'faq_sections_'.$_iIndex, |
|
36 | 36 | 'tab_slug' => $this->sTabSlug, |
37 | 37 | 'section_tab_slug' => 'apf_faq', |
38 | 38 | 'title' => $_sTitle, |
@@ -54,17 +54,17 @@ discard block |
||
54 | 54 | |
55 | 55 | $_aNestedSections = array(); |
56 | 56 | $_iLastIndex = count( $aItems ) - 1; |
57 | - foreach( $aItems as $_iIndex => $_aContent ) { |
|
57 | + foreach ( $aItems as $_iIndex => $_aContent ) { |
|
58 | 58 | |
59 | - $_oParser = new AdminPageFramework_WPReadmeParser( $_aContent[ 1 ] ); |
|
59 | + $_oParser = new AdminPageFramework_WPReadmeParser( $_aContent[ 1 ] ); |
|
60 | 60 | |
61 | 61 | // If no sections, return the contents of the first item. |
62 | - if ( ! $_aContent[ 0 ] ) { |
|
62 | + if ( !$_aContent[ 0 ] ) { |
|
63 | 63 | return $_oParser->get(); |
64 | 64 | } |
65 | 65 | |
66 | - $_aNestedSections[] = array( |
|
67 | - 'section_id' => 'faq_item_' . $_iIndex, |
|
66 | + $_aNestedSections[ ] = array( |
|
67 | + 'section_id' => 'faq_item_'.$_iIndex, |
|
68 | 68 | 'title' => $_aContent[ 0 ], |
69 | 69 | 'collapsible' => array( |
70 | 70 | 'toggle_all_button' => $_iLastIndex === $_iIndex |
@@ -80,14 +80,14 @@ discard block |
||
80 | 80 | return $_aNestedSections; |
81 | 81 | |
82 | 82 | } |
83 | - private function getFAQContents() { |
|
83 | + private function getFAQContents() { |
|
84 | 84 | |
85 | - $_aReplacements = array( |
|
85 | + $_aReplacements = array( |
|
86 | 86 | '%PLUGIN_DIR_URL%' => AdminPageFrameworkLoader_Registry::getPluginURL(), |
87 | 87 | '%WP_ADMIN_URL%' => admin_url(), |
88 | 88 | ); |
89 | 89 | $_oWPReadmeParser = new AdminPageFramework_WPReadmeParser( |
90 | - AdminPageFrameworkLoader_Registry::$sDirPath . '/readme.txt', |
|
90 | + AdminPageFrameworkLoader_Registry::$sDirPath.'/readme.txt', |
|
91 | 91 | $_aReplacements |
92 | 92 | ); |
93 | 93 | return $_oWPReadmeParser->getRawSection( 'Frequently asked questions' ); |
@@ -80,7 +80,7 @@ |
||
80 | 80 | return $_aNestedSections; |
81 | 81 | |
82 | 82 | } |
83 | - private function getFAQContents() { |
|
83 | + private function getFAQContents() { |
|
84 | 84 | |
85 | 85 | $_aReplacements = array( |
86 | 86 | '%PLUGIN_DIR_URL%' => AdminPageFrameworkLoader_Registry::getPluginURL(), |
@@ -25,14 +25,14 @@ discard block |
||
25 | 25 | |
26 | 26 | $_aItems = $this->getContentsByHeader( $this->getReadmeContents(), 4 ); |
27 | 27 | $_iLastIndex = count( $_aItems ) - 1; |
28 | - foreach( $_aItems as $_iIndex => $_aContent ) { |
|
28 | + foreach ( $_aItems as $_iIndex => $_aContent ) { |
|
29 | 29 | |
30 | 30 | $_oParser = new AdminPageFramework_WPReadmeParser( $_aContent[ 1 ] ); |
31 | 31 | $_sContent = $_oParser->get(); |
32 | 32 | $oAdminPage->addSettingSections( |
33 | 33 | $this->sPageSlug, // the target page slug |
34 | 34 | array( |
35 | - 'section_id' => 'tips_' . $_iIndex, |
|
35 | + 'section_id' => 'tips_'.$_iIndex, |
|
36 | 36 | 'title' => $_aContent[ 0 ], |
37 | 37 | 'collapsible' => array( |
38 | 38 | 'toggle_all_button' => $_iLastIndex === $_iIndex |
@@ -53,9 +53,9 @@ discard block |
||
53 | 53 | /** |
54 | 54 | * @return string |
55 | 55 | */ |
56 | - private function getReadMeContents() { |
|
56 | + private function getReadMeContents() { |
|
57 | 57 | return $this->_getReadmeContents( |
58 | - AdminPageFrameworkLoader_Registry::$sDirPath . '/readme.txt', // source path |
|
58 | + AdminPageFrameworkLoader_Registry::$sDirPath.'/readme.txt', // source path |
|
59 | 59 | '', // TOC title |
60 | 60 | array( 'Other Notes' ) // sections |
61 | 61 | ); |
@@ -53,7 +53,7 @@ |
||
53 | 53 | /** |
54 | 54 | * @return string |
55 | 55 | */ |
56 | - private function getReadMeContents() { |
|
56 | + private function getReadMeContents() { |
|
57 | 57 | return $this->_getReadmeContents( |
58 | 58 | AdminPageFrameworkLoader_Registry::$sDirPath . '/readme.txt', // source path |
59 | 59 | '', // TOC title |
@@ -35,41 +35,41 @@ discard block |
||
35 | 35 | // Optional |
36 | 36 | 'page_slug' => null, |
37 | 37 | 'tab_slug' => null, |
38 | - 'section_tab_slug' => null, // 3.0.0+ |
|
38 | + 'section_tab_slug' => null, // 3.0.0+ |
|
39 | 39 | 'title' => null, |
40 | 40 | 'description' => null, |
41 | 41 | 'capability' => null, |
42 | 42 | 'if' => true, |
43 | - 'order' => null, // do not set the default number here because incremented numbers will be added when registering the sections. |
|
43 | + 'order' => null, // do not set the default number here because incremented numbers will be added when registering the sections. |
|
44 | 44 | 'help' => null, |
45 | 45 | 'help_aside' => null, |
46 | - 'repeatable' => false, // (boolean|array) 3.0.0+ |
|
47 | - 'sortable' => false, // (boolean|array) 3.6.0+ |
|
46 | + 'repeatable' => false, // (boolean|array) 3.0.0+ |
|
47 | + 'sortable' => false, // (boolean|array) 3.6.0+ |
|
48 | 48 | 'attributes' => array( // 3.3.1+ |
49 | - 'class' => null, // set null to avoid undefined index warnings. |
|
50 | - 'style' => null, // set null to avoid undefined index warnings. |
|
49 | + 'class' => null, // set null to avoid undefined index warnings. |
|
50 | + 'style' => null, // set null to avoid undefined index warnings. |
|
51 | 51 | 'tab' => array(), |
52 | 52 | ), |
53 | 53 | 'class' => array( // 3.3.1+ |
54 | 54 | 'tab' => array(), |
55 | 55 | ), |
56 | - 'hidden' => false, // 3.3.1+ |
|
57 | - 'collapsible' => false, // 3.4.0+ (boolean|array) For the array structure see the $aStructure_CollapsibleArguments property. |
|
58 | - 'save' => true, // 3.6.0+ |
|
56 | + 'hidden' => false, // 3.3.1+ |
|
57 | + 'collapsible' => false, // 3.4.0+ (boolean|array) For the array structure see the $aStructure_CollapsibleArguments property. |
|
58 | + 'save' => true, // 3.6.0+ |
|
59 | 59 | |
60 | - 'content' => null, // 3.6.1+ (string) An overriding section-set output. |
|
60 | + 'content' => null, // 3.6.1+ (string) An overriding section-set output. |
|
61 | 61 | |
62 | - 'tip' => null, // DEVVER (string) Tool tip HTML strings. |
|
62 | + 'tip' => null, // DEVVER (string) Tool tip HTML strings. |
|
63 | 63 | |
64 | 64 | // Internal |
65 | - '_fields_type' => null, // @deprecated DEVVER+ Use the `_structure_type` instead. 3.0.0+ - same as the one of the field definition array. Used to insert debug info at the bottom of sections. |
|
66 | - '_structure_type' => null, // DEVVER+ |
|
67 | - '_is_first_index' => false, // 3.4.0+ (boolean) indicates whether it is the first item of the sub-sections (for repeatable sections). |
|
68 | - '_is_last_index' => false, // 3.4.0+ (boolean) indicates whether it is the last item of the sub-sections (for repeatable sections). |
|
65 | + '_fields_type' => null, // @deprecated DEVVER+ Use the `_structure_type` instead. 3.0.0+ - same as the one of the field definition array. Used to insert debug info at the bottom of sections. |
|
66 | + '_structure_type' => null, // DEVVER+ |
|
67 | + '_is_first_index' => false, // 3.4.0+ (boolean) indicates whether it is the first item of the sub-sections (for repeatable sections). |
|
68 | + '_is_last_index' => false, // 3.4.0+ (boolean) indicates whether it is the last item of the sub-sections (for repeatable sections). |
|
69 | 69 | |
70 | - '_section_path' => '', // DEVVER+ (string) e.g. my_section|nested_section |
|
71 | - '_section_path_array' => '', // DEVVER+ (array) an array version of the above section_path argument. Numerically indexed. |
|
72 | - '_nested_depth' => 0, // DEVVER+ (integer) the nested level of the section |
|
70 | + '_section_path' => '', // DEVVER+ (string) e.g. my_section|nested_section |
|
71 | + '_section_path_array' => '', // DEVVER+ (array) an array version of the above section_path argument. Numerically indexed. |
|
72 | + '_nested_depth' => 0, // DEVVER+ (integer) the nested level of the section |
|
73 | 73 | |
74 | 74 | // 3.6.0+ - (object) the caller framework factory object. This allows the framework to access the factory property when rendering the section. |
75 | 75 | // DEVVER+ It no longer stores a factory object but a form object. |
@@ -124,11 +124,11 @@ discard block |
||
124 | 124 | $_aSectionPath = explode( '|', $this->sSectionPath ); |
125 | 125 | $_aSectionset = $this->uniteArrays( |
126 | 126 | array( |
127 | - '_fields_type' => $this->sStructureType, // @deprecated DEVVER+ |
|
128 | - '_structure_type' => $this->sStructureType, // DEVVER+ |
|
129 | - '_section_path' => $this->sSectionPath, // DEVVER+ |
|
127 | + '_fields_type' => $this->sStructureType, // @deprecated DEVVER+ |
|
128 | + '_structure_type' => $this->sStructureType, // DEVVER+ |
|
129 | + '_section_path' => $this->sSectionPath, // DEVVER+ |
|
130 | 130 | '_section_path_array' => $_aSectionPath, |
131 | - '_nested_depth' => count( $_aSectionPath ) - 1, // DEVVER+ - zero base |
|
131 | + '_nested_depth' => count( $_aSectionPath ) - 1, // DEVVER+ - zero base |
|
132 | 132 | ) |
133 | 133 | + $this->aSectionset |
134 | 134 | + array( |
@@ -29,36 +29,36 @@ discard block |
||
29 | 29 | static public $aStructure = array( |
30 | 30 | |
31 | 31 | // Required Keys |
32 | - 'field_id' => null, // (string) |
|
33 | - 'type' => null, // (string) |
|
34 | - 'section_id' => null, // (string) |
|
32 | + 'field_id' => null, // (string) |
|
33 | + 'type' => null, // (string) |
|
34 | + 'section_id' => null, // (string) |
|
35 | 35 | |
36 | 36 | // Optional Keys |
37 | - 'section_title' => null, // This will be assigned automatically in the formatting method. |
|
38 | - 'page_slug' => null, // This will be assigned automatically in the formatting method. |
|
39 | - 'tab_slug' => null, // This will be assigned automatically in the formatting method. |
|
40 | - 'option_key' => null, // This will be assigned automatically in the formatting method. |
|
41 | - 'class_name' => null, // Stores the instantiated class name. Used by the export field type. Also a third party custom field type uses it. |
|
37 | + 'section_title' => null, // This will be assigned automatically in the formatting method. |
|
38 | + 'page_slug' => null, // This will be assigned automatically in the formatting method. |
|
39 | + 'tab_slug' => null, // This will be assigned automatically in the formatting method. |
|
40 | + 'option_key' => null, // This will be assigned automatically in the formatting method. |
|
41 | + 'class_name' => null, // Stores the instantiated class name. Used by the export field type. Also a third party custom field type uses it. |
|
42 | 42 | 'capability' => null, |
43 | 43 | 'title' => null, |
44 | 44 | 'tip' => null, |
45 | 45 | 'description' => null, |
46 | - 'error_message' => null, // error message for the field |
|
46 | + 'error_message' => null, // error message for the field |
|
47 | 47 | 'before_label' => null, |
48 | 48 | 'after_label' => null, |
49 | 49 | 'if' => true, |
50 | - 'order' => null, // do not set the default number here for this key. |
|
50 | + 'order' => null, // do not set the default number here for this key. |
|
51 | 51 | 'default' => null, |
52 | 52 | 'value' => null, |
53 | - 'help' => null, // 2.1.0+ |
|
54 | - 'help_aside' => null, // 2.1.0+ |
|
55 | - 'repeatable' => null, // 2.1.3+ |
|
56 | - 'sortable' => null, // 2.1.3+ |
|
57 | - 'show_title_column' => true, // 3.0.0+ |
|
58 | - 'hidden' => null, // 3.0.0+ |
|
53 | + 'help' => null, // 2.1.0+ |
|
54 | + 'help_aside' => null, // 2.1.0+ |
|
55 | + 'repeatable' => null, // 2.1.3+ |
|
56 | + 'sortable' => null, // 2.1.3+ |
|
57 | + 'show_title_column' => true, // 3.0.0+ |
|
58 | + 'hidden' => null, // 3.0.0+ |
|
59 | 59 | |
60 | 60 | // @todo Examine why an array is not set but null here for the attributes argument. |
61 | - 'attributes' => null, // 3.0.0+ - the array represents the attributes of input tag |
|
61 | + 'attributes' => null, // 3.0.0+ - the array represents the attributes of input tag |
|
62 | 62 | 'class' => array( // 3.3.1+ |
63 | 63 | 'fieldrow' => array(), |
64 | 64 | 'fieldset' => array(), |
@@ -66,21 +66,21 @@ discard block |
||
66 | 66 | 'field' => array(), |
67 | 67 | ), |
68 | 68 | |
69 | - 'save' => true, // 3.6.0+ |
|
70 | - 'content' => null, // 3.6.1+ - (string) An overriding field-set output. |
|
69 | + 'save' => true, // 3.6.0+ |
|
70 | + 'content' => null, // 3.6.1+ - (string) An overriding field-set output. |
|
71 | 71 | |
72 | 72 | // Internal Keys |
73 | - '_fields_type' => null, // @deprecated DEVVER++, 3.0.0+ - an internal key that indicates the fields type such as page, meta box for pages, meta box for posts, or taxonomy. |
|
74 | - '_structure_type' => null, // DEVVEr+ |
|
75 | - '_caller_object' => null, // 3.4.0+ - (object) stores the object of the caller class. The object is referenced when creating nested fields. |
|
73 | + '_fields_type' => null, // @deprecated DEVVER++, 3.0.0+ - an internal key that indicates the fields type such as page, meta box for pages, meta box for posts, or taxonomy. |
|
74 | + '_structure_type' => null, // DEVVEr+ |
|
75 | + '_caller_object' => null, // 3.4.0+ - (object) stores the object of the caller class. The object is referenced when creating nested fields. |
|
76 | 76 | |
77 | - '_section_path' => '', // DEVVER+ (string) Stores the section path that indicates the structural address of the nested section. e.g. my_section|nested_one |
|
78 | - '_section_path_array' => '', // DEVVER+ (array) An array version of the above section path. |
|
79 | - '_nested_depth' => 0, // 3.4.0+ - (integer) stores the level of the nesting depth. This is mostly used for debugging by checking if the field is a nested field or not. |
|
80 | - '_subsection_index' => null, // DEVVER+ Passed to the `field_definition_{...}` filter hook callbacks. |
|
77 | + '_section_path' => '', // DEVVER+ (string) Stores the section path that indicates the structural address of the nested section. e.g. my_section|nested_one |
|
78 | + '_section_path_array' => '', // DEVVER+ (array) An array version of the above section path. |
|
79 | + '_nested_depth' => 0, // 3.4.0+ - (integer) stores the level of the nesting depth. This is mostly used for debugging by checking if the field is a nested field or not. |
|
80 | + '_subsection_index' => null, // DEVVER+ Passed to the `field_definition_{...}` filter hook callbacks. |
|
81 | 81 | |
82 | - '_field_path' => '', // DEVVER+ (string Stores the field path that indicates the structural location of the field. This is relative to the belonging section. |
|
83 | - '_field_path_array' => '', // DEVVER+ (array) An array version of the above field path. |
|
82 | + '_field_path' => '', // DEVVER+ (string Stores the field path that indicates the structural location of the field. This is relative to the belonging section. |
|
83 | + '_field_path_array' => '', // DEVVER+ (array) An array version of the above field path. |
|
84 | 84 | |
85 | 85 | ); |
86 | 86 | |
@@ -157,8 +157,8 @@ discard block |
||
157 | 157 | array( |
158 | 158 | '_fields_type' => $this->sStructureType, // @deprecated DEVVER backward-compatibility |
159 | 159 | '_structure_type' => $this->sStructureType, |
160 | - '_caller_object' => $this->oCallerObject, // 3.4.1+ Stores the caller framework factory object. |
|
161 | - '_subsection_index' => $this->iSubSectionIndex, // DEVVER+ |
|
160 | + '_caller_object' => $this->oCallerObject, // 3.4.1+ Stores the caller framework factory object. |
|
161 | + '_subsection_index' => $this->iSubSectionIndex, // DEVVER+ |
|
162 | 162 | ) |
163 | 163 | + $this->aFieldset, |
164 | 164 | array( |
@@ -177,9 +177,9 @@ discard block |
||
177 | 177 | // @todo when nested fields are supported, set an appropriate value here. |
178 | 178 | $_aFieldset[ '_field_path' ] = $this->getFormElementPath( $_aFieldset[ 'field_id' ] ); |
179 | 179 | $_aFieldset[ '_field_path_array' ] = explode( '|', $_aFieldset[ '_field_path' ] ); |
180 | -$_aFieldset[ '_nested_depth' ] = count( $_aFieldset[ '_field_path_array' ] ) - 1 ; |
|
180 | +$_aFieldset[ '_nested_depth' ] = count( $_aFieldset[ '_field_path_array' ] ) - 1; |
|
181 | 181 | |
182 | - $_aFieldset[ 'order' ] = $this->getAOrB( |
|
182 | + $_aFieldset[ 'order' ] = $this->getAOrB( |
|
183 | 183 | is_numeric( $_aFieldset[ 'order' ] ), |
184 | 184 | $_aFieldset[ 'order' ], |
185 | 185 | $this->iCountOfElements + 10 |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * @since DEVVER |
16 | 16 | * @internal |
17 | 17 | */ |
18 | -class AdminPageFramework_Form_View___ToolTip extends AdminPageFramework_Form_View___Section_Base { |
|
18 | +class AdminPageFramework_Form_View___ToolTip extends AdminPageFramework_Form_View___Section_Base { |
|
19 | 19 | |
20 | 20 | public $aArguments = array( |
21 | 21 | 'attributes' => array(), // attributes |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * @since DEVVER |
100 | 100 | * @return string |
101 | 101 | */ |
102 | - private function _getDescriptions() { |
|
102 | + private function _getDescriptions() { |
|
103 | 103 | |
104 | 104 | if ( isset( $this->aArguments[ 'content' ] ) ) { |
105 | 105 | return "<span class='admin-page-framework-form-tool-tip-description'>" |
@@ -17,9 +17,9 @@ discard block |
||
17 | 17 | */ |
18 | 18 | class AdminPageFramework_Form_View___ToolTip extends AdminPageFramework_Form_View___Section_Base { |
19 | 19 | |
20 | - public $aArguments = array( |
|
20 | + public $aArguments = array( |
|
21 | 21 | 'attributes' => array(), // attributes |
22 | - 'icon' => null, // the icon output |
|
22 | + 'icon' => null, // the icon output |
|
23 | 23 | 'title' => null, |
24 | 24 | 'content' => null, |
25 | 25 | ); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | if ( is_string( $asContent ) ) { |
55 | 55 | return true; |
56 | 56 | } |
57 | - if ( is_array( $asContent ) && ! $this->isAssociative( $asContent ) ) { |
|
57 | + if ( is_array( $asContent ) && !$this->isAssociative( $asContent ) ) { |
|
58 | 58 | return true; |
59 | 59 | } |
60 | 60 | return false; |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * @return string The output. |
69 | 69 | */ |
70 | 70 | public function get() { |
71 | - if ( ! $this->aArguments[ 'content' ] ) { |
|
71 | + if ( !$this->aArguments[ 'content' ] ) { |
|
72 | 72 | return ''; |
73 | 73 | } |
74 | 74 | $_sHref = esc_attr( "#{$this->sTitleElementID}" ); |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | return $this->aArguments[ 'icon' ]; |
93 | 93 | } |
94 | 94 | |
95 | - if ( version_compare( $GLOBALS['wp_version'], '3.8', '>=' ) ) { |
|
95 | + if ( version_compare( $GLOBALS[ 'wp_version' ], '3.8', '>=' ) ) { |
|
96 | 96 | return "<span class='dashicons dashicons-editor-help'></span>"; |
97 | 97 | } |
98 | 98 |