403Webshell
Server IP : 216.250.13.251  /  Your IP : 216.73.217.37
Web Server : nginx/1.24.0
System : Linux gunay 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : root ( 0)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/gunay/wp-content/plugins/rt19-extentions/inc/metaboxes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/gunay/wp-content/plugins/rt19-extentions/inc/metaboxes/post_custom_fields.php
<?php
#-----------------------------------------
#	RT-Theme post_custom_fields.php
#	version: 1.0
#-----------------------------------------

#
# 	Post Custom Fields
#

/**
* @var  array  $customFields  Defines the custom fields available
*/
 
$customFields = array(
				array(
					"title" 		=> __("Post Format",'rt_theme'),  
					"description"	=> __('The Post Format Option : The Post item can be set to 6 different types : <br /></br />1) <strong>Standard</strong> : The attached featured image is shown,<br />2) <strong>Gallery</strong> : Display Image(s) as gallery or slider,<br /> 3) <strong>Link</strong> : Tell something about a subject of choice and add a (outside) link to that article or post,<br /> 4) <strong>Video</strong> : Show and Play a Video,<br />5) <strong>Audio</strong> : Show and Play a Audio file,<br />6) <strong>Aside</strong> : The Post item is listed in the blog list but cannot be opened in a single post.<br /><br /><strong>Note : </strong>A image can be attached for replacing the video and audio item in the Blog / Category Listing Pages.','rt_theme'),									
					"name"			=> "_post_format",
					"clean_name"	=> "post_format",
					"options" 		=>  array(
											""        => "Standard",
											"gallery" => "Gallery",
											"link"    => "Link",
											"video"   => "Video", 
											"audio"   => "Audio",
											"aside"   => "Aside"  
									 ),

					"ids" 		=>  array(
										"post-format-0",
										"post-format-gallery",										
										"post-format-link",
										"post-format-video", 
										"post-format-audio", 
										"post-format-aside"
									 ),
					
					"type" 			=> "radio",
					"default"		=> ""
				), 
);

$settings  = array( 
	"name"		=> __("Post Formats",'rt_theme'),
	"scope"		=> array('post'),
	"slug"		=> "post-formats-select",
	"capability"	=> "edit_page",
	"context"		=> "normal",
	"priority"	=> "high" 
);

$rt_post_custom_fields = new rt_meta_boxes($settings,$customFields);

 

$customFields = array(

	array(
		"description"	=> __("Note: Upload a Featured Image to use it as a placeholder/poster image for the video.",'rt_theme'),					
		"type"			=> "info_text_only",
		"hr"			=> "true",
	),

	array(
		"name"			=> "_post_video_m4v",
		"title"			=> __("MP4 File URL",'rt_theme'), 	
		"description"	=> __("Upload a mp4 video-file. For example: http://sample_url/sample_folder/sample.mp4",'rt_theme'),							
		"type"			=> "upload", 
	),

	array(
		"name"			=> "_post_video_webm",
		"title"			=> __("WEBM File URL",'rt_theme'),
		"description"	=> __("Upload a WEBM video-file as a fallback video when the mp4 video is not supported (some browsers can not display mp4). Note: <br /><br /><strong>1) The WEBM video file must be in the same folder as the MP4 video file</strong><br /><strong>2) The two video files MUST have the same name each with its own correct file extension.</strong><br /><strong>3) One cannot use a WEBM only. The mp4 is always needed.</strong><br /> <br />For example: <br /> http://sample_url/sample_folder/sample.mp4<br />http://sample-url/sample_folder/sample.webm ",'rt_theme'),					
		"type"			=> "upload", 
	),

	array(
		"title"			 => __("OR USE A YOUTUBE OR VIMEO VIDEO",'rt_theme'), 
		"type"			 => "heading"
	),

	array(
		"title" 		=> __("Video URL | YouTube or Vimeo",'rt_theme'), 
		"name"			=> "video_url",
		"description" 	=> __("Provide and paste a correct url to the video at vimeo or youtube. <strong>Do not include the embed code as the theme will generate the embed code automatically.</strong>",'rt_theme'),
		"type" 			=> "text"
	),

	array(
		"title"			 => __("BEHAVIOUR OF THE VIDEO IN LISTING PAGES",'rt_theme'), 
		"type"			 => "heading"
	),

	array(
		"title"       => __("Usage of the Video in Listing Pages",'rt_theme'), 
		"name"        => "_video_usage_listing",
		"description" => __('With the "Usage of the Video in Listing Pages" option one can set and alter the usage of the Video-file in the Blog Listing Page only. <strong>Available choices are :</strong><br /><br />1) <strong>Display the Video</strong> (the Blog Listing Page will show the Video-file),<br />2) <strong>Display the Featured Image</strong> (the Blog Listing Page will show the to the post attached Featured Image)<br />3) <strong>Do not display anything</strong> (the Blog Listing Page will not show any image or video-file).','rt_theme'),						
		"options"     => array(							
							"same"                => __("Display the Video (grid view only)","rt_theme"),
							"only_featured_image" => __("Display the Featured Image","rt_theme"),
							"no_video"            => __("Don't display anything","rt_theme"),
						 ),
		"type" 		 => "select"	
	),
 
);

