Plugin Directory

Changeset 358725


Ignore:
Timestamp:
03/11/2011 10:35:42 AM (15 years ago)
Author:
frekel
Message:

Prepairing version 1.55

Location:
wp-photocontest/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-photocontest/trunk/lib/wp-photocontest.class.php

    r347416 r358725  
    290290            ?>
    291291            <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
    293293            if (WP_USE_FLASH != 'false')
    294294            {
     
    296296            }
    297297            ?>
    298             <br clear="all" />
    299             <p><?php echo $page_menu;?></p>
    300298            <br clear="all" />
    301299            <?php echo stripslashes($intro_text);?>
     
    304302                    <tr>
    305303                        <td>
    306                             <br clear="all" />
     304                            <p><?php echo $page_menu;?></p>
    307305                            <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))
    314308                                {
    315309                                    ?>
    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>
    326330                                        </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                                    }
    329348                                }
    330                                 else
     349                                if (!empty($scrolling))
    331350                                {
    332351                                    ?>
    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
    343355                                }
    344                             }
    345                             ?>                     
    346                             <br clear="all" />
    347                             <center><?php echo($scrolling);?></center>
     356                                ?>
    348357                            </div>
    349358                        </td>
  • wp-photocontest/trunk/photocontest-manager.php

    r315216 r358725  
    9191                                                            array(
    9292                                                                'href' => array(),
    93                                                                 'title' => array()
     93                                                                'title' => array(),
     94                                                                'class' => array()
    9495                                                            ),
    95                                                         'br' => array(),
     96                                                        'br' => array('clear' => array(), 'class' => array()),
    9697                                                        'em' => array(),
    9798                                                        'strong' => array(),
     
    99100                                                        'li' => array(),
    100101                                                        'ol' => array(),
     102                                                        'h1' => array('class'=> array()),
     103                                                        'h2' => array('class'=> array()),
     104                                                        'h3' => array('class'=> array()),
    101105                                                        'img' =>
    102106                                                            array(
     
    112116$photocontest_enter_text    = wppc_checkString  (
    113117                                                $_REQUEST['photocontest_enter_text'],
    114                                                     array(
     118                                                        array(
    115119                                                        'a' =>
    116120                                                            array(
    117121                                                                'href' => array(),
    118                                                                 'title' => array()
     122                                                                'title' => array(),
     123                                                                'class' => array()
    119124                                                            ),
    120                                                         'br' => array(),
     125                                                        'br' => array('clear' => array(), 'class' => array()),
    121126                                                        'em' => array(),
    122127                                                        'strong' => array(),
     
    124129                                                        'li' => array(),
    125130                                                        'ol' => array(),
     131                                                        'h1' => array('class'=> array()),
     132                                                        'h2' => array('class'=> array()),
     133                                                        'h3' => array('class'=> array()),
    126134                                                        'img' =>
    127135                                                            array(
  • wp-photocontest/trunk/readme.txt

    r315231 r358725  
    55Requires at least: 2.7
    66Tested up to: 3.0.1
    7 Stable tag: 1.5.4
     7Stable tag: 1.5.5
    88
    99This plugin automatically turns a WordPress-page into a photo contest.
     
    188188
    189189== 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.
    191193* (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 or plain HTML.
     194* (added) Option to return the contest in the polariod theme or in plain HTML.
    193195* (added) Integration of translation to Bulgarian
    194196* (added) Integration of translation to German
     197* (added) Integration of translation to Russia
    195198* (added) Automatic removal of any ! in the contest name, so the frontend is logical
    196199* (fixed) The scrolling of the different pages (chrono, recent) are wrong.
  • wp-photocontest/trunk/viewimg.php

    r347416 r358725  
    606606                                        if (empty($auther_name))
    607607                                        {
    608                                             echo $image_details['wp_email'];
     608                                            list($name,$domain) = explode("@",$image_details['wp_email']);
     609                                            echo ucfirst($name);
    609610                                        }
    610611                                        else
Note: See TracChangeset for help on using the changeset viewer.