@@ -209,7 +209,7 @@ public function main_column() {
209209 <h3>Custom Configurations</h3>
210210 <div class="config-cards-grid">
211211 <?php foreach ( $ configurations as $ key => $ config ): ?>
212- <?php $ config_provider = isset ( $ config ['provider ' ] ) ? $ config ['provider ' ] : 'api ' ; ?>
212+ <?php $ config_provider = isset ( $ config ['provider ' ] ) ? $ config ['provider ' ] : 'api ' ; ?>
213213 <div class="config-card" id="config-list-row-<?php echo esc_attr ( $ key ) ?> ">
214214 <div class="config-card-header">
215215 <h4 class="name"><?php echo esc_html ( isset ( $ config ['name ' ] ) ? $ config ['name ' ] : '(new config) ' ) ?> </h4>
@@ -255,7 +255,7 @@ class="config-enable-checkbox"
255255 <h3>External Configurations</h3>
256256 <div class="config-cards-grid">
257257 <?php foreach ( $ configurations_ext as $ key => $ config ): ?>
258- <?php $ config_provider = isset ( $ config ['provider ' ] ) ? $ config ['provider ' ] : 'api ' ; ?>
258+ <?php $ config_provider = isset ( $ config ['provider ' ] ) ? $ config ['provider ' ] : 'api ' ; ?>
259259 <div class="config-card">
260260 <div class="config-card-header">
261261 <h4 class="name"><?php echo esc_html ( $ config ['name ' ] ) ?> </h4>
@@ -308,9 +308,9 @@ public function edit_forms( $configurations ) {
308308 <li><a href="#section-provider-<?php echo esc_attr ( $ key ) ?> " class="sidebar-nav">Connection Settings</a></li>
309309 <li class="sidebar-section-header">Data Export</li>
310310 <?php foreach ( $ post_types as $ post_type ):
311- $ post_type_settings = DT_Posts::get_post_settings ( $ post_type );
312- $ post_type_label = $ post_type_settings ['label_plural ' ];
313- ?>
311+ $ post_type_settings = DT_Posts::get_post_settings ( $ post_type );
312+ $ post_type_label = $ post_type_settings ['label_plural ' ];
313+ ?>
314314 <li class="sidebar-sub-item">
315315 <a href="#section-data-<?php echo esc_attr ( $ post_type ) ?> -<?php echo esc_attr ( $ key ) ?> " class="sidebar-nav"><?php echo esc_html ( $ post_type_label ) ?> </a>
316316 </li>
@@ -356,9 +356,9 @@ public function edit_forms( $configurations ) {
356356 <select name="provider" id="dlg_provider_<?php echo esc_attr ( $ key ) ?> " class="provider">
357357 <option value="api" <?php echo $ config_provider == 'api ' ? 'selected ' : '' ?> >API</option>
358358 <?php if ( !empty ( $ providers ) ): ?>
359- <?php foreach ( $ providers as $ provider_key => $ provider ): ?>
359+ <?php foreach ( $ providers as $ provider_key => $ provider ): ?>
360360 <option value="<?php echo esc_attr ( $ provider_key ) ?> " <?php echo $ config_provider == $ provider_key ? 'selected ' : '' ?> >
361- <?php echo esc_html ( $ provider ['name ' ] ) ?>
361+ <?php echo esc_html ( $ provider ['name ' ] ) ?>
362362 </option>
363363 <?php endforeach ; ?>
364364 <?php endif ; ?>
@@ -381,34 +381,34 @@ public function edit_forms( $configurations ) {
381381 </tr>
382382
383383 <?php if ( !empty ( $ providers ) ) {
384- foreach ( $ providers as $ provider_key => $ provider ) {
385- if ( isset ( $ provider ['fields ' ] ) && !empty ( $ provider ['fields ' ] ) ) {
386- foreach ( $ provider ['fields ' ] as $ field_key => $ field ) { ?>
384+ foreach ( $ providers as $ provider_key => $ provider ) {
385+ if ( isset ( $ provider ['fields ' ] ) && !empty ( $ provider ['fields ' ] ) ) {
386+ foreach ( $ provider ['fields ' ] as $ field_key => $ field ) { ?>
387387 <tr class="provider-field provider-<?php echo esc_attr ( $ provider_key ) ?> <?php echo $ provider_key == $ config_provider ? '' : 'hide ' ?> ">
388388 <th><label for="dlg_<?php echo esc_attr ( $ field_key ) ?> _<?php echo esc_attr ( $ key ) ?> "><?php echo esc_html ( $ field ['label ' ] ) ?> </label></th>
389389 <td>
390- <?php if ( $ field ['type ' ] == 'text ' ): ?>
390+ <?php if ( $ field ['type ' ] == 'text ' ): ?>
391391 <input type="text" name="<?php echo esc_attr ( $ field_key ) ?> " id="dlg_<?php echo esc_attr ( $ field_key ) ?> _<?php echo esc_attr ( $ key ) ?> " value="<?php echo esc_attr ( isset ( $ config [$ field_key ] ) ? $ config [$ field_key ] : '' ) ?> " class="large-text" />
392392 <?php endif ; ?>
393- <?php if ( isset ( $ field ['helpText ' ] ) ): ?>
393+ <?php if ( isset ( $ field ['helpText ' ] ) ): ?>
394394 <p class="description"><?php echo esc_html ( $ field ['helpText ' ] ) ?> </p>
395395 <?php endif ; ?>
396396 </td>
397397 </tr>
398- <?php }
398+ <?php }
399+ }
399400 }
400- }
401401 } ?>
402402 </table>
403403 </div>
404404
405405 <!-- Data Types Section -->
406406 <?php foreach ( $ post_types as $ post_type ):
407- $ post_type_settings = DT_Posts::get_post_settings ( $ post_type );
408- $ post_type_label = $ post_type_settings ['label_plural ' ];
409- $ activity_type = rtrim ( $ post_type , 's ' ) . '_activity ' ;
410- $ snapshot_type = rtrim ( $ post_type , 's ' ) . '_snapshots ' ;
411- ?>
407+ $ post_type_settings = DT_Posts::get_post_settings ( $ post_type );
408+ $ post_type_label = $ post_type_settings ['label_plural ' ];
409+ $ activity_type = rtrim ( $ post_type , 's ' ) . '_activity ' ;
410+ $ snapshot_type = rtrim ( $ post_type , 's ' ) . '_snapshots ' ;
411+ ?>
412412 <div id="section-data-<?php echo esc_attr ( $ post_type ) ?> -<?php echo esc_attr ( $ key ) ?> " class="config-section" style="display: none;">
413413 <h2><?php echo esc_html ( $ post_type_label ) ?> Export Settings</h2>
414414 <p class="description">Configure which <?php echo esc_html ( strtolower ( $ post_type_label ) ) ?> data should be exported.</p>
@@ -457,9 +457,9 @@ public function external_config_forms( $configurations ) {
457457 <li><a href="#section-general-<?php echo esc_attr ( $ key ) ?> " class="sidebar-nav">General Info</a></li>
458458 <li class="sidebar-section-header">Data Export</li>
459459 <?php foreach ( $ post_types as $ post_type ):
460- $ post_type_settings = DT_Posts::get_post_settings ( $ post_type );
461- $ post_type_label = $ post_type_settings ['label_plural ' ];
462- ?>
460+ $ post_type_settings = DT_Posts::get_post_settings ( $ post_type );
461+ $ post_type_label = $ post_type_settings ['label_plural ' ];
462+ ?>
463463 <li class="sidebar-sub-item">
464464 <a href="#section-data-<?php echo esc_attr ( $ post_type ) ?> -<?php echo esc_attr ( $ key ) ?> " class="sidebar-nav"><?php echo esc_html ( $ post_type_label ) ?> </a>
465465 </li>
@@ -495,11 +495,11 @@ public function external_config_forms( $configurations ) {
495495
496496 <!-- Data Types Section -->
497497 <?php foreach ( $ post_types as $ post_type ):
498- $ post_type_settings = DT_Posts::get_post_settings ( $ post_type );
499- $ post_type_label = $ post_type_settings ['label_plural ' ];
500- $ activity_type = rtrim ( $ post_type , 's ' ) . '_activity ' ;
501- $ snapshot_type = rtrim ( $ post_type , 's ' ) . '_snapshots ' ;
502- ?>
498+ $ post_type_settings = DT_Posts::get_post_settings ( $ post_type );
499+ $ post_type_label = $ post_type_settings ['label_plural ' ];
500+ $ activity_type = rtrim ( $ post_type , 's ' ) . '_activity ' ;
501+ $ snapshot_type = rtrim ( $ post_type , 's ' ) . '_snapshots ' ;
502+ ?>
503503 <div id="section-data-<?php echo esc_attr ( $ post_type ) ?> -<?php echo esc_attr ( $ key ) ?> " class="config-section" style="display: none;">
504504 <h2><?php echo esc_html ( $ post_type_label ) ?> Export Settings</h2>
505505 <div class="data-types-grid">
@@ -591,7 +591,7 @@ class="config-enable-checkbox"
591591 $ has_progress = isset ( $ config_progress [$ key ] ) && isset ( $ config_progress [$ key ][$ data_type ] );
592592 $ has_logs = isset ( $ export_logs [$ key ] ) && isset ( $ export_logs [$ key ][$ data_type ] );
593593 if ( $ has_progress || $ has_logs ) :
594- ?>
594+ ?>
595595 <div class="field-group">
596596 <label class="label">Last Export</label>
597597 <div class="last-export-status-row" style="display: flex; align-items: center; gap: 10px;">
@@ -629,14 +629,14 @@ class="config-enable-checkbox"
629629 <ul class="api-log" style="margin: 0; padding: 10px; background: #eee;">
630630 <?php foreach ( array_slice ( $ export_logs [$ key ][$ data_type ]['messages ' ], -3 ) as $ message ) {
631631 $ content = isset ( $ message ['message ' ] ) ? $ message ['message ' ] : '' ;
632- echo " <li> " . wp_kses ( $ content , $ allowed_html ) . " </li> " ;
632+ echo ' <li> ' . wp_kses ( $ content , $ allowed_html ) . ' </li> ' ;
633633 } ?>
634634 </ul>
635635 </div>
636636 <?php endif ; ?>
637637 </div>
638638 <?php endif ; ?>
639- <?php
639+ <?php
640640 }
641641
642642 public function post_type_config_settings_external ( $ config , $ data_type ) {
@@ -684,7 +684,7 @@ public function post_type_config_settings_external( $config, $data_type ) {
684684 $ has_progress = isset ( $ config_progress [$ key ] ) && isset ( $ config_progress [$ key ][$ data_type ] );
685685 $ has_logs = isset ( $ export_logs [$ key ] ) && isset ( $ export_logs [$ key ][$ data_type ] );
686686 if ( $ has_progress || $ has_logs ) :
687- ?>
687+ ?>
688688 <div class="field-group">
689689 <label class="label">Last Export</label>
690690 <div class="last-export-status-row" style="display: flex; align-items: center; gap: 10px;">
@@ -714,14 +714,14 @@ public function post_type_config_settings_external( $config, $data_type ) {
714714 <ul class="api-log" style="margin: 0; padding: 10px; background: #eee;">
715715 <?php foreach ( array_slice ( $ export_logs [$ key ][$ data_type ]['messages ' ], -3 ) as $ message ) {
716716 $ content = isset ( $ message ['message ' ] ) ? $ message ['message ' ] : '' ;
717- echo " <li> " . wp_kses ( $ content , $ allowed_html ) . " </li> " ;
717+ echo ' <li> ' . wp_kses ( $ content , $ allowed_html ) . ' </li> ' ;
718718 } ?>
719719 </ul>
720720 </div>
721721 <?php endif ; ?>
722722 </div>
723723 <?php endif ; ?>
724- <?php
724+ <?php
725725 }
726726
727727 public function save_settings () {
0 commit comments