Example #1
0
<?php

$artigoUrl = mysql_real_escape_string($url[1]);
$readArtigo = read('up_posts', "WHERE url = '{$artigoUrl}'");
if (!$readArtigo) {
    header('Location: ' . BASE . '/404');
} else {
    foreach ($readArtigo as $art) {
    }
}
setViews($art['id']);
?>

<title><?php 
echo $art['titulo'] . '|' . SITENAME;
?>
</title>
<meta name="title" content="<?php 
echo $art['titulo'] . '|' . SITENAME;
?>
" />
<meta name="description" content="<?php 
echo lmWord($art['content'], 100);
?>
" />
<meta name="keywords" content="<?php 
echo $art['tags'];
?>
" />
<meta name="author" content="Studio UpInside" />
<meta name="url" content="<?php 
Example #2
0
    }
}
?>
	<section class="<?php 
echo 'none' == $webnus_options->webnus_blog_singlepost_sidebar() ? 'col-md-12' : 'col-md-9 cntt-w';
?>
">
		<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
      <article class="blog-single-post">
	  
		<?php 
        setViews(get_the_ID());
        global $webnus_options;
        $post_format = get_post_format(get_the_ID());
        $content = get_the_content();
        ?>
		<div class="post-trait-w"> <?php 
        if (!isset($background)) {
            ?>
		 <h1><?php 
            the_title();
            ?>
</h1> <?php 
        }
        if ($webnus_options->webnus_blog_sinlge_featuredimage_enable() && !isset($background)) {
            global $featured_video;
            $meta_video = $featured_video->the_meta();