~canonical-website-editors/insights/plus

« back to all changes in this revision

Viewing changes to launchpad_comments.php

  • Committer: Anthony Dillon
  • Date: 2014-02-11 17:10:31 UTC
  • Revision ID: anthony.dillon@canonical.com-20140211171031-n1ygz9yn905turq2
Remove discourse link if not on discourse

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
<?php } ?>
65
65
<?php endif; ?>
66
66
 
67
 
</div><!-- /#comments -->
68
 
 
69
67
<?php
 
68
 
70
69
  $custom = get_post_custom();
71
70
  $options = get_option('discourse');
72
71
  $permalink = (string)$custom['discourse_permalink'][0];
90
89
 
91
90
  $link_text = count($discourse_info->posts_count - 1) == 0 ? "Start the discussion" : "Continue the discussion";
92
91
 
 
92
  if($permalink != '') {
 
93
 
93
94
?>
94
 
<div id="comments">
95
95
<?php if(count($discourse_info->posts) > 0) { ?>
96
96
    <h2 id="comments-title"><?php echo $comments_title ?></h2>
97
97
 
125
125
        <?php } ?>
126
126
    </div><!-- #respond -->
127
127
 
 
128
    <?php
 
129
     }
 
130
    ?>
 
131
 
128
132
</div>