Arsene
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Thank you, exactly what I needed! Wierd I haven’t found it myself.
Forum: Themes and Templates
In reply to: Creating Javascript array in loopAnyone?
Forum: Themes and Templates
In reply to: Creating Javascript array in loopAnd one more thing: I tried to make “galleries” more unique by ithe_ID() tag and it didn’t work really well. At least I have unique names for images.
<!--The image which should be changed--> <?php $thumb = get_post_meta($post->ID, 'Image0', $single = true); if($thumb !== '') { echo '<img src="'. $thumb .'" alt="dynamic" width="380" height="380" name="imgDefault'; } ?> <?php the_ID(); ?> <?php $thumb = get_post_meta($post->ID, 'Image0', $single = true); if($thumb !== '') { echo '" />'; }?> ?> <!--Spans with numbers--> <span onclick="swap(0, 'imgDefault<?php the_ID(); ?>')" onmouseover="swap(0, 'imgDefault<?php the_ID(); ?>')" class="gal"> <?php $thumb = get_post_meta($post->ID, 'Image0', $single = true); if($thumb !== '') { echo ' 1 '; } ?> </span> <span onclick="swap(1, 'imgDefault<?php the_ID(); ?>')" onmouseover="swap(1, 'imgDefault<?php the_ID(); ?>')" class="gal"> <?php $thumb = get_post_meta($post->ID, 'Image1', $single = true); if($thumb !== '') { echo ' 2 '; } ?>Forum: Plugins
In reply to: Making calendar structure for posts/eventsAnyone, please? Or was it too much of desperate fluster?
Viewing 4 replies - 1 through 4 (of 4 total)