/var/www/html/wp-content/plugins/expand-maker/classes/

OS : Linux

PHP Version : 7.4.33

Software : Apache/2.4.6 (CentOS) PHP/7.4.33

Information System : functionsObj; require_once(YRM_VIEWS.'settings.php'); } public function findAndReplace() { $functions = $this->functionsObj; require_once(YRM_VIEWS_FIND.'main.php'); } public function accordionBuilder() { $functions = $this->functionsObj; require_once(YRM_VIEWS_ACCORDION.'main.php'); } public function addNewButtons() { global $YrmRemoveOptions; $id = @(int)$_GET['readMoreId']; $type = 'button'; if(!empty($_GET['yrm_type'])) { $type = esc_attr($_GET['yrm_type']); } $className = ucfirst($type).'TypeReadMore'; $classPaths = YRM_CLASSES; global $YRM_TYPES; global $YRM_EXTENSIONS; if(!empty($YRM_TYPES[$type])) { $classPaths = $YRM_TYPES[$type]; } $extensionsInfo = YrmConfig::extensions(); if (in_array($type, $YRM_TYPES['customTypes'])) { $this->renderExtension($classPaths, $className); return; } if(in_array($type, $YRM_EXTENSIONS) && !empty($extensionsInfo[$type]) && empty($extensionsInfo[$type]['useMainOptions'])) { $this->renderExtension($classPaths, $className); return; } if(file_exists($classPaths.$className.'.php')) { require_once($classPaths.$className.'.php'); $typeObj = new $className(); $YrmRemoveOptions = $typeObj->getRemoveOptions(); } $dataObj = $this->readMoreDataObj; $dataObj->setId($id); $savedObj = $dataObj; $typeObj->mainSavedObj = $savedObj; $dataParams = $dataObj->getOptionsData(); $functions = $this->functionsObj; require_once(YRM_VIEWS."readMoreAddNewButton.php"); } private function renderExtension($classPaths, $className) { $id = @(int)$_GET['readMoreId']; $dataObj = $this->readMoreDataObj; $dataObj->setId($id); $savedObj = $dataObj; $dataParams = $dataObj->getOptionsData(); $functions = $this->functionsObj; if(file_exists($classPaths.$className.'.php')) { require_once($classPaths.$className.'.php'); $typeObj = new $className($dataObj); if($typeObj instanceof ReadMoreTypes) { if(!empty($_GET['readMoreId'])) { $typeObj->setId($_GET['readMoreId']); } $typeObj->prepareSavedValue(); $typeObj->functionsObj = $functions; $typeObj->renderView(); } } } }