Plugin Directory

Changeset 3483919


Ignore:
Timestamp:
03/16/2026 01:50:55 PM (13 days ago)
Author:
tagembed
Message:

Update Plugin Code

Location:
tagembed-widget
Files:
312 added
4 edited

Legend:

Unmodified
Added
Removed
  • tagembed-widget/trunk/assets/js/account/tagembed.account.script.js

    r3470102 r3483919  
    8181/*--End-- Manage Other Plugin Account Popup*/
    8282
     83/*--Start-- Get Country Code For Register*/
     84window.addEventListener ? window.addEventListener("load", __tagembed__getCallingCode, false) : window.attachEvent && window.attachEvent("onload", __tagembed__getCallingCode);
     85function __tagembed__getCallingCode() {
     86    /*Manage Customizaton Section Hide Show*/
     87    let __tagembed__toast = new TagembedToast;
     88    let formData = new FormData();
     89    formData.append('action', 'data');
     90    formData.append('__tagembed__ajax_call_nones', __tagembed__ajax_call_nones);
     91    formData.append('__tagembed__ajax_action', '__tagembed__getCallingCode');
     92    __tagembed__open_loader();
     93    fetch(__tagembed__ajax_url, {
     94        method: 'POST',
     95        headers: {
     96            'x-requested-with': 'XMLHttpRequest',
     97        },
     98        body: formData,
     99    }).then(response => {
     100        return response.json()
     101    }).then(response => {
     102        __tagembed__close_loader();
     103        if (response.status == true) {
     104            let callingCodes = response.data.callingCode;
     105            let select = document.getElementById("__tagembed__callingCode");
     106            callingCodes.forEach((callingCode, index) => {
     107                let option = document.createElement("option");
     108                option.value = callingCode.callingCode;
     109                option.textContent = `${callingCode.flag} ${callingCode.name} (${callingCode.callingCode})`;
     110                if (callingCode.status == 1)
     111                    option.selected = true;
     112                select.appendChild(option);
     113            });
     114        }
     115    }).catch((error) => {
     116        console.log(error);
     117        __tagembed__close_loader();
     118        __tagembed__toast.danger({ message: "Something went wrong. Please try after sometime", position: '__tagembed__is-top-right' });
     119    });
     120}
     121/*--End-- Get Country Code For Register*/
     122
    83123/*--Start-- Register*/
    84124var __tagembed__register_form = document.querySelector("#__tagembed__register_form");
     
    94134        let __tagembed__register_contact_no_error = document.querySelector("#__tagembed__register_contact_no_error");
    95135        __tagembed__register_contact_no_error.style.display = 'none';
     136        let __tagembed__register_calling_code_error = document.querySelector("#__tagembed__register_calling_code_error");
     137        __tagembed__register_calling_code_error.style.display = 'none';
    96138        __tagembed__open_loader();
    97139        let __tagembed__toast = new TagembedToast;
     
    137179                        __tagembed__register_contact_no_error.style.display = 'block';
    138180                        __tagembed__register_contact_no_error.textContent = response.data.contact_no;
     181                    }
     182                    if (response.data.hasOwnProperty("calling_code")) {
     183                        __tagembed__register_calling_code_error.style.display = 'block';
     184                        __tagembed__register_calling_code_error.textContent = response.data.calling_code;
    139185                    }
    140186                    /*--End-- Manage Validation Error*/
  • tagembed-widget/trunk/readme.txt

    r3470313 r3483919  
    66Tested up to: 6.9.1
    77Requires PHP: 5.6
    8 Stable tag: 7
     8Stable tag: 7.1
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    325325
    326326== Changelog ==
     327= 7.1 =
     328  * Updated user registration process.
    327329= 7 =
    328330  * Updated the plan subscription.
     
    552554
    553555== Upgrade Notice ==
     556= 7.1 =
     557  * Updated user registration process.
    554558= 7 =
    555559  *  Updated the plan subscription.
  • tagembed-widget/trunk/tagembed.php

    r3470313 r3483919  
    55 * Plugin URI:        https://tagembed.com/
    66 * Description:       Display Facebook feed, Instagram feed, Twitter feed, YouTube Videos and more social feeds from 15+ social networks on any page, posts or widgets using shortcode. Beautifully clean, customizable, and responsive Social Media Feed Widget Plugin for WordPress.
    7  * Version:           7
     7 * Version:           7.1
    88 * Author:            Tagembed
    99 * Author URI:        https://tagembed.com/
     
    1414
    1515/* --Start-- Create Constant */
    16 !defined('TAGEMBED_PLUGIN_VERSION')          && define('TAGEMBED_PLUGIN_VERSION', '7');
     16!defined('TAGEMBED_PLUGIN_VERSION')          && define('TAGEMBED_PLUGIN_VERSION', '7.1');
    1717!defined('TAGEMBED_PLUGIN_DIR_PATH')         && define('TAGEMBED_PLUGIN_DIR_PATH', plugin_dir_path(__FILE__));
    1818!defined('TAGEMBED_PLUGIN_URL')              && define('TAGEMBED_PLUGIN_URL', plugin_dir_url(__FILE__));
     
    172172    $__tagembed__user_details = ___tagembed__user();
    173173    switch ($action):
     174        case '__tagembed__getCallingCode':
     175            /* --Start-- Manage Param Data */
     176            $param['platform']  = TAGEMBED_PLUGIN_PLATFORM;
     177            /* --End-- Manage Param Data */
     178            $response = ___tagembed__wpApiCall(TAGEMBED_PLUGIN_API_URL . 'apiaccount/getCallingCode', $param, []);
     179            $response = ___tagembed__manageApiResponse($response);
     180            unset($param);
     181            return ___tagembed__exitWithSuccess(['callingCode' => $response]);
     182            break;
    174183        case '__tagembed__register':
    175184            if (empty($data->emailId) || empty($data->password) || empty($data->fullName)) :
     
    177186            endif;
    178187            /* --Start-- Manage Param Data */
    179             $param['fullName']   = sanitize_text_field($data->fullName);
    180             $param['emailId']    = sanitize_email($data->emailId);
    181             $param['password']   = $data->password;
    182             $param['contact_no'] = $data->contact_no;
     188            $param['fullName']     = sanitize_text_field($data->fullName);
     189            $param['emailId']      = sanitize_email($data->emailId);
     190            $param['password']     = $data->password;
     191            $param['contact_no']   = $data->contact_no;
     192            $param['calling_code'] = $data->calling_code;
    183193            $param['platform']   = TAGEMBED_PLUGIN_PLATFORM;
    184194            /* --End-- Manage Param Data */
  • tagembed-widget/trunk/views/account/accountView.php

    r3470102 r3483919  
    6262                </div>
    6363                <div class="__tagembed__form_row">
     64                    <select id="__tagembed__callingCode" name="calling_code" style="padding: 0 8px;line-height: 2; min-height: 30px;width: 100%;border-radius: 0; border: 1px solid #999;background-color: #fff;color: #2c3338;"></select>
     65                    <span id="__tagembed__register_calling_code_error"></span>
     66                </div>
     67                <div class="__tagembed__form_row">
    6468                    <input type="number" name="contact_no" value="" placeholder="Contact Number">
    6569                    <span id="__tagembed__register_contact_no_error"></span>
Note: See TracChangeset for help on using the changeset viewer.