@@ -105,7 +105,7 @@ |
||
105 | 105 | new self( $oMsg ); |
106 | 106 | |
107 | 107 | // $aSettings = $this->getAsArray( $aSettings ); |
108 | - $_sScript = <<<JAVASCRIPTS |
|
108 | + $_sScript = <<<JAVASCRIPTS |
|
109 | 109 | jQuery( document ).ready( function() { |
110 | 110 | jQuery( '#{$sContainerTagID}' ).enableAdminPageFrameworkSortableSections( '{$sContainerTagID}' ); |
111 | 111 | }); |
@@ -94,10 +94,10 @@ |
||
94 | 94 | */ |
95 | 95 | static public function getEnabler( $sContainerTagID, $aSettings, $oMsg ) { |
96 | 96 | |
97 | - if ( empty( $aSettings ) ) { |
|
97 | + if ( empty( $aSettings ) ) { |
|
98 | 98 | return ''; |
99 | 99 | } |
100 | - if ( in_array( $sContainerTagID, self::$_aSetContainerIDsForSortableSections ) ) { |
|
100 | + if ( in_array( $sContainerTagID, self::$_aSetContainerIDsForSortableSections ) ) { |
|
101 | 101 | return ''; |
102 | 102 | } |
103 | 103 | self::$_aSetContainerIDsForSortableSections[ $sContainerTagID ] = $sContainerTagID; |
@@ -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 |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | */ |
28 | 28 | public function construct() { |
29 | 29 | |
30 | - if ( ! function_exists( 'wp_enqueue_media' ) ) { |
|
30 | + if ( !function_exists( 'wp_enqueue_media' ) ) { |
|
31 | 31 | return; |
32 | 32 | } |
33 | 33 | wp_enqueue_script( 'jquery' ); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | $_oMsg = $_aParams[ 0 ]; |
66 | 66 | |
67 | 67 | // means the WordPress version is 3.4.x or below |
68 | - if ( ! function_exists( 'wp_enqueue_media' ) ) { |
|
68 | + if ( !function_exists( 'wp_enqueue_media' ) ) { |
|
69 | 69 | return ""; |
70 | 70 | } |
71 | 71 |
@@ -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 | } |
@@ -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 |
@@ -26,8 +26,8 @@ discard block |
||
26 | 26 | return $_sResult; |
27 | 27 | } |
28 | 28 | |
29 | - public function getModel() { |
|
30 | - return $this->get() . '[' . $this->sIndexMark . ']'; |
|
29 | + public function getModel() { |
|
30 | + return $this->get().'['.$this->sIndexMark.']'; |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
@@ -35,14 +35,14 @@ discard block |
||
35 | 35 | */ |
36 | 36 | protected function _getFieldName() { |
37 | 37 | |
38 | - $_aFieldPath = $this->aArguments[ '_field_path_array' ]; |
|
39 | - if ( ! $this->_isSectionSet() ) { |
|
38 | + $_aFieldPath = $this->aArguments[ '_field_path_array' ]; |
|
39 | + if ( !$this->_isSectionSet() ) { |
|
40 | 40 | return $this->_getInputNameConstructed( $_aFieldPath ); |
41 | 41 | } |
42 | 42 | |
43 | 43 | $_aSectionPath = $this->aArguments[ '_section_path_array' ]; |
44 | 44 | if ( $this->_isSectionSet() && isset( $this->aArguments[ '_section_index' ] ) ) { |
45 | - $_aSectionPath[] = $this->aArguments[ '_section_index' ]; |
|
45 | + $_aSectionPath[ ] = $this->aArguments[ '_section_index' ]; |
|
46 | 46 | } |
47 | 47 | $_sFieldName = $this->_getInputNameConstructed( |
48 | 48 | array_merge( $_aSectionPath, $_aFieldPath ) |
@@ -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 |
@@ -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 |
@@ -50,17 +50,17 @@ discard block |
||
50 | 50 | |
51 | 51 | // 3.8.0+ |
52 | 52 | if ( $this->aArguments[ '_parent_tag_id' ] ) { |
53 | - return $this->aArguments[ '_parent_tag_id' ] . '_' . $this->aArguments[ 'field_id' ]; |
|
53 | + return $this->aArguments[ '_parent_tag_id' ].'_'.$this->aArguments[ 'field_id' ]; |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | $_sSectionIndex = isset( $this->aArguments[ '_section_index' ] ) |
57 | - ? '__' . $this->aArguments[ '_section_index' ] |
|
57 | + ? '__'.$this->aArguments[ '_section_index' ] |
|
58 | 58 | : ''; |
59 | 59 | $_sSectionPart = implode( '_', $this->aArguments[ '_section_path_array' ] ); |
60 | 60 | $_sFieldPart = implode( '_', $this->aArguments[ '_field_path_array' ] ); |
61 | 61 | |
62 | 62 | return $this->_isSectionSet() |
63 | - ? $_sSectionPart . $_sSectionIndex . '_' . $_sFieldPart |
|
63 | + ? $_sSectionPart.$_sSectionIndex.'_'.$_sFieldPart |
|
64 | 64 | : $_sFieldPart; |
65 | 65 | |
66 | 66 | } |
@@ -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 | /** |
@@ -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 | /** |
@@ -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 |
@@ -25,26 +25,26 @@ |
||
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 | } |
31 | 31 | |
32 | 32 | /** |
33 | 33 | * @return string |
34 | 34 | */ |
35 | - protected function _getSectionName( $isIndex=null ) { |
|
35 | + protected function _getSectionName( $isIndex = null ) { |
|
36 | 36 | |
37 | 37 | $this->aArguments = $this->aArguments + array( |
38 | 38 | 'section_id' => null, |
39 | 39 | '_index' => null, |
40 | 40 | ); |
41 | - if( isset( $isIndex ) ) { |
|
41 | + if ( isset( $isIndex ) ) { |
|
42 | 42 | $this->aArguments[ '_index' ] = $isIndex; |
43 | 43 | } |
44 | 44 | |
45 | 45 | $_aNameParts = $this->aArguments[ '_section_path_array' ]; |
46 | 46 | if ( isset( $this->aArguments[ 'section_id' ], $this->aArguments[ '_index' ] ) ) { |
47 | - $_aNameParts[] = $this->aArguments[ '_index' ]; |
|
47 | + $_aNameParts[ ] = $this->aArguments[ '_index' ]; |
|
48 | 48 | } |
49 | 49 | $_sResult = $this->_getInputNameConstructed( $_aNameParts ); |
50 | 50 | return $_sResult; |
@@ -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 |