Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added ThomasBuxo's CSS fix

  • Loading branch information...
commit d8935373182685fe85c8569e9c8f1915ed576b1b 1 parent d787219
@dlanger authored
Showing with 13 additions and 7 deletions.
  1. +2 −1  readme.txt
  2. +5 −0 simpleslider.css
  3. +6 −6 simpleslider.php
View
3  readme.txt
@@ -110,6 +110,7 @@ link decorations are all styled by the theme that's in use.
= 1.2 =
* Refactored some internals
* Added auto-advance support
+* Controls are now their own CSS classes (thanks to ThomasBuxo)
== Upgrade Notice ==
@@ -120,4 +121,4 @@ Initial upload to Wordpress.org.
This version allows the use of all Cycle translations. Adds support for internationalization. Upgrades the version of Cycle Lite used to properly hide non-displayed elements and their links.
= 1.2 =
-This version support auto-advancing slideshows.
+This version support auto-advancing slideshows, as well as improved internals and more customizable CSS.
View
5 simpleslider.css
@@ -8,6 +8,11 @@
margin: 10px auto;
text-align: center;
font-size: 0.75em;
+ width: 100%;
+}
+
+.simpleslider_counter {
+ display: inline;
}
.simpleslider_show {
View
12 simpleslider.php
@@ -153,19 +153,19 @@ function sss_handle_shortcode( $attrs ) {
// Controls
if ( true == $show_counter )
- $image_counter = "<span id=\"{$slider_show_id}_count\">1</span>" .
- '/' . count($images);
+ $image_counter = '<div class="simpleslider_counter"><span ' .
+ "id=\"{$slider_show_id}" .
+ '_count">1</span>/' . count($images) . '</div>';
else
$image_counter = '';
- $resp .= "<div style=\"width: {$thumb_w}px; \" " .
- "class=\"simpleslider_controls\">";
+ $resp .= '<div class="simpleslider_controls">';
$resp .= "<a href=\"#\" id=\"{$slider_show_id}_prev\" " .
- "title=\"Previous Image\" class=\"simpleslider_link\">◄ " .
+ "title=\"Previous Image\" class=\"simpleslider_link prev\">◄ " .
__( 'Prev.', 'simple_slideshow' ) . "</a> " .
"&nbsp; ${image_counter} " .
"&nbsp; <a href=\"#\" id=\"{$slider_show_id}_next\" " .
- "title=\"Next Image\" class=\"simpleslider_link\">" .
+ "title=\"Next Image\" class=\"simpleslider_link next\">" .
__( 'Next', 'simple_slideshow' ) . " ►</a>";
$resp .= "</div>\n";
Please sign in to comment.
Something went wrong with that request. Please try again.