| @@ -1,56 +1,11 @@ | ||
| 1 | 1 | <?php |
| 2 | -include_once TAGEMBED_PLUGIN_DIR_PATH . "views/includes/headView.php"; | |
| 3 | -include_once TAGEMBED_PLUGIN_DIR_PATH . "views/includes/headerView.php"; | |
| 4 | -wp_enqueue_script('__script-social-account-js', TAGEMBED_PLUGIN_URL . '/assets/js/socialAccount/tagembed.social.account.script.js', ['jquery'], TAGEMBED_PLUGIN_VERSION, true); | |
| 2 | +if (!defined('ABSPATH')) : | |
| 3 | + exit; | |
| 4 | +endif; | |
| 5 | +include_once TAGEMBED_PLUGIN_DIR_PATH . 'views/includes/headView.php'; | |
| 6 | +include_once TAGEMBED_PLUGIN_DIR_PATH . 'views/includes/headerView.php'; | |
| 7 | +$__tagembed__social_account_id = ___tagembed__get_user_social_account_id(); | |
| 5 | 8 | ?> |
| 6 | -<div style="" id="__tagembed__accounts" class="__tagembed__tabcontent __tagembed__accountsection"> | |
| 7 | - <div class="__tagembed__connaccountwrap"> | |
| 8 | - <div class="__tagembed__caleft"> | |
| 9 | - <h3>Connected Accounts</h3> | |
| 10 | - <div>Note : Tagembed never store (or even have access to) the usernames/passwords you use to connect.</div> | |
| 11 | - </div> | |
| 12 | - <!--Start-- Show Share Link For Add Connect Account Popup --> | |
| 13 | - <div class="__tagembed__caright"> | |
| 14 | - <div class="__tagembed__clipboard"> | |
| 15 | - <label>Wondering how to connect an account you don't have access to?</label> | |
| 16 | - <button type="button" onclick="__tagembed__manageShareLinkPopup();" class="__tagembed__btn"> | |
| 17 | - Share | |
| 18 | - </button> | |
| 19 | - </div> | |
| 20 | - </div> | |
| 21 | - <!--End-- Show Share Link For Add Connect Account Popup --> | |
| 22 | - </div> | |
| 23 | - <div class="__tagembed__sourcerow"> | |
| 24 | - <div class="__tagembed__ssright __tagembed__sizefull"> | |
| 25 | - <div class="__tagembed__conntectedacc"> | |
| 26 | - <div class="__tagembed__addaccount"> | |
| 27 | - <a href="javascript:void(0);" onclick="__tagembed__connectSocialAccounts();"><i class="fas fa-plus" aria-hidden="true"></i><span>Add Account</span></a> | |
| 28 | - </div> | |
| 29 | - <table width="100%" cellspacing="0" cellpadding="0"> | |
| 30 | - <thead> | |
| 31 | - <tr><th>Network</th><th>Account</th><th>Token Validity</th><th>Status</th><th>Refresh</th><th>Delete</th></tr> | |
| 32 | - </thead> | |
| 33 | - <tbody id="__tagembed__alreday_exist_accounts"></tbody> | |
| 34 | - </table> | |
| 35 | - </div> | |
| 36 | - </div> | |
| 37 | - </div> | |
| 38 | -</div> | |
| 39 | -<!--Start--Add Account Section--> | |
| 40 | -<div id="__tagembed__pick_a_source_section" class="__tagembed__overlay" style="display:none;"> | |
| 41 | - <div class="__tagembed__popupwrap __tagembed__popup_xl"> | |
| 42 | - <button id="__tagembed__pick_a_source_section_close_btn" type="button" class="__tagembed__closebtn"></button> | |
| 43 | - <div class="__tagembed__popupinn"> | |
| 44 | - <div class="__tagembed__header"><h2>Pick a source</h2></div> | |
| 45 | - <hr class="__tagembed__horizontaborder"> | |
| 46 | - <div class="__tagembed__formwbody"> | |
| 47 | - <div class="__tagembed__formwrow"> | |
| 48 | - <ul class="__tagembed__addnetwork" id="__tagembed__pick_a_source"></ul> | |
| 49 | - </div> | |
| 50 | - </div> | |
| 51 | - </div> | |
| 52 | - </div> | |
| 53 | -</div> | |
| 54 | -<!--End--Add Account Section--> | |
| 55 | -<?php include_once TAGEMBED_PLUGIN_DIR_PATH . "views/common/shareLinkView.php"; ?> | |
| 56 | -<?php include_once TAGEMBED_PLUGIN_DIR_PATH . "views/includes/footerView.php"; ?> | |
| 9 | +<!--Start-- Get And Manage Social Accounts --> | |
| 10 | +<iframe allow="clipboard-write" name="<?php echo esc_attr(TAGEMBED_PLUGIN_CALL_BACK_URL); ?>" src="<?php echo esc_url(TAGEMBED_PLUGIN_SERVER_URL . 'socialaccounts/index/' . $__tagembed__social_account_id); ?>" class="__tagembed__analytics" width="100%" height="100%" title="Tagembed Social Accounts"></iframe> | |
| 11 | +<?php include_once TAGEMBED_PLUGIN_DIR_PATH . 'views/includes/footerView.php'; ?> | |