2023-08-21 00:58:11 +02:00
|
|
|
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';
|
|
|
|
}
|
|
|
|
|
2023-08-21 17:07:31 +02:00
|
|
|
sub weight {
|
2023-08-21 14:10:18 +02:00
|
|
|
return 50;
|
|
|
|
}
|
|
|
|
|
|
|
|
sub max_alternative {
|
2023-08-21 17:07:31 +02:00
|
|
|
return 3;
|
2023-08-21 14:10:18 +02:00
|
|
|
}
|
|
|
|
|
2023-08-23 16:34:12 +02:00
|
|
|
sub default_alternative($self) {
|
|
|
|
return int($self->alternative * ($self->max_alternative + 1));
|
|
|
|
}
|
|
|
|
|
2023-08-21 00:58:11 +02:00
|
|
|
sub is_active ($self) {
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2023-08-21 14:10:18 +02:00
|
|
|
sub img ($self) {
|
2023-08-23 16:34:12 +02:00
|
|
|
if ( $self->default_alternative == 2 ) {
|
2023-08-21 17:07:31 +02:00
|
|
|
return '/img/anuncio-yo-te-lo-guiso-3.webp';
|
|
|
|
}
|
2023-08-23 16:34:12 +02:00
|
|
|
if ( $self->default_alternative == 1 ) {
|
2023-08-21 14:10:18 +02:00
|
|
|
return '/img/anuncio-yo-te-lo-guiso-2.webp';
|
|
|
|
}
|
|
|
|
return '/img/anuncio-yo-te-lo-guiso-1.webp';
|
2023-08-21 00:58:11 +02:00
|
|
|
}
|
|
|
|
|
2023-08-21 14:10:18 +02:00
|
|
|
sub text($self) {
|
2023-08-23 16:34:12 +02:00
|
|
|
if ( $self->default_alternative == 2 ) {
|
2023-08-22 23:39:35 +02:00
|
|
|
return '¡Comida distinta cada día! Ven a YoTeLoGuiso.';
|
2023-08-21 17:07:31 +02:00
|
|
|
}
|
2023-08-23 16:34:12 +02:00
|
|
|
if ( $self->default_alternative == 1 ) {
|
2023-08-21 14:10:18 +02:00
|
|
|
return
|
2023-09-02 05:57:35 +02:00
|
|
|
'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';
|
2023-08-21 14:10:18 +02:00
|
|
|
}
|
2023-08-22 23:39:35 +02:00
|
|
|
return 'Comida hecha como en tu casa, YoTeLoGuiso...';
|
2023-08-21 00:58:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
sub href {
|
2023-08-21 17:07:31 +02:00
|
|
|
return '/posts/yo-te-lo-guiso?come-from-ad=1';
|
2023-08-21 00:58:11 +02:00
|
|
|
}
|
|
|
|
1;
|