/** * @param $fShow * @return bool */ public function getIsShowMarketing($fShow) { if (!$fShow) { return $fShow; } $oWpFunctions = $this->loadWpFunctionsProcessor(); if (class_exists('Worpit_Plugin')) { if (method_exists('Worpit_Plugin', 'IsLinked')) { $fShow = !Worpit_Plugin::IsLinked(); } else { if ($oWpFunctions->getOption(Worpit_Plugin::$VariablePrefix . 'assigned') == 'Y' && $oWpFunctions->getOption(Worpit_Plugin::$VariablePrefix . 'assigned_to') != '') { $fShow = false; } } } if ($this->getInstallationDays() < 1) { $fShow = false; } return $fShow; }
/** * @return bool */ protected function isShowMarketing() { if (isset($this->fShowMarketing)) { return $this->fShowMarketing; } $this->fShowMarketing = true; if (class_exists('Worpit_Plugin')) { if (method_exists('Worpit_Plugin', 'IsLinked')) { $this->fShowMarketing = !Worpit_Plugin::IsLinked(); } else { if (function_exists('get_option') && get_option(Worpit_Plugin::$VariablePrefix . 'assigned') == 'Y' && get_option(Worpit_Plugin::$VariablePrefix . 'assigned_to') != '') { $this->fShowMarketing = false; } } } return $this->fShowMarketing; }