Adding add for la Ermita.
This commit is contained in:
parent
e3b6132a5d
commit
f544ee7360
59
lib/BurguillosInfo/Ads/Ermita.pm
Normal file
59
lib/BurguillosInfo/Ads/Ermita.pm
Normal file
@ -0,0 +1,59 @@
|
||||
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;
|
BIN
public/img/anuncio-ermita-1.webp
Normal file
BIN
public/img/anuncio-ermita-1.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 60 KiB |
BIN
public/img/anuncio-ermita-2.webp
Normal file
BIN
public/img/anuncio-ermita-2.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 69 KiB |
Loading…
Reference in New Issue
Block a user