コード例 #1
0
ファイル: Buscador.php プロジェクト: tresemece/monte
 public function __construct()
 {
     parent::__construct();
     $this->titulo = 'Noticias del Peru y del Mundo ,Ollanta Humala,Nadine Heredia,Perumin,Caso Oropeza,Humberto Martínez Morosini,Aylan Kurdi,Donald Trump  | RPP NOTICIAS';
     $this->epl_sec = 'Buscador';
     $SearchPatternBuilder = new SearchPatternBuilder(new \Rpp\Repositorio\Builder\Search\Pattern\Buscador());
     $request = new \Phalcon\Http\Request();
     $this->search_text = urlencode($request->getPost("texto"));
     if (!empty($_GET['q'])) {
         $this->search_text = urlencode($_GET['q']);
     }
     if (empty($this->search_text)) {
         $this->response = null;
     } else {
         $Pattern = $SearchPatternBuilder->addFilter(array('text' => $this->search_text))->build();
         $this->response = json_decode($Pattern->load())->response;
     }
     $this->description = 'RPP Noticias tiene las últimas noticias sobre política, futbol y farándula nacional e internacional. Ediciones regionales y de todo el Peru';
     $this->keywords = 'rppnoticias, noticias del peru y el mundo ,Ollanta Humala,Nadine Heredia,Perumin,Caso Oropeza,Humberto Martínez Morosini,Aylan Kurdi,Donald Trump';
     $this->titulo_social = 'RPP Noticias tiene las últimas noticias sobre política, futbol y farándula nacional e internacional. Ediciones regionales y de todo el Peru';
     $this->img_social = 'http://s.rpp-noticias.io/images/imgshare.jpg';
     $this->url_social = '';
     \Rpp\Services\Get\UrlTrack::$ns_mchannel = 'portada.buscador';
     $this->comscore = 'buscador.' . $this->search_text;
     $this->slug = 'buscar';
 }
コード例 #2
0
ファイル: Notapreview.php プロジェクト: tresemece/monte
 public function __construct()
 {
     parent::__construct();
     \Rpp\Services\Get\UrlTrack::$channel = 'articulo.preview';
     $this->epl = 'Portada';
     $this->sugeridas = array();
     $this->comscore = 'nota.preview';
 }
コード例 #3
0
ファイル: Rss.php プロジェクト: tresemece/monte
 public function __construct()
 {
     parent::__construct();
     $this->titulo = 'Noticias del Peru y del Mundo ,Ollanta Humala,Nadine Heredia,Perumin,Caso Oropeza,Humberto Martínez Morosini,Aylan Kurdi,Donald Trump  | RPP NOTICIAS';
     \Rpp\Services\Get\UrlTrack::$ns_mchannel = 'portada.rss';
     $this->comscore = 'rss';
     $this->description = 'RPP Noticias tiene las últimas noticias sobre política, futbol y farándula nacional e internacional. Ediciones regionales y de todo el Peru';
     $this->keywords = 'rppnoticias, noticias del peru y el mundo ,Ollanta Humala,Nadine Heredia,Perumin,Caso Oropeza,Humberto Martínez Morosini,Aylan Kurdi,Donald Trump';
     $this->titulo_social = 'RPP Noticias tiene las últimas noticias sobre política, futbol y farándula nacional e internacional. Ediciones regionales y de todo el Peru';
     $this->img_social = 'http://s.rpp-noticias.io/images/imgshare.jpg';
     $this->url_social = '';
 }
コード例 #4
0
ファイル: Relectorales.php プロジェクト: tresemece/monte
 public function __construct()
 {
     parent::__construct();
     $this->titulo = 'Elecciones Perú 2016: Noticias, Imágenes, Fotos, Vídeos, audios y más';
     \Rpp\Services\Get\UrlTrack::$ns_mchannel = 'elecciones-peru-2016.resultados-electorales';
     $this->description = 'Todo sobre Elecciones Perú 2016, noticias en imagenes, fotos, videos, audios, infografias, interactivos y resumenes de Elecciones Perú 2016';
     $this->keywords = 'Elecciones Perú 2016, noticias de Elecciones Perú 2016, imagenes de Elecciones Perú 2016, fotos de Elecciones Perú 2016, videos de Elecciones Perú 2016, infografias de Elecciones Perú 2016, interactivos de Elecciones Perú 2016, resumenes de Elecciones Perú 2016';
     $this->titulo_social = 'Elecciones Perú 2016: Noticias, Imágenes, Fotos, Vídeos, audios y más';
     $this->img_social = 'http://s.rpp-noticias.io/elecciones-peru-2016/img/resultado_electorales.jpg';
     $this->url_social = '';
     $this->load_comscore();
     $this->load_epl();
 }
