Ejemplo n.º 1
0
 function displayPrivacy()
 {
     global $osC_Language;
     $osC_Language->load('info');
     require_once 'includes/classes/articles.php';
     $article = toC_Articles::getEntry(INFORMATION_PRIVACY_NOTICE);
     $content = '<div style="margin: 10px">';
     $content .= '<h1>' . $osC_Language->get('info_privacy_heading') . '</h1>';
     $content .= $article['articles_description'];
     $content .= '</div>';
     echo $content;
 }
Ejemplo n.º 2
0
 function osC_Info_Info()
 {
     global $osC_Language, $osC_Database, $content, $breadcrumb, $osC_Services, $Qarticle;
     if (isset($_GET['articles_id']) && !empty($_GET['articles_id'])) {
         $Qarticle = toC_Articles::getEntry($_GET['articles_id']);
         if ($Qarticle->numberofRows() > 0) {
             $this->_page_title = $Qarticle->value('articles_name');
             if ($osC_Services->isStarted('breadcrumb')) {
                 $breadcrumb->add($osC_Language->get($Qarticle->value('articles_name')), osc_href_link(FILENAME_INFO, 'articles&articles_id=' . $_GET['articles_id']));
             }
         } else {
             $this->_page_title = $osC_Language->get('info_not_found_heading');
             $this->_page_contents = 'info_not_found.php';
         }
     } else {
         $this->_page_title = $osC_Language->get('info_not_found_heading');
         $this->_page_contents = 'info_not_found.php';
     }
 }
Ejemplo n.º 3
0
 function osC_Info_Info()
 {
     global $osC_Language, $osC_Database, $content, $breadcrumb, $osC_Services, $article;
     if (isset($_GET['articles_id']) && !empty($_GET['articles_id'])) {
         $article = toC_Articles::getEntry($_GET['articles_id']);
         if ($osC_Services->isStarted('breadcrumb')) {
             $breadcrumb->add($article['articles_categories_name'], osc_href_link(FILENAME_INFO, 'articles_categories&articles_categories_id=' . $article['articles_categories_id']));
             $breadcrumb->add($article['articles_name'], osc_href_link(FILENAME_INFO, 'articles&articles_id=' . $_GET['articles_id']));
         }
         $this->_page_title = $article['articles_name'];
         if (!empty($article['page_title'])) {
             $this->setMetaPageTitle($article['page_title']);
         }
         if (!empty($article['meta_keywords'])) {
             $this->addPageTags('keywords', $article['meta_keywords']);
         }
         if (!empty($article['meta_description'])) {
             $this->addPageTags('description', $article['meta_description']);
         }
     } else {
         $this->_page_title = $osC_Language->get('info_not_found_heading');
         $this->_page_contents = 'info_not_found.php';
     }
 }