Exemplo n.º 1
0
 /**
  * Override this to change the message for the particular plugin upgrade.
  */
 protected function getAdminNoticeHtml_PluginUpgradeAvailable()
 {
     $oWp = $this->loadWpFunctions();
     $sUpgradeLink = $oWp->getPluginUpgradeLink($this->getPluginBaseFile());
     $sNotice = '<p>There is an update available for the %s plugin. <a href="%s">Click to update immediately</a>.</p>';
     $sNotice = sprintf($sNotice, $this->oPluginVo->getHumanName(), $sUpgradeLink);
     return $sNotice;
 }
 protected function getBaseDisplayData()
 {
     return array('var_prefix' => $this->oPluginVo->getOptionStoragePrefix(), 'sPluginName' => $this->oPluginVo->getHumanName(), 'sFeatureName' => $this->getMainFeatureName(), 'fShowAds' => $this->getIsShowMarketing(), 'nonce_field' => $this->oPluginVo->getFullPluginPrefix(), 'sFeatureSlug' => $this->doPluginPrefix($this->sFeatureSlug), 'form_action' => 'admin.php?page=' . $this->doPluginPrefix($this->sFeatureSlug), 'nOptionsPerRow' => 1, 'aAllOptions' => $this->getOptions(), 'all_options_input' => $this->collateAllFormInputsForAllOptions());
 }