コード例 #5
0
ファイル: Nota.php プロジェクト: tresemece/monte
 public function __construct()
 {
     parent::__construct();
     \Rpp\Services\Get\UrlTrack::$ns_mchannel = 'interna.preview';
     $this->sugeridas = array();
     $this->epl = 'Portada';
     $this->comscore = 'Nota_Preview';
     $this->description = 'Fútbol Peruano, Fútbol Internacional, WWE, UFC, Videojuegos, Estadísticas, Rusia 2018, Copa América, Descentralizado, Noticias Deportes, Videos, Fotos, Facebook, Twitter, la diez, la10.pe, ladiez.pe, la diez.pe, www.la10.pe. www.ladiez.pe, la 10.pe';
     $this->keywords = 'Fútbol Peruano, Fútbol Internacional, WWE, UFC, Videojuegos, Estadísticas, Rusia 2018, Copa América, Descentralizado, Noticias Deportes, Videos, Fotos, Facebook, Twitter, la diez, la10.pe, ladiez.pe, la diez.pe, www.la10.pe. www.ladiez.pe, la 10.pe';
     $this->titulo_social = 'Noticias y Resultados del Futbol, WWE, UFC y todos los deportes en el Perú y el Mundo en La10.pe';
     $this->img_social = '{{host}}/img/imglogo.jpg';
     $this->url_social = '';
     $this->js_app = 'slide|fotogaleria';
 }
コード例 #6
0
ファイル: Home.php プロジェクト: tresemece/monte
 public function __construct()
 {
     parent::__construct();
     $this->titulo = 'Resultados en Vivo y todas las Noticias del Fútbol y el Deporte | La 10.pe';
     $this->portada = 'home';
     $this->package = 'preview';
     \Rpp\Services\Get\UrlTrack::$ns_mchannel = 'portada.home.preview';
     $this->epl = '404';
     $this->comscore = 'portada.preview.paginaprincipal';
     $this->description = 'Fútbol Peruano, Fútbol Internacional, WWE, UFC, Videojuegos, Estadísticas, Rusia 2018, Copa América, Descentralizado, Noticias Deportes, Videos, Fotos, Facebook, Twitter, la diez, la10.pe, ladiez.pe, la diez.pe, www.la10.pe. www.ladiez.pe, la 10.pe';
     $this->keywords = 'Fútbol Peruano, Fútbol Internacional, WWE, UFC, Videojuegos, Estadísticas, Rusia 2018, Copa América, Descentralizado, Noticias Deportes, Videos, Fotos, Facebook, Twitter, la diez, la10.pe, ladiez.pe, la diez.pe, www.la10.pe. www.ladiez.pe, la 10.pe';
     $this->titulo_social = 'Noticias y Resultados del Futbol, WWE, UFC y todos los deportes en el Perú y el Mundo en La10.pe';
     $this->img_social = '{{host}}/img/imglogo.jpg';
     $this->url_social = '';
 }
コード例 #7
0
 public function __construct()
 {
     parent::__construct();
     $this->titulo = 'HORARIO DE PROGRAMACIÓN RPP TV  | RPP NOTICIAS';
     \Rpp\Services\Get\UrlTrack::$ns_mchannel = 'page.programacion.cabina';
     $this->comscore = 'page.programacion.cabina';
     $this->description = 'RPP Noticias tiene las últimas noticias sobre política, futbol y farándula nacional e internacional. Ediciones regionales y de todo el Peru';
     $this->keywords = 'rppnoticias, noticias del peru y el mundo ,Ollanta Humala,Nadine Heredia,Perumin,Caso Oropeza,Humberto Martínez Morosini,Aylan Kurdi,Donald Trump';
     $this->titulo_social = 'HORARIO DE PROGRAMACIÓN RPP TV  | RPP NOTICIAS';
     $this->img_social = 'http://s.rpp-noticias.io/images/imgshare.jpg';
     $this->url_social = '';
     $this->slug = 'programacion/tv';
     $this->preroll = "http://ads.us.e-planning.net/eb/4/17632/programacion_tv/Preroll?o=v&ma=1&vv=3";
     $this->tipon = 'cabina';
     $this->tipop = 'streamRPPRD';
     $this->urlcanonical = '/programacion/tv';
 }
