Plugin Directory

Changeset 1127935


Ignore:
Timestamp:
04/04/2015 08:34:52 PM (11 years ago)
Author:
seoringer
Message:

All labels were changed to icons.

Location:
simple-voting
Files:
4 added
6 edited

Legend:

Unmodified
Added
Removed
  • simple-voting/trunk/README.txt

    r1127171 r1127935  
    1414
    1515You can see a demo examples at [Seoringer.com](http://seoringer.com/simple-voting-plugin-for-wordpress/ "simple voting plugin for WordPress").
    16 
    17 Plugin will take translation from your WordPress installation, based on the locale of your site. So, if you have
    18 German-localized WordPress with de_DE site locale, plugin will show German labels, if your WordPress is
    19 Russian-localized with ru_RU locale, plugin will show Russian labels, and so on.
    2016
    2117Any questions and bug reports are welcomed at [email protected]
  • simple-voting/trunk/core/class-shortcode-processor-_-simple-voting.php

    r1127167 r1127935  
    124124           
    125125            $plugin_url = plugin_dir_url( dirname( __FILE__ ) );
    126            
    127             $userNameLabel = __("Please enter a username." );
    128             if( "Please enter a username." == $userNameLabel ) $userNameLabel = __("Your name:", "simple-voting");
    129             $userCommentLabel = __("Your Comment" );
    130             if( "Your Comment" == $userCommentLabel ) $userCommentLabel = __("Comments:", "simple-voting");
    131             //$ratingLabel = __("Please rate:", "simple-voting");
    132             $ratingLabel = " ";
    133126           
    134127            $svNonce = wp_create_nonce( "simple-voting" );
     
    145138                        <div class="user-data-_-simple-voting">
    146139                            <DIV name="svUserNameGroup">
    147                                 <label name="sv-user-name-label" class="text-label-_-simple-voting"><span class="mandatory">*</span>{$userNameLabel}</label>
    148                                 <input name="svUserName" class="text-input-_-simple-voting" type="text"></input>
     140                                <input name="svUserName" class="text-input-_-simple-voting user-name-_-simple-voting" type="text"></input>
    149141                            </DIV>
    150142                            <DIV name="svUserEmailGroup">
    151                                 <label name="sv-user-email-label" class="text-label-_-simple-voting"><span class="mandatory">*</span>Email:</label>
    152                                 <input name="svUserEmail" class="text-input-_-simple-voting" type="email"></input>
     143                                <input name="svUserEmail" class="text-input-_-simple-voting user-email-_-simple-voting" type="email"></input>
    153144                            </DIV>
    154145                            <DIV>
    155                                 <label name="sv-user-comment-label" class="text-label-_-simple-voting">{$userCommentLabel}</label>
    156146                                <textarea name="svUserComment" class="text-input-_-simple-voting user-comment-_-simple-voting"></textarea>
    157147                            </DIV>
     
    159149                    </form>
    160150                    <div name="svVotingGroup">
    161                         <div class='voting-label-_-simple-voting'>{$ratingLabel}</div>
    162151                        <div name="svVotingElements">
    163152svHtml_part1;
  • simple-voting/trunk/core/class-vote-subject-_-simple-voting.php

    r1120453 r1127935  
    163163       
    164164        return( implode( array(
    165             "<div class='voting-result-{$resultClassSuffix}-_-simple-voting'>",
    166                 __("Rating", "simple-voting")." <span id='svFinalRating'>{$votingResult}</span>",
    167                 " (" . __("out of", "simple-voting") . " {$this->getVotesCount()} " . __("votes", "simple-voting").")",
     165            "<div class='voting-result-_-simple-voting voting-result-{$resultClassSuffix}-_-simple-voting'>",
     166                "{$votingResult}<span class='resulting-space-_-simple-voting'>span</span>({$this->getVotesCount()} ",
     167                "<span class='resulting-men-_-simple-voting'>voters</span>)",
    168168            "</div>",
    169169            $this->getAdminHtmlCode()
  • simple-voting/trunk/core/css/voting-_-simple-voting.css

    r1127167 r1127935  
    2020}
    2121
    22 .user-data-_-simple-voting .text-input-_-simple-voting { width: 100%; }
     22.user-data-_-simple-voting .text-input-_-simple-voting {
     23    width: 100%;
     24    padding-left: 33px;
     25    margin-bottom: 15px;
     26    background-position: 4px 8px;
     27    background-repeat:  no-repeat;
     28}
    2329
    24 .user-data-_-simple-voting .user-comment-_-simple-voting { height: 70px; }
     30.user-data-_-simple-voting .user-name-_-simple-voting {
     31    background-image:url(../../images/user.png);
     32}
    2533
    26 .user-data-_-simple-voting label.text-label-_-simple-voting { width: 100%; font-weight: bold; text-align: left; padding: 3px; }
     34.user-data-_-simple-voting .user-email-_-simple-voting {
     35    background-image:url(../../images/mail.png);
     36}
    2737
    28 .user-data-_-simple-voting .mandatory { color: red; text-weigth: bold; }
     38.user-data-_-simple-voting .user-comment-_-simple-voting {
     39    height: 100px;
     40    background-image:url(../../images/comments.png);
     41}
    2942
    3043.user-data-_-simple-voting .text-label-alarm-_-simple-voting {
     
    3952.voting-area-_-simple-voting span.voting-element-_-simple-voting a:hover { border: 1px solid blue; color: white; text-decoration: none; }
    4053
    41 /* Minor adjustments */
    42 .voting-label-_-simple-voting:after {
    43   content: '\A';
    44   white-space: pre-wrap;
    45   padding-bottom: 5px;
    46 }
    47 .voting-label-_-simple-voting {
    48   padding-bottom: 5px;
    49   white-space: pre-wrap;
     54.voting-area-_-simple-voting .voting-result-_-simple-voting {
     55    font-size: 140%;
    5056}
    5157
     58.voting-area-_-simple-voting span.resulting-space-_-simple-voting {
     59    display: inline-block;
     60    text-indent: -10000px;
     61    width: 20px;
     62}
    5263
    53 #svFinalRating { font-size: 14px;   font-weight: bold; }
     64.voting-area-_-simple-voting span.resulting-men-_-simple-voting {
     65    display: inline-block;
     66    text-indent: -10000px;
     67    width: 26px;
     68    background-image:url(../../images/user.png);
     69    background-position: 50% 50%;
     70    background-repeat:  no-repeat;
     71}
    5472
    5573/* Voting buttons gradient */
Note: See TracChangeset for help on using the changeset viewer.