/** * Set variables for blog display * */ function Init() { global $addonPathData; $this->addonPathData = $addonPathData; $this->indexFile = $this->addonPathData . '/index.php'; $this->GetBlogData(); SimpleBlogCommon::AddCSS(); }
/** * Set variables for blog display * */ function Init() { global $addonPathData; $this->addonPathData = $addonPathData; $this->indexFile = $this->addonPathData . '/index.php'; if (SimpleBlogCommon::$data) { return; } SimpleBlogCommon::$root_url = 'Special_Blog'; if (is_callable(array('common', 'SpecialHref'))) { SimpleBlogCommon::$root_url = common::SpecialHref('Special_Blog'); } $this->GetBlogData(); SimpleBlogCommon::AddCSS(); }
function SimpleBlogCategories() { global $addonPathData; SimpleBlogCommon::AddCSS(); $gadget_file = $addonPathData . '/gadget_categories.php'; $content = ''; if (file_exists($gadget_file)) { $content = file_get_contents($gadget_file); } //fix edit links if (strpos($content, 'simple_blog_gadget_label')) { new SimpleBlogCommon(); $content = file_get_contents($gadget_file); } if (empty($content)) { return; } echo '<div class="simple_blog_gadget"><div>'; echo '<span class="simple_blog_gadget_label">'; echo gpOutput::GetAddonText('Categories'); echo '</span>'; echo $content; echo '</div></div>'; }
function SimpleBlogCategories() { $this->load_blog_categories(); $this->Run(); SimpleBlogCommon::AddCSS(); }
function SimpleBlogArchives() { $this->load_blog_archives(); $this->Run(); SimpleBlogCommon::AddCSS(); }