Guest User

Untitled

a guest
Jul 22nd, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. {include_css file="result-common.css"}
  2. {include_css file="result-code.css"}
  3. {include_script module="shrttw" file="result.js"}
  4. {include_script file="prototype.js"}
  5. {include_script file="user-tweets.js"}
  6. <script type="text/javascript" charset="utf-8">
  7. {literal}
  8. document.observe('dom:loaded', function() {
  9. // attach click event to submit button
  10. prettyPrint();
  11. });
  12. {/literal}
  13. </script>
  14.  
  15.  
  16. {assign var='syntax_highlighting_language' value=$tweet->textcode_type}
  17. <link href="/css/prettify.css" type="text/css" rel="stylesheet" />
  18. <script type="text/javascript" src="/scripts/prettify.js"></script>
  19.  
  20. <div style="float: right; margin: 0px 25px 0px 0px;">
  21.  
  22. <a href="/download/{$tweet->identifier}" class="awesome blue" ><strong>&darr;</strong> Download this file</a>
  23. <a href="javascript:;" class="awesome red" onclick=" $('bottom-comments').addClassName('shown');"><strong>&#9729;</strong> &nbsp;{if $tweet->comment_count == 0 || $tweet->comment_count == null}No{else}{$tweet->comment_count}{/if} Comments</a>
  24. </div>
  25.  
  26. <div class="form-wrapper">
  27. <form action="" method="post" accept-charset="utf-8" enctype="multipart/form-data" id="create-form">
  28. <div id="chatty" class="result-box chatty">
  29.  
  30. <div id="label-{$tweet->idtweet}" class="result-box-head">
  31.  
  32. <a class="tweet_name" {if $user_owns_tweet}id="title" onclick="TweetController.makeLabelEditable({$tweet->idtweet});"{/if}>{if $tweet->image_label == ""}{if $user_owns_tweet}Add a title{else}Untitled{/if}{else}{$tweet->image_label}{/if}</a>
  33.  
  34. </div>
  35.  
  36. <div class="result-box-belly">
  37. {if $user_owns_tweet}
  38. <select id="languages-bar" class="languages" style="display: none;">
  39. {foreach from=$available_languages item='language'}
  40. <option {if $language == $tweet->textcode_type}selected{/if}>{$language}</option>
  41. {/foreach}
  42. </select>
  43. {/if}
  44.  
  45. <div id="code-wrapper" class="code-wrapper">
  46. <pre name="coder" class="prettyprint ">{$tweet->escapedTextCode(true)}</pre>
  47. </div>
  48. </div>
  49.  
  50. </div>
  51. </form>
  52. </div>
  53. <div >
  54. {include file="static/comments.tpl"}
  55. </div>
  56. <br clear="all" />
Add Comment
Please, Sign In to add comment