+
- NOT WORKING YEY :(
+
+
+
+
diff --git a/admin/res/sceditor/plugins/flatPressCustomBBCodes.js b/admin/res/sceditor/plugins/flatPressCustomBBCodes.js
new file mode 100644
index 0000000..5e86ca0
--- /dev/null
+++ b/admin/res/sceditor/plugins/flatPressCustomBBCodes.js
@@ -0,0 +1,70 @@
+/* Include a headers and IMG fix */
+
+// IMG copied and modified from format/bbcode.js
+sceditor.formats.bbcode.set('img', {
+ allowsEmpty: true,
+ tags: {
+ img: {
+ src: null
+ }
+ },
+ allowedChildren: ['#'],
+ quoteType: sceditor.BBCodeParser.QuoteType.never,
+ format: function (element, content) {
+ var width, height,
+ attribs = '',
+ style = function (name) {
+ return element.style ? element.style[name] : null;
+ };
+
+ const EMOTICON_DATA_ATTR = 'data-sceditor-emoticon';
+
+ // check if this is an emoticon image
+ if (sceditor.dom.attr(element, EMOTICON_DATA_ATTR)) {
+ return content;
+ }
+
+ width = sceditor.dom.attr(element, 'width') || style('width');
+ height = sceditor.dom.attr(element, 'height') || style('height');
+
+ // only add width and height if one is specified
+ if ((element.complete && (width || height)) ||
+ (width && height)) {
+
+ attribs = '=' + sceditor.dom.width(element) + 'x' +
+ sceditor.dom.height(element);
+ }
+
+ return '[img=' + sceditor.dom.attr(element, 'src') + '' + attribs + ']' + '[/img]';
+ },
+ html: function (token, attrs, content) {
+ var undef, width, height, match,
+ attribs = '';
+
+ // handle [img width=340 height=240]url[/img]
+ width = attrs.width;
+ height = attrs.height;
+
+ // handle [img=340x240]url[/img]
+ if (attrs.defaultattr) {
+ match = attrs.defaultattr.split(/x/i);
+
+ width = match[0];
+ height = (match.length === 2 ? match[1] : match[0]);
+ }
+
+ if (width !== undef) {
+ attribs += ' width="' + sceditor.escapeEntities(width, true) + '"';
+ }
+
+ if (height !== undef) {
+ attribs += ' height="' + sceditor.escapeEntities(height, true) + '"';
+ }
+
+ if(/^images/.test(content)) { // Fix small bug with fp-content directory
+ return '
 + ')
';
+ } else {
+ return '
 + ')
';
+ }
+ }
+});
\ No newline at end of file
diff --git a/fp-plugins/mediamanager/res/folder.gif b/fp-plugins/mediamanager/res/folder.gif
deleted file mode 100644
index 4826460..0000000
Binary files a/fp-plugins/mediamanager/res/folder.gif and /dev/null differ
diff --git a/fp-plugins/mediamanager/res/folder.png b/fp-plugins/mediamanager/res/folder.png
new file mode 100644
index 0000000..784e8fa
Binary files /dev/null and b/fp-plugins/mediamanager/res/folder.png differ
diff --git a/fp-plugins/mediamanager/res/image.png b/fp-plugins/mediamanager/res/image.png
new file mode 100644
index 0000000..fc3c393
Binary files /dev/null and b/fp-plugins/mediamanager/res/image.png differ
diff --git a/fp-plugins/mediamanager/res/image2.gif b/fp-plugins/mediamanager/res/image2.gif
deleted file mode 100644
index 751faee..0000000
Binary files a/fp-plugins/mediamanager/res/image2.gif and /dev/null differ
diff --git a/fp-plugins/mediamanager/res/style.css b/fp-plugins/mediamanager/res/style.css
index fc54d2b..811f19e 100644
--- a/fp-plugins/mediamanager/res/style.css
+++ b/fp-plugins/mediamanager/res/style.css
@@ -1,18 +1,22 @@
.type-attachs a {
padding-left: 25px;
- background-image: url('unknown.gif');
+ background-image: url('unknown.png');
background-repeat: no-repeat;
background-position: left center;
}
.type-images a {
padding-left: 25px;
- background-image: url('image2.gif');
+ background-image: url('image.png');
background-repeat: no-repeat;
background-position: left center;
}
.type-gallery a {
padding-left: 25px;
- background-image: url('folder.gif');
+ background-image: url('folder.png');
background-repeat: no-repeat;
background-position: left center;
}
+
+.btn {
+ margin-bottom: 0.2rem !important;
+}
\ No newline at end of file
diff --git a/fp-plugins/mediamanager/res/unknown.gif b/fp-plugins/mediamanager/res/unknown.gif
deleted file mode 100644
index 32b1ea2..0000000
Binary files a/fp-plugins/mediamanager/res/unknown.gif and /dev/null differ
diff --git a/fp-plugins/mediamanager/res/unknown.png b/fp-plugins/mediamanager/res/unknown.png
new file mode 100644
index 0000000..8b8b1ca
Binary files /dev/null and b/fp-plugins/mediamanager/res/unknown.png differ
diff --git a/fp-plugins/mediamanager/tpls/admin.plugin.mediamanager.files.tpl b/fp-plugins/mediamanager/tpls/admin.plugin.mediamanager.files.tpl
index 5ef3d1e..5f8e262 100644
--- a/fp-plugins/mediamanager/tpls/admin.plugin.mediamanager.files.tpl
+++ b/fp-plugins/mediamanager/tpls/admin.plugin.mediamanager.files.tpl
@@ -1,112 +1,134 @@
-
{$plang.head}
-
{$plang.description}
+
{include file=shared:errorlist.tpl}
{html_form class=option-set}
-{$plang.page}: {$paginator.current} / {$paginator.total}
-{if $currentgallery!=""}
gallery '{$currentgallery}'
{/if}
-
-
-
- {foreach name=pagelist from=$paginator.pages item=page}
- {if $paginator.current==$page}
- {$page}
- {else}
- {$page}
- {/if}
- {if $smarty.foreach.pagelist.last==false} - {/if}
- {/foreach}
-
-
+
+
+
+
+
+
+
+
+
+ {$plang.page}: {$paginator.current} / {$paginator.total}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{/html_form}