private function setTags() { $this->Tags['Title'] = $this->Data[0]; $this->Tags['Content'] = Check::Words(html_entity_decode($this->Data[1]), 25); $this->Tags['Link'] = $this->Data[2]; $this->Tags['Image'] = $this->Data[3]; $this->Tags = array_map('strip_tags', $this->Tags); $this->Tags = array_map('trim', $this->Tags); $this->Data = null; //NORMAL PAGE $this->seoTags = "<title>{$this->Tags['Title']}</title>" . "\n"; $this->seoTags .= "<meta name='description' content='{$this->Tags['Content']}'/>" . "\n"; $this->seoTags .= "<meta name='robots' content='index, fallow'/>" . "\n"; $this->seoTags .= "<link rel='canonical' href='{$this->Tags['Link']}'>" . "\n"; $this->seoTags .= "\n"; //FACEBOOK $this->seoTags .= "<meta property='og:site_name' content='" . SITENAME . "' />" . "\n"; $this->seoTags .= "<meta property='og:locale' content='pt-BR' />" . "\n"; $this->seoTags .= "<meta property='og:title' content='{$this->Tags['Title']}' />" . "\n"; $this->seoTags .= "<meta property='og:description' content='{$this->Tags['Content']}' />" . "\n"; $this->seoTags .= "<meta property='og:image' content='{$this->Tags['Image']}' />" . "\n"; $this->seoTags .= "<meta property='og:url' content='{$this->Tags['Link']}' />" . "\n"; $this->seoTags .= "<meta property='og:type' content='article' />" . "\n"; $this->seoTags .= "" . "\n"; //Item GROUP (TWITTER) $this->seoTags .= "<meta itemprop='name' content='{$this->Tags['Title']}' />" . "\n"; $this->seoTags .= "<meta itemprop='description' content='{$this->Tags['Content']}' />" . "\n"; $this->seoTags .= "<meta itemprop='url' content='{$this->Tags['Link']}' />" . "\n"; $this->Tags = null; }
<?php $cat = Check::CatByName($Categoria); $Offset = !empty($Offset) ? "OFFSET {$Offset}" : ""; $c = 0; $Read = new WsPosts(); $Read->setPost_category($cat); $Read->Execute()->Query("post_status = 1 AND (post_category = :cat OR post_cat_parent = :cat) ORDER BY {$Ordem} DESC LIMIT 3 {$Offset}", "cat={$cat}", true); $Offset = null; if (!$Read->Execute()->getResult()) { WSErro("Opps! Não temos artigos em destaques!", WS_INFOR); } else { $View = new View(); $new = $View->Load("noticias_m_clean"); foreach ($Read->Execute()->getResult() as $bar) { $bar->datetime = date('Y-m-d', strtotime($bar->post_date)); $bar->pubdate = date("d/m/Y H:i", strtotime($bar->post_date)); $bar->post_content = Check::Words($bar->post_content, 30); $bar->class = $c == 0 ? "item active" : "item"; if (!$bar->post_url) { $bar->post_url = "#HOME#/artigo/{$bar->post_name}"; } $View->Show((array) $bar, $new); $c++; } ?> <?php } ?> </div> </section>
$Pager->ExePager($getPage, 4); $readArt = new WsPosts(); $readArt->Execute()->Query("post_status = 1 AND (post_title LIKE '%' :link '%' OR post_content LIKE '%' :link '%') ORDER BY post_date DESC LIMIT :limit OFFSET :offset", "link={$search}&limit={$Pager->getLimit()}&offset={$Pager->getOffset()}", true); if (!$readArt->Execute()->getResult()) { $Pager->ReturnPage(); WSErro("Desculpe, sua pesquisa não retornou resultados. Você pode resulmir sua pesquisa ou tentar outros termos!", WS_INFOR); } else { $cc = 0; foreach ($readArt->Execute()->getResult() as $cat) { $cc++; $View = new View(); $tpl_cat = $View->Load('article_m'); $class = $cc % 3 == 0 ? ' class="right"' : null; echo "<span{$class}>"; $cat->post_title = Check::Words($cat->post_title, 8); $cat->post_content = Check::Words($cat->post_content, 20); $cat->datetime = date('Y-m-d', strtotime($cat->post_date)); $cat->pubdate = date('d/m/Y H:i', strtotime($cat->post_date)); $View->Show((array) $cat, $tpl_cat); echo "</span>"; } } $Pager->ExePaginator("ws_posts", "post_status = 1 AND (post_title LIKE '%' :link '%' OR post_content LIKE '%' :link '%')", "link={$search}"); echo '<nav class="paginator">'; echo '<h2>Mais resultados para NOME DA CATEGORIA</h2>'; echo $Pager->getPaginator(); echo '</nav>'; ?> </section>
<article <?php echo $status; ?> > <div class="img thumb_small"> <?php echo Check::Image('../uploads/' . $post_cover, $post_title, 120, 70); ?> </div> <h1><a target="_blank" href="../artigo/<?php echo $post_name; ?> " title="Ver Post"><?php echo Check::Words($post_title, 10); ?> </a></h1> <ul class="info post_actions"> <li><strong>Data:</strong> <?php echo date('d/m/Y H:i', strtotime($post_date)); ?> Hs</li> <li><a class="act_view" target="_blank" href="../artigo/<?php echo $post_name; ?> " title="Ver no site">Ver no site</a></li> <li><a class="act_edit" href="painel.php?exe=posts/update&postid=<?php echo $post_id; ?> " title="Editar">Editar</a></li>
/uploads/<?php echo $user_cover; ?> &w=500&h=500" class="center-block img-circle img-responsive"> <?php } else { ?> <img id="niver" src="http://pingendo.github.io/pingendo-bootstrap/assets/user_placeholder.png" class = "center-block img-circle img-responsive"> <?php } ?> <h3 class="text-center"><?php echo ucfirst(strtolower(Check::Words($user_name . ' ' . $user_lastname, 3))); ?> </h3> <p class="text-center"><?php echo Check::AreaById($area_id)->area_title; ?> </p> </div> <?php } ?> </div> </div> </div> </div>
?> <?php echo $status; ?> > <div class="img thumb_small"></div> <h1><a href="painel.php?exe=perfil/update&perfilId=<?php echo $perfil_id; ?> " title="Ver Post"><?php echo Check::Words($perfil_title, 5); ?> </a></h1> <p class="post_views"><strong>Descrição:</strong> <?php echo Check::Words($perfil_content, 5); ?> </p> <ul class="info post_actions"> <li><strong>Data:</strong> <?php echo date('d/m/Y H:i', strtotime($perfil_date)); ?> Hs</li> <li><a class="act_edit" href="painel.php?exe=perfil/update&perfilId=<?php echo $perfil_id; ?> " title="Editar">Editar</a></li> <?php if (!$perfil_status) { ?>
private function setTags() { $this->Tags['Title'] = $this->Data[0]; $this->Tags['Content'] = Check::Words(html_entity_decode($this->Data[1]), 25); $this->Tags['Link'] = $this->Data[2]; $this->Tags['Image'] = $this->Data[3]; $this->Tags = array_map('strip_tags', $this->Tags); $this->Tags = array_map('trim', $this->Tags); $this->Data = null; $this->seoTags .= "<!--[if lt IE 9]><script src='" . HOME . "/cdn/html5.js'></script><![endif]-->" . "\n"; $this->seoTags .= "<meta charset='UTF-8'>" . "\n"; //NORMAL PAGE $this->seoTags .= "<!--NORMAL PAGE-->\n"; $this->seoTags .= "<title>{$this->Tags['Title']}</title>" . "\n"; $this->seoTags .= "<meta name='description' content='{$this->Tags['Content']}'/>" . "\n"; $this->seoTags .= "<meta name='robots' content='index, fallow'/>" . "\n"; $this->seoTags .= "<link rel='canonical' href='{$this->Tags['Link']}'>" . "\n"; //ICONES $this->seoTags .= "<!--ICONES-->\n"; $this->seoTags .= "<link rel='shortcut icon' href='" . HOME . '/themes/' . THEME . "/images/icon/favicon.ico'/>" . "\n"; $this->seoTags .= "<link rel='apple-touch-icon' href='" . HOME . '/themes/' . THEME . "/images/icon/favicon.ico'/>" . "\n"; //FACEBOOK $this->seoTags .= "<!--FACEBOOK-->\n"; $this->seoTags .= "<meta property='og:site_name' content='" . SITENAME . "' />" . "\n"; $this->seoTags .= "<meta property='og:locale' content='pt-BR' />" . "\n"; $this->seoTags .= "<meta property='og:title' content='{$this->Tags['Title']}' />" . "\n"; $this->seoTags .= "<meta property='og:description' content='{$this->Tags['Content']}' />" . "\n"; $this->seoTags .= "<meta property='og:image' content='{$this->Tags['Image']}' />" . "\n"; $this->seoTags .= "<meta property='og:url' content='{$this->Tags['Link']}' />" . "\n"; $this->seoTags .= "<meta property='og:type' content='article' />" . "\n"; //Item GROUP (TWITTER) $this->seoTags .= "<!--TWITTER-->\n"; $this->seoTags .= "<meta itemprop='name' content='{$this->Tags['Title']}' />" . "\n"; $this->seoTags .= "<meta itemprop='description' content='{$this->Tags['Content']}' />" . "\n"; $this->seoTags .= "<meta itemprop='url' content='{$this->Tags['Link']}' />" . "\n"; $this->seoTags .= "<meta itemprop='image' content='{$this->Tags['Image']}' />" . "\n"; $this->Tags = null; }
<?php echo $status; ?> > <div class="img thumb_small"> <?php echo Check::Image('../uploads/' . $post_cover, $post_title, 120, 70); ?> </div> <h1><a target="_blank" href="../artigo/<?php echo $post_name; ?> " title="Ver Post"><?php echo Check::Words($post_title, 5); ?> </a></h1> <ul class="info post_actions"> <li><strong>Data:</strong> <?php echo date('d/m/Y H:i', strtotime($post_date)); ?> Hs</li> <li><a class="act_view" target="_blank" href="../artigo/<?php echo $post_name; ?> " title="Ver no site">Ver no site</a></li> <li><a class="act_edit" href="painel.php?exe=membros/update&postId=<?php echo $post_id; ?> " title="Editar">Editar</a></li>
if ($posti % 2 == 0) { echo ' class="right" '; } ?> <?php echo $status; ?> > <div class="img thumb_small"></div> <h1><?php echo Check::Words($area_title, 5); ?> </h1> <p class="post_views"><strong>Descrição:</strong> <?php echo Check::Words($area_content, 5); ?> </p> <ul class="info post_actions"> <li><strong>Data:</strong> <?php echo date('d/m/Y H:i', strtotime($area_date)); ?> Hs</li> <li><a class="act_edit" href="painel.php?exe=area_trabalho/update&areaId=<?php echo $area_id; ?> " title="Editar">Editar</a></li> <?php if (!$area_status) { ?>
<tr> <td><?php echo Check::Words($ex_descricao, 3); ?> </td> <td><?php echo $ex_minemonico; ?> </td> <td><?php echo $AdminExames->Setor($ws_setor_exec); ?> </td> <td><?php echo Check::Words($AdminExames->Acao($fe_acoes), 3); ?> </td> <td><?php echo date('d/m/y | H:i', strtotime($ex_data_abertura)) . "H"; ?> </td> <td><?php echo $ex_data_fechamento != "0000-00-00 00:00:00" && !empty($ws_users) ? date('d/m/y | H:i', strtotime($ex_data_fechamento)) . "H" : ""; ?> </td> <td><?php echo $AdminExames->Setor($ws_setor_soli); ?> </td> <td><?php
<th class="text-center">Setor</th> <th class="text-center">Status</th> <th class="text-center">Aberto em</th> <th class="text-center">Fechado em</th> <th class="text-center">O.S Paciente Teste</th> <th class="text-center">Assinado por</th> </tr> </thead> <tbody> <?php foreach ($FeExames->Execute()->getResult() as $exames) { extract((array) $exames); ?> <tr> <td><?php echo Check::Words($ex_descricao, 3); ?> </td> <td><?php echo $AdminExames->Setor($ws_setor_exec); ?> </td> <td><?php echo $ex_status ? "concluido" : "em processamento"; ?> </td> <td><?php echo date("d/m/Y H:i:s", strtotime($ex_data_abertura)); ?> </td> <td><?php
<h1 style="margin-top: 0;"><a href="<?php echo HOME . '/grupo/noticias'; ?> " title="<?php echo $Titulo; ?> da intranet" alt="<?php echo $Titulo; ?> "><?php echo $Titulo; ?> </a></h1> <?php $View = new View(); $noticias = $View->Load("noticias_p"); $cont = 0; foreach ($Read->Execute()->getResult() as $not) { $not->post_title = Check::Words($not->post_title, 3); $not->post_content = Check::Words($not->post_content, 12); if ($cont <= 1) { $View->Show((array) $not, $noticias); } $cont++; } ?> </article> </div> <?php }
private function setTags() { $this->Tags['Title'] = $this->Data[0]; $this->Tags['Content'] = Check::Words(html_entity_decode($this->Data[1]), 25); $this->Tags['Link'] = $this->Data[2]; $this->Tags['Image'] = $this->Data[3]; $this->Tags = array_map('strip_tags', $this->Tags); $this->Tags = array_map('trim', $this->Tags); $this->Data = null; $this->seoTags = "\n"; $this->seoTags .= "<!--[if lt IE 9]><script src='../../_cdn/html5.js'></script><![endif]-->" . "\n"; $this->seoTags .= "\n"; $this->seoTags .= "<meta charset='UTF-8'>" . "\n"; //NORMAL PAGE $this->seoTags .= "<title>{$this->Tags['Title']}</title>" . "\n"; $this->seoTags .= "<meta name='description' content='{$this->Tags['Content']}'/>" . "\n"; $this->seoTags .= "<meta name='robots' content='index, fallow'/>" . "\n"; $this->seoTags .= "<link rel='canonical' href='{$this->Tags['Link']}'>" . "\n"; $this->seoTags .= "\n"; //ICONES $this->seoTags .= "<link rel='shortcut icon' href='" . HOME . '/themes/' . THEME . "/images/icon.ico'/>" . "\n"; $this->seoTags .= "<link rel='apple-touch-icon' href='" . HOME . '/themes/' . THEME . "/images/icon.ico'/>" . "\n"; $this->seoTags .= "\n"; //FACEBOOK $this->seoTags .= "<meta property='og:site_name' content='" . SITENAME . "' />" . "\n"; $this->seoTags .= "<meta property='og:locale' content='pt-BR' />" . "\n"; $this->seoTags .= "<meta property='og:title' content='{$this->Tags['Title']}' />" . "\n"; $this->seoTags .= "<meta property='og:description' content='{$this->Tags['Content']}' />" . "\n"; $this->seoTags .= "<meta property='og:image' content='{$this->Tags['Image']}' />" . "\n"; $this->seoTags .= "<meta property='og:url' content='{$this->Tags['Link']}' />" . "\n"; $this->seoTags .= "<meta property='og:type' content='article' />" . "\n"; $this->seoTags .= "" . "\n"; //Item GROUP (TWITTER) $this->seoTags .= "<meta itemprop='name' content='{$this->Tags['Title']}' />" . "\n"; $this->seoTags .= "<meta itemprop='description' content='{$this->Tags['Content']}' />" . "\n"; $this->seoTags .= "<meta itemprop='url' content='{$this->Tags['Link']}' />" . "\n"; $this->seoTags .= "<meta itemprop='image' content='{$this->Tags['Image']}' />" . "\n"; $this->seoTags .= "\n"; //SCRIPTS $this->seoTags .= "<script src=\"" . HOME . "/_cdn/jquery.js\"></script>" . "\n"; $this->seoTags .= "<script src=\"" . HOME . "/_cdn/bootstrap.js\"></script>" . "\n"; $this->seoTags .= "<script src=\"" . HOME . "/_cdn/jcycle.js\"></script>" . "\n"; $this->seoTags .= "<script src=\"" . HOME . "/_cdn/jmask.js\"></script>" . "\n"; $this->seoTags .= "<script src=\"" . HOME . "/_cdn/combo.js\"></script>" . "\n"; $this->seoTags .= "<script src=\"" . HOME . "/_cdn/menus.js\"></script>" . "\n"; $this->seoTags .= "<script src=\"" . HOME . "/_cdn/shadowbox/shadowbox.js\"></script>" . "\n"; $this->seoTags .= "<script src=\"" . HOME . "/_cdn/_plugins.conf.js\"></script>" . "\n"; $this->seoTags .= "<script src=\"" . HOME . "/_cdn/_scripts.conf.js\"></script>" . "\n"; $this->seoTags .= "<link href='" . HOME . "/_cdn/shadowbox/shadowbox.css' rel='stylesheet' type='text/css' >" . "\n"; $this->seoTags .= "\n"; //BOOTSTRAP CSS $thema = HOME . '/themes/' . THEME; $this->seoTags .= "<link href='{$thema}/css/style.css' rel='stylesheet' type='text/css' >" . "\n"; $this->seoTags .= "<link href='{$thema}/css/bootstrap.css' rel='stylesheet' type='text/css' >" . "\n"; //DEFAULT CSS Alterações importantes de ajustes $this->seoTags .= "<link href='{$thema}/css/default.css' rel='stylesheet' type='text/css' >" . "\n"; $this->seoTags .= "<link href='{$thema}/css/estilo.css' rel='stylesheet' type='text/css' >" . "\n"; $this->seoTags .= "<link href='{$thema}/css/reset.css' rel='stylesheet' type='text/css' >" . "\n"; //API GOOGLE $this->seoTags .= "<link href='http://fonts.googleapis.com/css?family=Baumans' rel='stylesheet' type='text/css'>"; $this->Tags = null; }
$Pager = new Pager(HOME . '/grupo/' . $category_name . '/'); $Pager->ExePager($getPage, 12); $Read = new WsPosts(); $Read->Execute()->Query("post_status = 1 AND (post_category = :cat OR post_cat_parent = :cat) ORDER BY post_views DESC LIMIT :limit OFFSET :offset", "cat={$category_id}&limit={$Pager->getLimit()}&offset={$Pager->getOffset()}", true); if (!$Read->Execute()->getResult()) { $Pager->ReturnPage(); WSErro("Desculpe, ainda não temos artigos cadastrado nesta categoria!", WS_INFOR); } else { ?> <div class="row"> <?php $View = new View(); $grupo_p = $View->Load('grupo_p'); $i = 0; foreach ($Read->Execute()->getResult() as $item) { $item->post_title = Check::Words($item->post_title, 4); $item->datetime = date('Y-m-d', strtotime($item->post_date)); $item->pubdate = date("d/m/Y H:i", strtotime($item->post_date)); $View->Show((array) $item, $grupo_p); $i++; } } ?> </div> </div> <?php $Pager->ExePaginator("ws_posts", "post_status = 1 AND (post_category = :cat OR post_cat_parent = :cat) ORDER BY post_views", "cat={$category_id}"); echo $Pager->getPaginator(); ?> </div>
$new->post_title = Check::Words($new->post_title, 9); $new->post_content = Check::Words($new->post_content, 20); $new->datetime = date('Y-m-d', strtotime($new->post_date)); $new->pubdate = date('d/m/Y H:i', strtotime($new->post_date)); $View->Show((array) $new, $tpl_m); } } ?> <div class="last_news"> <?php if ($cat) { $post->Busca("cat={$cat}&limit=3&offset=1"); if (!$post->getResult()) { WSErro("Desculpe, não temos mais noticias para serem exibidas aqui. Favor, volte depois!", WS_INFOR); } else { foreach ($post->getResult() as $news) { $news->post_title = Check::Words($news->post_title, 12); $news->datetime = date('Y-m-d', strtotime($news->post_date)); $news->pubdate = date('d/m/Y H:i', strtotime($news->post_date)); $View->Show((array) $news, $tpl_p); } } } ?> </div> </section> </section><!-- categorias --> <div class="clear"></div> </div><!--/ site container -->
extract((array) $setor); $status = !$setor_status ? 'style="background: #fffed8"' : ''; ?> <article<?php if ($posti % 2 == 0) { echo ' class="right" '; } ?> <?php echo $status; ?> > <div class="img thumb_small"></div> <h1><?php echo Check::Words($setor_content, 5); ?> </h1> <ul class="info post_actions"> <li><strong>Data:</strong> <?php echo date('d/m/Y H:i', strtotime($setor_date)); ?> Hs</li> <p class="post_tipo"><strong>Tipo:</strong> <?php echo $setor_category; ?> </p> <li><a class="act_edit" href="painel.php?exe=setor/update&setId=<?php echo $setor_id; ?> " title="Editar">Editar</a></li>
<?php $readMode = new Controle(); $readMode->setTable("ws_posts"); $readMode->Query("post_status = 1 AND post_id != :post_id AND #post_category# ORDER BY rand() LIMIT 2", "post_id={$post_id}&post_category={$post_category}"); if ($readMode->getResult()) { $View = new View(); $tpl_m = $View->Load('article_m'); ?> <footer> <nav> <h3>Veja também:</h3> <?php foreach ($readMode->getResult() as $more) { $more->datetime = date('Y-m-d', strtotime($more->post_date)); $more->pubdate = date('d/m/Y H:i', strtotime($more->post_date)); $more->post_content = Check::Words($more->post_content, 20); $View->Show((array) $more, $tpl_m); } ?> </nav> <div class="clear"></div> </footer> <?php } ?> <!--Comentários aqui--> </div><!--art content--> <!--SIDEBAR-->
} ?> </article><!-- primeira linha --> <div class="col-md-12 divbloco bg-color-azul"></div> <article class="row"><!-- segunda linha --> <?php $offset = Check::getOffset(2, 5, $All); $Read->Execute()->Busca("cat={$cat}&limit=2&offset={$offset}"); if (!$Read->Execute()->getResult()) { WSErro("Desculpe, não temos posts no momento, favor volte mais tarde!", WS_INFOR); } else { foreach ($Read->Execute()->getResult() as $row) { $row->post_title = Check::Words($row->post_title, 2); $row->post_content = Check::Words($row->post_content, 5); $row->datetime = date('Y-m-d', strtotime($row->post_date)); $row->pubdate = date("d/m/Y H:i", strtotime($row->post_date)); $View->Show((array) $row, $tpl_p); } } ?> </article><!-- segunda linha --> </section> </div> <!--posts--> <!-- cartilhas --> <div class="col-md-12"> <section class="nomargin section">
extract((array) $tipo); $status = !$type_status ? 'style="background: #fffed8"' : ''; ?> <article<?php if ($posti % 2 == 0) { echo ' class="right" '; } ?> <?php echo $status; ?> > <div class="img thumb_small"></div> <h1><?php echo Check::Words($type_content, 5); ?> </h1> <ul class="info post_actions"> <li><strong>Tipo:</strong> Tipos de setores</li> <li><a class="act_edit" href="painel.php?exe=setor_type/update&typeId=<?php echo $type_id; ?> " title="Editar">Editar</a></li> <?php if (!$type_status) { ?> <li><a class="act_ative" href="painel.php?exe=setor_type/index&tipo=<?php echo $type_id; ?>
$Pager->ExePaginator("ws_posts", "post_status = 1 AND post_type = 'membros' AND (post_category = :cat OR post_cat_parent = :cat)", "cat={$category_id}", true); $Read = new WsPosts(); $Read->Execute()->Query("post_status = 1 AND post_type = 'membros' AND (post_category = :cat OR post_cat_parent = :cat) ORDER BY post_date DESC LIMIT :limit OFFSET :offset", "cat={$category_id}&limit={$Pager->getLimit()}&offset={$Pager->getOffset()}", true); if (!$Read->Execute()->getResult()) { $Pager->ReturnPage(); WSErro("Desculpe, a categoria <b>{$category_title}</b> ainda não tem artigos publicados, favor volte mais tarde!", WS_INFOR); } else { $View = new View(); $membro = $View->Load("article_membro"); $i = 0; echo "\n<!--membros-->\n"; echo "\n<div class='row'>\n"; foreach ($Read->Execute()->getResult() as $item) { if ($i % 2 == 0 && $i != 0) { echo "</div>\n"; echo "<div class='row'>\n"; } $item->post_title = Check::Words($item->post_title, 4); $item->post_content = Check::Words($item->post_content, 10); $item->datetime = date('Y-m-d', strtotime($item->post_date)); $item->pubdate = date("d/m/Y H:i", strtotime($item->post_date)); $View->Show((array) $item, $membro); $i++; } echo "</div>\n"; echo "<!--membros end-->\n\n"; } echo $Pager->getPaginator(); ?> </div> </section>