コード例 #8
0
ファイル: Home.php プロジェクト: tresemece/monte
 public function __construct()
 {
     parent::__construct();
     $this->titulo = @\Rpp\Services\Get\Destacados::metadata('home')->titulo;
     $this->portada = 'home';
     $this->cabecera = 'home';
     \Rpp\Services\Get\UrlTrack::$ns_mchannel = 'portada.home';
     $this->description = @\Rpp\Services\Get\Destacados::metadata('home')->descripcion;
     $this->keywords = implode(",", @\Rpp\Services\Get\Destacados::metadata('home')->tags);
     $this->titulo_social = @\Rpp\Services\Get\Destacados::metadata('home')->titulo;
     $this->epl_position = '"Top","Peel","VerticalLeft","VerticalRight","Expandible","Middle1","Middle2","RightSmall","Right","Right1","Right2","Right3", "Auspiciado1","Auspiciado2","Auspiciado3","Intersticial" , "Interna1" , "Interna2" , "Interna3" , "Interna4" , "Interna5" , "Interna6" , "Interna7" , "Interna8" , "Interna9", "Interna10"';
     $this->img_social = 'http://s.rpp-noticias.io/images/imgshare.jpg';
     $this->url_social = 'http://rpp.pe';
     $this->js_app = 'slide|home';
     $this->fecha_hp = date("YmdHi");
     if ($fecha >= 201603192030 && $fecha < 201603192130) {
         $this->hora_planeta = 'body-hp';
     }
 }
コード例 #9
0
ファイル: Cabinaenvivo.php プロジェクト: tresemece/monte
 public function __construct()
 {
     parent::__construct();
     $this->titulo = 'Noticias del Peru y del Mundo ,Ollanta Humala,Nadine Heredia,Perumin,Caso Oropeza,Humberto Martínez Morosini,Aylan Kurdi,Donald Trump  | RPP NOTICIAS';
     \Rpp\Services\Get\UrlTrack::$ns_mchannel = 'page.envivo.cabina';
     $this->comscore = 'page.envivo.cabina';
     $this->description = 'RPP Noticias tiene las &uacute;ltimas noticias sobre pol&iacute;tica, futbol y far&aacute;ndula nacional e internacional. Ediciones regionales y de todo el Peru';
     $this->keywords = 'rppnoticias, noticias del peru y el mundo ,Ollanta Humala,Nadine Heredia,Perumin,Caso Oropeza,Humberto Martínez Morosini,Aylan Kurdi,Donald Trump';
     $this->titulo_social = 'RPP Noticias tiene las &uacute;ltimas noticias sobre pol&iacute;tica, futbol y far&aacute;ndula nacional e internacional. Ediciones regionales y de todo el Peru';
     $this->img_social = 'http://s.rpp-noticias.io/images/imgshare.jpg';
     $this->url_social = '';
     $this->slug = 'cabinaenvivo';
     $this->preroll = "https://pubads.g.doubleclick.net/gampad/ads?sz=400x300&iu=/1028310/RPP_Video&impl=s&gdfp_req=1&env=vp&output=xml_vast2&unviewed_position_start=1&url=[referrer_url]&description_url=[description_url]&correlator=[timestamp]";
     $this->tipon = 'video';
     $this->tipop = 'streamRPPWC';
     $this->file = "rtmp://rpplivefs.fplive.net/rpp02live-live/streamRPPWC";
     $this->player = \Rpp\Services\Get\Player::player('cabina');
     $this->urlcanonical = '/cabinaenvivo';
     $this->cover = "images/envivo.jpg";
 }
