Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/amasty/feed/Block/Adminhtml/Feed/Edit/Tab/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/amasty/feed/Block/Adminhtml/Feed/Edit/Tab/Analytics.php
<?php
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Product Feed for Magento 2
 */

namespace Amasty\Feed\Block\Adminhtml\Feed\Edit\Tab;

use Magento\Backend\Block\Widget\Form\Generic;
use Magento\Backend\Block\Widget\Tab\TabInterface;

class Analytics extends Generic implements TabInterface
{
    public function getTabLabel()
    {
        return __('Analytics');
    }

    /**
     * Prepare title for tab
     *
     * @return \Magento\Framework\Phrase
     * @codeCoverageIgnore
     */
    public function getTabTitle()
    {
        return __('Analytics');
    }

    /**
     * Returns status flag about this tab can be showed or not
     *
     * @return bool
     * @codeCoverageIgnore
     */
    public function canShowTab()
    {
        return true;
    }

    /**
     * Returns status flag about this tab hidden or not
     *
     * @return bool
     * @codeCoverageIgnore
     */
    public function isHidden()
    {
        return false;
    }

    protected function _prepareForm()
    {
        $model = $this->_coreRegistry->registry('current_amfeed_feed');

        /** @var \Magento\Framework\Data\Form $form */
        $form = $this->_formFactory->create();
        $form->setHtmlIdPrefix('feed_');

        $fldInfo = $form->addFieldset('analytics_fieldset', ['legend' => __('Google Analytics')]);

        $fldInfo->addField('utm_source', 'text', [
            'label'     => __('Campaign Source'),
            'name'      => 'utm_source',
            'note' => __(
                '<b>Required.</b> Use <b>utm_source</b> to identify a search engine, '
                    . 'newsletter name, or other source.<br/><i>Example:</i> google'
            )
        ]);

        $fldInfo->addField('utm_medium', 'text', [
            'label'     => __('Campaign Medium'),
            'name'      => 'utm_medium',
            'note' => __(
                '<b>Required.</b> Use <b>utm_medium</b> to identify a medium such as email or cost-per- click'
                    . '<br/><i>Example:</i> cpc'
            )
        ]);

        $fldInfo->addField('utm_term', 'text', [
            'label'     => __('Campaign Term'),
            'name'      => 'utm_term',
            'note' => __(
                'Used for paid search. Use <b>utm_term</b> to note the keywords for this ad.<br/>'
                    . '<i>Example:</i> running+shoes'
            )
        ]);

        $fldInfo->addField('utm_content', 'text', [
            'label'     => __('Campaign Content'),
            'name'      => 'utm_content',
            'note' => __(
                'Used for A/B testing and content-targeted ads. Use <b>utm_content</b> to differentiate'
                    . ' ads or links that point to the same URL.<br/><i>Example:</i> logolink <i>or</i> textlink'
            )
        ]);

        $fldInfo->addField('utm_campaign', 'text', [
            'label'     => __('Campaign Name'),
            'name'      => 'utm_campaign',
            'note' => __(
                'Used for keyword analysis. Use <b>utm_campaign</b> to identify a specific product'
                    . ' promotion or strategic campaign.<br/><i>Example:</i> spring_sale'
            )
        ]);

        $form->setValues($model->getData());

        $this->setForm($form);

        return parent::_prepareForm();
    }
}

Spamworldpro Mini