$settings  = array( 
	"name"		=> __("Video Post Format Options",'rt_theme'),
	"scope"		=> array('post'),
	"slug"		=> "rt_video_post_custom_fields",
	"capability"	=> "edit_page",
	"context"		=> "normal",
	"priority"	=> "high" 
);

$rt_post_custom_fields = new rt_meta_boxes($settings,$customFields);



$customFields = array(

	
	array(
		"description"	=> __("Upload a Featured Image to use it as a placeholder/poster image for the audio file.",'rt_theme'),					
		"type"			=> "info_text_only",
		"hr"			=> "true",
	), 

	array(
		"name"			=> "_post_audio_mp3",
		"title"			=> __("MP3 File URL",'rt_theme'), 	
		"description"	=> __("Upload a mp3 audio file. For example: http://sample_url/sample_folder/sample.mp3",'rt_theme'),									
		"type"			=> "upload", 
	),

	array(
		"name"			=> "_post_audio_oga",
		"title"			=> __("OGG File URL ",'rt_theme'),
		"description"	=> __("Upload a OGG audio file. For example: http://sample_url/sample_folder/sample.ogg",'rt_theme'),											
		"type"			=> "upload", 
	),


	array(
		"title"			 => __("BEHAVIOUR OF THE AUDIO FILE IN LISTING PAGES",'rt_theme'), 
		"type"			 => "heading"
	),

	array(
		"title"       => __("Usage of the Audio in Listing Pages",'rt_theme'), 
		"name"        => "_audio_usage_listing",
		"description" => __('With the "Usage of the Audio in Listing Pages" option one can set and alter the usage of the Audio-file in the Blog Listing Page only. <strong>Available choices are :</strong><br /><br />1) <strong>Display the Audio</strong> (the Blog Listing Page will show the Audio-file),<br />2) <strong>Display the Featured Image</strong> (the Blog Listing Page will show the to the post attached Featured Image)<br />3) <strong>Do not display anything</strong> (the Blog Listing Page will not show any image or audio-file).','rt_theme'),				
		"options"     => array(							
							"same"                => __("Display the Audio Player","rt_theme"),
							"only_featured_image" => __("Display the Featured Image","rt_theme"),
							"no_video"            => __("Don't display Media","rt_theme"),
						 ),
		"type" 		 => "select"	
	),

 
);

$settings  = array( 
	"name"		=> __("Audio Post Format Options",'rt_theme'),
	"scope"		=> array('post'),
	"slug"		=> "rt_audio_post_custom_fields",
	"capability"	=> "edit_page",
	"context"		=> "normal",
	"priority"	=> "high" 
);

$rt_post_custom_fields = new rt_meta_boxes($settings,$customFields);



