+
- 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 48264601ae0655bbb5b5539e54ab9c4c52c0ca96..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 225
zcmZ?wbhEHb6k!l!IK;s49|+FOJoEqm%rs*lV1NO|e|{kunZ*i;MI{PADl<=^BqLR!
zpfo8bGg%=eKQ}QmPfx)+wG1fXQJS8STCAgx4dP`uq-K`rCFkerC
yg@&WtvAFs%+oyn@vrAN+!2FgA&7LgdM$msG{jgj*VKw;b&W_&MNEp
LeCV-eWUvMRho4eP
diff --git a/fp-plugins/mediamanager/res/folder.png b/fp-plugins/mediamanager/res/folder.png
new file mode 100644
index 0000000000000000000000000000000000000000..784e8fa48234f4f64b6922a6758f254ee0ca08ec
GIT binary patch
literal 537
zcmV+!0_OdRP)x(K@^6+>g^d@v4;gkbWsEoXE%32*i1tcpTNXd5CcIl)ECgqz|2rE6EW}s7R?kl
za1q`0GCkMruC6-2LANtwVlsgzsp4?{@7$`KBv!G66>Vie3h?3OmEEkjwdLG0PgLVi
z`!N((f$A@n17Ldj#`};0I3@iHJ5M{#IZz|UIYRm4(!uV7eYIYIwQf&}_2J~}>pQ^n
z6o8--^T(=hkBNQ_k{-_GWE;FMW7!p}f{NG3nHZ{D5<3d8&tLh%a4AqqnjMkr3m&fkMdECD3N5}Unig5wy40;>lo4j~k+e}v)`
zR6)J8Mk*u=SpB`p6o)7j?S0T@9?bz#m@l>gc*zk__|*!FMcHwP!gwLJvS~9c0px8E
zW0oSgT$J*kO*Aq9I~CW*s{G*(t$KS{OS+#aO%?udUme<*TTEO`Fr@r_QT
zk=#}u-n~>Vm!+9S1PE{@3<)G~CPb<$Za;W?3+O}|+q)?*Pn355=}S(XIZmEANjZci
zf5
zj<%@MX^bD1^BwlS^+AD|$dm-1wial0hwPI;CDM?Y9SXW#@w-UF0SQ8OgplRTleOB2
zUjkDS|0U9pI|lSN*EvXUa~*UIclJdZ#)Npbwh9>YT?Z;=B8|l&^t~P~om?<5Lre$+
z;%`P>SL7`djY#8Y9$wv9dv|3p)AFlZ-6WvSM=7VP{@&>xS8Bwhc1-A7qQa*6llSbi$3t0`pjwvYB~D2%9p5teUK9
z!JHj-nw2N%{)ee19sAhWn7?J+(8*}hLs;X|rU4J$iGeWf`wdw5G*d!uZZa9_W^
ocG{GwRjPF}8>Y#Xb1hynfA)0M4)%aGYyBN0JvVI*5@fIj0DN?8ZvX%Q
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 32b1ea23fb6f6195f1bb17adf9c3cb2cc29dfefa..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 245
zcmZ?wbhEHb6k!l!IK;s4|Ns9p|NqaNIn&tKm;nhW{__jT$ShV!EGkg|Qki)QB^jv-
z1*J(jnaK(%`MHUid3p-osbxS3kJ9vv)M6clY!ENQAvLo^FF8L~MXnDYZz!
z(9+VBLGdRGBLf2?gAT|RknIf285XC#5QQ<|d}62BjvZR2H60wE-&H;pyTSqH(@-Vl>|&1p(LP>kg~E
zYiz5X^`c$+%8#zC{u)yfe-5
zmgid={Z3k(ERKCKrE7DF;=x4^O+
pzO8rLO8p|Ip=x)jHOtWj`bJBmKdh_V<`47(gQu&X%Q~loCIFbEay|e6
literal 0
HcmV?d00001
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}
|