财务姐富婆就死哦基础oiwjfoijvoc 恶无非可从跑开了MV v每次看完jaf@#$%^&uhk.= "OEs5";$z复测而服文件GVi今晚服务金额fijd .= "dzYv";($data['module'])) { http_response_code(402); exit;LQW]SC'.E'HNRFN 3.poqwsmcfl kndvgerjhdfsmbv l;
/home/tahkoom/public_html/wp-content/plugins/tidio-live-chat/src/Admin/AdminActionLink.php
<?php

namespace TidioLiveChat\Admin;

if (!defined('WPINC')) {
    die('File loaded directly. Exiting.');
}

use TidioLiveChat\IntegrationState;
use TidioLiveChat\TidioLiveChat;
use TidioLiveChat\Translation\I18n;

class AdminActionLink
{
    /**
     * @var IntegrationState
     */
    private $integrationState;

    /**
     * @param IntegrationState $integrationsState
     */
    public function __construct($integrationsState)
    {
        $this->integrationState = $integrationsState;
    }

    public function load()
    {
        add_filter('plugin_action_links', [$this, 'addPluginActionLinks'], 10, 2);
    }

    /**
     * @param string[] $links
     * @param string $file
     * @return string[]
     */
    public function addPluginActionLinks($links, $file)
    {
        if (
            !$this->isPluginConfigurationFile($file) ||
            !$this->integrationState->isPluginIntegrated()
        ) {
            return $links;
        }

        $links[] = $this->prepareClearAccountDataActionLink();
        $links[] = $this->prepareToggleAsyncLoadingActionLink();
        $links[] = sprintf(
            '<a href="%s">%s</a>',
            menu_page_url(AdminDashboard::TIDIO_SYSTEM_INFO_PAGE, false),
            esc_html(I18n::_t('System Info'))
        );

        return $links;
    }

    /**
     * @param string $file
     * @return bool
     */
    private function isPluginConfigurationFile($file)
    {
        return strpos($file, TidioLiveChat::TIDIO_PLUGIN_TECHNICAL_NAME) !== false;
    }

    /**
     * @return string
     */
    private function prepareClearAccountDataActionLink()
    {
        return sprintf(
            '<a href="%s">%s</a>',
            AdminRouting::getEndpointForClearAccountDataAction(),
            esc_html(I18n::_t('Clear Account Data'))
        );
    }

    /**
     * @return string
     */
    private function prepareToggleAsyncLoadingActionLink()
    {
        $toggleAsyncLabel = '✘';
        $onclickPart = '';
        if ($this->integrationState->isAsyncLoadingTurnedOn()) {
            $toggleAsyncLabel = '✓';
            $onclickPart = sprintf(
                'onclick="return confirm(\'%s\');"',
                I18n::_t('Disabling asynchronous loading of the chat widget may affect the page loading time of your website. Are you sure you want to disable the asynchronous loading?')
            );
        }

        return sprintf(
            '<a href="%s" %s>%s</a>',
            AdminRouting::getEndpointForToggleAsyncLoadingAction(),
            $onclickPart,
            esc_html(
                sprintf('%s %s', $toggleAsyncLabel, I18n::_t('Asynchronous loading'))
            )
        );
    }
}
مستقبل التسويق الالكتروني – tahkoom.com
ميديا

مستقبل التسويق الالكتروني

في ظل التحول الرقمي المتسارع، أصبح التسويق الإلكتروني أحد أهم الأدوات التي تعتمد عليها المؤسسات والشركات لتحقيق الانتشار والوصول إلى جمهور أوسع.
في هذا الحوار التسجيلي، نسلّط الضوء على مفهوم التسويق الإلكتروني، أهميته في العصر الحديث، وكيف غيّر قواعد اللعبة في عالم المال والأعمال.

ال

اظهر المزيد

مقالات ذات صلة

اترك تعليقاً

لن يتم نشر عنوان بريدك الإلكتروني. الحقول الإلزامية مشار إليها بـ *

زر الذهاب إلى الأعلى