File Manager / wp-content Search Upload New Item Settings File "db5.php" Full path: /home1/epichome/public_html/wp-content/db5.php File size: 60.67 B (60.67 KB bytes) MIME-type: text/x-php Charset: utf-8 Download Open Edit Advanced Editor Back
/home/pharmacy/public_html/wp-content/plugins/expand-maker/expand-maker/classes/ReadMorePages.php
<?php
Class ReadMorePages {

	public $functionsObj;
	public $readMoreDataObj;

	public function __construct() {
		
	}

	public function mainPage() {

		require_once(YRM_VIEWS."readMorePagesView.php");
	}

	public function addNewPage() {

		require_once(YRM_VIEWS."readMoreAddNew.php");
	}

	public function addNewButtons() {

		global $YrmRemoveOptions;
		$id = @$_GET['readMoreId'];
		if(!empty($_GET['type'])) {
			$className = ucfirst($_GET['type']).'TypeReadMore';

			if(file_exists(YRM_CLASSES.$className.'.php')) {
				require_once(YRM_CLASSES.$className.'.php');
				$typeObj = new $className();
				$YrmRemoveOptions = $typeObj->getRemoveOptions();
			}
		}
		$dataObj = $this->readMoreDataObj;
		$dataObj->setId($id);
		$buttonWidth = $dataObj->getOptionValue('button-width');
		$buttonHeight = $dataObj->getOptionValue('button-height');
		$fontSize = $dataObj->getOptionValue('font-size');
		$animationDuration = $dataObj->getOptionValue('animation-duration');
		$btnBackgroundColor = $dataObj->getOptionValue('btn-background-color');
		$btnTextColor = $dataObj->getOptionValue('btn-text-color');
		$expanderFontFamily = $dataObj->getOptionValue('expander-font-family');
		$btnBorderRadius = $dataObj->getOptionValue('btn-border-radius');
		$horizontal = $dataObj->getOptionValue('horizontal');
		$vertical = $dataObj->getOptionValue('vertical');
		$showOnlyMobile = $dataObj->getOptionValue('show-only-mobile', true);
		$hoverEffect = $dataObj->getOptionValue('hover-effect', true);
		$btnHoverTextColor = $dataObj->getOptionValue('btn-hover-text-color');
		$btnHoverBgColor= $dataObj->getOptionValue('btn-hover-bg-color');

		$readMoreTitle = $dataObj->getOptionValue('expm-title');

		$dataParams = $dataObj->getOptionsData();
		$functions = $this->functionsObj;
		require_once(YRM_VIEWS."readMoreAddNewButton.php");
	}
}