├── .gitignore ├── LICENSE ├── README.md ├── StarRatingField.php ├── acf-star_rating_field.php ├── composer.json ├── css └── input.css ├── js └── input.js ├── lang ├── acf-star-rating-field.mo ├── acf-star-rating-field.pot ├── ca.mo ├── ca.po ├── es_ES.mo └── es_ES.po └── readme.txt /.gitignore: -------------------------------------------------------------------------------- 1 | # OS generated files # 2 | ###################### 3 | .DS_Store 4 | .DS_Store? 5 | ._* 6 | .Spotlight-V100 7 | .Trashes 8 | ehthumbs.db 9 | Thumbs.db 10 | 11 | /vendor/ 12 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Kevin Ruscoe 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ----------------------- 2 | 3 | # ACF Star Rating Field 4 | 5 | A simple star rating field for ACF. 6 | 7 | ----------------------- 8 | 9 | ## Compatibility 10 | 11 | This ACF field type is compatible with: 12 | * ACF 5 13 | 14 | ## Usage 15 | 16 | ### In the admin 17 | 18 | Fields are presented like: 19 | 20 | ![alt text](http://i.imgur.com/177YpD1.png "Ohhhh, screenshot") 21 | 22 | ### In your site 23 | 24 | The plugin simply provides a interactive star-rating field in the WP admin. The value returned is bog-standard `int`. The reason for this is you may want to rate your things visually different on your website (i.e. giving something 3/5 pies, rather than 3/5 stars). So just write a simple loop to display, like: 25 | 26 | ``` 27 | $rating = get_field('rating'); 28 | 29 | for ($i = 0; $i < $rating; $i++) { 30 | print ""; 31 | } 32 | 33 | ``` 34 | 35 | ## Installation 36 | 37 | 1. Download the repo and move it into your `wp-content/plugins` folder 38 | 2. Activate the Star Rating plugin via the plugins admin page 39 | 3. Create a new field via ACF and select the Star Rating type 40 | 41 | ## PR very much welcome! 42 | Bugs fixes are very much welcome. If you have a feature request, please open an issue before writing your code! 43 | 44 | ## Need this tweaking? 45 | 46 | Drop me an email hello@kevinruscoe.me and we'll sort something out. -------------------------------------------------------------------------------- /StarRatingField.php: -------------------------------------------------------------------------------- 1 | name = 'star_rating_field'; 19 | 20 | $this->label = __('Star Rating', 'acf-star_rating_field'); 21 | 22 | $this->category = 'content'; 23 | 24 | $this->defaults = array( 25 | 'max_stars' => 5, 26 | ); 27 | 28 | $this->l10n = array( 29 | 'error' => __('Error! Please enter a higher value', 'acf-star_rating_field'), 30 | ); 31 | 32 | parent::__construct(); 33 | } 34 | 35 | /** 36 | * render_field_settings() 37 | * 38 | * Create extra settings for your field. These are visible when editing a field 39 | * 40 | * @type action 41 | * @since 3.6 42 | * @date 23/01/13 43 | * 44 | * @param $field (array) the $field being edited 45 | * 46 | * @return void 47 | */ 48 | public function render_field_settings($field) 49 | { 50 | acf_render_field_setting($field, array( 51 | 'label' => __('Maximum Rating', 'acf-star_rating_field'), 52 | 'instructions' => __('Maximum number of stars', 'acf-star_rating_field'), 53 | 'type' => 'number', 54 | 'name' => 'max_stars' 55 | )); 56 | 57 | acf_render_field_setting($field, array( 58 | 'label' => __('Return Type', 'acf-star_rating_field'), 59 | 'instructions' => __('What should be returned?', 'acf-star_rating_field'), 60 | 'type' => 'select', 61 | 'layout' => 'horizontal', 62 | 'choices' => array( 63 | '0' => __('Number', 'num'), 64 | '1' => __('List (unstyled)', 'list_u'), 65 | '2' => __('List (fa-awesome)', 'list_fa'), 66 | ), 67 | 'name' => 'return_type' 68 | )); 69 | 70 | acf_render_field_setting($field, array( 71 | 'label' => __('Allow Half Rating', 'acf-star_rating_field'), 72 | 'instructions' => __('Allow half ratings?', 'acf-star_rating_field'), 73 | 'type' => 'true_false', 74 | 'name' => 'allow_half' 75 | )); 76 | 77 | acf_render_field_setting($field, array( 78 | 'label' => __('Theme', 'acf-star_rating_field'), 79 | 'instructions' => __('Select theme?', 'acf-star_rating_field'), 80 | 'type' => 'select', 81 | 'choices' => array( 82 | 'default' => __('Default', 'default'), 83 | 'color' => __('Color', 'color'), 84 | ), 85 | 'name' => 'theme' 86 | )); 87 | } 88 | 89 | /** 90 | * render_field() 91 | * 92 | * Create the HTML interface for your field 93 | * 94 | * @type action 95 | * @since 3.6 96 | * @date 23/01/13 97 | * 98 | * @param array $field the $field being rendered 99 | * 100 | * @return string 101 | */ 102 | public function render_field($field) 103 | { 104 | 105 | $html = ' 106 |
%s
107 | %s 108 | 109 | '; 110 | 111 | $starClasses = apply_filters( 112 | 'star_rating_field_admin_star_classes', 113 | array('fa fa-star-o', 'fa fa-star-half-o', 'fa fa-star') 114 | ); 115 | 116 | if (count($starClasses) !== 3) { 117 | return "Error: 3 classes are required to display rating field: blank class, half class and full class."; 118 | } 119 | 120 | printf( 121 | '', 122 | json_encode($starClasses) 123 | ); 124 | 125 | print sprintf( 126 | $html, 127 | $this->make_list( 128 | $field['max_stars'], 129 | $field['value'], 130 | '
  • ', 131 | $starClasses, 132 | $field['allow_half'] 133 | ), 134 | __('Clear', 'acf-star_rating_field'), 135 | $field['allow_half'], 136 | esc_attr($field['name']), 137 | esc_attr($field['value']) 138 | ); 139 | } 140 | 141 | /** 142 | * input_admin_enqueue_scripts() 143 | * 144 | * This action is called in the admin_enqueue_scripts action on the edit screen where your field is created. 145 | * Use this action to add CSS + JavaScript to assist your render_field() action. 146 | * 147 | * @type action (admin_enqueue_scripts) 148 | * @since 3.6 149 | * @date 23/01/13 150 | * 151 | * @return void 152 | */ 153 | public function input_admin_enqueue_scripts() 154 | { 155 | $dir = plugin_dir_url(__FILE__); 156 | //https://github.com/jonpxpx/acf-star-rating-field/blob/66734ccb957e4dd41f858322a10c1ea6f52df503/StarRatingField.php#L157 157 | //https://github.com/kevinruscoe/acf-star-rating-field/issues/55#issuecomment-2023004441 158 | if( get_post_type() !== 'acf-field-group' ){ 159 | wp_enqueue_script('acf-input-star_rating', "{$dir}js/input.js"); 160 | } 161 | wp_enqueue_style( 162 | 'font-awesome', 163 | "//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" 164 | ); 165 | wp_enqueue_style('acf-input-star_rating', "{$dir}css/input.css"); 166 | } 167 | 168 | /** 169 | * load_value() 170 | * 171 | * This filter is applied to the $value after it is loaded from the db 172 | * 173 | * @type filter 174 | * @since 3.6 175 | * @date 23/01/13 176 | * 177 | * @param mixed $value the value found in the database 178 | * @param mixed $post_id the $post_id from which the value was loaded 179 | * @param array $field the field array holding all the field options 180 | * 181 | * @return float $value 182 | */ 183 | public function load_value($value, $post_id, $field) 184 | { 185 | return floatval($value); 186 | } 187 | 188 | /** 189 | * update_value() 190 | * 191 | * This filter is applied to the $value before it is saved in the db 192 | * 193 | * @type filter 194 | * @since 3.6 195 | * @date 23/01/13 196 | * 197 | * @param mixed $value the value found in the database 198 | * @param mixed $post_id the $post_id from which the value was loaded 199 | * @param array $field the field array holding all the field options 200 | * @return float $value 201 | */ 202 | public function update_value($value, $post_id, $field) 203 | { 204 | return floatval($value); 205 | } 206 | 207 | /** 208 | * format_value() 209 | * 210 | * This filter is appied to the $value after it is loaded from the db and before it is returned to the template 211 | * 212 | * @type filter 213 | * @since 3.6 214 | * @date 23/01/13 215 | * 216 | * @param mixed $value the value which was loaded from the database 217 | * @param mixed $post_id the $post_id from which the value was loaded 218 | * @param array $field the field array holding all the field options 219 | * 220 | * @return mixed $value the modified value 221 | */ 222 | public function format_value($value, $post_id, $field) 223 | { 224 | if (empty($value)) { 225 | return $value; 226 | } 227 | 228 | switch ($field['return_type']) { 229 | case 0: 230 | return floatval($value); 231 | break; 232 | case 1: 233 | return $this->make_list( 234 | $field['max_stars'], 235 | $value, 236 | '
  • %d
  • ', 237 | array('blank', 'half', 'full'), 238 | $field['allow_half'] 239 | ); 240 | break; 241 | case 2: 242 | $dir = plugin_dir_url(__FILE__); 243 | 244 | wp_enqueue_style('acf-input-star_rating', "{$dir}css/input.css"); 245 | wp_enqueue_style( 246 | 'font-awesome', 247 | "//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" 248 | ); 249 | 250 | $html = '
    %s
    '; 251 | 252 | return sprintf( 253 | $html, 254 | $this->make_list( 255 | $field['max_stars'], 256 | $value, 257 | '
  • ', 258 | array('fa fa-star-o', 'fa fa-star-half-o', 'fa fa-star'), 259 | $field['allow_half'] 260 | ) 261 | ); 262 | break; 263 | } 264 | } 265 | 266 | /** 267 | * validate_value() 268 | * 269 | * This filter is used to perform validation on the value prior to saving. 270 | * All values are validated regardless of the field's required setting. This allows you to validate and return 271 | * messages to the user if the value is not correct 272 | * 273 | * @type filter 274 | * @date 11/02/2014 275 | * @since 5.0.0 276 | * 277 | * @param bool $valid validation status based on the value and the field's required setting 278 | * @param mixed $value the $_POST value 279 | * @param array $field the field array holding all the field options 280 | * @param string $input the corresponding input name for $_POST value 281 | * @return string $valid 282 | */ 283 | public function validate_value($valid, $value, $field, $input) 284 | { 285 | if ($value > $field['max_stars']) { 286 | $valid = __('The value is too large!', 'acf-star_rating_field'); 287 | } 288 | 289 | if ( $field['required'] == 1 && $value == 0 ) { 290 | $valid = sprintf( __('Please enter a value clicking on stars form 1 to %s', 'acf-star_rating_field'), $field['max_stars']); 291 | } 292 | 293 | return $valid; 294 | } 295 | 296 | /** 297 | * load_field() 298 | * 299 | * This filter is applied to the $field after it is loaded from the database 300 | * 301 | * @type filter 302 | * @date 23/01/2013 303 | * @since 3.6.0 304 | * 305 | * @param array $field the field array holding all the field options 306 | * @return array $field 307 | */ 308 | public function load_field($field) 309 | { 310 | return $field; 311 | } 312 | 313 | /** 314 | * update_field() 315 | * 316 | * This filter is applied to the $field before it is saved to the database 317 | * 318 | * @type filter 319 | * @date 23/01/2013 320 | * @since 3.6.0 321 | * 322 | * @param array $field the field array holding all the field options 323 | * @return array $field 324 | */ 325 | public function update_field($field) 326 | { 327 | return $field; 328 | } 329 | 330 | /** 331 | * make_list() 332 | * 333 | * Create a HTML list 334 | * 335 | * @param int $maxStars 336 | * @param int $currentStart 337 | * @param string $li 338 | * @param array $classes 339 | * @return string $html 340 | */ 341 | public function make_list($maxStars = 5, $currentStar = 0, $li = '', $classes = [], $allowHalf = false) 342 | { 343 | $html = '"; 360 | 361 | return $html; 362 | } 363 | } 364 | -------------------------------------------------------------------------------- /acf-star_rating_field.php: -------------------------------------------------------------------------------- 1 | (e.pageX - offset.left); 24 | 25 | if (leftSideClicked) { 26 | starField.val(starField.val() - 0.5); 27 | } 28 | } 29 | 30 | clearActiveStarClassesFromList(); 31 | 32 | starListItems.each(function(index){ 33 | var icon = $('i', $(this)); 34 | var starValue = starField.val(); 35 | 36 | if (index < starValue) { 37 | icon.removeClass(emptyClass) 38 | .removeClass(halfClass) 39 | .addClass(fullClass); 40 | 41 | if (allowHalf && (index + .5 == starValue)) { 42 | icon.removeClass(fullClass); 43 | icon.addClass(halfClass); 44 | } 45 | } 46 | }); 47 | 48 | starField.trigger("change"); 49 | }); 50 | 51 | clearButton.bind("click", function(e){ 52 | e.preventDefault(); 53 | 54 | clearActiveStarClassesFromList(); 55 | 56 | starField.val(0); 57 | 58 | starField.trigger("change"); 59 | }); 60 | 61 | function clearActiveStarClassesFromList() 62 | { 63 | starListItemStars 64 | .removeClass(fullClass) 65 | .removeClass(halfClass) 66 | .addClass(emptyClass); 67 | } 68 | } 69 | 70 | // Instantiate 71 | acf.add_action('ready append', function($el) { 72 | acf.get_fields({ 73 | type: 'star_rating_field' 74 | }, $el).each(function(){ 75 | initialiseField($(this)); 76 | }); 77 | }); 78 | })(jQuery); 79 | -------------------------------------------------------------------------------- /lang/acf-star-rating-field.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinruscoe/acf-star-rating-field/d5abcc1907e0afdc1be0686c086c93ae12c603f1/lang/acf-star-rating-field.mo -------------------------------------------------------------------------------- /lang/acf-star-rating-field.pot: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "Project-Id-Version: ACF Star Rating Field\n" 4 | "POT-Creation-Date: 2024-04-16 11:48+0200\n" 5 | "PO-Revision-Date: 2024-04-16 11:48+0200\n" 6 | "Last-Translator: \n" 7 | "Language-Team: https://github.com/kevinruscoe/acf-star-rating-field\n" 8 | "Language: en\n" 9 | "MIME-Version: 1.0\n" 10 | "Content-Type: text/plain; charset=UTF-8\n" 11 | "Content-Transfer-Encoding: 8bit\n" 12 | "X-Generator: Poedit 3.4.2\n" 13 | "X-Poedit-Basepath: ..\n" 14 | "X-Poedit-KeywordsList: __;_e\n" 15 | "X-Poedit-SearchPath-0: .\n" 16 | 17 | #: StarRatingField.php:20 18 | msgid "Star Rating" 19 | msgstr "" 20 | 21 | #: StarRatingField.php:29 22 | msgid "Error! Please enter a higher value" 23 | msgstr "" 24 | 25 | #: StarRatingField.php:51 26 | msgid "Maximum Rating" 27 | msgstr "" 28 | 29 | #: StarRatingField.php:52 30 | msgid "Maximum number of stars" 31 | msgstr "" 32 | 33 | #: StarRatingField.php:58 34 | msgid "Return Type" 35 | msgstr "" 36 | 37 | #: StarRatingField.php:59 38 | msgid "What should be returned?" 39 | msgstr "" 40 | 41 | #: StarRatingField.php:63 42 | msgid "Number" 43 | msgstr "" 44 | 45 | #: StarRatingField.php:64 46 | msgid "List (unstyled)" 47 | msgstr "" 48 | 49 | #: StarRatingField.php:65 50 | msgid "List (fa-awesome)" 51 | msgstr "" 52 | 53 | #: StarRatingField.php:71 54 | msgid "Allow Half Rating" 55 | msgstr "" 56 | 57 | #: StarRatingField.php:72 58 | msgid "Allow half ratings?" 59 | msgstr "" 60 | 61 | #: StarRatingField.php:78 62 | msgid "Theme" 63 | msgstr "" 64 | 65 | #: StarRatingField.php:79 66 | msgid "Select theme?" 67 | msgstr "" 68 | 69 | #: StarRatingField.php:82 70 | msgid "Default" 71 | msgstr "" 72 | 73 | #: StarRatingField.php:83 74 | msgid "Color" 75 | msgstr "" 76 | 77 | #: StarRatingField.php:134 78 | msgid "Clear" 79 | msgstr "" 80 | 81 | #: StarRatingField.php:286 82 | msgid "The value is too large!" 83 | msgstr "" 84 | 85 | #: StarRatingField.php:290 86 | #, php-format 87 | msgid "Please enter a value clicking on stars form 1 to %s" 88 | msgstr "" 89 | -------------------------------------------------------------------------------- /lang/ca.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinruscoe/acf-star-rating-field/d5abcc1907e0afdc1be0686c086c93ae12c603f1/lang/ca.mo -------------------------------------------------------------------------------- /lang/ca.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "Project-Id-Version: ACF Star Rating Field\n" 4 | "POT-Creation-Date: 2024-04-16 11:48+0200\n" 5 | "PO-Revision-Date: 2024-04-16 12:20+0200\n" 6 | "Last-Translator: \n" 7 | "Language-Team: https://github.com/kevinruscoe/acf-star-rating-field\n" 8 | "Language: ca\n" 9 | "MIME-Version: 1.0\n" 10 | "Content-Type: text/plain; charset=UTF-8\n" 11 | "Content-Transfer-Encoding: 8bit\n" 12 | "X-Generator: Poedit 3.4.2\n" 13 | "X-Poedit-Basepath: ..\n" 14 | "X-Poedit-KeywordsList: __;_e\n" 15 | "X-Poedit-SearchPath-0: .\n" 16 | 17 | #: StarRatingField.php:20 18 | msgid "Star Rating" 19 | msgstr "Valoració de estrelles" 20 | 21 | #: StarRatingField.php:29 22 | msgid "Error! Please enter a higher value" 23 | msgstr "Error! Introduïu un valor més alt" 24 | 25 | #: StarRatingField.php:51 26 | msgid "Maximum Rating" 27 | msgstr "Puntuació màxima" 28 | 29 | #: StarRatingField.php:52 30 | msgid "Maximum number of stars" 31 | msgstr "Nombre màxim d'estrelles" 32 | 33 | #: StarRatingField.php:58 34 | msgid "Return Type" 35 | msgstr "Tipus de retorn" 36 | 37 | #: StarRatingField.php:59 38 | msgid "What should be returned?" 39 | msgstr "Què s'ha de retornar?" 40 | 41 | #: StarRatingField.php:63 42 | msgid "Number" 43 | msgstr "Nombre" 44 | 45 | #: StarRatingField.php:64 46 | msgid "List (unstyled)" 47 | msgstr "Llista (sense estils)" 48 | 49 | #: StarRatingField.php:65 50 | msgid "List (fa-awesome)" 51 | msgstr "Llista (fa-awesome)" 52 | 53 | #: StarRatingField.php:71 54 | msgid "Allow Half Rating" 55 | msgstr "Permet mitja valoració" 56 | 57 | #: StarRatingField.php:72 58 | msgid "Allow half ratings?" 59 | msgstr "Voleu permetre la meitat a les puntuacions?" 60 | 61 | #: StarRatingField.php:78 62 | msgid "Theme" 63 | msgstr "Tema" 64 | 65 | #: StarRatingField.php:79 66 | msgid "Select theme?" 67 | msgstr "Voleu seleccionar el tema?" 68 | 69 | #: StarRatingField.php:82 70 | msgid "Default" 71 | msgstr "Per defecte" 72 | 73 | #: StarRatingField.php:83 74 | msgid "Color" 75 | msgstr "Color" 76 | 77 | #: StarRatingField.php:134 78 | msgid "Clear" 79 | msgstr "Neteja" 80 | 81 | #: StarRatingField.php:286 82 | msgid "The value is too large!" 83 | msgstr "El valor és massa gran!" 84 | 85 | #: StarRatingField.php:290 86 | #, php-format 87 | msgid "Please enter a value clicking on stars form 1 to %s" 88 | msgstr "Introduïu un valor en fer clic a les estrelles des de 1 fins a %s" 89 | -------------------------------------------------------------------------------- /lang/es_ES.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kevinruscoe/acf-star-rating-field/d5abcc1907e0afdc1be0686c086c93ae12c603f1/lang/es_ES.mo -------------------------------------------------------------------------------- /lang/es_ES.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "Project-Id-Version: ACF Star Rating Field\n" 4 | "POT-Creation-Date: 2024-04-16 11:48+0200\n" 5 | "PO-Revision-Date: 2024-04-16 11:54+0200\n" 6 | "Last-Translator: \n" 7 | "Language-Team: https://github.com/kevinruscoe/acf-star-rating-field\n" 8 | "Language: es_ES\n" 9 | "MIME-Version: 1.0\n" 10 | "Content-Type: text/plain; charset=UTF-8\n" 11 | "Content-Transfer-Encoding: 8bit\n" 12 | "X-Generator: Poedit 3.4.2\n" 13 | "X-Poedit-Basepath: ..\n" 14 | "X-Poedit-KeywordsList: __;_e\n" 15 | "X-Poedit-SearchPath-0: .\n" 16 | 17 | #: StarRatingField.php:20 18 | msgid "Star Rating" 19 | msgstr "Puntuación estrellas" 20 | 21 | #: StarRatingField.php:29 22 | msgid "Error! Please enter a higher value" 23 | msgstr "¡Error! Por favor introduce un valor mayor" 24 | 25 | #: StarRatingField.php:51 26 | msgid "Maximum Rating" 27 | msgstr "Puntuación máxima" 28 | 29 | #: StarRatingField.php:52 30 | msgid "Maximum number of stars" 31 | msgstr "Número máximo de estrellas" 32 | 33 | #: StarRatingField.php:58 34 | msgid "Return Type" 35 | msgstr "Tipo de retorno" 36 | 37 | #: StarRatingField.php:59 38 | msgid "What should be returned?" 39 | msgstr "¿Que debería devolver?" 40 | 41 | #: StarRatingField.php:63 42 | msgid "Number" 43 | msgstr "Número" 44 | 45 | #: StarRatingField.php:64 46 | msgid "List (unstyled)" 47 | msgstr "Lista (sin estilos)" 48 | 49 | #: StarRatingField.php:65 50 | msgid "List (fa-awesome)" 51 | msgstr "Lista (fa-awesome)" 52 | 53 | #: StarRatingField.php:71 54 | msgid "Allow Half Rating" 55 | msgstr "Permitir media puntuación" 56 | 57 | #: StarRatingField.php:72 58 | msgid "Allow half ratings?" 59 | msgstr "¿Quieres permitir medias puntuaciones?" 60 | 61 | #: StarRatingField.php:78 62 | msgid "Theme" 63 | msgstr "Tema" 64 | 65 | #: StarRatingField.php:79 66 | msgid "Select theme?" 67 | msgstr "¿Seleccionar el tema?" 68 | 69 | #: StarRatingField.php:82 70 | msgid "Default" 71 | msgstr "Por defecto" 72 | 73 | #: StarRatingField.php:83 74 | msgid "Color" 75 | msgstr "Color" 76 | 77 | #: StarRatingField.php:134 78 | msgid "Clear" 79 | msgstr "Limpiar" 80 | 81 | #: StarRatingField.php:286 82 | msgid "The value is too large!" 83 | msgstr "¡El valor es demasiado alto!" 84 | 85 | #: StarRatingField.php:290 86 | #, php-format 87 | msgid "Please enter a value clicking on stars form 1 to %s" 88 | msgstr "Por favor, introduce un valor haciendo clic en las estrellas desde la 1 hasta %s" 89 | -------------------------------------------------------------------------------- /readme.txt: -------------------------------------------------------------------------------- 1 | === Advanced Custom Fields: Star Rating Field === 2 | Contributors: Kevin Ruscoe 3 | Tags: star, rating 4 | Requires at least: 3.5 5 | Tested up to: 3.8.1 6 | Stable tag: trunk 7 | License: GPLv2 or later 8 | License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 | 10 | A simple star rating field for ACF. 11 | 12 | == A simple star rating field for ACF. == 13 | 14 | A simple star rating field for ACF. 15 | 16 | = Compatibility = 17 | 18 | This ACF field type is compatible with: 19 | * ACF 5 20 | 21 | == Installation == 22 | 23 | 1. Copy the report into your `wp-content/plugins` folder 24 | 2. Activate the Star Rating plugin via the plugins admin page 25 | 3. Create a new field via ACF and select the Star Rating type --------------------------------------------------------------------------------