Changeset 1127935
- Timestamp:
- 04/04/2015 08:34:52 PM (11 years ago)
- Location:
- simple-voting
- Files:
-
- 4 added
- 6 edited
-
assets/screenshot-1.png (modified) (previous)
-
assets/screenshot-2.png (modified) (previous)
-
trunk/README.txt (modified) (1 diff)
-
trunk/core/class-shortcode-processor-_-simple-voting.php (modified) (3 diffs)
-
trunk/core/class-vote-subject-_-simple-voting.php (modified) (1 diff)
-
trunk/core/css/voting-_-simple-voting.css (modified) (2 diffs)
-
trunk/images (added)
-
trunk/images/comments.png (added)
-
trunk/images/mail.png (added)
-
trunk/images/user.png (added)
Legend:
- Unmodified
- Added
- Removed
-
simple-voting/trunk/README.txt
r1127171 r1127935 14 14 15 15 You 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 have18 German-localized WordPress with de_DE site locale, plugin will show German labels, if your WordPress is19 Russian-localized with ru_RU locale, plugin will show Russian labels, and so on.20 16 21 17 Any questions and bug reports are welcomed at [email protected] -
simple-voting/trunk/core/class-shortcode-processor-_-simple-voting.php
r1127167 r1127935 124 124 125 125 $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 = " ";133 126 134 127 $svNonce = wp_create_nonce( "simple-voting" ); … … 145 138 <div class="user-data-_-simple-voting"> 146 139 <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> 149 141 </DIV> 150 142 <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> 153 144 </DIV> 154 145 <DIV> 155 <label name="sv-user-comment-label" class="text-label-_-simple-voting">{$userCommentLabel}</label>156 146 <textarea name="svUserComment" class="text-input-_-simple-voting user-comment-_-simple-voting"></textarea> 157 147 </DIV> … … 159 149 </form> 160 150 <div name="svVotingGroup"> 161 <div class='voting-label-_-simple-voting'>{$ratingLabel}</div>162 151 <div name="svVotingElements"> 163 152 svHtml_part1; -
simple-voting/trunk/core/class-vote-subject-_-simple-voting.php
r1120453 r1127935 163 163 164 164 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>)", 168 168 "</div>", 169 169 $this->getAdminHtmlCode() -
simple-voting/trunk/core/css/voting-_-simple-voting.css
r1127167 r1127935 20 20 } 21 21 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 } 23 29 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 } 25 33 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 } 27 37 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 } 29 42 30 43 .user-data-_-simple-voting .text-label-alarm-_-simple-voting { … … 39 52 .voting-area-_-simple-voting span.voting-element-_-simple-voting a:hover { border: 1px solid blue; color: white; text-decoration: none; } 40 53 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%; 50 56 } 51 57 58 .voting-area-_-simple-voting span.resulting-space-_-simple-voting { 59 display: inline-block; 60 text-indent: -10000px; 61 width: 20px; 62 } 52 63 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 } 54 72 55 73 /* Voting buttons gradient */
Note: See TracChangeset
for help on using the changeset viewer.