Changeset 196
- Timestamp:
- 06/18/06 12:34:52 (2 years ago)
- Files:
-
- trunk/smarty/templates/meme_layout.tpl (modified) (4 diffs)
- trunk/smarty/templates/meme_layout_anon.tpl (added)
- trunk/smarty/templates/memes_grid.tpl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/smarty/templates/meme_layout.tpl
r142 r196 1 {capture name=layout} 1 2 <div class="meme-bg"> 2 3 <table width="440" border="0" cellspacing="0" cellpadding="2" > … … 4 5 <div style="padding-left:1em" class="meme-footer-class"> 5 6 {if $meme->prior_meme} 6 < <a href=" comment.php?meme_id={$meme->prior_meme->ID}">{$meme->prior_meme->title}</a>7 < <a href="{$meme->prior_meme->permalink}">{$meme->prior_meme->title}</a> 7 8 {/if} 8 9 </div> … … 12 13 <div style="padding-right:1em" class="meme-footer-class"> 13 14 {if $meme->next_meme} 14 <a href=" comment.php?meme_id={$meme->next_meme->ID}">{$meme->next_meme->title}</a> >15 <a href="{$meme->next_meme->permalink}">{$meme->next_meme->title}</a> > 15 16 {/if} 16 17 </div> … … 19 20 <td colspan="3"> 20 21 <div class="votos" > 22 <a href="{$meme->permalink}"> 21 23 <h3 id="vote_count_{$meme->ID}" style="text-align:center" align="center"> 22 24 {$meme->votes} 23 25 </h3> 24 {if $meme->voted <= 0} 25 <p id="vote_label_{$meme->ID}">{#votes_label#}</p> 26 {/if} 26 </a> 27 <p id="vote_label_{$meme->ID}"> </p> 27 28 <div class="vote-class" id="vote_button_{$meme->ID}"> 28 {if $logged_in }29 29 {if $meme->voted <= 0} 30 30 <a class="vote-class" href="#vote_count_{$meme->ID}" onclick="update_vote_div('vote_count_{$meme->ID}','{$logged_userid}')"> 31 <img src="styles/img/meme-votar.png" border="0" alt="{#votes_label#}" /></a> 32 {/if} 33 {else} 34 <a class="vote-class" href="#vote_count_{$meme->ID}" onclick="update_vote_div('vote_count_{$meme->ID}','0')"><img src="styles/img/meme-votar.png" border="0" alt="{#votes_label#}" /></a> 31 <img src="/styles/img/meme-votar.png" border="0" alt="{#votes_label#}" /></a> 35 32 {/if} 36 33 </div> 37 34 </div> 38 35 <div class="meme-content"><br/> 39 <a href=" {$meme->url}" onclick="goto_url({$meme->ID},'{$meme->url}')">{$meme->title}</a>36 <a href="/click/{$meme->ID}/{$meme->url}" >{$meme->title}</a> 40 37 <div class="whowhen-class"> 41 {#cat_label#}: <a style="font-size:10px" href=" show_cat.php?cat_id={$meme->cat_id}">{$meme->cat_title}</a>38 {#cat_label#}: <a style="font-size:10px" href="/show_cat.php?cat_id={$meme->cat_id}">{$meme->cat_title}</a> 42 39 {$meme->date_posted|date_format:$bf_date_posted} 43 40 {#posted_by_label#} 44 <a href=" profile.php?user_name={$meme->username}"><img src="{$meme->small_gravatar}" alt="{$meme->username}" border="0"/></a><br/>45 <a style="font-size:10px" href=" profile.php?user_name={$meme->username}">{$meme->username}</a>41 <a href="/user/{$meme->username}"><img src="{$meme->small_gravatar}" alt="{$meme->username}" border="0"/></a><br/> 42 <a style="font-size:10px" href="/user/{$meme->username}">{$meme->username}</a> 46 43 </div> 47 44 <p style="right-margin:1em"> 48 45 {if $meme->page_image} 49 <a href="{$meme->url}">46 <a href="/click/{$meme->ID}/{$meme->url}" target="_new"> 50 47 <img border="0" style="float:right;border:none" src="{$meme->page_image}" alt="snapshot" /> 51 48 </a> 52 49 {/if} 53 50 {if $meme->micro_content} 54 <span style="padding:4px">{$meme->micro_content}</span> 51 <span style="padding:4px">{$meme->micro_content}</span><br/> 52 {if empty($page)} 53 <a href="/videos.php">ver más videos</a><br/> 54 {/if} 55 55 {/if} 56 56 {$meme->content|nl2br} 57 57 <br/> 58 58 {if $meme->allows_debates} 59 <a href="comment.php?meme_id={$meme->ID}#debate">{#debate_label#} {#friend_posture#}: {$meme->debate_pos}, {#foe_posture#}: {$meme->debate_neg}</a> 60 {/if} 61 {if $logged_user_id == $meme->submitted_user_id} 62 63 {/if} 59 <a href="{$meme->permalink}#debate">{#debate_label#} {#friend_posture#}: {$meme->debate_pos}, {#foe_posture#}: {$meme->debate_neg}</a> 60 {else} 61 <a href="{$meme->permalink}">{#comments_label#} {$meme->comments}</a> 62 {/if} 63 {if $logged_userid == $meme->submitted_user_id || $logged_userid == 1} 64 <br/><a href="edit_meme.php?meme_id={$meme->ID}">modificar</a> 65 {/if} 64 66 </p> 65 67 </div> 66 68 </td></tr> 69 {if $tags_of_meme} 70 <tr><td colspan="3"><b>Etiquetas:</b> 71 {html_table loop=$tags_of_meme table_attr='border="0" cellspacing="4" cellpadding="4" ' cols="6"} 72 </td></tr> 73 {/if} 67 74 <tr><td colspan="3"><div style="padding-left:1em" class="meme-footer-class"> 68 {if $logged_userid == $meme->submitted_user_id || $logged_userid == 1}<a href="edit_meme.php?meme_id={$meme->ID}">modificar</a> | {/if}{#comments_label#} <a href="comment.php?meme_id={$meme->ID}">{$meme->comments}</a> | <a href="tag_meme.php?meme_id={$meme->ID}">{#tag_meme_label#}</a> | {#cat_label#}: <a href="show_cat.php?cat_id={$meme->cat_id}">{$meme->cat_title}</a> | {#url_label#} <a href="{$meme->url}" onclick="goto_url({$meme->ID},'{$meme->url}')">{$meme->url|truncate:30:"..."}</a> 69 {if $logged_userid == 1} 70 {include file="meme_stats.tpl"} 71 {/if} 72 {include file="social_tools.tpl"} 73 </div> 75 <a href="/tag_meme.php?meme_id={$meme->ID}">{#tag_meme_label#}</a> | {#cat_label#}: <a href="/cat/{$meme->cat_title}">{$meme->cat_title}</a> | {#url_label#} <a href="/click/{$meme->ID}/{$meme->url}" onclick="goto_url({$meme->ID})">{$meme->url|truncate:30:"..."}</a> </div> 74 76 </td></tr> 77 <tr><td colspan="3"><div style="padding-left:1em" class="meme-footer-class"> 78 Compartir: <a href="sendlink.php?meme_id={$meme->ID}"><img src="/sbs/email.png" alt="enviar por correo" border="0" /></a> 79 <a onclick="social_click({$meme->ID})" href="http://del.icio.us/post?title={$meme->sociable_title}&url={$meme->sociable_link}"><img src="/sbs/delicious.png" border="0" alt="del.icio.us"/></a> 80 <a onclick="social_click({$meme->ID})" href="http://tec.fresqui.com/post?title=title={$meme->sociable_title}&url={$meme->sociable_link}"><img src="/sbs/fresqui.png" border="0" alt="fresqui"/></a> 81 <a onclick="social_click({$meme->ID})" href="http://meneame.net/submit.php?url={$meme->sociable_link}"><img src="/sbs/meneame.png" border="0" alt="meneame"/></a> 82 <a onclick="social_click({$meme->ID})" href="http://www.neodiario.net/submit.php?url={$meme->sociable_link}"><img src="/sbs/neodiario.png" border="0" alt="neodiario"/></a> 83 <iframe src="http://rank.blogalaxia.com/pbrate.php?color=CCEEAF&url={$meme->sociable_link}" width=70 height=15 scrolling=no frameborder=0 marginheight=0 marginwidth=0 style='margin:0; padding:0'></iframe><br/> 84 Vistas: {$meme->views} | Enlaces: {$meme->shares} | Clicks: {$meme->clicks} | Compartido: {$meme->social_clicks} veces 85 </td></tr> 86 75 87 </table> 76 88 </div> 89 {/capture} 90 {$smarty.capture.layout} trunk/smarty/templates/memes_grid.tpl
r116 r196 1 {capture name=grid} 2 {if $logged_in} 1 3 {foreach from=$memes item=meme name=mg} 2 4 {include file="meme_layout.tpl"} 3 5 <hr /> 4 6 {/foreach} 7 {else} 8 {foreach from=$memes item=meme name=mg} 9 {include file="meme_layout_anon.tpl"} 10 <hr /> 11 {/foreach} 12 {/if} 5 13 {include file="paginate.tpl"} 6 14 <div> … … 14 22 </div> 15 23 </div> 16 24 {/capture} 25 {$smarty.capture.grid}
