Beispiel #1
0
 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';
 }
Beispiel #2
0
 public function __construct($nid, $position)
 {
     parent::__construct();
     $this->nid = (int) $nid;
     $this->position = $position;
     $this->slug_seccion = explode("/", \Rpp\Services\Get\Content::node($nid)->categoria['slug']);
     $this->brandeo = !empty(\Rpp\Services\Get\Content::part($this->nid, 'imagen_branding'));
     $seccion_epl = str_replace('-', '_', $this->slug_seccion[1]);
     $categoria_epl = str_replace('-', '_', @$this->slug_seccion[2]);
     $eplsec = array($seccion_epl, 'Tag');
     $this->epl_sec = $eplsec[$this->brandeo];
     $eplss['nota'] = array($categoria_epl . '_Nota', 'Auspiciado_Nota');
     $eplss['galeria'] = array($categoria_epl . '_Galeria', 'Auspiciado_Galeria');
     if (\Rpp\Services\Get\Content::node($this->nid)->tipo == 'galeria') {
         $this->epl_ss = 'ss:"' . $eplss['galeria'][$this->brandeo] . '",';
         $this->slug_categoria = $eplss['galeria'][$this->brandeo];
     } else {
         $this->epl_ss = 'ss:"' . $eplss['nota'][$this->brandeo] . '",';
         $this->slug_categoria = $eplss['nota'][$this->brandeo];
     }
     $this->preroll = "";
     $this->epl_position = '"Interna1" , "Interna2" , "Interna3" , "Interna4" , "Interna5" , "Interna6" , "Interna7" , "Interna8" , "Interna9" , "Interna10"';
     $this->epl_kvs = "";
     $this->scri_bgbanner = '1';
 }
Beispiel #3
0
 public function __construct()
 {
     parent::__construct();
     \Rpp\Services\Get\UrlTrack::$channel = 'articulo.preview';
     $this->epl = 'Portada';
     $this->sugeridas = array();
     $this->comscore = 'nota.preview';
 }
Beispiel #4
0
 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 = '';
 }
Beispiel #5
0
 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();
 }
Beispiel #6
0
 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';
 }
Beispiel #7
0
 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 = '';
 }
Beispiel #8
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';
 }
Beispiel #9
0
 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';
     }
 }
Beispiel #10
0
 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";
 }
Beispiel #11
0
 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';
     }
 }
Beispiel #12
0
 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"';
 }
Beispiel #13
0
 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();
 }
Beispiel #14
0
 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;
 }