content.php
87 lines
| 1 | <?php if (! defined('ABSPATH')) { |
| 2 | exit; |
| 3 | } // Exit if accessed directly ?> |
| 4 | <div class="cff-fb-full-wrapper cff-fb-fs"> |
| 5 | <?php |
| 6 | |
| 7 | /** |
| 8 | * CFF Admin Notices |
| 9 | * |
| 10 | * @since 4.0 |
| 11 | */ |
| 12 | |
| 13 | do_action('cff_admin_notices'); |
| 14 | ?> |
| 15 | <div class="section-header"> |
| 16 | <h1>{{genericText.settings}}</h1> |
| 17 | </div> |
| 18 | |
| 19 | <div class="sb-tabs-container" id="sb-tabs-container"> |
| 20 | <form action=""> |
| 21 | <div class="sb-tabs"> |
| 22 | <div class="left-buttons"> |
| 23 | <tab v-bind:section="section" v-bind:index="index" v-for="(section, index) in sections" v-bind:class="{ active : section === currentTab }" v-bind:data-index="index+1" key="index"></tab> |
| 24 | </div> |
| 25 | <div class="right-buttons"> |
| 26 | <button class="cff-btn sb-btn-orange" @click.prevent="saveSettings" :disabled="btnStatus !== null"> |
| 27 | <span v-html="saveChangesIcon()"></span> |
| 28 | {{genericText.saveSettings}} |
| 29 | </button> |
| 30 | </div> |
| 31 | <span class="tab-indicator" v-bind:style="getStyle"></span> |
| 32 | </div> |
| 33 | <transition :name="chooseDirection"> |
| 34 | <div class="sb-tab-content" v-bind:is="selected" :class="'cff-license-' + licenseType"> |
| 35 | <?php |
| 36 | CustomFacebookFeed\CFF_View::render('settings.tab.general'); |
| 37 | CustomFacebookFeed\CFF_View::render('settings.tab.feeds'); |
| 38 | CustomFacebookFeed\CFF_View::render('settings.tab.translation'); |
| 39 | CustomFacebookFeed\CFF_View::render('settings.tab.advanced'); |
| 40 | ?> |
| 41 | </div> |
| 42 | </transition> |
| 43 | <div class="cff-save-button"> |
| 44 | <button class="cff-btn sb-btn-orange" @click.prevent="saveSettings" :disabled="btnStatus !== null"> |
| 45 | <span v-html="saveChangesIcon()"></span> |
| 46 | {{genericText.saveSettings}} |
| 47 | </button> |
| 48 | </div> |
| 49 | |
| 50 | <div v-if="licenseType == 'free'" class="cff-settings-cta"> |
| 51 | <?php |
| 52 | CustomFacebookFeed\CFF_View::render('sections.settings_footer_cta'); |
| 53 | ?> |
| 54 | </div> |
| 55 | </form> |
| 56 | <?php include_once CFF_PLUGIN_DIR . 'admin/views/sections/footer_socials.php'; ?> |
| 57 | </div> |
| 58 | </div> |
| 59 | <?php |
| 60 | include_once CFF_BUILDER_DIR . 'templates/sections/popup/add-source-popup.php'; |
| 61 | include_once CFF_BUILDER_DIR . 'templates/sections/popup/confirm-dialog-popup.php'; |
| 62 | include_once CFF_BUILDER_DIR . 'templates/sections/popup/source-instances.php'; |
| 63 | ?> |
| 64 | <div class="sb-notification-ctn" :data-active="notificationElement.shown" :data-type="notificationElement.type"> |
| 65 | <div class="sb-notification-icon" v-html="svgIcons[notificationElement.type+'Notification']"></div> |
| 66 | <span class="sb-notification-text" v-html="notificationElement.text"></span> |
| 67 | </div> |
| 68 | |
| 69 | <sb-add-source-component |
| 70 | :sources-list="sourcesList" |
| 71 | :select-source-screen="selectSourceScreen" |
| 72 | :views-active="viewsActive" |
| 73 | :generic-text="genericText" |
| 74 | :selected-feed="selectedFeed" |
| 75 | :svg-icons="svgIcons" |
| 76 | :links="links" |
| 77 | ref="addSourceRef" |
| 78 | > |
| 79 | </sb-add-source-component> |
| 80 | |
| 81 | <sb-confirm-dialog-component |
| 82 | :dialog-box.sync="dialogBox" |
| 83 | :source-to-delete="sourceToDelete" |
| 84 | :svg-icons="svgIcons" |
| 85 | :parent-type="'settings'" |
| 86 | :generic-text="genericText" |
| 87 | ></sb-confirm-dialog-component> |