view.feedback.html.hook.php 400 B

123456789101112
  1. <?php if($story->feedback):?>
  2. <?php
  3. $link = html::a($this->createLink('feedback', 'adminview', "feedbackID=$story->feedback"), " #$story->feedback $story->feedbackTitle", '_blank');
  4. $html = $lang->story->sourceList[$story->source] . ' ' . $story->sourceNote . $link;
  5. ?>
  6. <script language='Javascript'>
  7. $(function()
  8. {
  9. $('#source').html(<?php echo json_encode($html)?>);
  10. })
  11. </script>
  12. <?php endif;?>