Permalink
Browse files

Tweak map insight copy and collapse map by default [ci skip]

  • Loading branch information...
1 parent f352b92 commit 81113a76435c71e8b90684428fb58d045820208b @ginatrapani ginatrapani committed Jun 15, 2012
Showing with 5 additions and 1 deletion.
  1. +3 −0 webapp/_lib/view/_insights.post.tpl
  2. +2 −1 webapp/plugins/twitter/model/class.TwitterCrawler.php
@@ -52,7 +52,10 @@
</div>
{if $i->slug eq 'geoencoded_replies'}
+<div align="right"><a href="javascript:;" title="See map of replies and shares" onclick="{literal}${/literal}('#map-{$i->id}').show(); return false;">see map...</a>&nbsp;&nbsp;</div>
+<div style="display:none" id="map-{$i->id}">
<script type="text/javascript" src="{$site_root_path}plugins/geoencoder/assets/js/iframe.js"></script>
<iframe width="680" frameborder="0" src="{$site_root_path}plugins/geoencoder/map.php?pid={$post->post_id}&n=twitter&t=post" name="childframe" id="childframe" >
</iframe>
+</div>
{/if}
@@ -1941,7 +1941,8 @@ private function generateInsightFeedItems($number_days=3) {
$options = $plugin_option_dao->getOptionsHash('geoencoder', true);
if (isset($options['gmaps_api_key']->option_value) && $post->is_geo_encoded == 1) {
$insight_dao->insertInsight('geoencoded_replies', $this->instance->id, $simplified_post_date,
- "Going global! You've got replies all over the map.", Insight::EMPHASIS_LOW, serialize($post));
+ "Going global! Your post got replies and retweets from all over the map.", Insight::EMPHASIS_LOW,
+ serialize($post));
}
}
}

0 comments on commit 81113a7

Please sign in to comment.