Issue #1595 - Add images and set template
|
@ -30,17 +30,27 @@ handle remainder => sub {
|
||||||
|
|
||||||
# Return Nothing if the User Provided Date is Invalid
|
# Return Nothing if the User Provided Date is Invalid
|
||||||
return unless $zodiacdate;
|
return unless $zodiacdate;
|
||||||
|
|
||||||
|
#Star Sign
|
||||||
|
my $zodiacsign = ucfirst(zodiac_date_name($zodiacdate));
|
||||||
|
|
||||||
# Return the Star Sign
|
# 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
|
# Input String
|
||||||
my $input = date_output_string($zodiacdate);
|
my $input = date_output_string($zodiacdate);
|
||||||
|
|
||||||
return $result, structured_answer => {
|
return $result, structured_answer => {
|
||||||
input => [html_enc($input)],
|
id => "zodiac",
|
||||||
operation => 'Zodiac',
|
name => "Zodiac",
|
||||||
result => html_enc(ucfirst(zodiac_date_name($zodiacdate)))
|
data => {
|
||||||
|
image => "/share/goodie/zodiac/" . lc($zodiacsign) . ".png",
|
||||||
|
title => $zodiacsign,
|
||||||
|
subtitle => $input
|
||||||
|
},
|
||||||
|
templates => {
|
||||||
|
group => "icon",
|
||||||
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
After Width: | Height: | Size: 496 B |
After Width: | Height: | Size: 689 B |
After Width: | Height: | Size: 511 B |
After Width: | Height: | Size: 746 B |
After Width: | Height: | Size: 497 B |
After Width: | Height: | Size: 408 B |
After Width: | Height: | Size: 568 B |
After Width: | Height: | Size: 544 B |
After Width: | Height: | Size: 708 B |
After Width: | Height: | Size: 504 B |
After Width: | Height: | Size: 478 B |