コード例 #10
0
ファイル: Seccion.php プロジェクト: tresemece/monte
 public function __construct($slug_seccion, $slug_categoria, $dispatcher)
 {
     parent::__construct();
     $this->slug_seccion = $slug_seccion;
     $this->slug_categoria = $slug_categoria;
     $package = false;
     if (empty($this->slug_categoria)) {
         \Rpp\Services\Get\UrlTrack::$ns_mchannel = 'seccion.' . $this->slug_seccion;
         $slug = $this->slug_seccion;
         $this->package = 'seccion';
         $this->load_epl_seccion();
         $this->load_comscore_seccion();
     } else {
         \Rpp\Services\Get\UrlTrack::$ns_mchannel = 'categoria.' . $this->slug_categoria;
         $slug = $this->slug_seccion . "/" . $this->slug_categoria;
         $this->package = 'categoria';
         $this->load_epl_categoria();
         $this->load_comscore_categoria();
     }
     $this->submenu = 'seccion';
     $this->slug = $slug;
     $this->portada = str_replace("/", ".", $this->slug);
     $this->keyseccion = str_replace("/", "-", $this->slug);
     $this->dispatcher = $dispatcher;
     $this->load_seccion_info();
     $this->parent_slug = str_replace("rpp/", "", $this->seccion_info->parent_slug);
     $this->titulo = @\Rpp\Services\Get\Destacados::metadata($this->parent_slug)->titulo;
     $this->description = @\Rpp\Services\Get\Destacados::metadata($this->parent_slug)->descripcion;
     $this->keywords = implode(",", @\Rpp\Services\Get\Destacados::metadata($this->parent_slug)->tags);
     $this->titulo_social = @\Rpp\Services\Get\Destacados::metadata($this->parent_slug)->titulo;
     $this->img_social = 'http://s.rpp-noticias.io/images/imgshare.jpg';
     $this->url_social = '';
     $this->ref = load_ref();
     $this->urlcanonical = '/' . $slug;
     if (!empty($this->slug_categoria)) {
         $this->titulo = $this->slug_categoria . ': Noticias, Imágenes, Fotos, Vídeos, audios y más';
         $this->description = 'Todo sobre ' . $this->slug_categoria . ', noticias en imagenes, fotos, videos, audios, infografias, interactivos y resumenes de ' . $this->slug_categoria;
         $this->keywords = $this->slug_categoria . ', noticias de ' . $this->slug_categoria . ', imagenes de ' . $this->slug_categoria . ', fotos de ' . $this->slug_categoria . ', videos de ' . $this->slug_categoria . ', infografias de ' . $this->slug_categoria . ', interactivos de ' . $slug . ', resumenes de ' . $slug;
         $this->titulo_social = $this->slug_categoria . ': Noticias, Imágenes, Fotos, Vídeos, audios y más';
     }
 }
コード例 #11
0
ファイル: Nota.php プロジェクト: tresemece/monte
 public function __construct($nid)
 {
     parent::__construct();
     $this->nid = (int) $nid;
     $this->titulo = \Rpp\Services\Get\Content::node($nid)->titulo_corto;
     $this->tipo = \Rpp\Services\Get\Content::node($nid)->tipo;
     $this->slug_seccion = explode("/", \Rpp\Services\Get\Content::node($nid)->categoria['slug']);
     $keywords = array();
     $this->keywords = array();
     $this->keywords_slug = array();
     foreach (\Rpp\Services\Get\Content::part($this->nid, 'keywords') as $key => $value) {
         $this->keywords[] = $value['nombre'];
         $this->keywords_slug[] = $value['slug'];
     }
     $this->tags = \Rpp\Services\Get\Content::part($this->nid, 'tags');
     $this->seccion = array();
     foreach (\Rpp\Services\Get\Content::part($this->nid, 'categorias') as $key => $value) {
         if (@$value['primary']) {
             $this->seccion = $value;
             break;
         }
     }
     $this->recomendados = array();
     $this->keywords = implode(",", $this->keywords);
     $this->brandeo = !empty(\Rpp\Services\Get\Content::part($this->nid, 'imagen_branding'));
     $this->especial = !empty(\Rpp\Services\Get\Content::part($this->nid, 'imagen_tag'));
     $this->load_comscore();
     $this->load_epl();
     $this->description = null;
     $this->sugeridas = array();
     \Rpp\Services\Get\UrlTrack::$ns_mchannel = 'articulo.' . $nid;
     $this->description = \Rpp\Services\Get\Content::part($this->nid, 'bajada');
     $this->titulo_social = htmlentities(\Rpp\Services\Get\Content::node($this->nid)->titulo_seo);
     $this->img_social = \Rpp\Services\Get\Content::node($this->nid)->imagen_portada['url'];
     $this->url_social = \Rpp\Services\Get\Content::nurl($this->nid);
     $this->fecha_social = \Rpp\Services\Get\Content::node($this->nid)->fecha_publicacion;
     $this->urlcanonical = $this->url_social;
     $this->id_mam = 1;
     $this->js_app = 'slide|fotogaleria';
     $this->htmlrel = 'rel="nofollow"';
 }
