| 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 contact page for the theme.
*
* @copyright ZiniMedia 2016
* @version Release: 0.1
* @package penguinmag\class
* @author ZiniMedia-BM
*/
if(!class_exists('ZiniContactPage')){
class ZiniContactPage{
private $contactPage = null;
private $contactMap = null;
private $telephone = null;
private $fax = null;
private $email = null;
private $website = null;
function __construct(){
$this->contactPage = get_field('zini_contact_page', 'option');
$this->contactMap = get_field('zini_contact_map', 'option');
$this->telephone = get_field('zini_contact_phone', 'option');
$this->fax = get_field('zini_contact_fax', 'option');
$this->email = get_field('zini_contact_email', 'option');
$this->website = get_field('zini_contact_website', 'option');
}
function __destruct(){}
/**
* Get value for contact page.
* @return string
*/
public function getContactPage(){
if ($this->contactPage) {
return $this->contactPage;
}
return "";
}
/**
* Set value for contact page
* @param $contactPage
*/
public function setContactPage($contactPage){
$this->contactPage = $contactPage;
}
/**
* Get value for contact map.
* @return string
*/
public function getContactMap(){
if ($this->contactMap) {
return $this->contactMap;
}
return "";
}
/**
* Set value for contact map
* @param $contactMap
*/
public function setContactMap($contactMap){
$this->contactMap = $contactMap;
}
/**
* Get value for telephone.
* @return string
*/
public function getTelephone(){
if ($this->telephone) {
return $this->telephone;
}
return "";
}
/**
* Set value for telephone
* @param $telephone
*/
public function setTelephone($telephone){
$this->telephone = $telephone;
}
/**
* Get value for fax.
* @return string
*/
public function getFax(){
if ($this->fax) {
return $this->fax;
}
return "";
}
/**
* Set value for fax
* @param $fax
*/
public function setFax($fax){
$this->fax = $fax;
}
/**
* Get value for email.
* @return string
*/
public function getEmail(){
if ($this->email) {
return $this->email;
}
return "";
}
/**
* Set value for email
* @param $email
*/
public function setEmail($email){
$this->email = $email;
}
/**
* Get value for website.
* @return string
*/
public function getWebsite(){
if ($this->website) {
return $this->website;
}
return "";
}
/**
* Set value for website
* @param $website
*/
public function setWebsite($website){
$this->website = $website;
}
}
}
?>