/**
  * Creates the page used for showing all embedded videos.
  *
  * @access private
  * @since 0.4
  */
 private function _create_playlist_page()
 {
     ClassBlogs_NXTClass::switch_to_blog(ClassBlogs_Settings::get_root_blog_id());
     $current_page = $this->get_option('playlist_page_id');
     $page_id = ClassBlogs_PluginPage::create_plugin_page(self::_PLAYLIST_PAGE_DEFAULT_NAME, sprintf('[%s]', self::_PLAYLIST_SHORTCODE), $current_page);
     if ($page_id != $current_page) {
         $this->update_option('playlist_page_id', $page_id);
     }
     ClassBlogs_NXTClass::restore_current_blog();
 }
Пример #2
0
 /**
  * Creates a page that shows all uses of a given tag across the site.
  *
  * @access private
  * @since 0.4
  */
 public function _create_tag_list_page()
 {
     ClassBlogs_NXTClass::switch_to_blog(ClassBlogs_Settings::get_root_blog_id());
     $current_page = $this->get_option('tag_page_id');
     $page_id = ClassBlogs_PluginPage::create_plugin_page(self::_TAG_PAGE_DEFAULT_NAME, $current_page);
     if ($page_id != $current_page) {
         $this->update_option('tag_page_id', $page_id);
     }
     ClassBlogs_NXTClass::restore_current_blog();
 }