$customFields = array(
	array(
		"description"	=> __("The gallery function is used to upload and attach multiple images to a post by the use of the <strong>Image Gallery</strong> box. ",'rt_theme'),					
		"type"			=> "info_text_only",
		"hr"			=> "true",
	), 
  
	array(
		"title"       => __("Usage of Gallery Images",'rt_theme'), 
		"description" => __('The "Usage of Gallery Images" option can be set to alter the behaviour of the Gallery in the Single Post or Listing Page. <strong>There are two choices:</strong><br /><br />1) <strong>Display Gallery as Slideshow</strong> <br />2) <strong>Display Gallery as Photo-Gallery</strong><br /><br /><strong>Note</strong> : In order to have the slider or gallery function to work there needs to be more then one (1) image attached to the "Image Gallery Box".','rt_theme'),
		"name"        => "_gallery_usage",
		"options"     => array(
							"slider"  => __("Display Gallery as Slideshow","rt_theme"),
							"gallery" => __("Display Gallery as Photo-Gallery","rt_theme"),
						 ),
		"type"        => "select",	 
	), 

	array(
		"title"   => __("Displaying Gallery Images in Listing Pages",'rt_theme'), 
		"name"    => "_gallery_usage_listing",
		"description" => __('With the "Displaying Gallery Images in Listing Pages" option one can set and alter the usage of the gallery in the Blog Listing Page only. <strong>Available choices are :</strong><br /><br />1) <strong>Display the Gallery</strong> (the Blog Listing Page will show the gallery)<br />2) <strong>Display the Featured Image</strong> (the Blog Listing Page will show the to the post attached Featured Image)<br />3) <strong>Do not display anything</strong> (the Blog Listing Page will not show any image).','rt_theme'),		
		"options" => array(							
							"same"                => __("Display the Gallery/Slideshow","rt_theme"),
							"only_featured_image" => __("Display the Featured Image","rt_theme"),
							"no_image"            => __("Do not display anything","rt_theme"),
						 ),
		"type"    => "select"	
	),

	array(
		"title" => __("SLIDESHOW IMAGE OPTIONS",'rt_theme'),
		"type"  => "heading"
	),

	array(
		"title"   => __("Crop Images in the Slideshow",'rt_theme'),
		"name"    => "gallery_images_crop",
		"description" 	=> __('By turning <strong>"ON"</strong> the "Crop Images in the Slideshow" option the images in the gallery will be cropped to the theme defaults width and the height values. The maximum height can be set and controlled below in the next option setting called "Maximum Image Height".','rt_theme'),		
		"default" => "",
		"hr"      => true,
		"type"    => "checkbox"
	),
			
	array(
		"title"       => __("Maximum Image Height",'rt_theme'),
		"name"        => "gallery_images_height",
		"description" => __('Set a maximum height for the gallery image between 300 and 1500px.','rt_theme'),
		"min"         => "0",
		"max"         => "1500",
		"default"     => "600",
		"type"        => "rangeinput"
	),  
 
);

$settings  = array( 
	"name"       => __("Gallery Post Format Options","rt_theme"),
	"scope"      => array('post'),
	"slug"       => "rt_gallery_post_custom_fields",
	"capability" => "edit_page",
	"context"    => "normal",
	"priority"   => "high" 
);

$rt_post_custom_fields = new rt_meta_boxes($settings,$customFields);
 


$customFields = array(

	array(
		"description"	=> __("Link the Post to any valid (external) URL.",'rt_theme'),					
		"type"			=> "info_text_only",
		"hr"			=> "true",
	),
   
	
	array(
		"name"        => "post_format_link",
		"title"       => __("URL",'rt_theme'),
		"description" => __(" Use a full and correct URL f.e.: (http://yourwebsite.com/yourlink) to where the post should link to. The link will be shown and added to the title of the post.",'rt_theme'),
		"type"        => "text" 
	),	 

	 
);

$settings  = array( 
	"name"       => __("Link Post Format Options","rt_theme"),
	"scope"      => array('post'),
	"slug"       => "rt_link_post_custom_fields",
	"capability" => "edit_page",
	"context"    => "normal",
	"priority"   => "high" 
);

$rt_post_custom_fields = new rt_meta_boxes($settings,$customFields);

 

