| @@ -184,14 +184,15 @@ | ||
| 184 | 184 | * |
| 185 | 185 | * @return void |
| 186 | 186 | */ |
| 187 | 187 | public static function show_connect_links( $buttons = array(), $button_classes = '' ) { |
| 188 | - if ( empty( $buttons ) ) { | |
| 188 | + if ( ! $buttons ) { | |
| 189 | 189 | $buttons = self::get_license_buttons(); |
| 190 | 190 | } |
| 191 | 191 | |
| 192 | - foreach ( $buttons as $i => $button ) { | |
| 192 | + foreach ( $buttons as $button ) { | |
| 193 | 193 | $add_classes = ! empty( $button['classes'] ) ? ' ' . $button['classes'] : ' frm-button-secondary'; |
| 194 | + // phpcs:disable Generic.WhiteSpace.ScopeIndent | |
| 194 | 195 | ?> |
| 195 | 196 | <a href="<?php echo esc_url( $button['link'] ); ?>" target="_blank" |
| 196 | 197 | class="<?php echo esc_attr( $button_classes . $add_classes ); ?>" |
| 197 | 198 | > |
| @@ -197,8 +198,9 @@ | ||
| 197 | 198 | > |
| 198 | 199 | <?php echo esc_html( $button['label'] ); ?> |
| 199 | 200 | </a> |
| 200 | 201 | <?php |
| 202 | + // phpcs:enable Generic.WhiteSpace.ScopeIndent | |
| 201 | 203 | } |
| 202 | 204 | } |
| 203 | 205 | |
| 204 | 206 | /** |
| @@ -246,10 +248,9 @@ | ||
| 246 | 248 | * |
| 247 | 249 | * @return void |
| 248 | 250 | */ |
| 249 | 251 | public function get_inbox() { |
| 250 | - $template = $this->view['inbox']; | |
| 251 | - | |
| 252 | + $template = $this->view['inbox']; | |
| 252 | 253 | $subscribe_inbox_classnames = 'frm-inbox-subscribe frmcenter'; |
| 253 | 254 | $subscribe_inbox_classnames .= ! empty( $template['unread'] ) ? ' frm_hidden' : ''; |
| 254 | 255 | $subscribe_inbox_classnames .= true === FrmDashboardController::email_is_subscribed( $template['user']->user_email ) ? ' frm-inbox-hide-form' : ''; |
| 255 | 256 | |
| @@ -303,8 +304,9 @@ | ||
| 303 | 304 | |
| 304 | 305 | if ( null === $template['id'] ) { |
| 305 | 306 | return; |
| 306 | 307 | } |
| 308 | + | |
| 307 | 309 | include FrmAppHelper::plugin_path() . '/classes/views/dashboard/templates/youtube-video.php'; |
| 308 | 310 | } |
| 309 | 311 | |
| 310 | 312 | /** |