コード例 #12
0
ファイル: Seccion.php プロジェクト: tresemece/monte
 public function __construct($slug_seccion, $dispatcher)
 {
     parent::__construct();
     $this->slug_seccion = $slug_seccion;
     \Rpp\Services\Get\UrlTrack::$ns_mchannel = 'seccion.' . $this->slug_seccion;
     $slug = $this->slug_seccion;
     $this->package = 'seccion';
     $this->slug = $slug;
     $this->portada = str_replace("/", ".", $this->slug);
     $this->keyseccion = str_replace("/", "-", $this->slug);
     $this->dispatcher = $dispatcher;
     $this->load_seccion_info();
     $this->load_comscore();
     $this->load_epl();
     $this->titulo = 'Noticias del Peru y del Mundo ,Ollanta Humala,Nadine Heredia,Perumin,Caso Oropeza,Humberto Martínez Morosini,Aylan Kurdi,Donald Trump  | RPP NOTICIAS';
     $this->description = 'RPP Noticias tiene las &uacute;ltimas noticias sobre pol&iacute;tica, futbol y far&aacute;ndula nacional e internacional. Ediciones regionales y de todo el Peru';
     $this->keywords = 'rppnoticias, noticias del peru y el mundo ,Ollanta Humala,Nadine Heredia,Perumin,Caso Oropeza,Humberto Martínez Morosini,Aylan Kurdi,Donald Trump';
     $this->titulo_social = 'Noticias del Peru y del Mundo ,Ollanta Humala,Nadine Heredia,Perumin,Caso Oropeza,Humberto Martínez Morosini,Aylan Kurdi,Donald Trump  | RPP NOTICIAS';
     $this->img_social = 'http://www.rpp.com.pe/tmp/img/logo_rpp.png';
     $this->url_social = '';
     $this->ref = load_ref();
 }
コード例 #13
0
ファイル: Tag.php プロジェクト: tresemece/monte
 public function __construct($slug, $dispatcher)
 {
     parent::__construct();
     $this->slug = $slug;
     $this->seccion = $slug;
     $this->tema = $slug;
     $this->load_tag_info();
     $this->tag_personalidad = (int) (!empty(@$this->tag_info->personalidad));
     $this->package = 'tag';
     \Rpp\Services\Get\UrlTrack::$ns_mchannel = 'tema.' . $slug;
     $this->ref = load_ref();
     $this->load_comscore();
     $this->load_epl();
     $this->titulo = $this->tag_info->nombre . ': Noticias, Imágenes, Fotos, Vídeos, audios y más';
     $this->description = 'Todo sobre ' . $this->tag_info->nombre . ', noticias en imagenes, fotos, videos, audios, infografias, interactivos y resumenes de ' . $this->tag_info->nombre;
     $this->keywords = $this->tag_info->nombre . ', noticias de ' . $this->tag_info->nombre . ', imagenes de ' . $this->tag_info->nombre . ', fotos de ' . $this->tag_info->nombre . ', videos de ' . $this->tag_info->nombre . ', infografias de ' . $this->tag_info->nombre . ', interactivos de ' . $this->tag_info->nombre . ', resumenes de ' . $this->tag_info->nombre;
     $this->titulo_social = $this->tag_info->nombre . ': Noticias, Imágenes, Fotos, Vídeos, audios y más';
     $this->img_social = 'http://s.rpp-noticias.io/images/imgshare.jpg';
     $this->url_social = '';
     $this->tag_slug_portada = 'tag/' . $this->slug;
     $this->urlcanonical = '/tema-' . $this->slug;
 }
コード例 #14
0
ファイル: index.phtml.php プロジェクト: tresemece/monte
   <?php 
\Rpp\Services\Get\UrlTrack::$ns_source = 'la10';
?>
    <footer>
      <section class="logo-footer">
        <div class="wrapper">
          <figure class="logo"><img src="<?php 
echo $host;
?>
/svg/logo-la10.svg" alt="Logo La10"></figure>
        </div>
      </section>
      <section class="nav-footer">
        <div class="wrapper">
          <nav>
            <ul>
              <li>Visita también:</li>
              <li> <a href="http://www.capital.com.pe/<?php 
echo \Rpp\Services\Get\UrlTrack::add_params();
?>
">Radio Capital</a></li>
              <li> <a href="http://www.studio92.com/<?php 
echo \Rpp\Services\Get\UrlTrack::add_params();
?>
">Studio 92</a></li>
              <li> <a href="http://www.oxigeno.com.pe/<?php 
echo \Rpp\Services\Get\UrlTrack::add_params();
?>
">Radio Oxigeno</a></li>
              <li> <a href="http://www.radiocorazon.com.pe/<?php 
echo \Rpp\Services\Get\UrlTrack::add_params();