onboard-steps
3 weeks ago
settings-sections
3 weeks ago
init.php
3 weeks ago
layout-onboard.php
1 year ago
layout-settings.php
3 weeks ago
layout-user-consent-for-banner.php
2 years ago
layout-settings.php
98 lines
| 1 | <div class="attr-row ekit_tab_wraper_group"> |
| 2 | <div class="attr-col-lg-3 attr-col-md-4"> |
| 3 | <div class="ekit_logo"> |
| 4 | <img src="<?php echo esc_url(self::get_url() . 'assets/images/logo-ekit.png'); ?>" height="40" /> |
| 5 | </div> |
| 6 | <div class="ekit-admin-nav" id="v-elementskit-tab" role="tablist" aria-orientation="vertical"> |
| 7 | <ul class="attr-nav attr-nav-tabs"> |
| 8 | <li><a href="#" class="ekit-admin-nav-link ekit-admin-nav-hidden top"></a></li> |
| 9 | |
| 10 | <!-- settings_sections nav begins --> |
| 11 | <?php |
| 12 | $count = 0; |
| 13 | foreach ( $settings_sections as $section_key => $section ) : |
| 14 | reset( $settings_sections ); |
| 15 | $attr_section_key = ( $section_key !== key( $settings_sections ) ) ? '' : 'attr-active'; |
| 16 | ?> |
| 17 | <li role="presentation" class="<?php echo esc_attr($attr_section_key) ?>"> |
| 18 | <a class="ekit-admin-nav-link <?php echo $count == 1 ? 'bottom' : ''; ?>" id="v-elementskit-<?php echo esc_attr( $section_key ); ?>-tab" data-attr-toggle="pill" href="#v-elementskit-<?php echo esc_attr( $section_key ); ?>" role="tab" |
| 19 | aria-controls="v-elementskit-<?php echo esc_attr( $section_key ); ?>" data-attr-toggle="tab" role="tab"> |
| 20 | <div class="ekit-admin-tab-content"> |
| 21 | <span class="ekit-admin-title"><?php echo esc_html( $section['title'] ); ?></span> |
| 22 | <span class="ekit-admin-subtitle"><?php echo esc_html( $section['sub-title'] ); ?></span> |
| 23 | </div> |
| 24 | <div class="ekit-admin-tab-icon"> |
| 25 | <?php echo wp_kses( $section['svg'], \ElementsKit_Lite\Utils::get_kses_array() ); ?> |
| 26 | </div> |
| 27 | </a> |
| 28 | </li> |
| 29 | <?php |
| 30 | $count++; |
| 31 | endforeach; |
| 32 | ?> |
| 33 | <!-- settings_sections nav ends --> |
| 34 | |
| 35 | <?php if ( \ElementsKit_Lite::package_type() == 'free' ) : ?> |
| 36 | <li role="presentation" class="ekit-go-pro-nav-tab"> |
| 37 | <a class="ekit-admin-nav-link" id="v-elementskit-ekit-go-pro-nav-tab" href="https://wpmet.com/elementskit-pricing" role="tab" target="_blank"> |
| 38 | <div class="ekit-admin-tab-content"> |
| 39 | <span class="ekit-admin-title"><?php echo esc_html__( 'Go Premium', 'elementskit-lite' ); ?></span> |
| 40 | <span class="ekit-admin-subtitle"><?php echo esc_html__( 'Get premium features', 'elementskit-lite' ); ?></span> |
| 41 | </div> |
| 42 | <div class="ekit-admin-tab-icon"> |
| 43 | <img src="<?php echo esc_url(self::get_url() . 'assets/images/loader-krasi.gif'); ?>" class="ekit-go-pro-gif" alt="elementskit go pro premium" /> |
| 44 | </div> |
| 45 | </a> |
| 46 | </li> |
| 47 | <?php endif; ?> |
| 48 | |
| 49 | <li><a href="#" class="ekit-admin-nav-link ekit-admin-nav-hidden"></a></li> |
| 50 | </ul> |
| 51 | </div> |
| 52 | </div> |
| 53 | <div class="attr-col-lg-9 attr-col-md-8"> |
| 54 | <div class="attr-tab-content" id="v-elementskit-tabContent"> |
| 55 | |
| 56 | <!-- settings_sections content begins --> |
| 57 | <?php |
| 58 | foreach ( $settings_sections as $section_key => $section ) : |
| 59 | reset( $settings_sections ); |
| 60 | $attr_section_key = ( $section_key !== key( $settings_sections ) ) ? '' : 'attr-active'; |
| 61 | ?> |
| 62 | <div class="attr-tab-pane <?php echo esc_attr($attr_section_key) ?>" id="v-elementskit-<?php echo esc_attr( $section_key ); ?>" role="tabpanel" aria-labelledby="v-elementskit-tab-<?php echo esc_attr( $section_key ); ?>"> |
| 63 | <div class="ekit-admin-section-header"> |
| 64 | <h2 class="ekit-admin-section-heaer-title"><?php echo esc_html( $section['title'] ); ?></h2> |
| 65 | <!-- <i class="<?php //echo esc_attr( $section['icon'] ); ?>"></i> --> |
| 66 | |
| 67 | <?php if ( in_array( $section_key, array( 'widgets', 'modules' ) ) ) : ?> |
| 68 | <div class="attr-input attr-input-switch ekit-content-type-free ekit-all-element-switch"> |
| 69 | <div class="ekit-admin-input-switch attr-card-body"> |
| 70 | <input checked="" type="checkbox" value="image-accordion" class="ekit-admin-control-input ekit-all-control-input" name="ekit_all_activation_input_widget_<?php echo esc_attr( $section_key ); ?>" id="ekit_all_activation_input_widget_<?php echo esc_attr( $section_key ); ?>"> |
| 71 | <label class="ekit-admin-control-label" for="ekit_all_activation_input_widget_<?php echo esc_attr( $section_key ); ?>"> |
| 72 | <span class="ekit-admin-control-label-wrap"> |
| 73 | <span class="ekit-admin-control-label-disable attr-disable"> <?php esc_html_e( 'Disable All', 'elementskit-lite' ); ?></span> |
| 74 | <span class="ekit-admin-control-label-switch" data-active="ON" |
| 75 | data-inactive="OFF"></span> |
| 76 | <span class="ekit-admin-control-label-enable"> <?php esc_html_e( 'Enable All', 'elementskit-lite' ); ?></span> |
| 77 | </span> |
| 78 | </label> |
| 79 | </div> |
| 80 | </div> |
| 81 | <?php endif; ?> |
| 82 | <div class="ekit-admin-input-switch"> |
| 83 | <button class="attr-btn-primary attr-btn ekit-admin-settings-form-submit"><div class="ekit-spinner"></div><i class="ekit-admin-save-icon fas fa-check-circle"></i><?php esc_html_e( 'Save Changes', 'elementskit-lite' ); ?></button> |
| 84 | </div> |
| 85 | </div> |
| 86 | <?php |
| 87 | include isset( $section['view_path'] ) |
| 88 | ? $section['view_path'] |
| 89 | : self::get_dir() . 'views/settings-sections/' . $section_key . '.php'; |
| 90 | ?> |
| 91 | </div> |
| 92 | <?php endforeach; ?> |
| 93 | <!-- settings_sections content ends --> |
| 94 | |
| 95 | </div> |
| 96 | </div> |
| 97 | </div> |
| 98 |