2023-08-21 20:56:32 +02:00
|
|
|
package BurguillosInfo::Ads::Anunciate;
|
|
|
|
|
|
|
|
use v5.36.0;
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
use utf8;
|
|
|
|
|
|
|
|
use feature 'signatures';
|
|
|
|
|
|
|
|
use Moo;
|
|
|
|
|
|
|
|
use parent 'BurguillosInfo::Ad';
|
|
|
|
|
2023-08-23 16:34:12 +02:00
|
|
|
|
|
|
|
sub max_alternative {
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
sub default_alternative($self) {
|
|
|
|
return int($self->alternative * ($self->max_alternative + 1));
|
|
|
|
}
|
|
|
|
|
2023-08-21 20:56:32 +02:00
|
|
|
sub weight {
|
|
|
|
return 10;
|
|
|
|
}
|
|
|
|
|
|
|
|
sub id ($self) {
|
|
|
|
return 'anunciate';
|
|
|
|
}
|
|
|
|
|
|
|
|
sub is_active ($self) {
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2023-08-23 16:34:12 +02:00
|
|
|
sub seconds($self) {
|
|
|
|
if ($self->default_alternative == 1) {
|
|
|
|
return 5;
|
|
|
|
}
|
2023-08-22 16:54:27 +02:00
|
|
|
return 8;
|
|
|
|
}
|
|
|
|
|
2023-08-21 20:56:32 +02:00
|
|
|
sub img {
|
2023-08-22 16:54:27 +02:00
|
|
|
return '/img/burguillos-new-logo.svg';
|
2023-08-21 20:56:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
sub href {
|
|
|
|
return 'mailto:contact@owlcode.tech?subject=Quiero%20anunciarme%20en%20Burguillos.info';
|
|
|
|
}
|
|
|
|
|
2023-08-23 16:34:12 +02:00
|
|
|
sub text($self) {
|
|
|
|
if ($self->default_alternative == 1) {
|
|
|
|
return '¡Anunciate en Burguillos.info! Precios a partir de 18.15€, pulsa aquí y escribenos.';
|
|
|
|
}
|
2023-08-21 20:56:32 +02:00
|
|
|
return
|
|
|
|
'Pulsando este anuncio puedes enviarnos un correo para anunciarte en este sitio. ¡Si me ves funciona!';
|
|
|
|
}
|
|
|
|
1;
|