Skip to content

Instantly share code, notes, and snippets.

@jannisg
Created November 30, 2010 08:19
Show Gist options
  • Save jannisg/721342 to your computer and use it in GitHub Desktop.
Save jannisg/721342 to your computer and use it in GitHub Desktop.
<!-- THE LOOP -->
<ul class="videoTop">
{exp:channel:entries
channel="tapes"
disable="categories|category_fields|member_data|trackbacks"
dynamic="no"
status="open"
}
<li>
<div class="videoLarge">
{exp:antenna url="{video}" max_width="231" max_height="130"}
</div>
<div class="info">
<p class="song">{artist} / {song}</p>
<p class="submittedBy">SUBMITTED BY: {name}</p>
</div>
<div class="share">
<div class="liker">
{exp:likee:like entry_id="{entry_id}"}
<span class="like-button">{like}</span>
<span class="counter">
{like_count}
</span>
{/exp:likee:like}
</div>
<a href="#" class="facebook-share">
<img src="{static}images/vid_Share_button.gif" alt="" />
</a>
<a href="#" class="twitter-share">
<img src="{static}images/vid_Tweet_button.gif" alt="" />
</a>
</div>
</li>
{/exp:channel:entries}
</ul>
<!-- THE OUTPUT -->
<ul class="videoTop">
<!-- first entry in loop (aka latest added to the channel) -->
<li>
<div class="videoLarge">
<!-- THIS SHOULD BE THE EMBED/OBJECT LIKE EVERYWHERE ELSE… -->
</div>
<div class="info">
<p class="song">Jack Johnson / Flake</p>
<p class="submittedBy">SUBMITTED BY: testing</p>
</div>
<div class="share">
<div class="liker">
<span class="like-button"><a href='javascript:;' class='likee_like' id='likee_18'>Like</a></span>
<span class="counter">
<span id='likeeCount_18'>0</span>
</span>
</div>
<a href="#" class="facebook-share">
<img src="http://dev.supply.net.nz/mixtape/static/images/vid_Share_button.gif" alt="" />
</a>
<a href="#" class="twitter-share">
<img src="http://dev.supply.net.nz/mixtape/static/images/vid_Tweet_button.gif" alt="" />
</a>
</div>
</li>
<!-- next entry -->
<li>
<div class="videoLarge">
<object width="140" height="130"><param name="movie" value="http://www.youtube.com/v/qA2_-eQ26tY?fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/qA2_-eQ26tY?fs=1" type="application/x-shockwave-flash" width="140" height="130" allowscriptaccess="always" allowfullscreen="true"></embed></object>
</div>
<div class="info">
<p class="song">naughty by nature / Hip hop horray</p>
<p class="submittedBy">SUBMITTED BY: TRizzel</p>
</div>
<div class="share">
<div class="liker">
<span class="like-button"><a href='javascript:;' class='likee_like' id='likee_12'>Like</a></span>
<span class="counter">
<span id='likeeCount_12'>0</span>
</span>
</div>
<a href="#" class="facebook-share">
<img src="http://dev.supply.net.nz/mixtape/static/images/vid_Share_button.gif" alt="" />
</a>
<a href="#" class="twitter-share">
<img src="http://dev.supply.net.nz/mixtape/static/images/vid_Tweet_button.gif" alt="" />
</a>
</div>
</li>
<!-- 3 more working entries are following this… -->
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment