Ejemplo n.º 1
0
<?php

/* @var $this yii\web\View */
/* @var $model common\models\PaginasCategorias */
use yii\helpers\Html;
use common\components\SEO;
use frontend\assets\AyudaAsset;
use common\extensions\cmsAB\menuLateral\MenuLateral;
AyudaAsset::register($this);
$seo = new SEO();
$meta_titulo = !empty($model->meta_titulo) ? $model->meta_titulo : $model->nombre;
$this->title = $meta_titulo . ' | ' . Yii::$app->params['app_dominio'];
$this->registerMetaTag(['name' => 'description', 'content' => $seo->descripcion($model->meta_descripcion)]);
$this->registerMetaTag(['name' => 'keywords', 'content' => $seo->keywords($model->meta_palabras)]);
$this->registerMetaTag(['name' => 'autor', 'content' => Yii::$app->params['autor']]);
$this->registerMetaTag(['name' => 'copyright', 'content' => Yii::$app->params['autor']]);
$this->params['breadcrumbs'][] = $this->title;
?>

<!-- header -->
<?php 
//echo $this->render('//layouts/partials/_header_menu', ['buscador'=>null]);
?>
<!-- fin header -->

<!-- contenido -->
<section class="blog-page-content">
    <div class="container">

        <div class="row">
            <div class="col-sm-12 col-lg-12 col-md-12">
Ejemplo n.º 2
0
<?php

/* @var $this \yii\web\View */
/* @var $content string */
use yii\helpers\Html;
use frontend\assets\WebAsset;
use frontend\assets\AyudaAsset;
use common\widgets\Alert;
use common\extensions\analytics\Analytics;
WebAsset::register($this);
AyudaAsset::register($this);
$baseUrl = AyudaAsset::register($this)->baseUrl;
$this->beginPage();
?>
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<!--[if lt IE 7 ]> <html lang="en" class="ie6">    <![endif]-->
<!--[if IE 7 ]>    <html lang="en" class="ie7">    <![endif]-->
<!--[if IE 8 ]>    <html lang="en" class="ie8">    <![endif]-->
<!--[if IE 9 ]>    <html lang="en" class="ie9">    <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html class="no-js" lang="<?php 
echo Yii::$app->language;
?>
">
<head>
    <meta charset="<?php 
echo Yii::$app->charset;
?>
">
    <meta http-equiv="x-ua-compatible" content="ie=edge">