Skip to content
Browse files

Some style fixes

  • Loading branch information...
1 parent 18fbf85 commit 7da7ab1aba78a096017bc0a7147c1874d10db58e @splitbrain committed Oct 25, 2012
Showing with 67 additions and 4 deletions.
  1. +4 −0 lang/en/lang.php
  2. +1 −1 plugin.info.txt
  3. +59 −0 screen.css
  4. +1 −1 script.js
  5. +2 −2 syntax.php
View
4 lang/en/lang.php
@@ -0,0 +1,4 @@
+<?php
+
+$lang['pages'] = 'Gallery Pages:';
+$lang['js']['addgal'] = 'Add namespace as gallery';
View
2 plugin.info.txt
@@ -1,7 +1,7 @@
base gallery
author Andreas Gohr
email andi@splitbrain.org
-date 2010-04-30
+date 2012-10-25
name Gallery Plugin
desc Creates a gallery of images from a namespace or RSS/ATOM feed
url http://www.dokuwiki.org/plugin:gallery
View
59 screen.css
@@ -0,0 +1,59 @@
+div.dokuwiki div.gallery table {
+ border: none;
+}
+div.dokuwiki div.gallery table td {
+ padding: 1em;
+ text-align: center;
+ vertical-align: middle;
+ border: none;
+}
+
+div.dokuwiki div.gallery table img.tn {
+ padding: 0.4em;
+ border: 1px solid __border__;
+}
+
+div.dokuwiki div.gallery {
+ clear: left;
+ margin-bottom: 1em;
+}
+
+/*div.dokuwiki div.gallery div {
+ * float: left;
+ * }*/
+
+div.dokuwiki div.gallery img.tn {
+ margin: 9px;
+ vertical-align: middle;
+ padding: 0.4em;
+ border: 1px solid #000;
+}
+
+div.dokuwiki div.gallery_left {
+ float: left;
+}
+
+div.dokuwiki div.gallery div {
+ float: left;
+}
+
+div.dokuwiki div.gallery_right {
+ float: right;
+}
+
+div.dokuwiki div.gallery_center {
+ margin-left: auto;
+ margin-right: auto;
+}
+
+div.dokuwiki div.gallery_center {
+ width: 80%;
+ text-align: center;
+}
+
+/* for pagination */
+div.dokuwiki div.gallery div.gallery_pages {
+ float: none;
+ text-align: left;
+}
+
View
2 script.js
@@ -12,7 +12,7 @@ function gallery_plugin(){
var glnk = document.createElement('a');
var gbrk = document.createElement('br');
glnk.name = 'gallery_plugin';
- glnk.innerHTML = 'Add namespace as gallery'; //FIXME localize
+ glnk.innerHTML = LANG.plugins.gallery.addgal; //FIXME localize
glnk.style.cursor = 'pointer';
glnk.onclick = function(){
View
4 syntax.php
@@ -464,9 +464,9 @@ function _gallery($data){
// pagination links
$pgret = '';
if($page){
- $pgret .= '<div class="gallery_pages">';
+ $pgret .= '<div class="gallery_pages"><span>'.$this->getLang('pages').' </span>';
for($j=1; $j<=$page; $j++){
- $pgret .= '<a href="#gallery__'.$data['galid'].'_'.$j.'" class="gallery_pgsel">'.$j.'</a> ';
+ $pgret .= '<a href="#gallery__'.$data['galid'].'_'.$j.'" class="gallery_pgsel button">'.$j.'</a> ';
}
$pgret .= '</div>';
}

0 comments on commit 7da7ab1

Please sign in to comment.
Something went wrong with that request. Please try again.