60 lines
982 B
Perl
60 lines
982 B
Perl
package BurguillosInfo::Ads::Ermita;
|
|
|
|
use v5.36.0;
|
|
|
|
use strict;
|
|
use warnings;
|
|
use utf8;
|
|
|
|
use Moo;
|
|
|
|
use parent 'BurguillosInfo::Ad';
|
|
|
|
sub max_alternative {
|
|
return 1;
|
|
}
|
|
|
|
sub default_alternative ($self) {
|
|
return int( $self->alternative * ( $self->max_alternative + 1 ) );
|
|
}
|
|
|
|
sub weight {
|
|
return 50;
|
|
}
|
|
|
|
sub id ($self) {
|
|
return 'ermita';
|
|
}
|
|
|
|
sub is_active ($self) {
|
|
return 1;
|
|
}
|
|
|
|
sub seconds ($self) {
|
|
if ( $self->default_alternative == 1 ) {
|
|
return 5;
|
|
}
|
|
return 8;
|
|
}
|
|
|
|
sub img ($self) {
|
|
if ( $self->default_alternative == 0 ) {
|
|
return '/img/anuncio-ermita-1.webp';
|
|
}
|
|
return '/img/anuncio-ermita-2.webp';
|
|
}
|
|
|
|
sub href {
|
|
return '/posts/hamburgueseria-la-ermita';
|
|
}
|
|
|
|
sub text ($self) {
|
|
if ( $self->default_alternative == 1 ) {
|
|
return
|
|
'Prueba los helados Sandy en la Pizzería/Hamburguesería la Ermita';
|
|
}
|
|
return
|
|
'Increíbles hamburguesas y pizzas en Pizzería/Hamburguesería la Ermita';
|
|
}
|
|
1;
|