Changeset 9200 for extensions/ContestResults/template
- Timestamp:
- Feb 13, 2011, 11:12:58 AM (13 years ago)
- Location:
- extensions/ContestResults/template
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ContestResults/template/cr_main.tpl
r6782 r9200 6 6 7 7 {if !empty($PLUGIN_INDEX_CONTENT_BEFORE)}{$PLUGIN_INDEX_CONTENT_BEFORE}{/if} 8 8 9 <div id="content" class="content"> 9 10 <div class="titrePage"> … … 13 14 <h2>{'Contests'|@translate}</h2> 14 15 </div> <!-- titrePage --> 15 {if !isset($contests_pending) AND !isset($contests_finished)} 16 17 {if !isset($contests)} 16 18 <div class="nopublic" style="margin-bottom:200px;"> 17 19 {'CR_no_contest'|@translate} 18 20 </div> 19 {/if}20 { if isset($contests_pending)}21 22 {else} 21 23 <ul class="thumbnailCategories"> 22 {foreach from=$contests_pending item=contest} 23 <li> 24 <div class="thumbnailCategory {if $contest.VISIBLE == 0}novisible{/if}"> 25 <div class="illustration"> 26 <a href="{$contest.URL}"> 27 {if !empty($contest.LOGO)} 28 <img src="{$contest.LOGO}" alt="{$contest.NAME}" style="max-height:120px;max-width:120px;"> 24 {foreach from=$contests item=contest} 25 <li> 26 <div class="thumbnailCategory {if $contest.VISIBLE == 0}novisible{/if}"> 27 <div class="illustration"> 28 <a href="{$contest.URL}"> 29 {if $contest.STATUS == 'pending'} 30 {if !empty($contest.LOGO)} 31 <img src="{$contest.LOGO}" alt="{$contest.NAME}" style="max-height:120px;max-width:120px;"> 32 {/if} 33 {else} 34 <img src="{$contest.RESULTS.1.TN_SRC}" alt="{$contest.NAME|@replace:'"':' '}"> 29 35 {/if} 30 </a> 31 </div> 32 <div class="description"> 33 <h3> 34 <a href="{$contest.URL}">{$contest.NAME}</a> 35 </h3> 36 <div class="text"> 37 <p class="Nb_images">{$contest.DATE_BEGIN} - {$contest.DATE_END}</p> 38 {if !empty($contest.SUMMARY)} 39 <p>{$contest.SUMMARY}</p> 40 {/if} 36 </a> 41 37 </div> 42 </div> 43 </div> 44 </li> 45 {/foreach} 46 </ul> 47 {/if} 48 49 {if isset($contests_finished)} 50 <ul class="thumbnailCategories"> 51 {foreach from=$contests_finished item=contest} 52 <li> 53 <div class="thumbnailCategory {if $contest.VISIBLE == 0}novisible{/if}"> 54 <div class="description"> 55 <h3> 56 <a href="{$contest.URL}">{$contest.NAME}</a> 57 <span class="finished">({'CR_finished'|@translate})</span> 58 </h3> 59 <div class="text"> 60 <p class="Nb_images">{$contest.DATE_BEGIN} - {$contest.DATE_END}</p> 61 <div class="results"> 62 <a href="{$contest.URL}"> 38 <div class="description"> 39 <h3> 40 <a href="{$contest.URL}">{$contest.NAME}</a> 41 {if $contest.STATUS == 'finished'}<span class="CR_finished">({'CR_finished'|@translate})</span>{/if} 42 </h3> 43 <div class="text"> 44 <p class="Nb_images">{$contest.DATE_BEGIN} - {$contest.DATE_END}</p> 45 <p> 46 {if $contest.STATUS == 'pending'} 47 {if !empty($contest.SUMMARY)} 48 {$contest.SUMMARY} 49 {/if} 50 {else} 63 51 {foreach from=$contest.RESULTS item=result} 64 <img src="{$result.TN_SRC}" style="max-height:80px;max-width:120px;"/>52 {'CR_order_'|cat:$result.RANK|@translate} {'CR_place'|@translate} - <u>{$result.AUTHOR}</u><br> 65 53 {/foreach} 66 </a> 54 {/if} 55 </p> 67 56 </div> 68 57 </div> 69 58 </div> 70 </div> 71 </li> 72 {/foreach} 73 </ul> 59 </li> 60 {/foreach} 61 </ul> 74 62 {/if} 75 63 </div> <!-- content --> -
extensions/ContestResults/template/cr_menubar.tpl
r6768 r9200 1 1 {html_head} 2 2 <style type="text/css"> 3 . finished {ldelim}3 .CR_finished {ldelim} 4 4 font-size:0.8em; 5 5 color:#a00; … … 15 15 <a href="{$data.URL}" title="{$data.DATE}"> 16 16 {$data.LABEL} 17 {if $data.STATUS == 'finished'}<span class=" finished">×</span>{/if}17 {if $data.STATUS == 'finished'}<span class="CR_finished">×</span>{/if} 18 18 </a> 19 19 </li> -
extensions/ContestResults/template/cr_page.tpl
r6782 r9200 6 6 7 7 {if !empty($PLUGIN_INDEX_CONTENT_BEFORE)}{$PLUGIN_INDEX_CONTENT_BEFORE}{/if} 8 <div id="content_contest"class="content">8 <div class="content"> 9 9 <div class="titrePage"> 10 10 <ul class="categoryActions"> … … 15 15 </ul> 16 16 <h2> 17 <a href="index.php?/contests" >{'Contests'|@translate}</a>{$SEPARATOR}<a href="{$URL}">{$NAME}</a>18 {if $STATUS=='finished'}<span class=" finished">({'CR_finished'|@translate})</span>{/if}17 <a href="index.php?/contests" name="top">{'Contests'|@translate}</a>{$SEPARATOR}<a href="{$URL}">{$NAME}</a> 18 {if $STATUS=='finished'}<span class="CR_finished">({'CR_finished'|@translate})</span>{/if} 19 19 </h2> 20 20 </div> <!-- titrePage --> … … 26 26 {/if} 27 27 28 <div class="CR_banner"> 28 29 {if !empty($BANNER)} 29 <div class="CR_banner"> 30 <a href="#results"><img src="{$BANNER}" alt="{$NAME}"/></a> 30 <h1><a href="#results"><img src="{$BANNER}" alt="{$NAME}"/></a></h1> 31 {else} 32 <h1><a href="#results">{$NAME}</a></h1> 33 {/if} 34 </div> 35 36 <div class="CR_text CR_period"> 37 {$DATE_BEGIN} - {$DATE_END} 38 </div> 39 40 {if !empty($PRESENTATION)} 41 <div class="CR_text"> 42 <h3>{'CR_presentation'|@translate} :</h3> 43 {$PRESENTATION} 31 44 </div> 32 45 {/if} 33 46 34 {if (($STATUS=='pending' AND $PRESENTATION_PENDING) OR ($STATUS=='finished' AND $PRESENTATION_FINISHED)) AND !empty($PRESENTATION)}47 {if !empty($RULES)} 35 48 <div class="CR_text"> 36 <h3>{'CR_ presentation'|@translate} :</h3>37 <p>{$PRESENTATION}</p>49 <h3>{'CR_rules'|@translate} :</h3> 50 {$RULES} 38 51 </div> 39 52 {/if} 40 53 41 <div class="CR_text"> 42 <h3>{'CR_period'|@translate} :</h3> 43 <p>{$DATE_BEGIN} - {$DATE_END}</p> 44 </div> 54 {if !empty($PRICES)} 55 <div class="CR_text"> 56 <h3>{'CR_prices'|@translate} :</h3> 57 {$PRICES} 58 </div> 59 {/if} 45 60 46 <div id="CR_rules_prices"> 47 {if (($STATUS=='pending' AND $RULES_PENDING) OR ($STATUS=='finished' AND $RULES_FINISHED)) AND !empty($RULES)} 48 <div id="CR_rules"> 49 <h3>{'CR_rules'|@translate} :</h3> 50 <p>{$RULES}</p> 51 </div> 52 {/if} 53 54 {if (($STATUS=='pending' AND $PRICES_PENDING) OR ($STATUS=='finished' AND $PRICES_FINISHED)) AND !empty($PRICES)} 55 <div id="CR_prices"> 56 <h3>{'CR_prices'|@translate} :</h3> 57 <p>{$PRICES}</p> 58 </div> 59 {/if} 60 </div> 61 62 {if (($STATUS=='pending' AND $FINAL_PENDING) OR ($STATUS=='finished' AND $FINAL_FINISHED)) AND !empty($FINAL)} 61 {if !empty($FINAL)} 63 62 <div class="CR_text"> 64 63 <h3>{'CR_final'|@translate} :</h3> 65 <p>{$FINAL}</p>64 {$FINAL} 66 65 </div> 67 66 {/if} … … 69 68 70 69 {if !empty($RESULTS)} 71 <div id="content_results"class="content">70 <div class="content"> 72 71 <div class="titrePage"> 73 72 <ul class="categoryActions"> … … 85 84 <div class="podium_{$result.RANK}"> 86 85 <div class="illustration"> 87 <div class="title">{'CR_order_'|cat:$result.RANK|@translate} - <u>{$result.AUTHOR}</u></div>86 <div class="title">{'CR_order_'|cat:$result.RANK|@translate} {'CR_place'|@translate} - <u>{$result.AUTHOR}</u></div> 88 87 <a href="{$result.IMAGE_URL}" title="{$result.IMAGE_NAME}"> 89 88 <img src="{$result.IMAGE_SRC}" alt="{$result.IMAGE_NAME}"/> 90 89 </a> 91 90 </div> 92 < div class="comment">93 <div>{$result.COMMENT}</div>94 </ div>91 <p> 92 {$result.COMMENT} 93 </p> 95 94 </div> 96 95 {if $result.RANK == 3}</div>{/if} … … 108 107 <img class="thumbnail" src="{$result.TN_SRC}" alt="{$result.IMAGE_NAME}"/> 109 108 </a> 110 </span> 109 </span> 111 110 <span class="thumbLegend"> 112 <b>{$result.RANK}{'CR_order_sup'|@translate}</b> - {$result.AUTHOR} 111 <span class="thumbnail-name"> 112 {$result.AUTHOR} 113 </span> 114 <span class="nb-hits"> 115 <br>{$result.RANK}{'CR_order_sup'|@translate} {'CR_place'|@translate} 116 </span> 113 117 </span> 114 118 </span> … … 120 124 {if !empty($LOGO)} 121 125 <div class="CR_banner"> 122 < img src="{$LOGO}" alt="{$NAME}"/>126 <h1><a href="#top"><img src="{$LOGO}" alt="{$NAME}"/></a></h1> 123 127 </div> 124 128 {/if} -
extensions/ContestResults/template/index.php
r6768 r9200 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | PhpWebGallery - a PHP based picture gallery | 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | 3 // | Piwigo - a PHP based picture gallery | 6 4 // +-----------------------------------------------------------------------+ 7 // | file : $Id: index.php 1912 2007-03-16 06:30:07Z rub $ 8 // | last update : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $ 9 // | last modifier : $Author: rub $ 10 // | revision : $Revision: 1912 $ 5 // | Copyright(C) 2008-2010 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 11 8 // +-----------------------------------------------------------------------+ 12 9 // | This program is free software; you can redistribute it and/or modify | -
extensions/ContestResults/template/style.css
r6782 r9200 1 .content { 2 min-height:0; 3 } 4 5 .finished { 1 .CR_finished { 6 2 font-weight:normal; 7 3 font-size:0.8em; … … 9 5 padding-left:10px; 10 6 color:#a00; 11 }12 13 .results {14 overflow:hidden;15 white-space:nowrap;16 7 } 17 8 … … 31 22 } 32 23 33 #content_contest {34 padding-bottom:20px;35 }36 37 p {38 text-align:justify;39 margin:0 0 10px 20px;40 font-size:1.1em;41 }42 43 h3 {44 margin-bottom:0;45 font-size:1.3em;46 }47 48 ul {49 margin:0;50 font-size:1.1em;51 }52 53 24 .CR_banner { 54 25 width:100%; 55 26 text-align:center; 56 27 } 28 .CR_banner h1 { 29 margin:20px; 30 font-size:2.5em; 31 } 57 32 58 33 .CR_text { 59 margin:0 5%; 34 margin:0 20px 20px 20px; 35 text-align:justify; 60 36 } 61 62 #CR_rules_prices { 37 .CR_text h3 { 38 margin:0 0 3px 0; 39 font-size:1.3em; 40 border-bottom:1px dotted #999; 41 color:#ddd; 42 } 43 44 .CR_period { 63 45 text-align:center; 64 margin:0 5%; 46 font-size:1.3em; 47 font-weight:bold; 48 font-style:italic; 49 font-family:"Consolas"; 50 color:#ddd; 51 border-top:1px dotted #999; 65 52 } 66 #CR_rules, #CR_prices {67 display:inline-block;68 width:49%;69 text-align:left;70 vertical-align:top;71 }72 #CR_rules_prices h3 {73 margin-left:-1%;74 }75 53 76 54 #CR_podium { 77 55 text-align:center; 78 margin:0 5 % 30px 5%;56 margin:0 5px 30px 5px; 79 57 } 80 58 #CR_podium .podium_1 { … … 92 70 } 93 71 #CR_podium .podium_1 .illustration { 94 margin:0 10% 10px 10%;72 margin:0 5px 10px 5px; 95 73 } 96 74 #CR_podium .podium_1 .illustration img { … … 98 76 max-height:250px; 99 77 max-width:100%; 100 -moz-border-radius:10px; 101 border-radius:10px; 78 border-radius:5px; 79 -moz-border-radius:5px; 80 -webkit-border-radius:5px; 81 -moz-box-shadow:0 0 5px #EFBF00; 82 -webkit-box-shadow:0 0 5px #EFBF00; 102 83 } 103 84 #CR_podium .podium_1 .illustration img:hover { 104 85 border-style:inset; 105 86 } 106 #CR_podium .podium_1 .comment { 107 padding:0 5px; 108 } 109 110 #CR_podium .podium_1 .comment div { 111 margin:0 auto; 87 #CR_podium .podium_1 p { 88 padding:0 10px 0 5px; 112 89 text-align:justify; 90 font-size:0.9em; 113 91 } 114 92 #CR_podium .podium_23 { … … 117 95 text-align:left; 118 96 vertical-align:middle; 119 border-left:1px dotted # 555;97 border-left:1px dotted #ddd; 120 98 max-height:400px; 121 99 } … … 131 109 margin-bottom:5px; 132 110 } 133 #CR_podium .podium_ 2.title {111 #CR_podium .podium_3 .title { 134 112 color:#EF5400; 135 113 } 136 #CR_podium .podium_ 3.title {114 #CR_podium .podium_2 .title { 137 115 color:#9F9F9F; 138 116 } 139 117 #CR_podium .podium_2 .illustration, #CR_podium .podium_3 .illustration { 140 display:inline-block;141 margin:0 2% 10px 2%;142 width: 40%;118 float:left; 119 margin:0 10px 10px 10px; 120 width:180px; 143 121 text-align:center; 144 122 } … … 146 124 border-width:3px; 147 125 border-style:outset; 148 max-height:150px; 149 max-width:100%; 150 border-radius:6px; 151 -moz-border-radius:6px; 126 max-height:160px; 127 max-width:170px; 128 border-radius:5px; 129 -moz-border-radius:5px; 130 -webkit-border-radius:5px; 152 131 } 132 #CR_podium .podium_3 .illustration img { 133 border-color:#EF5400; 134 -moz-box-shadow:0 0 5px #EF5400; 135 -webkit-box-shadow:0 0 5px #EF5400; 136 } 153 137 #CR_podium .podium_2 .illustration img { 154 border-color:#EF5400;155 }156 #CR_podium .podium_3 .illustration img {157 138 border-color:#9F9F9F; 139 -moz-box-shadow:0 0 5px #9F9F9F; 140 -webkit-box-shadow:0 0 5px #9F9F9F; 158 141 } 159 142 #CR_podium .podium_2 .illustration img:hover, #CR_podium .podium_3 .illustration img:hover { … … 161 144 } 162 145 163 #CR_podium .podium_2 .comment, #CR_podium .podium_3 .comment { 164 display:inline-block; 165 width:53%; 166 height:50%; 167 vertical-align:top; 168 margin-top:20px; 146 #CR_podium .podium_2 p, #CR_podium .podium_3 p { 169 147 text-align:justify; 170 148 font-size:0.9em;
Note: See TracChangeset
for help on using the changeset viewer.