| Server IP : 14.225.204.176 / Your IP : 216.73.216.6 Web Server : nginx/1.24.0 System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64 User : root ( 0) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/php/venus-cms/wp-content/themes/venus/class/ |
Upload File : |
<?php
/**
* Custom single page/post for the theme.
*
* @copyright ZiniMedia 2016
* @version Release: 0.1
* @package penguinmag\class
* @author ZiniMedia-BM
*/
if(!class_exists('ZiniSinglePagePost')){
class ZiniSinglePagePost{
private $singlePagePostMetaInfo = null;
function __construct(){
$this->singlePagePostMetaInfo = get_field('zini_single_page_post_meta_info','option');
}
function __destruct(){}
/**
* Get values for single page/post
* @return array
*/
public function getSinglePagePostMetaInfo(){
if ($this->singlePagePostMetaInfo)
return $this->singlePagePostMetaInfo;
return array('');
}
/**
* Set value for single page post meta info.
* @param $singlePagePostMetaInfo
*/
public function setSinglePagePostMetaInfo($singlePagePostMetaInfo){
$this->singlePagePostMetaInfo = $singlePagePostMetaInfo;
}
/**
* Check enable author image in single page
* @return boolen
*/
public function checkEnableAuthorImage(){
if (in_array('single_author_img', $this->singlePagePostMetaInfo))
return true;
return false;
}
/**
* Check enable author name in single page
* @return boolen
*/
public function checkEnableAuthorName(){
if (in_array('single_author_name', $this->singlePagePostMetaInfo))
return true;
return false;
}
/**
* Check enable author date in single page
* @return boolen
*/
public function checkEnableDate(){
if (in_array('single_date', $this->singlePagePostMetaInfo))
return true;
return false;
}
/**
* Check enable author sharing in single page
* @return boolen
*/
public function checkEnableSharing(){
if (in_array('single_sharing', $this->singlePagePostMetaInfo))
return true;
return false;
}
}
}
?>