public function onnxtAdminMenu()
 {
     parent::onnxtAdminMenu();
     add_submenu_page(self::ParentMenuId, $this->getSubmenuPageTitle('Bootstrap CSS'), 'Bootstrap CSS', self::ParentPermissions, $this->getSubmenuId('bootstrap-css'), array(&$this, 'onDisplayPlugin'));
     $this->fixSubmenu();
 }
Esempio n. 2
0
 public static function updateOption($insKey, $insValue)
 {
     if (self::getOption($insKey) == $insValue) {
         return true;
     }
     $fResult = update_option(self::$OPTION_PREFIX . $insKey, $insValue);
     if (!$fResult) {
         self::$m_fUpdateSuccessTracker = false;
         self::$m_aFailedUpdateOptions[] = self::$OPTION_PREFIX . $insKey;
     }
 }
Esempio n. 3
0
 protected function deleteAllPluginDbOptions()
 {
     parent::deleteAllPluginDbOptions();
     if (!current_user_can('manage_options')) {
         return;
     }
     $oBoostrapLess = new HLT_BootstrapLess();
     $oBoostrapLess->processLessOptions('delete');
 }