コード例 #1
0
ファイル: Destacados.php プロジェクト: tresemece/monte
 public function load()
 {
     \Rpp\Services\Get\Destacados::$destacados = null;
     \Rpp\Services\Get\Destacados::$metadata = null;
     \Rpp\Services\Get\Destacados::$pattern_builder = null;
     print_r(\Rpp\Services\Get\Destacados::portada($this->slug));
     print_r(\Rpp\Services\Get\Destacados::metadata($this->slug));
     var_dump("hola.............");
     $this->viewCache->delete("portada.bodyopen." . $this->slug);
     $this->viewCache->delete("portada.bodycentral." . $this->slug);
     $this->viewCache->delete("portada.bodyclose." . $this->slug);
     ###remaquetado##########
     $this->viewCache->delete("portada.body.open." . $this->slug);
     $this->viewCache->delete("portada.body.central." . $this->slug);
     $this->viewCache->delete("portada.body.close." . $this->slug);
     var_dump("terminate.............");
 }
コード例 #2
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';
     }
 }
コード例 #3
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';
     }
 }
コード例 #4
0
 public function tryAction($slug = 'home')
 {
     var_dump(@\Rpp\Services\Get\Destacados::portada('politica')->destacadas);
 }
コード例 #5
0
ファイル: Home.php プロジェクト: tresemece/monte
 public function load_destacado($slug, $obj)
 {
     \Rpp\Services\Get\Destacados::set_portada($slug, $obj);
 }