Ejemplo n.º 1
0
 /**
  * Tab to Manage Snippets.
  *
  * @since   Post Snippets 2.0
  */
 private function tabSnippets()
 {
     $data = array();
     echo PostSnippets_View::render('admin_snippets', $data);
 }
Ejemplo n.º 2
0
 /**
  * Get the content for a help tab
  *
  * @param  string  $tab
  * @return string
  */
 private function content($tab)
 {
     return PostSnippets_View::render($tab, array('td' => PostSnippets::TEXT_DOMAIN));
 }
Ejemplo n.º 3
0
 /**
  * The advanced help tab.
  * 
  * @return  string  The help text
  */
 public function helpAdvanced()
 {
     return PostSnippets_View::render('help_advanced');
 }
Ejemplo n.º 4
0
 /**
  * Build jQuery UI Window.
  *
  * Creates the jQuery for Post Editor popup window, its snippet tabs and the
  * form fields to enter variables.
  *
  * @since       Post Snippets 1.7
  */
 public function addJqueryUiDialog()
 {
     $snippets = get_option(PostSnippets::OPTION_KEY, array());
     //Let other plugins change the snippets array
     $snippets = apply_filters('post_snippets_snippets_list', $snippets);
     $data = array('snippets' => $snippets);
     echo PostSnippets_View::render('jquery-ui-dialog', $data);
 }
Ejemplo n.º 5
0
 /**
  * Get the content for a help tab
  *
  * @param  string  $tab
  * @return string
  */
 private function content($tab)
 {
     return PostSnippets_View::render($tab);
 }