403Webshell
Server IP : 87.98.154.146  /  Your IP : 216.73.216.165
Web Server : Apache
System : Linux webm004.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : ohklomafyi ( 52085)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/ohklomafyi/www/wp-content/plugins/wp-seopress/src/Helpers/Metas/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/ohklomafyi/www/wp-content/plugins/wp-seopress/src/Helpers/Metas/SocialSettings.php
<?php

namespace SEOPress\Helpers\Metas;

if ( ! defined('ABSPATH')) {
    exit;
}

abstract class SocialSettings {

    public static function getMetaKeysFacebook(){
        return  [
            [
                'key'         => '_seopress_social_fb_title',
                'type'        => 'input',
                'placeholder' => __('Enter your Facebook title', 'wp-seopress'),
                'use_default' => '',
                'default'     => '',
                'label'       => __('Facebook Title', 'wp-seopress'),
                'visible'     => true,
            ],
            [
                'key'         => '_seopress_social_fb_desc',
                'type'        => 'textarea',
                'placeholder' => __('Enter your Facebook description', 'wp-seopress'),
                'use_default' => '',
                'default'     => '',
                'label'       => __('Facebook description', 'wp-seopress'),
                'visible'     => true,
            ],
            [
                'key'                => '_seopress_social_fb_img',
                'type'               => 'upload',
                'placeholder'        => __('Select your default thumbnail', 'wp-seopress'),
                'use_default'        => '',
                'default'            => '',
                'label'              => __('Facebook thumbnail', 'wp-seopress'),
                'visible'            => true,
                'description'        => __('Minimum size: 200x200px, ideal ratio 1.91:1, 8Mb max. (e.g. 1640x856px or 3280x1712px for retina screens)', 'wp-seopress'),
            ],
            [
                'key'                => '_seopress_social_fb_img_attachment_id',
                'type'               => 'hidden',
            ],
            [
                'key'                => '_seopress_social_fb_img_width',
                'type'               => 'hidden',
            ],
            [
                'key'                => '_seopress_social_fb_img_height',
                'type'               => 'hidden',
            ]
        ];
    }

    public static function getMetaKeysTwitter(){
        return [
            [
                'key'         => '_seopress_social_twitter_title',
                'type'        => 'input',
                'placeholder' => __('Enter your X title', 'wp-seopress'),
                'use_default' => '',
                'default'     => '',
                'label'       => __('X Title', 'wp-seopress'),
                'visible'     => true,
            ],
            [
                'key'         => '_seopress_social_twitter_desc',
                'type'        => 'textarea',
                'placeholder' => __('Enter your X description', 'wp-seopress'),
                'use_default' => '',
                'default'     => '',
                'label'       => __('X Description', 'wp-seopress'),
                'visible'     => true,
            ],
            [
                'key'                => '_seopress_social_twitter_img',
                'type'               => 'upload',
                'placeholder'        => __('Select your default thumbnail', 'wp-seopress'),
                'use_default'        => '',
                'default'            => '',
                'label'              => __('X Thumbnail', 'wp-seopress'),
                'visible'            => true,
                'description'        => __('Minimum size: 144x144px (300x157px with large card enabled), ideal ratio 1:1 (2:1 with large card), 5Mb max.', 'wp-seopress'),
            ],
            [
                'key'                => '_seopress_social_twitter_img_attachment_id',
                'type'               => 'hidden',
            ],
            [
                'key'                => '_seopress_social_twitter_img_width',
                'type'               => 'hidden',
            ],
            [
                'key'                => '_seopress_social_twitter_img_height',
                'type'               => 'hidden',
            ],
        ];
    }


    /**
     * @since 5.0.0
     *
     * @param int|null $id
     *
     * @return array[]
     *
     *    key: string post meta
     *    use_default: default value need to use
     *    default: default value
     *    label: string label
     *    placeholder
     */
    public static function getMetaKeys($id = null) {

        $facebook = self::getMetaKeysFacebook();
        $twitter = self::getMetaKeysTwitter();
        $all = array_merge($facebook, $twitter);
        return apply_filters('seopress_api_meta_social_settings', $all, $id);

    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit