|
|
|
|
@ -8,7 +8,7 @@ $title = $plugin->get_block_title(); |
|
|
|
|
$title = $title ? "<h4>$title</h4>" : ''; |
|
|
|
|
|
|
|
|
|
$css = $plugin->get_css(); |
|
|
|
|
$css = $css ? "<style type=\"text/css\">$css</style>" : ''; |
|
|
|
|
$css = $css ? "<style type=\"text/css\" scoped=\"scoped\">$css</style>" : ''; |
|
|
|
|
|
|
|
|
|
$bullet = api_get_path(WEB_PLUGIN_PATH) . '/rss/resources/arrow-bullet.png'; |
|
|
|
|
|
|
|
|
|
@ -19,41 +19,41 @@ if (empty($rss)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo<<<EOT |
|
|
|
|
<div class="well sidebar-nav rss"> |
|
|
|
|
|
|
|
|
|
<style type="text/css"> |
|
|
|
|
$css |
|
|
|
|
$css |
|
|
|
|
<style type="text/css" scoped="scoped"> |
|
|
|
|
.gfg-listentry-highlight{ |
|
|
|
|
background-image: url('$bullet'); |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="http://www.google.com/jsapi"></script> |
|
|
|
|
<script src="http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.js" type="text/javascript"></script> |
|
|
|
|
<script type="text/javascript"> |
|
|
|
|
google.load('feeds', '1'); |
|
|
|
|
|
|
|
|
|
function OnLoad() { |
|
|
|
|
var feeds = [ |
|
|
|
|
{ |
|
|
|
|
url: '$rss' |
|
|
|
|
} |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
var options = { |
|
|
|
|
stacked : true, |
|
|
|
|
numResults : 5, |
|
|
|
|
horizontal : false, |
|
|
|
|
title : 'Nouvelles!' |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
new GFdynamicFeedControl(feeds, 'news', options); |
|
|
|
|
} |
|
|
|
|
google.setOnLoadCallback(OnLoad); |
|
|
|
|
</script> |
|
|
|
|
$title |
|
|
|
|
<div id="news" class="" style="min-height:300px;"></div> |
|
|
|
|
<div class="menusection"> |
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="http://www.google.com/jsapi"></script> |
|
|
|
|
<script src="http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.js" type="text/javascript"></script> |
|
|
|
|
<script type="text/javascript"> |
|
|
|
|
google.load('feeds', '1'); |
|
|
|
|
|
|
|
|
|
function OnLoad() { |
|
|
|
|
var feeds = [ |
|
|
|
|
{ |
|
|
|
|
url: '$rss' |
|
|
|
|
} |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
var options = { |
|
|
|
|
stacked : true, |
|
|
|
|
numResults : 5, |
|
|
|
|
horizontal : false, |
|
|
|
|
title : 'Nouvelles!' |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
new GFdynamicFeedControl(feeds, 'news', options); |
|
|
|
|
} |
|
|
|
|
google.setOnLoadCallback(OnLoad); |
|
|
|
|
</script> |
|
|
|
|
$title |
|
|
|
|
<div id="news" class="" style="min-height:300px;"></div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
EOT; |
|
|
|
|
|