@@ -49,7 +49,7 @@ |
||
49 | 49 | * @return string The generated string value. |
50 | 50 | */ |
51 | 51 | public function get() { |
52 | - return $this->_getFiltered( $this->_getBaseFieldTagID() . '__' . $this->isIndex ); |
|
52 | + return $this->_getFiltered( $this->_getBaseFieldTagID().'__'.$this->isIndex ); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | } |
56 | 56 | \ No newline at end of file |
@@ -25,8 +25,8 @@ discard block |
||
25 | 25 | return $this->_getFiltered( $this->_getFieldName() ); |
26 | 26 | } |
27 | 27 | |
28 | - public function getModel() { |
|
29 | - return $this->get() . '[' . $this->sIndexMark . ']'; |
|
28 | + public function getModel() { |
|
29 | + return $this->get().'['.$this->sIndexMark.']'; |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | /** |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | : ""; |
40 | 40 | return $this->getAOrB( |
41 | 41 | $this->_isSectionSet(), |
42 | - $this->aArguments[ 'section_id' ] . $_sSectionIndex . "[" . $this->aArguments[ 'field_id' ] . "]", |
|
42 | + $this->aArguments[ 'section_id' ].$_sSectionIndex."[".$this->aArguments[ 'field_id' ]."]", |
|
43 | 43 | $this->aArguments[ 'field_id' ] |
44 | 44 | ); |
45 | 45 |
@@ -25,7 +25,7 @@ |
||
25 | 25 | return $this->_getFiltered( $this->_getSectionName() ); |
26 | 26 | } |
27 | 27 | |
28 | - public function getModel() { |
|
28 | + public function getModel() { |
|
29 | 29 | return $this->get() . '[' . $this->sIndexMark . ']'; |
30 | 30 | } |
31 | 31 |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * @return string |
41 | 41 | */ |
42 | 42 | public function getModel() { |
43 | - return $this->get() . '__' . $this->sIndexMark; |
|
43 | + return $this->get().'__'.$this->sIndexMark; |
|
44 | 44 | } |
45 | 45 | /** |
46 | 46 | * @since 3.6.0 |
@@ -51,11 +51,11 @@ discard block |
||
51 | 51 | // @todo if a parent field object exists, use the parent object value and append the dimension of this field level. |
52 | 52 | |
53 | 53 | $_sSectionIndex = isset( $this->aArguments[ '_section_index' ] ) |
54 | - ? '__' . $this->aArguments[ '_section_index' ] |
|
54 | + ? '__'.$this->aArguments[ '_section_index' ] |
|
55 | 55 | : ''; |
56 | 56 | |
57 | 57 | return $this->_isSectionSet() |
58 | - ? $this->aArguments[ 'section_id' ] . $_sSectionIndex . '_' . $this->aArguments[ 'field_id' ] |
|
58 | + ? $this->aArguments[ 'section_id' ].$_sSectionIndex.'_'.$this->aArguments[ 'field_id' ] |
|
59 | 59 | : $this->aArguments[ 'field_id' ]; |
60 | 60 | |
61 | 61 | } |
@@ -30,7 +30,7 @@ |
||
30 | 30 | * @since 3.6.0 Moved from `AdminPageFramework_FormField`. |
31 | 31 | * @return string The generated string value. |
32 | 32 | */ |
33 | - public function get() { |
|
33 | + public function get() { |
|
34 | 34 | return $this->_getFiltered( $this->_getBaseFieldTagID() ); |
35 | 35 | } |
36 | 36 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | '', |
39 | 39 | "|{$this->sIndex}" |
40 | 40 | ); |
41 | - return $this->_getFiltered( $this->_getFlatFieldName() . $_sIndex ); |
|
41 | + return $this->_getFiltered( $this->_getFlatFieldName().$_sIndex ); |
|
42 | 42 | |
43 | 43 | } |
44 | 44 |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * @return string The generated field name model. |
32 | 32 | */ |
33 | 33 | public function getModel() { |
34 | - return $this->get() . '|' . $this->sIndexMark; |
|
34 | + return $this->get().'|'.$this->sIndexMark; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
@@ -25,27 +25,27 @@ |
||
25 | 25 | return $this->_getFiltered( $this->_getSectionName() ); |
26 | 26 | } |
27 | 27 | |
28 | - public function getModel() { |
|
29 | - return $this->get() . '[' . $this->sIndexMark . ']'; |
|
28 | + public function getModel() { |
|
29 | + return $this->get().'['.$this->sIndexMark.']'; |
|
30 | 30 | // return $this->_getSectionName( $this->sIndexMark ); |
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
34 | 34 | * @return string |
35 | 35 | */ |
36 | - protected function _getSectionName( $isIndex=null ) { |
|
36 | + protected function _getSectionName( $isIndex = null ) { |
|
37 | 37 | // @todo if a parent field object exists, use the parent object value and append the dimension of this field level. |
38 | 38 | $this->aArguments = $this->aArguments + array( |
39 | 39 | 'section_id' => null, |
40 | 40 | '_index' => null, |
41 | 41 | ); |
42 | - if( isset( $isIndex ) ) { |
|
42 | + if ( isset( $isIndex ) ) { |
|
43 | 43 | $this->aArguments[ '_index' ] = $isIndex; |
44 | 44 | } |
45 | 45 | $_sSectionIndex = isset( $this->aArguments[ 'section_id' ], $this->aArguments[ '_index' ] ) |
46 | 46 | ? "[{$this->aArguments[ '_index' ]}]" |
47 | 47 | : ""; |
48 | - return $this->aArguments[ 'section_id' ] . $_sSectionIndex; |
|
48 | + return $this->aArguments[ 'section_id' ].$_sSectionIndex; |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | } |
52 | 52 | \ No newline at end of file |
@@ -25,7 +25,7 @@ |
||
25 | 25 | return $this->_getFiltered( $this->_getSectionName() ); |
26 | 26 | } |
27 | 27 | |
28 | - public function getModel() { |
|
28 | + public function getModel() { |
|
29 | 29 | return $this->get() . '[' . $this->sIndexMark . ']'; |
30 | 30 | } |
31 | 31 |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * |
37 | 37 | * @since 3.3.0 |
38 | 38 | */ |
39 | - public function __construct( $oMsg=null ) { |
|
39 | + public function __construct( $oMsg = null ) { |
|
40 | 40 | |
41 | 41 | $_sClassName = get_class( $this ); |
42 | 42 | if ( in_array( $_sClassName, self::$_aEnqueued ) ) { |
@@ -74,10 +74,10 @@ discard block |
||
74 | 74 | */ |
75 | 75 | public function _replyToPrintScript() { |
76 | 76 | $_sScript = $this->getScript( $this->oMsg ); |
77 | - if ( ! $_sScript ) { |
|
77 | + if ( !$_sScript ) { |
|
78 | 78 | return; |
79 | 79 | } |
80 | - echo "<script type='text/javascript' class='" . strtolower( get_class( $this ) ) . "'>" |
|
80 | + echo "<script type='text/javascript' class='".strtolower( get_class( $this ) )."'>" |
|
81 | 81 | . $_sScript |
82 | 82 | . "</script>"; |
83 | 83 | } |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | $_aParams = func_get_args() + array( null ); |
44 | 44 | $_oMsg = $_aParams[ 0 ]; |
45 | - $_sToggleAllButtonHTML = '"' . self::_getToggleAllButtonHTML( $_oMsg ) . '"'; |
|
45 | + $_sToggleAllButtonHTML = '"'.self::_getToggleAllButtonHTML( $_oMsg ).'"'; |
|
46 | 46 | |
47 | 47 | return <<<JAVASCRIPTS |
48 | 48 | ( function( $ ) { |
@@ -192,18 +192,18 @@ discard block |
||
192 | 192 | $_sLabelToggleAll = $oMsg->get( 'toggle_all' ); |
193 | 193 | $_sLabelToggleAllSections = $oMsg->get( 'toggle_all_collapsible_sections' ); |
194 | 194 | $_sDashIconSort = self::getAOrB( |
195 | - version_compare( $GLOBALS['wp_version'], '3.8', '<' ), // evaluate |
|
195 | + version_compare( $GLOBALS[ 'wp_version' ], '3.8', '<' ), // evaluate |
|
196 | 196 | '', // true |
197 | 197 | 'dashicons dashicons-sort' // false |
198 | 198 | ); |
199 | - $_sText = self::getAOrB( |
|
199 | + $_sText = self::getAOrB( |
|
200 | 200 | $_sDashIconSort, // evaluate |
201 | 201 | '', // true |
202 | 202 | $_sLabelToggleAll // false |
203 | 203 | ); |
204 | 204 | return "<div class='admin-page-framework-collapsible-toggle-all-button-container'>" |
205 | - . "<span class='admin-page-framework-collapsible-toggle-all-button button " . $_sDashIconSort . "'" |
|
206 | - . " title='" . esc_attr( $_sLabelToggleAllSections ) |
|
205 | + . "<span class='admin-page-framework-collapsible-toggle-all-button button ".$_sDashIconSort."'" |
|
206 | + . " title='".esc_attr( $_sLabelToggleAllSections ) |
|
207 | 207 | . "'>" |
208 | 208 | . $_sText |
209 | 209 | . "</span>" |
@@ -57,7 +57,7 @@ |
||
57 | 57 | $_oMsg = $_aParams[ 0 ]; |
58 | 58 | |
59 | 59 | // means the WordPress version is 3.4.x or below |
60 | - if ( ! function_exists( 'wp_enqueue_media' ) ) { |
|
60 | + if ( !function_exists( 'wp_enqueue_media' ) ) { |
|
61 | 61 | return ""; |
62 | 62 | } |
63 | 63 |
@@ -57,7 +57,7 @@ |
||
57 | 57 | $_oMsg = $_aParams[ 0 ]; |
58 | 58 | |
59 | 59 | // means the WordPress version is 3.4.x or below |
60 | - if ( ! function_exists( 'wp_enqueue_media' ) ) { |
|
60 | + if ( ! function_exists( 'wp_enqueue_media' ) ) { |
|
61 | 61 | return ""; |
62 | 62 | } |
63 | 63 |