Timeline for How to translate get_intermediate_image_sizes?
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 19, 2014 at 13:57 | vote | accept | Ksenia | ||
Jul 18, 2014 at 22:37 | answer | added | Sven | timeline score: 0 | |
Jul 18, 2014 at 21:53 | comment | added | Ksenia | I also posted this code above (in the question) with better formatting. | |
Jul 18, 2014 at 21:51 | history | edited | Ksenia | CC BY-SA 3.0 |
added 455 characters in body
|
Jul 18, 2014 at 21:48 | comment | added | Ksenia |
<select class="widefat" id="<?php echo $this->get_field_id('size'); ?>" name="<?php echo $this->get_field_name('size'); ?>"> <?php foreach ($this->getImageSizes() as $name => $atts): ?> <option value="<?php echo $name ?>"<?php echo ($name==$size?' selected':'') ?>><?php echo ucwords($name) . ' ('. implode( 'x', $atts ). ')' ?></option> <?php endforeach ?> </select>
|
|
Jul 18, 2014 at 21:46 | comment | added | Ksenia | Sven, thank you for your help. I use the following code to build a select: | |
Jul 18, 2014 at 18:07 | history | tweeted | twitter.com/#!/StackWordPress/status/490196295425196032 | ||
Jul 18, 2014 at 15:35 | comment | added | Sven |
$sizes is an array containing the image sizes; how do you build the select options?
|
|
Jul 18, 2014 at 14:39 | review | First posts | |||
Jul 18, 2014 at 14:49 | |||||
Jul 18, 2014 at 14:38 | history | asked | Ksenia | CC BY-SA 3.0 |