$customFields = array(

	array(
		"description"	=> __("Featured Image Options for the Blog Listing Page or Single Post Page.",'rt_theme'),					
		"type"			=> "info_text_only"
	),


	array(
		"title" 		=> __("POST LISTING PAGES RELATED OPTIONS",'rt_theme'),
		"type" 			=> "heading"
	),

	array(	 
		"type"        => "div_start",
		"div_class"   => "options_set_holder featured_image_custom_settings",
	),	  	

	array(
		"title"         => __("Customize Featured Image Settings",'rt_theme'),
		"desc"          => __('Select and set to use the global settings or customize the cropping and maximum height setting for this post.','rt_theme'),
		"name"          =>  "_featured_image_settings", 
		"options"       =>  array(
			"default"      => __("Use the global settings","rt_theme"), 
			"new"          => __("Customize for this post","rt_theme"),
			), 
		"type"          => "select", 
		"class"         => "div_controller",
	),	 

		array( 
			"div_class" => "hidden_options_set",
			"type"      => "div_start",
		),

			array(
				"title"         => __("Customize Featured Resize",'rt_theme'),
				"desc"          => __('Select and set to use the global settings or customize the cropping and maximum height setting for this post.','rt_theme'),
				"name"          =>  "_blog_image_resize", 
				"options"       =>  array(
					"true"      => __("Enabled","rt_theme"), 
					"false"     => __("Disabled","rt_theme"),
					), 
				"type"          => "select"
			),	  

			array(
				"title"       => __("Featured Image Max Width",'rt_theme'),
				"name"        => "_blog_image_width",
				"description" => __("The featured image will resize to fit the post content area automatically. If you do not want to use the default settings then in here you can set a maximum width for the featured image and alter the look/size of the image in the Blog Listing Page or Single Post Page. <strong>Leave it set to \"0\" to use the theme default scaling of the image which will keep the aspect ratio.</strong> ",'rt_theme'),
				"min"         => "0",
				"max"         => "2000",
				"default"     => "0",
				"type"        => "rangeinput",
				"dependency"  => array( "element" => "rttheme_blog_image_resize", "value" => array("true") ),
			),

			array(
				"title"       => __("Featured Image Max Height",'rt_theme'),
				"name"        => "_blog_image_height",
				"description" => __("The featured image will resize to fit the post content area automatically. If you do not want to use the default settings then in here you can set a maximum height for the featured image and alter the look/size of the image in the Blog Listing Page or Single Post Page. <strong>Leave it set to \"0\" to use the theme default scaling of the image which will keep the aspect ratio.</strong> ",'rt_theme'),
				"min"         => "0",
				"max"         => "2000",
				"default"     => "0",
				"type"        => "rangeinput",
				"dependency"  => array( "element" => "rttheme_blog_image_resize", "value" => array("true") ),
			),
			 
			array(
				"title"       => __("Crop Featured Image.",'rt_theme'),
				"name"        => "_blog_image_crop",
				"description" => __('By turning "ON" the cropping option the featured image will be cropped according to the previous "Featured Image Max Height" value option on this page.','rt_theme'),
				"default"     => "",
				"type"        => "checkbox",
				"dependency"  => array( "element" => "rttheme_blog_image_resize", "value" => array("true") ),
			),

		array(	 
			"type"    => "div_end"
		),		

	array(	 
		"type"    => "div_end"
	),		

	array(
		"title" 		=> __("SINGLE POST PAGE RELATED OPTIONS",'rt_theme'),
		"type" 			=> "heading"
	),

	array(
		"title" 		=> __("Display the Featured Image in the Single Post Page",'rt_theme'),
		"name"			=> "featured_image_single_page",
		"description" 	=> __('By default the featured image will not show in a single post page. To show the featured image in the single post turn <strong>"ON"</strong> this option.','rt_theme'),
		"default" 		=> "", 
		"type" 			=> "checkbox"
	),	
	 
);

$settings  = array( 
	"name"		 => RT_THEMENAME ." ".__("Featured Image Options","rt_theme"),  
	"scope"		 => array('post'),
	"slug"		 => "rt_featured_image_custom_fields",
	"capability" => "edit_page",
	"context"	 => "normal",
	"priority"	 => "high" 
);

$rt_post_custom_fields = new rt_meta_boxes($settings,$customFields);


?>

Youez - 2016 - github.com/yon3zu
LinuXploit