Changeset 358725
- Timestamp:
- 03/11/2011 10:35:42 AM (15 years ago)
- Location:
- wp-photocontest/trunk
- Files:
-
- 4 edited
-
lib/wp-photocontest.class.php (modified) (3 diffs)
-
photocontest-manager.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
-
viewimg.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-photocontest/trunk/lib/wp-photocontest.class.php
r347416 r358725 290 290 ?> 291 291 <link id="wp-photocontest-style-css" media="all" type="text/css" href="<?php echo WP_PLUGIN_URL;?>/wp-photocontest/skins/<?php echo CONTESTS_SKIN;?>/theme.css?ver=2.8.4" rel="stylesheet"> 292 <? 292 <?php 293 293 if (WP_USE_FLASH != 'false') 294 294 { … … 296 296 } 297 297 ?> 298 <br clear="all" />299 <p><?php echo $page_menu;?></p>300 298 <br clear="all" /> 301 299 <?php echo stripslashes($intro_text);?> … … 304 302 <tr> 305 303 <td> 306 < br clear="all" />304 <p><?php echo $page_menu;?></p> 307 305 <div class="polaroid_container"> 308 <br clear="all" /> 309 <center><?php echo($scrolling);?></center> 310 <?php 311 foreach ($page_data as $page_row) 312 { 313 if (WP_USE_FLASH == 'false') 306 <?php 307 if (!empty($scrolling)) 314 308 { 315 309 ?> 316 <div class="polaroid"> 317 <div class="polaroid_photo" id="photo_<?php echo $page_row['img_id'];?>"> 318 <span class="polaroid_title"><?php echo $page_row['img_title'];?></span> 319 <a href="<?php echo get_option('siteurl').'/wp-content/plugins/wp-photocontest/viewimg.php?img_id='.$page_row['img_id'].'&post_id='.$post_id;?>"><img src="<?php echo $page_row['pre_thumb'];?>" border="0" /></a> 320 321 <br /> 322 <span class="polaroid_votes"><?php printf(_n("%d vote", "%d votes", $page_row['sum_votes'], 'wp-photocontest'), $page_row['sum_votes']); ?></span> 323 <br /> 324 <span class="polaroid_button"><a href="<?php echo get_option('siteurl').'/wp-content/plugins/wp-photocontest/viewimg.php?img_id='.$page_row['img_id'].'&post_id='.$post_id;?>"><?php __('Vote', 'wp-photocontest');?>Гласувай</a></span> 325 <br /> 310 <br clear="all" /> 311 <center><?php echo($scrolling);?></center> 312 <?php 313 } 314 foreach ($page_data as $page_row) 315 { 316 if (WP_USE_FLASH == 'false') 317 { 318 ?> 319 <div class="polaroid"> 320 <div class="polaroid_photo" id="photo_<?php echo $page_row['img_id'];?>"> 321 <span class="polaroid_title"><?php echo $page_row['img_title'];?></span> 322 <a href="<?php echo get_option('siteurl').'/wp-content/plugins/wp-photocontest/viewimg.php?img_id='.$page_row['img_id'].'&post_id='.$post_id;?>"><img src="<?php echo $page_row['pre_thumb'];?>" border="0" /></a> 323 324 <br /> 325 <span class="polaroid_votes"><?php printf(_n("%d vote", "%d votes", $page_row['sum_votes'], 'wp-photocontest'), $page_row['sum_votes']); ?></span> 326 <br /> 327 <span class="polaroid_button"><a href="<?php echo get_option('siteurl').'/wp-content/plugins/wp-photocontest/viewimg.php?img_id='.$page_row['img_id'].'&post_id='.$post_id;?>"><?php __('Vote', 'wp-photocontest');?>Гласувай</a></span> 328 <br /> 329 </div> 326 330 </div> 327 </div> 328 <?php 331 <?php 332 } 333 else 334 { 335 ?> 336 <div class="polaroid"> 337 <div id="photo_<?php echo $page_row['img_id'];?>"><img src="<?php echo $page_row['med_thumb'];?>" /></div> 338 <script type="text/javascript"> 339 var flashvars = {photonaam:"<?php echo $page_row['img_title'];?>", photo: "<?php echo $page_row['swf_thumb'];?>", foto_id :"<?php echo $page_row['img_id'];?>", post_id :"<?php echo $post_id;?>", order :"<?php echo $order;?>", poltype: "<?php echo $page_row['rows'];?>", stemmen:"<?php printf(_n("%d vote", "%d votes", $page_row['sum_votes'], 'wp-photocontest'), $page_row['sum_votes']); ?>", vote_url:"<?php echo urlencode(get_option('siteurl').'/wp-content/plugins/wp-photocontest/viewimg.php');?>" }; 340 var params = { menu: "false", wmode:"transparent"}; 341 var attributes = { id: "<?php echo $page_row['img_id'];?>" }; 342 swfobject2.embedSWF("<?php echo get_option('siteurl');?>/wp-content/plugins/wp-photocontest/skins/<?php echo CONTESTS_SKIN;?>/polaroid.swf", "photo_<?php echo $page_row['img_id'];?>", "162", "200", "7.0.0","expressInstall.swf", flashvars, params, attributes); 343 </script> 344 </div> 345 <?php 346 347 } 329 348 } 330 else349 if (!empty($scrolling)) 331 350 { 332 351 ?> 333 <div class="polaroid"><div id="photo_<?php echo $page_row['img_id'];?>"> 334 <img src="<?php echo $page_row['med_thumb'];?>" /></div></div> 335 <script type="text/javascript"> 336 var flashvars = {photonaam:"<?php echo $page_row['img_title'];?>", photo: "<?php echo $page_row['swf_thumb'];?>", foto_id :"<?php echo $page_row['img_id'];?>", post_id :"<?php echo $post_id;?>", order :"<?php echo $order;?>", poltype: "<?php echo $page_row['rows'];?>", stemmen:"<?php printf(_n("%d vote", "%d votes", $page_row['sum_votes'], 'wp-photocontest'), $page_row['sum_votes']); ?>", vote_url:"<?php echo urlencode(get_option('siteurl').'/wp-content/plugins/wp-photocontest/viewimg.php');?>" }; 337 var params = { menu: "false", wmode:"transparent"}; 338 var attributes = { id: "<?php echo $page_row['img_id'];?>" }; 339 swfobject2.embedSWF("<?php echo get_option('siteurl');?>/wp-content/plugins/wp-photocontest/skins/<?php echo CONTESTS_SKIN;?>/polaroid.swf", "photo_<?php echo $page_row['img_id'];?>", "162", "200", "7.0.0","expressInstall.swf", flashvars, params, attributes); 340 </script> 341 <?php 342 352 <br clear="all" /> 353 <center><?php echo($scrolling);?></center> 354 <?php 343 355 } 344 } 345 ?> 346 <br clear="all" /> 347 <center><?php echo($scrolling);?></center> 356 ?> 348 357 </div> 349 358 </td> -
wp-photocontest/trunk/photocontest-manager.php
r315216 r358725 91 91 array( 92 92 'href' => array(), 93 'title' => array() 93 'title' => array(), 94 'class' => array() 94 95 ), 95 'br' => array( ),96 'br' => array('clear' => array(), 'class' => array()), 96 97 'em' => array(), 97 98 'strong' => array(), … … 99 100 'li' => array(), 100 101 'ol' => array(), 102 'h1' => array('class'=> array()), 103 'h2' => array('class'=> array()), 104 'h3' => array('class'=> array()), 101 105 'img' => 102 106 array( … … 112 116 $photocontest_enter_text = wppc_checkString ( 113 117 $_REQUEST['photocontest_enter_text'], 114 array(118 array( 115 119 'a' => 116 120 array( 117 121 'href' => array(), 118 'title' => array() 122 'title' => array(), 123 'class' => array() 119 124 ), 120 'br' => array( ),125 'br' => array('clear' => array(), 'class' => array()), 121 126 'em' => array(), 122 127 'strong' => array(), … … 124 129 'li' => array(), 125 130 'ol' => array(), 131 'h1' => array('class'=> array()), 132 'h2' => array('class'=> array()), 133 'h3' => array('class'=> array()), 126 134 'img' => 127 135 array( -
wp-photocontest/trunk/readme.txt
r315231 r358725 5 5 Requires at least: 2.7 6 6 Tested up to: 3.0.1 7 Stable tag: 1.5. 47 Stable tag: 1.5.5 8 8 9 9 This plugin automatically turns a WordPress-page into a photo contest. … … 188 188 189 189 == Changelog == 190 = 1.5.5 - 24.11.2010 = 190 = 1.5.5 - 11.03.2011 = 191 * (added) The upload and intro text now can have the tags br, h1, h2 and h3 with classes 192 * (changed) When viewing photodetails, by default the full emailaddress is replaced by the part before the @-sign. 191 193 * (added) An administrator can change the status of the votes in the wp-admin panel. 192 * (added) Option to return the contest with the polariod theme orplain HTML.194 * (added) Option to return the contest in the polariod theme or in plain HTML. 193 195 * (added) Integration of translation to Bulgarian 194 196 * (added) Integration of translation to German 197 * (added) Integration of translation to Russia 195 198 * (added) Automatic removal of any ! in the contest name, so the frontend is logical 196 199 * (fixed) The scrolling of the different pages (chrono, recent) are wrong. -
wp-photocontest/trunk/viewimg.php
r347416 r358725 606 606 if (empty($auther_name)) 607 607 { 608 echo $image_details['wp_email']; 608 list($name,$domain) = explode("@",$image_details['wp_email']); 609 echo ucfirst($name); 609 610 } 610 611 else
Note: See TracChangeset
for help on using the changeset viewer.