@@ -19,10 +19,10 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | private function add_hooks() { |
| 21 | 21 | |
| 22 | - add_filter( 'gform_custom_merge_tags', array( $this, '_gform_custom_merge_tags' ), 10, 4 ); |
|
| 22 | + add_filter('gform_custom_merge_tags', array($this, '_gform_custom_merge_tags'), 10, 4); |
|
| 23 | 23 | |
| 24 | 24 | /** @see GFCommon::replace_variables_prepopulate **/ |
| 25 | - add_filter( 'gform_replace_merge_tags', array( 'GravityView_Merge_Tags', 'replace_gv_merge_tags' ), 10, 7 ); |
|
| 25 | + add_filter('gform_replace_merge_tags', array('GravityView_Merge_Tags', 'replace_gv_merge_tags'), 10, 7); |
|
| 26 | 26 | |
| 27 | 27 | } |
| 28 | 28 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | * @param bool $esc_html Pass return value through `esc_html()` |
| 44 | 44 | * @return string Text with variables maybe replaced |
| 45 | 45 | */ |
| 46 | - public static function replace_variables($text, $form = array(), $entry = array(), $url_encode = false, $esc_html = true ) { |
|
| 46 | + public static function replace_variables($text, $form = array(), $entry = array(), $url_encode = false, $esc_html = true) { |
|
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * @filter `gravityview_do_replace_variables` Turn off merge tag variable replacements.\n |
@@ -55,9 +55,9 @@ discard block |
||
| 55 | 55 | * @param[in] array $form GF Form array |
| 56 | 56 | * @param[in] array $entry GF Entry array |
| 57 | 57 | */ |
| 58 | - $do_replace_variables = apply_filters( 'gravityview/merge_tags/do_replace_variables', true, $text, $form, $entry ); |
|
| 58 | + $do_replace_variables = apply_filters('gravityview/merge_tags/do_replace_variables', true, $text, $form, $entry); |
|
| 59 | 59 | |
| 60 | - if ( strpos( $text, '{' ) === false || ! $do_replace_variables ) { |
|
| 60 | + if (strpos($text, '{') === false || !$do_replace_variables) { |
|
| 61 | 61 | return $text; |
| 62 | 62 | } |
| 63 | 63 | |
@@ -66,11 +66,11 @@ discard block |
||
| 66 | 66 | * |
| 67 | 67 | * @internal Reported to GF Support on 12/3 |
| 68 | 68 | */ |
| 69 | - $form['title'] = isset( $form['title'] ) ? $form['title'] : ''; |
|
| 70 | - $form['id'] = isset( $form['id'] ) ? $form['id'] : ''; |
|
| 71 | - $form['fields'] = isset( $form['fields'] ) ? $form['fields'] : array(); |
|
| 69 | + $form['title'] = isset($form['title']) ? $form['title'] : ''; |
|
| 70 | + $form['id'] = isset($form['id']) ? $form['id'] : ''; |
|
| 71 | + $form['fields'] = isset($form['fields']) ? $form['fields'] : array(); |
|
| 72 | 72 | |
| 73 | - return GFCommon::replace_variables( $text, $form, $entry, $url_encode, $esc_html ); |
|
| 73 | + return GFCommon::replace_variables($text, $form, $entry, $url_encode, $esc_html); |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | * |
| 86 | 86 | * @return array Modified merge tags |
| 87 | 87 | */ |
| 88 | - public function _gform_custom_merge_tags( $existing_merge_tags = array(), $form_id, $fields = array(), $element_id = '' ) { |
|
| 88 | + public function _gform_custom_merge_tags($existing_merge_tags = array(), $form_id, $fields = array(), $element_id = '') { |
|
| 89 | 89 | |
| 90 | 90 | $created_by_merge_tags = array( |
| 91 | 91 | array( |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | ); |
| 112 | 112 | |
| 113 | 113 | //return the form object from the php hook |
| 114 | - return array_merge( $existing_merge_tags, $created_by_merge_tags ); |
|
| 114 | + return array_merge($existing_merge_tags, $created_by_merge_tags); |
|
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | /** |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | * |
| 130 | 130 | * @return mixed |
| 131 | 131 | */ |
| 132 | - public static function replace_gv_merge_tags( $text, $form = array(), $entry = array(), $url_encode = false, $esc_html = false ) { |
|
| 132 | + public static function replace_gv_merge_tags($text, $form = array(), $entry = array(), $url_encode = false, $esc_html = false) { |
|
| 133 | 133 | |
| 134 | 134 | /** |
| 135 | 135 | * This prevents the gform_replace_merge_tags filter from being called twice, as defined in: |
@@ -137,14 +137,14 @@ discard block |
||
| 137 | 137 | * @see GFCommon::replace_variables_prepopulate() |
| 138 | 138 | * @todo Remove eventually: Gravity Forms fixed this issue in 1.9.14 |
| 139 | 139 | */ |
| 140 | - if( false === $form ) { |
|
| 140 | + if (false === $form) { |
|
| 141 | 141 | return $text; |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | - $text = self::replace_get_variables( $text, $form, $entry, $url_encode ); |
|
| 144 | + $text = self::replace_get_variables($text, $form, $entry, $url_encode); |
|
| 145 | 145 | |
| 146 | 146 | // Process the merge vars here |
| 147 | - $text = self::replace_user_variables_created_by( $text, $form, $entry, $url_encode, $esc_html ); |
|
| 147 | + $text = self::replace_user_variables_created_by($text, $form, $entry, $url_encode, $esc_html); |
|
| 148 | 148 | |
| 149 | 149 | return $text; |
| 150 | 150 | } |
@@ -170,22 +170,22 @@ discard block |
||
| 170 | 170 | * @param array $entry Entry array |
| 171 | 171 | * @param bool $url_encode Whether to URL-encode output |
| 172 | 172 | */ |
| 173 | - public static function replace_get_variables( $text, $form = array(), $entry = array(), $url_encode = false ) { |
|
| 173 | + public static function replace_get_variables($text, $form = array(), $entry = array(), $url_encode = false) { |
|
| 174 | 174 | |
| 175 | 175 | // Is there is {get:[xyz]} merge tag? |
| 176 | - preg_match_all( "/{get:(.*?)}/ism", $text, $matches, PREG_SET_ORDER ); |
|
| 176 | + preg_match_all("/{get:(.*?)}/ism", $text, $matches, PREG_SET_ORDER); |
|
| 177 | 177 | |
| 178 | 178 | // If there are no matches OR the Entry `created_by` isn't set or is 0 (no user) |
| 179 | - if( empty( $matches ) ) { |
|
| 179 | + if (empty($matches)) { |
|
| 180 | 180 | return $text; |
| 181 | 181 | } |
| 182 | 182 | |
| 183 | - foreach ( $matches as $match ) { |
|
| 183 | + foreach ($matches as $match) { |
|
| 184 | 184 | |
| 185 | 185 | $full_tag = $match[0]; |
| 186 | 186 | $property = $match[1]; |
| 187 | 187 | |
| 188 | - $value = stripslashes_deep( rgget( $property ) ); |
|
| 188 | + $value = stripslashes_deep(rgget($property)); |
|
| 189 | 189 | |
| 190 | 190 | /** |
| 191 | 191 | * @filter `gravityview/merge_tags/get/glue/` Modify the glue used to convert an array of `{get}` values from an array to string |
@@ -193,11 +193,11 @@ discard block |
||
| 193 | 193 | * @param[in,out] string $glue String used to `implode()` $_GET values Default: ', ' |
| 194 | 194 | * @param[in] string $property The current name of the $_GET parameter being combined |
| 195 | 195 | */ |
| 196 | - $glue = apply_filters( 'gravityview/merge_tags/get/glue/', ', ', $property ); |
|
| 196 | + $glue = apply_filters('gravityview/merge_tags/get/glue/', ', ', $property); |
|
| 197 | 197 | |
| 198 | - $value = is_array( $value ) ? implode( $glue, $value ) : $value; |
|
| 198 | + $value = is_array($value) ? implode($glue, $value) : $value; |
|
| 199 | 199 | |
| 200 | - $value = $url_encode ? urlencode( $value ) : $value; |
|
| 200 | + $value = $url_encode ? urlencode($value) : $value; |
|
| 201 | 201 | |
| 202 | 202 | /** |
| 203 | 203 | * @filter `gravityview/merge_tags/get/esc_html/{url parameter name}` Disable esc_html() from running on `{get}` merge tag |
@@ -207,9 +207,9 @@ discard block |
||
| 207 | 207 | * @since 1.15 |
| 208 | 208 | * @param bool $esc_html Whether to esc_html() the value. Default: `true` |
| 209 | 209 | */ |
| 210 | - $esc_html = apply_filters('gravityview/merge_tags/get/esc_html/' . $property, true ); |
|
| 210 | + $esc_html = apply_filters('gravityview/merge_tags/get/esc_html/'.$property, true); |
|
| 211 | 211 | |
| 212 | - $value = $esc_html ? esc_html( $value ) : $value; |
|
| 212 | + $value = $esc_html ? esc_html($value) : $value; |
|
| 213 | 213 | |
| 214 | 214 | /** |
| 215 | 215 | * @filter `gravityview/merge_tags/get/esc_html/{url parameter name}` Modify the value of the `{get}` replacement before being used |
@@ -218,12 +218,12 @@ discard block |
||
| 218 | 218 | * @param[in] array $form Gravity Forms form array |
| 219 | 219 | * @param[in] array $entry Entry array |
| 220 | 220 | */ |
| 221 | - $value = apply_filters('gravityview/merge_tags/get/value/' . $property, $value, $text, $form, $entry ); |
|
| 221 | + $value = apply_filters('gravityview/merge_tags/get/value/'.$property, $value, $text, $form, $entry); |
|
| 222 | 222 | |
| 223 | - $text = str_replace( $full_tag, $value, $text ); |
|
| 223 | + $text = str_replace($full_tag, $value, $text); |
|
| 224 | 224 | } |
| 225 | 225 | |
| 226 | - unset( $value, $glue, $matches ); |
|
| 226 | + unset($value, $glue, $matches); |
|
| 227 | 227 | |
| 228 | 228 | return $text; |
| 229 | 229 | } |
@@ -244,41 +244,41 @@ discard block |
||
| 244 | 244 | * |
| 245 | 245 | * @return string Text, with user variables replaced, if they existed |
| 246 | 246 | */ |
| 247 | - private static function replace_user_variables_created_by( $text, $form = array(), $entry = array(), $url_encode = false, $esc_html = false ) { |
|
| 247 | + private static function replace_user_variables_created_by($text, $form = array(), $entry = array(), $url_encode = false, $esc_html = false) { |
|
| 248 | 248 | |
| 249 | 249 | // Is there is {created_by:[xyz]} merge tag? |
| 250 | - preg_match_all( "/\{created_by:(.*?)\}/", $text, $matches, PREG_SET_ORDER ); |
|
| 250 | + preg_match_all("/\{created_by:(.*?)\}/", $text, $matches, PREG_SET_ORDER); |
|
| 251 | 251 | |
| 252 | 252 | // If there are no matches OR the Entry `created_by` isn't set or is 0 (no user) |
| 253 | - if( empty( $matches ) || empty( $entry['created_by'] ) ) { |
|
| 253 | + if (empty($matches) || empty($entry['created_by'])) { |
|
| 254 | 254 | return $text; |
| 255 | 255 | } |
| 256 | 256 | |
| 257 | 257 | // Get the creator of the entry |
| 258 | - $entry_creator = new WP_User( $entry['created_by'] ); |
|
| 258 | + $entry_creator = new WP_User($entry['created_by']); |
|
| 259 | 259 | |
| 260 | - foreach ( $matches as $match ) { |
|
| 260 | + foreach ($matches as $match) { |
|
| 261 | 261 | |
| 262 | 262 | $full_tag = $match[0]; |
| 263 | 263 | $property = $match[1]; |
| 264 | 264 | |
| 265 | - switch( $property ) { |
|
| 265 | + switch ($property) { |
|
| 266 | 266 | /** @since 1.13.2 */ |
| 267 | 267 | case 'roles': |
| 268 | - $value = implode( ', ', $entry_creator->roles ); |
|
| 268 | + $value = implode(', ', $entry_creator->roles); |
|
| 269 | 269 | break; |
| 270 | 270 | default: |
| 271 | - $value = $entry_creator->get( $property ); |
|
| 271 | + $value = $entry_creator->get($property); |
|
| 272 | 272 | } |
| 273 | 273 | |
| 274 | - $value = $url_encode ? urlencode( $value ) : $value; |
|
| 274 | + $value = $url_encode ? urlencode($value) : $value; |
|
| 275 | 275 | |
| 276 | - $value = $esc_html ? esc_html( $value ) : $value; |
|
| 276 | + $value = $esc_html ? esc_html($value) : $value; |
|
| 277 | 277 | |
| 278 | - $text = str_replace( $full_tag, $value, $text ); |
|
| 278 | + $text = str_replace($full_tag, $value, $text); |
|
| 279 | 279 | } |
| 280 | 280 | |
| 281 | - unset( $entry_creator ); |
|
| 281 | + unset($entry_creator); |
|
| 282 | 282 | |
| 283 | 283 | return $text; |
| 284 | 284 | } |
@@ -12,12 +12,12 @@ discard block |
||
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | 14 | /** If this file is called directly, abort. */ |
| 15 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 15 | +if (!defined('ABSPATH')) { |
|
| 16 | 16 | die; |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | -if( ! class_exists( 'Gamajo_Template_Loader' ) ) { |
|
| 20 | - require( GRAVITYVIEW_DIR . 'includes/lib/class-gamajo-template-loader.php' ); |
|
| 19 | +if (!class_exists('Gamajo_Template_Loader')) { |
|
| 20 | + require(GRAVITYVIEW_DIR.'includes/lib/class-gamajo-template-loader.php'); |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | class GravityView_View extends Gamajo_Template_Loader { |
@@ -145,9 +145,9 @@ discard block |
||
| 145 | 145 | * Construct the view object |
| 146 | 146 | * @param array $atts Associative array to set the data of |
| 147 | 147 | */ |
| 148 | - function __construct( $atts = array() ) { |
|
| 148 | + function __construct($atts = array()) { |
|
| 149 | 149 | |
| 150 | - $atts = wp_parse_args( $atts, array( |
|
| 150 | + $atts = wp_parse_args($atts, array( |
|
| 151 | 151 | 'form_id' => NULL, |
| 152 | 152 | 'view_id' => NULL, |
| 153 | 153 | 'fields' => NULL, |
@@ -155,10 +155,10 @@ discard block |
||
| 155 | 155 | 'post_id' => NULL, |
| 156 | 156 | 'form' => NULL, |
| 157 | 157 | 'atts' => NULL, |
| 158 | - ) ); |
|
| 158 | + )); |
|
| 159 | 159 | |
| 160 | 160 | foreach ($atts as $key => $value) { |
| 161 | - if( is_null( $value ) ) { |
|
| 161 | + if (is_null($value)) { |
|
| 162 | 162 | continue; |
| 163 | 163 | } |
| 164 | 164 | $this->{$key} = $value; |
@@ -166,18 +166,18 @@ discard block |
||
| 166 | 166 | |
| 167 | 167 | |
| 168 | 168 | // Add granular overrides |
| 169 | - add_filter( $this->filter_prefix . '_get_template_part', array( $this, 'add_id_specific_templates' ), 10, 3 ); |
|
| 169 | + add_filter($this->filter_prefix.'_get_template_part', array($this, 'add_id_specific_templates'), 10, 3); |
|
| 170 | 170 | |
| 171 | 171 | |
| 172 | 172 | // widget logic |
| 173 | - add_action( 'gravityview_before', array( $this, 'render_widget_hooks' ) ); |
|
| 174 | - add_action( 'gravityview_after', array( $this, 'render_widget_hooks' ) ); |
|
| 173 | + add_action('gravityview_before', array($this, 'render_widget_hooks')); |
|
| 174 | + add_action('gravityview_after', array($this, 'render_widget_hooks')); |
|
| 175 | 175 | |
| 176 | 176 | /** |
| 177 | 177 | * Clear the current entry after the loop is done |
| 178 | 178 | * @since 1.7.3 |
| 179 | 179 | */ |
| 180 | - add_action( 'gravityview_footer', array( $this, 'clearCurrentEntry' ), 500 ); |
|
| 180 | + add_action('gravityview_footer', array($this, 'clearCurrentEntry'), 500); |
|
| 181 | 181 | |
| 182 | 182 | self::$instance = &$this; |
| 183 | 183 | } |
@@ -187,10 +187,10 @@ discard block |
||
| 187 | 187 | * |
| 188 | 188 | * @return GravityView_View |
| 189 | 189 | */ |
| 190 | - static function getInstance( $passed_post = NULL ) { |
|
| 190 | + static function getInstance($passed_post = NULL) { |
|
| 191 | 191 | |
| 192 | - if( empty( self::$instance ) ) { |
|
| 193 | - self::$instance = new self( $passed_post ); |
|
| 192 | + if (empty(self::$instance)) { |
|
| 193 | + self::$instance = new self($passed_post); |
|
| 194 | 194 | } |
| 195 | 195 | |
| 196 | 196 | return self::$instance; |
@@ -200,11 +200,11 @@ discard block |
||
| 200 | 200 | * @param string|null $key The key to a specific attribute of the current field |
| 201 | 201 | * @return array|mixed|null If $key is set and attribute exists at $key, return that. If not set, return NULL. Otherwise, return current field array |
| 202 | 202 | */ |
| 203 | - public function getCurrentField( $key = NULL ) { |
|
| 203 | + public function getCurrentField($key = NULL) { |
|
| 204 | 204 | |
| 205 | - if( !empty( $key ) ) { |
|
| 206 | - if( isset( $this->_current_field[ $key ] ) ) { |
|
| 207 | - return $this->_current_field[ $key ]; |
|
| 205 | + if (!empty($key)) { |
|
| 206 | + if (isset($this->_current_field[$key])) { |
|
| 207 | + return $this->_current_field[$key]; |
|
| 208 | 208 | } |
| 209 | 209 | return NULL; |
| 210 | 210 | } |
@@ -212,19 +212,19 @@ discard block |
||
| 212 | 212 | return $this->_current_field; |
| 213 | 213 | } |
| 214 | 214 | |
| 215 | - public function setCurrentFieldSetting( $key, $value ) { |
|
| 215 | + public function setCurrentFieldSetting($key, $value) { |
|
| 216 | 216 | |
| 217 | - if( !empty( $this->_current_field ) ) { |
|
| 218 | - $this->_current_field['field_settings'][ $key ] = $value; |
|
| 217 | + if (!empty($this->_current_field)) { |
|
| 218 | + $this->_current_field['field_settings'][$key] = $value; |
|
| 219 | 219 | } |
| 220 | 220 | |
| 221 | 221 | } |
| 222 | 222 | |
| 223 | - public function getCurrentFieldSetting( $key ) { |
|
| 223 | + public function getCurrentFieldSetting($key) { |
|
| 224 | 224 | $settings = $this->getCurrentField('field_settings'); |
| 225 | 225 | |
| 226 | - if( $settings && !empty( $settings[ $key ] ) ) { |
|
| 227 | - return $settings[ $key ]; |
|
| 226 | + if ($settings && !empty($settings[$key])) { |
|
| 227 | + return $settings[$key]; |
|
| 228 | 228 | } |
| 229 | 229 | |
| 230 | 230 | return NULL; |
@@ -233,11 +233,11 @@ discard block |
||
| 233 | 233 | /** |
| 234 | 234 | * @param array $passed_field |
| 235 | 235 | */ |
| 236 | - public function setCurrentField( $passed_field ) { |
|
| 236 | + public function setCurrentField($passed_field) { |
|
| 237 | 237 | |
| 238 | 238 | $existing_field = $this->getCurrentField(); |
| 239 | 239 | |
| 240 | - $set_field = wp_parse_args( $passed_field, $existing_field ); |
|
| 240 | + $set_field = wp_parse_args($passed_field, $existing_field); |
|
| 241 | 241 | |
| 242 | 242 | $this->_current_field = $set_field; |
| 243 | 243 | |
@@ -252,11 +252,11 @@ discard block |
||
| 252 | 252 | * @param string|null $key The key to a specific field in the fields array |
| 253 | 253 | * @return array|mixed|null If $key is set and field exists at $key, return that. If not set, return NULL. Otherwise, return array of fields. |
| 254 | 254 | */ |
| 255 | - public function getAtts( $key = NULL ) { |
|
| 255 | + public function getAtts($key = NULL) { |
|
| 256 | 256 | |
| 257 | - if( !empty( $key ) ) { |
|
| 258 | - if( isset( $this->atts[ $key ] ) ) { |
|
| 259 | - return $this->atts[ $key ]; |
|
| 257 | + if (!empty($key)) { |
|
| 258 | + if (isset($this->atts[$key])) { |
|
| 259 | + return $this->atts[$key]; |
|
| 260 | 260 | } |
| 261 | 261 | return NULL; |
| 262 | 262 | } |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | /** |
| 268 | 268 | * @param array $atts |
| 269 | 269 | */ |
| 270 | - public function setAtts( $atts ) { |
|
| 270 | + public function setAtts($atts) { |
|
| 271 | 271 | $this->atts = $atts; |
| 272 | 272 | } |
| 273 | 273 | |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | /** |
| 282 | 282 | * @param array $form |
| 283 | 283 | */ |
| 284 | - public function setForm( $form ) { |
|
| 284 | + public function setForm($form) { |
|
| 285 | 285 | $this->form = $form; |
| 286 | 286 | } |
| 287 | 287 | |
@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | /** |
| 296 | 296 | * @param int|null $post_id |
| 297 | 297 | */ |
| 298 | - public function setPostId( $post_id ) { |
|
| 298 | + public function setPostId($post_id) { |
|
| 299 | 299 | $this->post_id = $post_id; |
| 300 | 300 | } |
| 301 | 301 | |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | /** |
| 310 | 310 | * @param string $context |
| 311 | 311 | */ |
| 312 | - public function setContext( $context ) { |
|
| 312 | + public function setContext($context) { |
|
| 313 | 313 | $this->context = $context; |
| 314 | 314 | } |
| 315 | 315 | |
@@ -317,12 +317,12 @@ discard block |
||
| 317 | 317 | * @param string|null $key The key to a specific field in the fields array |
| 318 | 318 | * @return array|mixed|null If $key is set and field exists at $key, return that. If not set, return NULL. Otherwise, return array of fields. |
| 319 | 319 | */ |
| 320 | - public function getFields( $key = null ) { |
|
| 320 | + public function getFields($key = null) { |
|
| 321 | 321 | |
| 322 | - $fields = empty( $this->fields ) ? NULL : $this->fields; |
|
| 322 | + $fields = empty($this->fields) ? NULL : $this->fields; |
|
| 323 | 323 | |
| 324 | - if( $fields && !empty( $key ) ) { |
|
| 325 | - $fields = isset( $fields[ $key ] ) ? $fields[ $key ] : NULL; |
|
| 324 | + if ($fields && !empty($key)) { |
|
| 325 | + $fields = isset($fields[$key]) ? $fields[$key] : NULL; |
|
| 326 | 326 | } |
| 327 | 327 | |
| 328 | 328 | return $fields; |
@@ -331,7 +331,7 @@ discard block |
||
| 331 | 331 | /** |
| 332 | 332 | * @param array $fields |
| 333 | 333 | */ |
| 334 | - public function setFields( $fields ) { |
|
| 334 | + public function setFields($fields) { |
|
| 335 | 335 | $this->fields = $fields; |
| 336 | 336 | } |
| 337 | 337 | |
@@ -339,11 +339,11 @@ discard block |
||
| 339 | 339 | * @param string $key The key to a specific field in the fields array |
| 340 | 340 | * @return array|mixed|null If $key is set and field exists at $key, return that. If not set, return NULL. Otherwise, return array of fields. |
| 341 | 341 | */ |
| 342 | - public function getField( $key ) { |
|
| 342 | + public function getField($key) { |
|
| 343 | 343 | |
| 344 | - if( !empty( $key ) ) { |
|
| 345 | - if( isset( $this->fields[ $key ] ) ) { |
|
| 346 | - return $this->fields[ $key ]; |
|
| 344 | + if (!empty($key)) { |
|
| 345 | + if (isset($this->fields[$key])) { |
|
| 346 | + return $this->fields[$key]; |
|
| 347 | 347 | } |
| 348 | 348 | } |
| 349 | 349 | |
@@ -354,22 +354,22 @@ discard block |
||
| 354 | 354 | * @param string $key The key to a specific field in the fields array |
| 355 | 355 | * @param mixed $value The value to set for the field |
| 356 | 356 | */ |
| 357 | - public function setField( $key, $value ) { |
|
| 358 | - $this->fields[ $key ] = $value; |
|
| 357 | + public function setField($key, $value) { |
|
| 358 | + $this->fields[$key] = $value; |
|
| 359 | 359 | } |
| 360 | 360 | |
| 361 | 361 | /** |
| 362 | 362 | * @return int |
| 363 | 363 | */ |
| 364 | 364 | public function getViewId() { |
| 365 | - return absint( $this->view_id ); |
|
| 365 | + return absint($this->view_id); |
|
| 366 | 366 | } |
| 367 | 367 | |
| 368 | 368 | /** |
| 369 | 369 | * @param int $view_id |
| 370 | 370 | */ |
| 371 | - public function setViewId( $view_id ) { |
|
| 372 | - $this->view_id = intval( $view_id ); |
|
| 371 | + public function setViewId($view_id) { |
|
| 372 | + $this->view_id = intval($view_id); |
|
| 373 | 373 | } |
| 374 | 374 | |
| 375 | 375 | /** |
@@ -382,7 +382,7 @@ discard block |
||
| 382 | 382 | /** |
| 383 | 383 | * @param int $form_id |
| 384 | 384 | */ |
| 385 | - public function setFormId( $form_id ) { |
|
| 385 | + public function setFormId($form_id) { |
|
| 386 | 386 | $this->form_id = $form_id; |
| 387 | 387 | } |
| 388 | 388 | |
@@ -396,7 +396,7 @@ discard block |
||
| 396 | 396 | /** |
| 397 | 397 | * @param array $entries |
| 398 | 398 | */ |
| 399 | - public function setEntries( $entries ) { |
|
| 399 | + public function setEntries($entries) { |
|
| 400 | 400 | $this->entries = $entries; |
| 401 | 401 | } |
| 402 | 402 | |
@@ -410,8 +410,8 @@ discard block |
||
| 410 | 410 | /** |
| 411 | 411 | * @param int $total_entries |
| 412 | 412 | */ |
| 413 | - public function setTotalEntries( $total_entries ) { |
|
| 414 | - $this->total_entries = intval( $total_entries ); |
|
| 413 | + public function setTotalEntries($total_entries) { |
|
| 414 | + $this->total_entries = intval($total_entries); |
|
| 415 | 415 | } |
| 416 | 416 | |
| 417 | 417 | /** |
@@ -424,7 +424,7 @@ discard block |
||
| 424 | 424 | /** |
| 425 | 425 | * @param array $paging |
| 426 | 426 | */ |
| 427 | - public function setPaging( $paging ) { |
|
| 427 | + public function setPaging($paging) { |
|
| 428 | 428 | $this->paging = $paging; |
| 429 | 429 | } |
| 430 | 430 | |
@@ -446,25 +446,25 @@ discard block |
||
| 446 | 446 | $page_size = $paging['page_size']; |
| 447 | 447 | $total = $this->getTotalEntries(); |
| 448 | 448 | |
| 449 | - if ( empty( $total ) ) { |
|
| 450 | - do_action( 'gravityview_log_debug', __METHOD__ . ': No entries. Returning empty array.' ); |
|
| 449 | + if (empty($total)) { |
|
| 450 | + do_action('gravityview_log_debug', __METHOD__.': No entries. Returning empty array.'); |
|
| 451 | 451 | |
| 452 | 452 | return array(); |
| 453 | 453 | } |
| 454 | 454 | |
| 455 | - $first = empty( $offset ) ? 1 : $offset + 1; |
|
| 455 | + $first = empty($offset) ? 1 : $offset + 1; |
|
| 456 | 456 | |
| 457 | 457 | // If the page size + starting entry is larger than total, the total is the max. |
| 458 | - $last = ( $offset + $page_size > $total ) ? $total : $offset + $page_size; |
|
| 458 | + $last = ($offset + $page_size > $total) ? $total : $offset + $page_size; |
|
| 459 | 459 | |
| 460 | 460 | /** |
| 461 | 461 | * @filter `gravityview_pagination_counts` Modify the displayed pagination numbers |
| 462 | 462 | * @since 1.13 |
| 463 | 463 | * @param array $counts Array with $first, $last, $total numbers in that order |
| 464 | 464 | */ |
| 465 | - list( $first, $last, $total ) = apply_filters( 'gravityview_pagination_counts', array( $first, $last, $total ) ); |
|
| 465 | + list($first, $last, $total) = apply_filters('gravityview_pagination_counts', array($first, $last, $total)); |
|
| 466 | 466 | |
| 467 | - return array( 'first' => (int) $first, 'last' => (int) $last, 'total' => (int) $total ); |
|
| 467 | + return array('first' => (int)$first, 'last' => (int)$last, 'total' => (int)$total); |
|
| 468 | 468 | } |
| 469 | 469 | |
| 470 | 470 | /** |
@@ -477,7 +477,7 @@ discard block |
||
| 477 | 477 | /** |
| 478 | 478 | * @param array $sorting |
| 479 | 479 | */ |
| 480 | - public function setSorting( $sorting ) { |
|
| 480 | + public function setSorting($sorting) { |
|
| 481 | 481 | $this->sorting = $sorting; |
| 482 | 482 | } |
| 483 | 483 | |
@@ -486,9 +486,9 @@ discard block |
||
| 486 | 486 | */ |
| 487 | 487 | public function getBackLinkLabel() { |
| 488 | 488 | |
| 489 | - $back_link_label = GravityView_API::replace_variables( $this->back_link_label, $this->getForm(), $this->getCurrentEntry() ); |
|
| 489 | + $back_link_label = GravityView_API::replace_variables($this->back_link_label, $this->getForm(), $this->getCurrentEntry()); |
|
| 490 | 490 | |
| 491 | - $back_link_label = do_shortcode( $back_link_label ); |
|
| 491 | + $back_link_label = do_shortcode($back_link_label); |
|
| 492 | 492 | |
| 493 | 493 | return $back_link_label; |
| 494 | 494 | } |
@@ -496,7 +496,7 @@ discard block |
||
| 496 | 496 | /** |
| 497 | 497 | * @param string $back_link_label |
| 498 | 498 | */ |
| 499 | - public function setBackLinkLabel( $back_link_label ) { |
|
| 499 | + public function setBackLinkLabel($back_link_label) { |
|
| 500 | 500 | $this->back_link_label = $back_link_label; |
| 501 | 501 | } |
| 502 | 502 | |
@@ -510,7 +510,7 @@ discard block |
||
| 510 | 510 | /** |
| 511 | 511 | * @param boolean $hide_until_searched |
| 512 | 512 | */ |
| 513 | - public function setHideUntilSearched( $hide_until_searched ) { |
|
| 513 | + public function setHideUntilSearched($hide_until_searched) { |
|
| 514 | 514 | $this->hide_until_searched = $hide_until_searched; |
| 515 | 515 | } |
| 516 | 516 | |
@@ -524,7 +524,7 @@ discard block |
||
| 524 | 524 | /** |
| 525 | 525 | * @param string $template_part_slug |
| 526 | 526 | */ |
| 527 | - public function setTemplatePartSlug( $template_part_slug ) { |
|
| 527 | + public function setTemplatePartSlug($template_part_slug) { |
|
| 528 | 528 | $this->template_part_slug = $template_part_slug; |
| 529 | 529 | } |
| 530 | 530 | |
@@ -538,7 +538,7 @@ discard block |
||
| 538 | 538 | /** |
| 539 | 539 | * @param string $template_part_name |
| 540 | 540 | */ |
| 541 | - public function setTemplatePartName( $template_part_name ) { |
|
| 541 | + public function setTemplatePartName($template_part_name) { |
|
| 542 | 542 | $this->template_part_name = $template_part_name; |
| 543 | 543 | } |
| 544 | 544 | |
@@ -548,7 +548,7 @@ discard block |
||
| 548 | 548 | */ |
| 549 | 549 | public function getCurrentEntry() { |
| 550 | 550 | |
| 551 | - if( in_array( $this->getContext(), array( 'edit', 'single') ) ) { |
|
| 551 | + if (in_array($this->getContext(), array('edit', 'single'))) { |
|
| 552 | 552 | $entries = $this->getEntries(); |
| 553 | 553 | $entry = $entries[0]; |
| 554 | 554 | } else { |
@@ -556,7 +556,7 @@ discard block |
||
| 556 | 556 | } |
| 557 | 557 | |
| 558 | 558 | /** @since TODO Fixes DataTables empty entry issue */ |
| 559 | - if ( empty( $entry ) && ! empty( $this->_current_field['entry'] ) ) { |
|
| 559 | + if (empty($entry) && !empty($this->_current_field['entry'])) { |
|
| 560 | 560 | $entry = $this->_current_field['entry']; |
| 561 | 561 | } |
| 562 | 562 | |
@@ -567,7 +567,7 @@ discard block |
||
| 567 | 567 | * @param array $current_entry |
| 568 | 568 | * @return void |
| 569 | 569 | */ |
| 570 | - public function setCurrentEntry( $current_entry ) { |
|
| 570 | + public function setCurrentEntry($current_entry) { |
|
| 571 | 571 | $this->_current_entry = $current_entry; |
| 572 | 572 | } |
| 573 | 573 | |
@@ -589,9 +589,9 @@ discard block |
||
| 589 | 589 | * |
| 590 | 590 | * @return string|null |
| 591 | 591 | */ |
| 592 | - public function renderZone( $zone = '', $atts = array() ) { |
|
| 592 | + public function renderZone($zone = '', $atts = array()) { |
|
| 593 | 593 | |
| 594 | - if( empty( $zone ) ) { |
|
| 594 | + if (empty($zone)) { |
|
| 595 | 595 | do_action('gravityview_log_error', 'GravityView_View[renderZone] No zone defined.'); |
| 596 | 596 | return NULL; |
| 597 | 597 | } |
@@ -604,32 +604,32 @@ discard block |
||
| 604 | 604 | 'hide_empty' => $this->getAtts('hide_empty'), |
| 605 | 605 | ); |
| 606 | 606 | |
| 607 | - $final_atts = wp_parse_args( $atts, $defaults ); |
|
| 607 | + $final_atts = wp_parse_args($atts, $defaults); |
|
| 608 | 608 | |
| 609 | 609 | $output = ''; |
| 610 | 610 | |
| 611 | 611 | $final_atts['zone_id'] = "{$final_atts['context']}_{$final_atts['slug']}-{$zone}"; |
| 612 | 612 | |
| 613 | - $fields = $this->getField( $final_atts['zone_id'] ); |
|
| 613 | + $fields = $this->getField($final_atts['zone_id']); |
|
| 614 | 614 | |
| 615 | 615 | // Backward compatibility |
| 616 | - if( 'table' === $this->getTemplatePartSlug() ) { |
|
| 616 | + if ('table' === $this->getTemplatePartSlug()) { |
|
| 617 | 617 | /** |
| 618 | 618 | * Modify the fields displayed in the table |
| 619 | 619 | * @var array |
| 620 | 620 | */ |
| 621 | - $fields = apply_filters("gravityview_table_cells", $fields, $this ); |
|
| 621 | + $fields = apply_filters("gravityview_table_cells", $fields, $this); |
|
| 622 | 622 | } |
| 623 | 623 | |
| 624 | - if( empty( $fields ) ) { |
|
| 624 | + if (empty($fields)) { |
|
| 625 | 625 | return NULL; |
| 626 | 626 | } |
| 627 | 627 | |
| 628 | 628 | $field_output = ''; |
| 629 | - foreach ( $fields as $field ) { |
|
| 629 | + foreach ($fields as $field) { |
|
| 630 | 630 | $final_atts['field'] = $field; |
| 631 | 631 | |
| 632 | - $field_output .= gravityview_field_output( $final_atts ); |
|
| 632 | + $field_output .= gravityview_field_output($final_atts); |
|
| 633 | 633 | } |
| 634 | 634 | |
| 635 | 635 | /** |
@@ -638,17 +638,17 @@ discard block |
||
| 638 | 638 | * @since 1.7.6 |
| 639 | 639 | * @param boolean $hide_empty_zone Default: false |
| 640 | 640 | */ |
| 641 | - if( empty( $field_output ) && apply_filters( 'gravityview/render/hide-empty-zone', false ) ) { |
|
| 641 | + if (empty($field_output) && apply_filters('gravityview/render/hide-empty-zone', false)) { |
|
| 642 | 642 | return NULL; |
| 643 | 643 | } |
| 644 | 644 | |
| 645 | - if( !empty( $final_atts['wrapper_class'] ) ) { |
|
| 646 | - $output .= '<div class="'.gravityview_sanitize_html_class( $final_atts['wrapper_class'] ).'">'; |
|
| 645 | + if (!empty($final_atts['wrapper_class'])) { |
|
| 646 | + $output .= '<div class="'.gravityview_sanitize_html_class($final_atts['wrapper_class']).'">'; |
|
| 647 | 647 | } |
| 648 | 648 | |
| 649 | 649 | $output .= $field_output; |
| 650 | 650 | |
| 651 | - if( !empty( $final_atts['wrapper_class'] ) ) { |
|
| 651 | + if (!empty($final_atts['wrapper_class'])) { |
|
| 652 | 652 | $output .= '</div>'; |
| 653 | 653 | } |
| 654 | 654 | |
@@ -666,24 +666,24 @@ discard block |
||
| 666 | 666 | * @see Gamajo_Template_Loader::locate_template() |
| 667 | 667 | * @return null|string NULL: Template not found; String: path to template |
| 668 | 668 | */ |
| 669 | - function locate_template( $template_names, $load = false, $require_once = true ) { |
|
| 669 | + function locate_template($template_names, $load = false, $require_once = true) { |
|
| 670 | 670 | |
| 671 | - if( is_string( $template_names ) && isset( $this->located_templates[ $template_names ] ) ) { |
|
| 671 | + if (is_string($template_names) && isset($this->located_templates[$template_names])) { |
|
| 672 | 672 | |
| 673 | - $located = $this->located_templates[ $template_names ]; |
|
| 673 | + $located = $this->located_templates[$template_names]; |
|
| 674 | 674 | |
| 675 | 675 | } else { |
| 676 | 676 | |
| 677 | 677 | // Set $load to always false so we handle it here. |
| 678 | - $located = parent::locate_template( $template_names, false, $require_once ); |
|
| 678 | + $located = parent::locate_template($template_names, false, $require_once); |
|
| 679 | 679 | |
| 680 | - if( is_string( $template_names ) ) { |
|
| 681 | - $this->located_templates[ $template_names ] = $located; |
|
| 680 | + if (is_string($template_names)) { |
|
| 681 | + $this->located_templates[$template_names] = $located; |
|
| 682 | 682 | } |
| 683 | 683 | } |
| 684 | 684 | |
| 685 | - if ( $load && $located ) { |
|
| 686 | - load_template( $located, $require_once ); |
|
| 685 | + if ($load && $located) { |
|
| 686 | + load_template($located, $require_once); |
|
| 687 | 687 | } |
| 688 | 688 | |
| 689 | 689 | return $located; |
@@ -694,8 +694,8 @@ discard block |
||
| 694 | 694 | * @param string $name Key for the data retrieval. |
| 695 | 695 | * @return mixed|null The stored data. |
| 696 | 696 | */ |
| 697 | - public function __get( $name ) { |
|
| 698 | - if( isset( $this->{$name} ) ) { |
|
| 697 | + public function __get($name) { |
|
| 698 | + if (isset($this->{$name} )) { |
|
| 699 | 699 | return $this->{$name}; |
| 700 | 700 | } else { |
| 701 | 701 | return NULL; |
@@ -719,47 +719,47 @@ discard block |
||
| 719 | 719 | * |
| 720 | 720 | * @return array $templates Modified template array, merged with existing $templates values |
| 721 | 721 | */ |
| 722 | - function add_id_specific_templates( $templates, $slug, $name ) { |
|
| 722 | + function add_id_specific_templates($templates, $slug, $name) { |
|
| 723 | 723 | |
| 724 | 724 | $additional = array(); |
| 725 | 725 | |
| 726 | 726 | // form-19-table-body.php |
| 727 | - $additional[] = sprintf( 'form-%d-%s-%s.php', $this->getFormId(), $slug, $name ); |
|
| 727 | + $additional[] = sprintf('form-%d-%s-%s.php', $this->getFormId(), $slug, $name); |
|
| 728 | 728 | |
| 729 | 729 | // view-3-table-body.php |
| 730 | - $additional[] = sprintf( 'view-%d-%s-%s.php', $this->getViewId(), $slug, $name ); |
|
| 730 | + $additional[] = sprintf('view-%d-%s-%s.php', $this->getViewId(), $slug, $name); |
|
| 731 | 731 | |
| 732 | - if( $this->getPostId() ) { |
|
| 732 | + if ($this->getPostId()) { |
|
| 733 | 733 | |
| 734 | 734 | // page-19-table-body.php |
| 735 | - $additional[] = sprintf( 'page-%d-%s-%s.php', $this->getPostId(), $slug, $name ); |
|
| 735 | + $additional[] = sprintf('page-%d-%s-%s.php', $this->getPostId(), $slug, $name); |
|
| 736 | 736 | } |
| 737 | 737 | |
| 738 | 738 | // Combine with existing table-body.php and table.php |
| 739 | - $templates = array_merge( $additional, $templates ); |
|
| 739 | + $templates = array_merge($additional, $templates); |
|
| 740 | 740 | |
| 741 | - do_action( 'gravityview_log_debug', '[add_id_specific_templates] List of Template Files', $templates ); |
|
| 741 | + do_action('gravityview_log_debug', '[add_id_specific_templates] List of Template Files', $templates); |
|
| 742 | 742 | |
| 743 | 743 | return $templates; |
| 744 | 744 | } |
| 745 | 745 | |
| 746 | 746 | // Load the template |
| 747 | - public function render( $slug, $name, $require_once = true ) { |
|
| 747 | + public function render($slug, $name, $require_once = true) { |
|
| 748 | 748 | |
| 749 | - $this->setTemplatePartSlug( $slug ); |
|
| 749 | + $this->setTemplatePartSlug($slug); |
|
| 750 | 750 | |
| 751 | - $this->setTemplatePartName( $name ); |
|
| 751 | + $this->setTemplatePartName($name); |
|
| 752 | 752 | |
| 753 | - $template_file = $this->get_template_part( $slug, $name, false ); |
|
| 753 | + $template_file = $this->get_template_part($slug, $name, false); |
|
| 754 | 754 | |
| 755 | - do_action( 'gravityview_log_debug', '[render] Rendering Template File', $template_file ); |
|
| 755 | + do_action('gravityview_log_debug', '[render] Rendering Template File', $template_file); |
|
| 756 | 756 | |
| 757 | - if( !empty( $template_file) ) { |
|
| 757 | + if (!empty($template_file)) { |
|
| 758 | 758 | |
| 759 | - if ( $require_once ) { |
|
| 760 | - require_once( $template_file ); |
|
| 759 | + if ($require_once) { |
|
| 760 | + require_once($template_file); |
|
| 761 | 761 | } else { |
| 762 | - require( $template_file ); |
|
| 762 | + require($template_file); |
|
| 763 | 763 | } |
| 764 | 764 | |
| 765 | 765 | } |
@@ -769,24 +769,24 @@ discard block |
||
| 769 | 769 | * |
| 770 | 770 | * @param $view_id |
| 771 | 771 | */ |
| 772 | - public function render_widget_hooks( $view_id ) { |
|
| 772 | + public function render_widget_hooks($view_id) { |
|
| 773 | 773 | |
| 774 | - if( empty( $view_id ) || 'single' == gravityview_get_context() ) { |
|
| 775 | - do_action( 'gravityview_log_debug', __METHOD__ . ' - Not rendering widgets; single entry' ); |
|
| 774 | + if (empty($view_id) || 'single' == gravityview_get_context()) { |
|
| 775 | + do_action('gravityview_log_debug', __METHOD__.' - Not rendering widgets; single entry'); |
|
| 776 | 776 | return; |
| 777 | 777 | } |
| 778 | 778 | |
| 779 | - $view_data = gravityview_get_current_view_data( $view_id ); |
|
| 779 | + $view_data = gravityview_get_current_view_data($view_id); |
|
| 780 | 780 | |
| 781 | 781 | // TODO: Move to sep. method, use an action instead |
| 782 | - wp_enqueue_style( 'gravityview_default_style'); |
|
| 782 | + wp_enqueue_style('gravityview_default_style'); |
|
| 783 | 783 | |
| 784 | 784 | // get View widget configuration |
| 785 | 785 | $widgets = $view_data['widgets']; |
| 786 | 786 | |
| 787 | 787 | $rows = GravityView_Plugin::get_default_widget_areas(); |
| 788 | 788 | |
| 789 | - switch( current_filter() ) { |
|
| 789 | + switch (current_filter()) { |
|
| 790 | 790 | case 'gravityview_before': |
| 791 | 791 | $zone = 'header'; |
| 792 | 792 | break; |
@@ -796,8 +796,8 @@ discard block |
||
| 796 | 796 | } |
| 797 | 797 | |
| 798 | 798 | // Prevent being called twice |
| 799 | - if( did_action( $zone.'_'.$view_id.'_widgets' ) ) { |
|
| 800 | - do_action( 'gravityview_log_debug', sprintf( '%s - Not rendering %s; already rendered', __METHOD__ , $zone.'_'.$view_id.'_widgets' ) ); |
|
| 799 | + if (did_action($zone.'_'.$view_id.'_widgets')) { |
|
| 800 | + do_action('gravityview_log_debug', sprintf('%s - Not rendering %s; already rendered', __METHOD__, $zone.'_'.$view_id.'_widgets')); |
|
| 801 | 801 | return; |
| 802 | 802 | } |
| 803 | 803 | |
@@ -805,17 +805,17 @@ discard block |
||
| 805 | 805 | ?> |
| 806 | 806 | <div class="gv-grid"> |
| 807 | 807 | <?php |
| 808 | - foreach( $rows as $row ) { |
|
| 809 | - foreach( $row as $col => $areas ) { |
|
| 808 | + foreach ($rows as $row) { |
|
| 809 | + foreach ($row as $col => $areas) { |
|
| 810 | 810 | $column = ($col == '2-2') ? '1-2 gv-right' : $col.' gv-left'; |
| 811 | 811 | ?> |
| 812 | - <div class="gv-grid-col-<?php echo esc_attr( $column ); ?>"> |
|
| 812 | + <div class="gv-grid-col-<?php echo esc_attr($column); ?>"> |
|
| 813 | 813 | <?php |
| 814 | - if( !empty( $areas ) ) { |
|
| 815 | - foreach( $areas as $area ) { |
|
| 816 | - if( !empty( $widgets[ $zone .'_'. $area['areaid'] ] ) ) { |
|
| 817 | - foreach( $widgets[ $zone .'_'. $area['areaid'] ] as $widget ) { |
|
| 818 | - do_action( "gravityview_render_widget_{$widget['id']}", $widget ); |
|
| 814 | + if (!empty($areas)) { |
|
| 815 | + foreach ($areas as $area) { |
|
| 816 | + if (!empty($widgets[$zone.'_'.$area['areaid']])) { |
|
| 817 | + foreach ($widgets[$zone.'_'.$area['areaid']] as $widget) { |
|
| 818 | + do_action("gravityview_render_widget_{$widget['id']}", $widget); |
|
| 819 | 819 | } |
| 820 | 820 | } |
| 821 | 821 | } |
@@ -831,8 +831,8 @@ discard block |
||
| 831 | 831 | * Prevent widgets from being called twice. |
| 832 | 832 | * Checking for loop_start prevents themes and plugins that pre-process shortcodes from triggering the action before displaying. Like, ahem, the Divi theme and WordPress SEO plugin |
| 833 | 833 | */ |
| 834 | - if( did_action( 'loop_start' ) ) { |
|
| 835 | - do_action( $zone.'_'.$view_id.'_widgets' ); |
|
| 834 | + if (did_action('loop_start')) { |
|
| 835 | + do_action($zone.'_'.$view_id.'_widgets'); |
|
| 836 | 836 | } |
| 837 | 837 | } |
| 838 | 838 | |