Пример #1
0
 /**
  * Contextual help list filter
  *
  * @param string $list
  * @return string
  */
 function contextual_help_list($list)
 {
     w3_require_once(W3TC_INC_FUNCTIONS_DIR . '/other.php');
     $faq = w3_parse_faq();
     if (isset($faq['Usage'])) {
         $columns = array_chunk($faq['Usage'], ceil(count($faq['Usage']) / 3));
         ob_start();
         include W3TC_INC_OPTIONS_DIR . '/common/help.php';
         $help = ob_get_contents();
         ob_end_clean();
         $hook = get_plugin_page_hookname($this->_page, 'w3tc_dashboard');
         $list[$hook] = $help;
     }
     return $list;
 }
Пример #2
0
 /**
  * FAQ tab
  *
  * @return void
  */
 function view()
 {
     w3_require_once(W3TC_INC_FUNCTIONS_DIR . '/other.php');
     $faq = w3_parse_faq();
     include W3TC_INC_DIR . '/options/faq.php';
 }