Advertisement
cgrunwald

Untitled

Sep 12th, 2010
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.33 KB | None | 0 0
  1.     <?php //print View::factory($) ?>
  2.     <div class="post_container">
  3.         <span class="category">
  4.         <a rel="tag category" title="<?php print $category->description; ?>" href="<?php print URL::site('blog/category/'. $category->slug); ?>"><span class="<?php print $category->icon; ?> jqui-icon"></span></a>
  5.         <a rel="tag category" title="<?php print $category->description; ?>" href="<?php print URL::site('blog/category/'. $category->slug); ?>"><?php print $category->title; ?></a>
  6.         </span>
  7.         <h3 class="content">
  8.             <a rel="bookmark permalink" href="<?php print URL::site('blog/' . $post->slug); ?>"><?php print $post->title; ?></a>
  9.         </h3>
  10.         <p><strong>Author</strong>: <a rel="author me" href="<?php print URL::site('blog/author/juntalis');?>">Juntalis</a></p>
  11.         <div class="spaced"><?php print $post->data; ?></div>
  12.         <p class="spaced tagline">
  13.             <span class="date"><em><?php print preg_replace('/ (\d+):(\d+) (AM|PM)/im', ' $1:$2 $3', date("D, M j, Y - h:i A", $post->created_on)); ?></em></span>
  14.             <?php $tags = $post->tags;
  15.                     if(count($tags)) { ?>
  16.             <span class="jqui-icon ui-icon-tag"></span><strong>Tags:</strong> <?php
  17.  
  18.                 $str_tagline = '';
  19.                 foreach($tags as $tag) {
  20.                     if(!empty($tag))
  21.                         $str_tagline .= '<a rel="tag" href="' . URL::site('blog/tag/' . URL::title($tag)) . '/">' . $tag . '</a>,&nbsp;';
  22.                 }
  23.                 $str_tagline = substr($str_tagline, 0, strlen($str_tagline) - 7);
  24.                 print $str_tagline;
  25.             }
  26.         ?></p>
  27.         <div class="post_footer">
  28.             <noscript><a rel="nofollow replies" href="<?php print URL::base(); ?>blog/post/<?php print $post->slug; ?>/comments/">Comments (<?php //print $post->comments_count; ?>)</a></noscript>
  29.             <input type="checkbox" id="CmdShare_<?php print $post->id; ?>" class="share script" /><label class="script cmd_bar first" for="CmdShare_<?php print $post->id; ?>">Share this Post</label>
  30.             <input type="checkbox" id="CmdComment_<?php print $post->id; ?>" class="comment script" /><label class="script cmd_bar" for="CmdComment_<?php print $post->id; ?>">Comments (<?php //print $post->comments; ?>)</label>
  31.             <!-- Start Sharing Commands -->
  32.             <div  id="CntShare_<?php print $post->id; ?>" class="ui-widget panel">
  33.                 <div class="ui-state-highlight ui-corner-all" style="background-color:#fbfbef;">
  34.                     <h3>Various URLs</h3>
  35.                     <div style="float:right;text-align:left;width:50%;">
  36.                         <p>
  37.                             <strong>Tiny URL</strong><br />
  38.                             <input type="text" id="UrlTiny" class="input_text" value="<?php print Remote::get('http://tinyurl.com/api-create.php?url=' . URL::base() . 'blog/post/' . $post->id . '/'); ?>">
  39.                         </p>
  40.                         <p style="margin-top:1em;">
  41.                             <strong>BBCode</strong><br />
  42.                             <input type="text" id="UrlBBCode" class="input_text" value="[url=<?php print URL::base(); ?>blog/post/<?php print $post->id; ?>/]<?php print $post->title; ?>[/url]">
  43.                         </p>
  44.                     </div>
  45.                     <div style="display:block;">
  46.                         <p>
  47.                             <strong>Alternate URL</strong><br />
  48.                             <input type="text" id="UrlAlternate" class="input_text" value="<?php print URL::base(); ?>blog/post/<?php print $post->id; ?>">
  49.                         </p>
  50.                         <p style="margin-top:1em;">
  51.                             <strong>HTML Code</strong><br />
  52.                             <input type="text" id="UrlHtml" class="input_text" value="<a href=&quot;<?php print URL::base(); ?>blog/post/<?php print $post->id; ?>/&quot;><?php print $post->title; ?></a>">
  53.                         </p>
  54.                     </div>
  55.                 </div>
  56.             </div>
  57.             <!-- End Sharing Commands -->
  58.             <!-- Start Comment Commands -->
  59.             <div  id="CntComment_<?php print $post->id; ?>" class="ui-widget panel">
  60.                 <div class="ui-state-highlight ui-corner-all" style="background-color:#fbfbef;">
  61.                     <p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-info"></span>
  62.                     <strong>Sorry!</strong> <em>Not yet implemented..</em></p>
  63.                 </div>
  64.             </div>
  65.             <!-- End Comment Commands -->
  66.             <script type="text/javascript" language="javascript">
  67.             /*<![CDATA[*/
  68.                  $("#CmdShare_<?php print $post->id; ?>")
  69.                     .button({icons:{primary:'ui-icon-bookmark'}})
  70.                     .change(function() {
  71.                         $("#CntShare_<?php print $post->id; ?>").toggleSlide($("#CmdShare_<?php print $post->id; ?>"), 'slow');
  72.                     });
  73.                  $("#CmdComment_<?php print $post->id; ?>")
  74.                     .button({icons:{primary:'ui-icon-comment'}})
  75.                     .change(function() {
  76.                         $("#CntComment_<?php print $post->id; ?>").toggleSlide($("#CmdComment_<?php print $post->id; ?>"), 'slow');
  77.                      });
  78.             /*]]>*/
  79.             </script>
  80.         </div>
  81.     </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement