Skip to content

Commit

Permalink
Tweak map insight copy and collapse map by default [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
ginatrapani committed Jun 15, 2012
1 parent f352b92 commit 81113a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions webapp/_lib/view/_insights.post.tpl
Expand Up @@ -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}
3 changes: 2 additions & 1 deletion webapp/plugins/twitter/model/class.TwitterCrawler.php
Expand Up @@ -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));
}
}
}
Expand Down

0 comments on commit 81113a7

Please sign in to comment.