Issue #1595 - Add images and set template

master
Mailkov 2015-11-26 18:33:34 +00:00
parent 897a6173db
commit 1f17140b3e
12 changed files with 14 additions and 4 deletions

View File

@ -30,17 +30,27 @@ handle remainder => sub {
# Return Nothing if the User Provided Date is Invalid
return unless $zodiacdate;
#Star Sign
my $zodiacsign = ucfirst(zodiac_date_name($zodiacdate));
# Return the Star Sign
my $result="Zodiac for " . date_output_string($zodiacdate) . ": " . ucfirst(zodiac_date_name($zodiacdate));
my $result="Zodiac for " . date_output_string($zodiacdate) . ": " . $zodiacsign;
# Input String
my $input = date_output_string($zodiacdate);
return $result, structured_answer => {
input => [html_enc($input)],
operation => 'Zodiac',
result => html_enc(ucfirst(zodiac_date_name($zodiacdate)))
id => "zodiac",
name => "Zodiac",
data => {
image => "/share/goodie/zodiac/" . lc($zodiacsign) . ".png",
title => $zodiacsign,
subtitle => $input
},
templates => {
group => "icon",
}
};
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 689 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 511 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 746 B

BIN
share/goodie/zodiac/leo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 497 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 408 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 568 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 544 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 708 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 478 B