Removing other ads.

This commit is contained in:
Sergiotarxz 2023-09-06 19:50:31 +02:00
parent f544ee7360
commit 7c98fc0c27
3 changed files with 0 additions and 156 deletions

View File

@ -1,39 +0,0 @@
package BurguillosInfo::Ads::Afasode;
use v5.36.0;
use strict;
use warnings;
use utf8;
use feature 'signatures';
use Moo;
use parent 'BurguillosInfo::Ad';
sub id ($self) {
return 'afasode-loteria';
}
sub weight {
return 15;
}
sub is_active ($self) {
return 1;
}
sub img {
return '/img/afasode.svg';
}
sub href {
return '/posts/boletos-loteria-afasode-sevilla-2023';
}
sub text {
return
'54359 es el número de la lotería de Navidad de AFASODE, colabora con una buena causa y no pierdas la ilusión.';
}
1;

View File

@ -1,58 +0,0 @@
package BurguillosInfo::Ads::Cristobal;
use v5.36.0;
use strict;
use warnings;
use utf8;
use feature 'signatures';
use Moo;
use parent 'BurguillosInfo::Ad';
sub id ($self) {
return 'cristobal';
}
sub weight {
return 50;
}
sub max_alternative {
return 3;
}
sub default_alternative($self) {
return int($self->alternative * ($self->max_alternative + 1));
}
sub is_active ($self) {
return 1;
}
sub img ($self) {
if ( $self->default_alternative == 2 ) {
return '/img/anuncio-cristobal-1.webp'
}
if ( $self->default_alternative == 1 ) {
return '/img/anuncio-cristobal-2.webp'
}
return '/img/anuncio-cristobal-3.webp'
}
sub text($self) {
if ( $self->default_alternative == 2 ) {
return 'Disfruta de comidas abundantes en Bar Cristóbal.';
}
if ( $self->default_alternative == 1 ) {
return 'Bar Cristóbal, para chuparse los dedos.';
}
return '¿Te apetece una cervecita y buena comida? Ven a Bar Cristóbal.';
}
sub href {
return '/posts/bar-cristobal?come-from-ad=1';
}
1;

View File

@ -1,59 +0,0 @@
package BurguillosInfo::Ads::YoTeLoGuiso;
use v5.36.0;
use strict;
use warnings;
use utf8;
use feature 'signatures';
use Moo;
use parent 'BurguillosInfo::Ad';
sub id ($self) {
return 'yo-te-lo-guiso';
}
sub weight {
return 50;
}
sub max_alternative {
return 3;
}
sub default_alternative($self) {
return int($self->alternative * ($self->max_alternative + 1));
}
sub is_active ($self) {
return 1;
}
sub img ($self) {
if ( $self->default_alternative == 2 ) {
return '/img/anuncio-yo-te-lo-guiso-3.webp';
}
if ( $self->default_alternative == 1 ) {
return '/img/anuncio-yo-te-lo-guiso-2.webp';
}
return '/img/anuncio-yo-te-lo-guiso-1.webp';
}
sub text($self) {
if ( $self->default_alternative == 2 ) {
return '¡Comida distinta cada día! Ven a YoTeLoGuiso.';
}
if ( $self->default_alternative == 1 ) {
return
'Una comida como esta no la ves todos los días, disponible en Burguillos, entra y descubrelo. Y O T E L O G U I S O';
}
return 'Comida hecha como en tu casa, YoTeLoGuiso...';
}
sub href {
return '/posts/yo-te-lo-guiso?come-from-ad=1';
}
1;