content.php
131 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="cff-sb-container"> |
| 16 | <div class="cff-section-header"> |
| 17 | <h2>{{genericText.title}}</h2> |
| 18 | </div> |
| 19 | |
| 20 | <div class="cff-about-box"> |
| 21 | <div class="sb-team-avatar"> |
| 22 | <img :src="aboutBox.teamAvatar" :alt="aboutBox.teamImgAlt"> |
| 23 | </div> |
| 24 | <div class="sb-team-info"> |
| 25 | <div class="sb-team-left"> |
| 26 | <h2>{{aboutBox.atSmashBalloon}}</h2> |
| 27 | </div> |
| 28 | <div class="sb-team-right"> |
| 29 | <p>{{aboutBox.weAreOn}}</p> |
| 30 | <p>{{aboutBox.ourPlugins}}</p> |
| 31 | </div> |
| 32 | </div> |
| 33 | </div> |
| 34 | |
| 35 | <div class="cff-section-second-header"> |
| 36 | <h3>{{genericText.title2}}</h3> |
| 37 | <p>{{genericText.description2}}</p> |
| 38 | </div> |
| 39 | |
| 40 | <div class="cff-plugins-boxes-container"> |
| 41 | <div class="sb-plugins-box" v-for="(plugin, name, index) in plugins"> |
| 42 | <div class="icon"><img :src="plugin.icon" :alt="plugin.title"></div> |
| 43 | <div class="plugin-box-content"> |
| 44 | <h4 class="sb-box-title">{{plugin.title +''+ (plugin.type != 'none' ? ' Pro' : '')}}</h4> |
| 45 | <p class="sb-box-description">{{plugin.description}}</p> |
| 46 | <div class="sb-action-buttons"> |
| 47 | <button class="cff-btn sb-btn-add" v-if="plugin.type === 'none' && plugin.activated === 'none'" @click="installPlugin(plugin.download_plugin, name, index, 'plugin')"> |
| 48 | <span v-html="buttonIcon()" v-if="btnClicked == index + 1 && btnName == name"></span> |
| 49 | {{buttons.install}} |
| 50 | </button> |
| 51 | <button class="cff-btn sb-btn-installed" v-if="plugin.type === 'pro'"> |
| 52 | <span v-html="icons.checkmarkSVG"></span> |
| 53 | {{buttons.installed}} |
| 54 | </button> |
| 55 | <button class="cff-btn sb-btn-activate" v-if="plugin.type === 'pro' && !plugin.activated" @click="activatePlugin(plugin.plugin, name, index, 'plugin')" :class="btnStatus"> |
| 56 | <span v-html="buttonIcon()" v-if="btnClicked == index + 1 && btnName == name"></span> |
| 57 | {{buttons.activate}} |
| 58 | </button> |
| 59 | <!--<button class="cff-btn sb-btn-deactivate" v-if="plugin.installed && plugin.activated && name != 'facebook'" @click="deactivatePlugin(plugin.plugin, name, index, 'plugin')" :class="btnStatus"> |
| 60 | <span v-html="buttonIcon()" v-if="btnClicked == index + 1 && btnName == name"></span> |
| 61 | {{buttons.deactivate}} |
| 62 | </button>--> |
| 63 | <a class="cff-btn sb-btn-activate" :href="plugin.link" target="_blank" v-if="plugin.type == 'free'"> |
| 64 | {{buttons.upgradeToPro}} |
| 65 | </a> |
| 66 | </div> |
| 67 | </div> |
| 68 | </div> |
| 69 | |
| 70 | <div class="sb-plugins-box cff-social-wall-plugin-box"> |
| 71 | <span class="sb-box-bg-image"> |
| 72 | <img :src="social_wall.graphic" alt="Social Wall Image"> |
| 73 | </span> |
| 74 | <div class="plugin-box-content"> |
| 75 | <h4 class="sb-box-title">{{social_wall.title}}</h4> |
| 76 | <p class="sb-box-description">{{social_wall.description}}</p> |
| 77 | <div class="sb-action-buttons"> |
| 78 | <a class="cff-btn sb-btn-add" v-if="!social_wall.installed" :href="social_wall.permalink" target="_blank"> |
| 79 | {{buttons.viewDemo}} |
| 80 | <span v-html="icons.link"></span> |
| 81 | </a> |
| 82 | <button class="cff-btn sb-btn-installed" v-if="social_wall.installed"> |
| 83 | <span v-html="icons.checkmarkSVG"></span> |
| 84 | {{buttons.installed}} |
| 85 | </button> |
| 86 | <button class="cff-btn sb-btn-activate" v-if="social_wall.installed && ! social_wall.activated" @click="activatePlugin(social_wall.plugin, 'social_wall', 1, 'plugin')" :class="btnStatus"> |
| 87 | <span v-html="buttonIcon()" v-if="btnClicked == 2 && btnName == 'social_wall'"></span> |
| 88 | {{buttons.activate}} |
| 89 | </button> |
| 90 | <button class="cff-btn sb-btn-deactivate" v-if="social_wall.installed && social_wall.activated" @click="deactivatePlugin(social_wall.plugin, 'social_wall', 1, 'plugin')" :class="btnStatus"> |
| 91 | <span v-html="buttonIcon()" v-if="btnClicked == 2 && btnName == 'social_wall'"></span> |
| 92 | {{buttons.deactivate}} |
| 93 | </button> |
| 94 | </div> |
| 95 | </div> |
| 96 | </div> |
| 97 | </div> |
| 98 | |
| 99 | <div class="cff-section-second-header"> |
| 100 | <h3>{{genericText.title3}}</h3> |
| 101 | </div> |
| 102 | |
| 103 | <div class="cff-plugins-boxes-container sb-recommended-plugins"> |
| 104 | <div class="sb-plugins-box" v-for="(plugin, name, index) in recommendedPlugins"> |
| 105 | <div class="icon"><img :src="plugin.icon" :alt="plugin.title"></div> |
| 106 | <div class="plugin-box-content"> |
| 107 | <h4 class="sb-box-title">{{plugin.title}}</h4> |
| 108 | <p class="sb-box-description">{{plugin.description}}</p> |
| 109 | <div class="sb-action-buttons"> |
| 110 | <button class="cff-btn sb-btn-add" v-if="!plugin.installed" @click="installPlugin(plugin.download_plugin, name, index, 'recommended_plugin')"> |
| 111 | <span v-html="buttonIcon()" v-if="btnClicked == index + 1 && btnName == name"></span> |
| 112 | {{buttons.install}} |
| 113 | </button> |
| 114 | <button class="cff-btn sb-btn-installed" v-if="plugin.installed"> |
| 115 | <span v-html="icons.checkmarkSVG"></span> |
| 116 | {{buttons.installed}} |
| 117 | </button> |
| 118 | <button class="cff-btn sb-btn-activate" v-if="plugin.installed && ! plugin.activated" @click="activatePlugin(plugin.plugin, name, index, 'recommended_plugin')" :class="btnStatus"> |
| 119 | <span v-html="buttonIcon()" v-if="btnClicked == index + 1 && btnName == name"></span> |
| 120 | {{buttons.activate}} |
| 121 | </button> |
| 122 | <button class="cff-btn sb-btn-deactivate" v-if="plugin.installed && plugin.activated && name != 'facebook'" @click="deactivatePlugin(plugin.plugin, name, index, 'recommended_plugin')" :class="btnStatus"> |
| 123 | <span v-html="buttonIcon()" v-if="btnClicked == index + 1 && btnName == name"></span> |
| 124 | {{buttons.deactivate}} |
| 125 | </button> |
| 126 | </div> |
| 127 | </div> |
| 128 | </div> |
| 129 | </div> |
| 130 | </div> |
| 131 | </div> |