Adding add chalet.

This commit is contained in:
Sergiotarxz 2024-05-10 11:07:08 +02:00
parent 5487e58311
commit ba6f7b418e
4 changed files with 52 additions and 2 deletions

View File

@ -33,7 +33,7 @@ sub default_alternative($self) {
}
sub is_active ($self) {
return 1;
return 0;
}
sub img ($self) {

View File

@ -0,0 +1,50 @@
package BurguillosInfo::Ads::ChaletEnVentaCalleHinojo;
use v5.36.0;
use strict;
use warnings;
use utf8;
use feature 'signatures';
use Moo;
use parent 'BurguillosInfo::Ad';
sub id ($self) {
return 'chalet-en-venta-calle-hinojo';
}
sub weight {
return 50;
}
sub max_alternative {
return 1;
}
sub seconds($self) {
return 15;
}
sub default_alternative($self) {
return int($self->alternative * ($self->max_alternative + 1));
}
sub is_active ($self) {
return 1;
}
sub img ($self) {
return '/img/chalet-calle-hinojo.webp';
}
sub text($self) {
return 'Chalet pareado en venta en calle Hinojo por 160 000€';
}
sub href {
return 'https://www.idealista.com/inmueble/104802645/';
}
1;

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

View File

@ -106,7 +106,7 @@
%= include 'ads/_carousel'
</div>
</div>
<script src="/dist/converse.min.js"></script>
<script src="/dist/converse.js"></script>
<link rel="stylesheet" href="/dist/converse.min.css"/>
<script>
converse.initialize({