Adding Ad for Cafe Bar Beluche.
This commit is contained in:
parent
3527168fb3
commit
483ca20d86
52
lib/BurguillosInfo/Ads/Beluche.pm
Normal file
52
lib/BurguillosInfo/Ads/Beluche.pm
Normal file
@ -0,0 +1,52 @@
|
||||
package BurguillosInfo::Ads::Beluche;
|
||||
|
||||
use v5.36.0;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use utf8;
|
||||
|
||||
use feature 'signatures';
|
||||
|
||||
use Moo;
|
||||
|
||||
use parent 'BurguillosInfo::Ad';
|
||||
|
||||
sub id ($self) {
|
||||
return 'beluche';
|
||||
}
|
||||
|
||||
sub weight {
|
||||
return 50;
|
||||
}
|
||||
|
||||
sub max_alternative {
|
||||
return 2;
|
||||
}
|
||||
|
||||
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 == 1 ) {
|
||||
return '/img/anuncio-beluche-2.webp'
|
||||
}
|
||||
return '/img/anuncio-beluche-1.webp'
|
||||
}
|
||||
|
||||
sub text($self) {
|
||||
if ( $self->default_alternative == 1 ) {
|
||||
return 'Un ambiente inmejorable en el local y un servicio de reparto a domicilio excelente. Tu comida en Café Bar Beluche.';
|
||||
}
|
||||
return 'Increíbles platos en Café Bar Beluche, ve y descubreló.';
|
||||
}
|
||||
|
||||
sub href {
|
||||
return '/posts/cafe-bar-beluche?come-from-ad=1';
|
||||
}
|
||||
1;
|
BIN
public/img/anuncio-beluche-1.webp
Normal file
BIN
public/img/anuncio-beluche-1.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 343 KiB |
BIN
public/img/anuncio-beluche-2.webp
Normal file
BIN
public/img/anuncio-beluche-2.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 452 KiB |
Loading…
Reference in New Issue
Block a user