????

Your IP : 18.224.184.41


Current Path : /home2/sarkar82/public_html/wp-content/plugins/siteseo/classes/Helpers/Metas/
Upload File :
Current File : /home2/sarkar82/public_html/wp-content/plugins/siteseo/classes/Helpers/Metas/SocialSettings.php

<?php
/*
* SiteSEO
* https://siteseo.io/
* (c) SiteSEO Team <support@siteseo.io>
*/

/*
Copyright 2016 - 2024 - Benjamin Denis  (email : contact@seopress.org)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/

namespace SiteSEO\Helpers\Metas;

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

abstract class SocialSettings {
	/**
	 * @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) {
		$data = apply_filters('siteseo_api_meta_social_settings', [
			[
				'key'		 => '_siteseo_social_fb_title',
				'type'		=> 'input',
				'placeholder' => __('Enter your Facebook title', 'siteseo'),
				'use_default' => '',
				'default'	 => '',
				'label'	   => __('Facebook Title', 'siteseo'),
				'visible'	 => true,
			],
			[
				'key'		 => '_siteseo_social_fb_desc',
				'type'		=> 'textarea',
				'placeholder' => __('Enter your Facebook description', 'siteseo'),
				'use_default' => '',
				'default'	 => '',
				'label'	   => __('Facebook description', 'siteseo'),
				'visible'	 => true,
			],
			[
				'key'				=> '_siteseo_social_fb_img',
				'type'			   => 'upload',
				'placeholder'		=> __('Select your default thumbnail', 'siteseo'),
				'use_default'		=> '',
				'default'			=> '',
				'label'			  => __('Facebook thumbnail', 'siteseo'),
				'visible'			=> true,
				'description'		=> __('Minimum size: 200x200px, ideal ratio 1.91:1, 8Mb max. (eg: 1640x856px or 3280x1712px for retina screens)', 'siteseo'),
			],
			[
				'key'				=> '_siteseo_social_fb_img_attachment_id',
				'type'			   => 'hidden',
			],
			[
				'key'				=> '_siteseo_social_fb_img_width',
				'type'			   => 'hidden',
			],
			[
				'key'				=> '_siteseo_social_fb_img_height',
				'type'			   => 'hidden',
			],
			[
				'key'		 => '_siteseo_social_twitter_title',
				'type'		=> 'input',
				'placeholder' => __('Enter your Twitter title', 'siteseo'),
				'use_default' => '',
				'default'	 => '',
				'label'	   => __('Twitter Title', 'siteseo'),
				'visible'	 => true,
			],
			[
				'key'		 => '_siteseo_social_twitter_desc',
				'type'		=> 'textarea',
				'placeholder' => __('Enter your Twitter description', 'siteseo'),
				'use_default' => '',
				'default'	 => '',
				'label'	   => __('Twitter description', 'siteseo'),
				'visible'	 => true,
			],
			[
				'key'				=> '_siteseo_social_twitter_img',
				'type'			   => 'upload',
				'placeholder'		=> __('Select your default thumbnail', 'siteseo'),
				'use_default'		=> '',
				'default'			=> '',
				'label'			  => __('Twitter Thumbnail', 'siteseo'),
				'visible'			=> true,
				'description'		=> __('Minimum size: 144x144px (300x157px with large card enabled), ideal ratio 1:1 (2:1 with large card), 5Mb max.', 'siteseo'),
			],
			[
				'key'				=> '_siteseo_social_twitter_img_attachment_id',
				'type'			   => 'hidden',
			],
			[
				'key'				=> '_siteseo_social_twitter_img_width',
				'type'			   => 'hidden',
			],
			[
				'key'				=> '_siteseo_social_twitter_img_height',
				'type'			   => 'hidden',
			],
		], $id);

		return $data;
	}
}