Skip to content

Commit

Permalink
Update to v0.2.23
Browse files Browse the repository at this point in the history
- Update Summernote, fix Summernote plugins.
- Add multiline editing to some text inputs.
- Add FileRobot Image Editor in a dropdown section where images are added to content.
- Make sure edited images are saved in their appropriate folders.
- Fix Light & Dark styling for FileRobot Image Editing.
- Add Search for Images via Unsplash.com.
- Fix checkbox toggling.
- Add duplicate title check for content and pages.
- Change Country Flag lookup to Emoji's, reducing footprint.
- Adjust Dashboard widgets to resize and remember size depending on different screen widths to differentriate between SM, MD, LG, XL and XXL.
- Adjust administration menu to not completely disappear, and to not save it's state on mobile devices.
- Fix permissions for accounts to correctly respond to settings.
- Change content items images to link to content to edit/view rather than open in lightbox.
- Fix Calendar not rendering correctly when switch between table and calendar views.
- Adjust weather widget columns to collapse correctly when viewed on mobile devices.
- Remove Ladda, reducing CSS and Javascript footprint.
- Improve Page Blocking and update animation.
- Sort CSS Styles removing duplicates and unused declarations.
- Fix Save All to now save text editor contents.
- Fix Event/News side area display showing out of date and events from incorrect account levels.
- Fix Quickview Products now showing information, and allow multiple product viewing.
  • Loading branch information
Dennis Suitters committed Apr 1, 2023
1 parent 119a01f commit 80cde23
Show file tree
Hide file tree
Showing 485 changed files with 18,948 additions and 8,602 deletions.
25 changes: 24 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@
### v0.2.22
### v0.2.23
- Update Summernote, fix Summernote plugins.
- Add multiline editing to some text inputs.
- Add FileRobot Image Editor in a dropdown section where images are added to content.
- Make sure edited images are saved in their appropriate folders.
- Fix Light & Dark styling for FileRobot Image Editing.
- Add Search for Images via Unsplash.com.
- Fix checkbox toggling.
- Add duplicate title check for content and pages.
- Change Country Flag lookup to Emoji's, reducing footprint.
- Adjust Dashboard widgets to resize and remember size depending on different screen widths to differentriate between SM, MD, LG, XL and XXL.
- Adjust administration menu to not completely disappear, and to not save it's state on mobile devices.
- Fix permissions for accounts to correctly respond to settings.
- Change content items images to link to content to edit/view rather than open in lightbox.
- Fix Calendar not rendering correctly when switch between table and calendar views.
- Adjust weather widget columns to collapse correctly when viewed on mobile devices.
- Remove Ladda, reducing CSS and Javascript footprint.
- Improve Page Blocking and update animation.
- Sort CSS Styles removing duplicates and unused declarations.
- Fix Save All to now save text editor contents.
- Fix Event/News side area display showing out of date and events from incorrect account levels.
- Fix Quickview Products now showing information, and allow multiple product viewing.

#### v0.2.22
- Retheme primary Administration Interface.
- Fix Summernote Editor custom plugin button sizes to fit in better with default toolbar buttons.
- Fix filename renaming for media uploads, emailed links were creating encoded entities making files seem unavailable due to filename mismatch.
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![AuroraCMS](core/images/readmelogo.webp)
AuroraCMS the **Free** Australian Open Source [MIT](https://github.com/DiemenDesign/AuroraCMS/blob/master/LICENSE) licensed Content Management System, built primarily for Australian Businesses, built utilising [PHP](http://php.net/), PDO, [jQuery](http://jquery.com/) and [iCONS](https://github.com/DiemenDesign/iCONS). Built to take advantage of HTML5 and CSS3, with necessary SEO attributes that fit in with Google's recommendations, Micro-formats, JSON-LD, ARIA (A11Y), and general SEO Markup.

Current version is v0.2.22
Current version is v0.2.23

### Features
- AuroraCMS is a Quasi-MVC, Front End is completely MVC, with some AJAX Functions for Form Processing.
Expand Down Expand Up @@ -193,6 +193,7 @@ You can get themes from our Themes GitHub Repository @ [AuroraCMS-Themes](https:
- [Zebra_Image](https://github.com/stefangabos/Zebra_Image)
- [kses](https://github.com/RichardVasquez/kses)
- [elFinder](https://github.com/Studio-42/elFinder)
- [FileRobot Image Editor](https://github.com/scaleflex/filerobot-image-editor)

### Tested on:
- CentOS Linux 7.2.1511 with Webmin 1.791
Expand Down
9 changes: 0 additions & 9 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,14 @@ This is a quick list of things what need to be fixed or worked on to help those
- Add Instructional [Videos to the AuroraCMS YouTube Channel](https://www.youtube.com/channel/UC9vFbrBKmnSgf8TNUBvDX2Q)
- Add Content to the Wiki Pages on how to use AuroraCMS and how to create Templates.
- Administration
- Experiment with using contenteditable fields to display multi-line inputs:
````html
<div class="input-text" contenteditable="true" onkeyup="$('#heading').val($(this).text());"><?=$r['heading'];?></div>
````
- Convert Flags to use Glyph Unicodes rather than Images, to reduce CMS footprint.
- Convert Emoji's to use Glyph Unicodes rather than Images, to reduce CMS Footprint.
- Determine the possibility of displaying Google Search Console information, either on Dashboard (even if summarised) with links to be taken to GSC, or to a page showing more details.
- Accounts
- Add tab showing current/previous orders and status.
- Explore adding AVIF Image Compression to elFinder when uploading files.
- Safari still does not fully support displaying AVIF. Image elements work, but using AVIF via background-image doesn't work.
- Using @supports in CSS isn't fully supported in Safari yet either.
- Fix update core system
- Inventory
- Customer/Contact List, more of a selection Widget for emails and orders.
- Orders
- Add Orders Quick Edit Dropdown.
- Mobile Display Formatting.
- Newsletters
- Improve editing for Newsletter Email Layout, including being able to add Content, either manually or auto-generated by new content, or filterable by Tags for the Newsletter to associate relevant Content.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.2.22
v0.2.23
2 changes: 1 addition & 1 deletion core/add_adminsuggestion.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @author Dennis Suitters <[email protected]>
* @copyright 2014-2019 Diemen Design
* @license http://opensource.org/licenses/MIT MIT License
* @version 0.2.18
* @version 0.2.23
* @link https://github.com/DiemenDesign/AuroraCMS
* @notes This PHP Script is designed to be executed using PHP 7+
*/
Expand Down
2 changes: 1 addition & 1 deletion core/add_brand.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @author Dennis Suitters <[email protected]>
* @copyright 2014-2019 Diemen Design
* @license http://opensource.org/licenses/MIT MIT License
* @version 0.2.13
* @version 0.2.23
* @link https://github.com/DiemenDesign/AuroraCMS
* @notes This PHP Script is designed to be executed using PHP 7+
*/
Expand Down
2 changes: 1 addition & 1 deletion core/add_category.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @author Dennis Suitters <[email protected]>
* @copyright 2014-2019 Diemen Design
* @license http://opensource.org/licenses/MIT MIT License
* @version 0.2.13
* @version 0.2.23
* @link https://github.com/DiemenDesign/AuroraCMS
* @notes This PHP Script is designed to be executed using PHP 7+
*/
Expand Down
4 changes: 2 additions & 2 deletions core/add_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @author Dennis Suitters <[email protected]>
* @copyright 2014-2019 Diemen Design
* @license http://opensource.org/licenses/MIT MIT License
* @version 0.2.13
* @version 0.2.23
* @link https://github.com/DiemenDesign/AuroraCMS
* @notes This PHP Script is designed to be executed using PHP 7+
*/
Expand All @@ -18,14 +18,14 @@
}else{
if(!defined('PROTOCOL'))define('PROTOCOL','http://');
}
echo'<script>';
require'zebraimage/zebra_image.php';
require'sanitise.php';
define('THEME','../layout/'.$config['theme']);
define('URL',PROTOCOL.$_SERVER['HTTP_HOST'].$settings['system']['url'].'/');
define('UNICODE','UTF-8');
$theme=parse_ini_file(THEME.'/theme.ini',true);
$act=isset($_POST['act'])?filter_input(INPUT_POST,'act',FILTER_UNSAFE_RAW):filter_input(INPUT_GET,'act',FILTER_UNSAFE_RAW);
echo'<script>';
if($act!=''){
$uid=isset($_SESSION['uid'])?(int)$_SESSION['uid']:0;
$ip=$_SERVER['REMOTE_ADDR']=='::1'?'127.0.0.1':$_SERVER['REMOTE_ADDR'];
Expand Down
2 changes: 1 addition & 1 deletion core/add_discountrange.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @author Dennis Suitters <[email protected]>
* @copyright 2014-2019 Diemen Design
* @license http://opensource.org/licenses/MIT MIT License
* @version 0.2.13
* @version 0.2.23
* @link https://github.com/DiemenDesign/AuroraCMS
* @notes This PHP Script is designed to be executed using PHP 7+
*/
Expand Down
2 changes: 1 addition & 1 deletion core/add_download.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @author Dennis Suitters <[email protected]>
* @copyright 2014-2019 Diemen Design
* @license http://opensource.org/licenses/MIT MIT License
* @version 0.2.22
* @version 0.2.23
* @link https://github.com/DiemenDesign/AuroraCMS
* @notes This PHP Script is designed to be executed using PHP 7+
*/
Expand Down
4 changes: 2 additions & 2 deletions core/add_faq.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @author Dennis Suitters <[email protected]>
* @copyright 2014-2019 Diemen Design
* @license http://opensource.org/licenses/MIT MIT License
* @version 0.2.13
* @version 0.2.23
* @link https://github.com/DiemenDesign/AuroraCMS
* @notes This PHP Script is designed to be executed using PHP 7+
*/
Expand Down Expand Up @@ -42,7 +42,7 @@
'<form class="float-right" target="sp" action="core/purge.php">'.
'<input name="id" type="hidden" value="'.$id.'">'.
'<input name="t" type="hidden" value="content">'.
'<button class="trash" data-tooltip="tooltip" type="submit" aria-label="Delete"><i class="i"><svg role="img" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path d="m 5.4999377,5.7501979 v 4.5001871 q 0,0.109505 -0.070503,0.179508 -0.070503,0.07 -0.1795074,0.0705 H 4.7499064 q -0.1095045,0 -0.1795075,-0.0705 -0.070003,-0.0705 -0.070503,-0.179508 V 5.7501979 q 0,-0.1095045 0.070503,-0.1795075 0.070503,-0.070003 0.1795075,-0.070503 h 0.5000209 q 0.1095045,0 0.1795074,0.070503 0.070003,0.070503 0.070503,0.1795075 z m 2.0000833,0 v 4.5001871 q 0,0.109505 -0.070503,0.179508 -0.070503,0.07 -0.1795075,0.0705 H 6.7499898 q -0.1095046,0 -0.1795075,-0.0705 -0.070003,-0.0705 -0.070503,-0.179508 V 5.7501979 q 0,-0.1095045 0.070503,-0.1795075 0.070503,-0.070003 0.1795075,-0.070503 h 0.5000208 q 0.1095046,0 0.1795075,0.070503 0.070003,0.070503 0.070503,0.1795075 z m 2.0000833,0 v 4.5001871 q 0,0.109505 -0.070503,0.179508 -0.070503,0.07 -0.1795075,0.0705 H 8.7500731 q -0.1095046,0 -0.1795075,-0.0705 -0.070003,-0.0705 -0.070503,-0.179508 V 5.7501979 q 0,-0.1095045 0.070503,-0.1795075 0.070503,-0.070003 0.1795075,-0.070503 H 9.250094 q 0.1095046,0 0.1795075,0.070503 0.070003,0.070503 0.070503,0.1795075 z M 10.500146,11.406934 V 4.000625 H 3.4998543 v 7.406309 q 0,0.172007 0.054502,0.316513 0.054502,0.144506 0.1135047,0.211009 0.059003,0.0665 0.082004,0.0665 h 6.500271 q 0.0235,0 0.082,-0.0665 0.0585,-0.0665 0.113504,-0.211009 0.055,-0.144506 0.0545,-0.316513 z M 5.2499273,3.0000833 H 8.7500731 L 8.3750575,2.0860453 Q 8.3205552,2.0155423 8.2420519,2.0000417 H 5.7654487 q -0.078003,0.015501 -0.1330055,0.086004 z m 7.2503017,0.2500105 v 0.5000208 q 0,0.1095046 -0.0705,0.1795075 -0.0705,0.070003 -0.179507,0.070503 h -0.750031 v 7.4063089 q 0,0.648527 -0.367016,1.121046 Q 10.766157,13 10.250136,13 H 3.7498648 Q 3.2343433,13 2.866828,12.542981 2.4993126,12.085962 2.4998127,11.437435 V 3.999625 H 1.7497814 q -0.1095046,0 -0.1795075,-0.070503 Q 1.500271,3.8586191 1.499771,3.7496146 V 3.2495937 q 0,-0.1095045 0.070503,-0.1795074 0.070503,-0.070003 0.1795075,-0.070503 H 4.163882 L 4.7109048,1.695029 Q 4.8279097,1.4060169 5.1329224,1.2030085 5.4379351,1 5.7499481,1 H 8.2500523 Q 8.5625653,1 8.867078,1.2030085 9.1715907,1.4060169 9.2890956,1.695029 l 0.5470227,1.3045543 h 2.4141007 q 0.109504,0 0.179507,0.070503 0.07,0.070503 0.0705,0.1795074 z"/></svg></i></button>'.
'<button class="btn-danger" data-tooltip="tooltip" type="submit" aria-label="Delete"><i class="i"><svg role="img" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path d="m 5.4999377,5.7501979 v 4.5001871 q 0,0.109505 -0.070503,0.179508 -0.070503,0.07 -0.1795074,0.0705 H 4.7499064 q -0.1095045,0 -0.1795075,-0.0705 -0.070003,-0.0705 -0.070503,-0.179508 V 5.7501979 q 0,-0.1095045 0.070503,-0.1795075 0.070503,-0.070003 0.1795075,-0.070503 h 0.5000209 q 0.1095045,0 0.1795074,0.070503 0.070003,0.070503 0.070503,0.1795075 z m 2.0000833,0 v 4.5001871 q 0,0.109505 -0.070503,0.179508 -0.070503,0.07 -0.1795075,0.0705 H 6.7499898 q -0.1095046,0 -0.1795075,-0.0705 -0.070003,-0.0705 -0.070503,-0.179508 V 5.7501979 q 0,-0.1095045 0.070503,-0.1795075 0.070503,-0.070003 0.1795075,-0.070503 h 0.5000208 q 0.1095046,0 0.1795075,0.070503 0.070003,0.070503 0.070503,0.1795075 z m 2.0000833,0 v 4.5001871 q 0,0.109505 -0.070503,0.179508 -0.070503,0.07 -0.1795075,0.0705 H 8.7500731 q -0.1095046,0 -0.1795075,-0.0705 -0.070003,-0.0705 -0.070503,-0.179508 V 5.7501979 q 0,-0.1095045 0.070503,-0.1795075 0.070503,-0.070003 0.1795075,-0.070503 H 9.250094 q 0.1095046,0 0.1795075,0.070503 0.070003,0.070503 0.070503,0.1795075 z M 10.500146,11.406934 V 4.000625 H 3.4998543 v 7.406309 q 0,0.172007 0.054502,0.316513 0.054502,0.144506 0.1135047,0.211009 0.059003,0.0665 0.082004,0.0665 h 6.500271 q 0.0235,0 0.082,-0.0665 0.0585,-0.0665 0.113504,-0.211009 0.055,-0.144506 0.0545,-0.316513 z M 5.2499273,3.0000833 H 8.7500731 L 8.3750575,2.0860453 Q 8.3205552,2.0155423 8.2420519,2.0000417 H 5.7654487 q -0.078003,0.015501 -0.1330055,0.086004 z m 7.2503017,0.2500105 v 0.5000208 q 0,0.1095046 -0.0705,0.1795075 -0.0705,0.070003 -0.179507,0.070503 h -0.750031 v 7.4063089 q 0,0.648527 -0.367016,1.121046 Q 10.766157,13 10.250136,13 H 3.7498648 Q 3.2343433,13 2.866828,12.542981 2.4993126,12.085962 2.4998127,11.437435 V 3.999625 H 1.7497814 q -0.1095046,0 -0.1795075,-0.070503 Q 1.500271,3.8586191 1.499771,3.7496146 V 3.2495937 q 0,-0.1095045 0.070503,-0.1795074 0.070503,-0.070003 0.1795075,-0.070503 H 4.163882 L 4.7109048,1.695029 Q 4.8279097,1.4060169 5.1329224,1.2030085 5.4379351,1 5.7499481,1 H 8.2500523 Q 8.5625653,1 8.867078,1.2030085 9.1715907,1.4060169 9.2890956,1.695029 l 0.5470227,1.3045543 h 2.4141007 q 0.109504,0 0.179507,0.070503 0.07,0.070503 0.0705,0.1795074 z"/></svg></i></button>'.
'</form>'.
'</summary>'.
'<p>'.$da.'</p>'.
Expand Down
10 changes: 5 additions & 5 deletions core/add_forumdata.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @author Dennis Suitters <[email protected]>
* @copyright 2014-2019 Diemen Design
* @license http://opensource.org/licenses/MIT MIT License
* @version 0.2.13
* @version 0.2.23
* @link https://github.com/DiemenDesign/AuroraCMS
* @notes This PHP Script is designed to be executed using PHP 7+
*/
Expand Down Expand Up @@ -67,15 +67,15 @@ function rank($txt){
'<div class="input-text"><i class="i cathandle">drag</i></div>'.
'<div class="input-text">Category</div>'.
'<input type="text" name="da" value="'.$t.'" placeholder="Enter a Category...">'.
'<button class="save d-inline-flex" data-tooltip="tooltip" data-style="zoom-in" aria-label="Save"><i class="i">save</i></button>'.
'<button class="save d-inline-flex" data-tooltip="tooltip" aria-label="Save"><i class="i">save</i></button>'.
'</form>'.
'<form class="d-inline-flex" target="sp" method="post" action="core/update.php">'.
'<input type="hidden" name="id" value="'.$id.'">'.
'<input type="hidden" name="t" value="forumCategory">'.
'<input type="hidden" name="c" value="notes">'.
'<div class="input-text">Description</div>'.
'<input type="text" name="da" value="'.$da.'" placeholder="Enter a Description...">'.
'<button class="save" data-tooltip="tooltip" data-style="zoom-in" aria-label="Save"><i class="i">save</i></button>'.
'<button class="save" data-tooltip="tooltip" aria-label="Save"><i class="i">save</i></button>'.
'</form>'.
'<div class="input-text">'.
'<form class="d-inline-flex" target="sp" method="post" action="core/toggle.php">'.
Expand Down Expand Up @@ -151,15 +151,15 @@ function rank($txt){
'<div class="input-text"><i class="i subhandle">drag</i></div>'.
'<div class="input-text">Topic</div>'.
'<input class="text-input" type="text" name="da" value="'.$t.'" placeholder="Enter a Topic...">'.
'<button class="save d-inline-flex" data-tooltip="tooltip" data-style="zoom-in" aria-label="Save"><i class="i">save</i></button>'.
'<button class="save d-inline-flex" data-tooltip="tooltip" aria-label="Save"><i class="i">save</i></button>'.
'</form>'.
'<form class="d-inline-flex" target="sp" method="post" action="core/update.php">'.
'<input type="hidden" name="id" value="'.$id.'">'.
'<input type="hidden" name="t" value="forumTopics">'.
'<input type="hidden" name="c" value="notes">'.
'<div class="input-text">Description</div>'.
'<input type="text" name="da" value="'.$da.'" placeholder="Enter a Description...">'.
'<button class="save d-inline-flex" data-tooltip="tooltip" data-style="zoom-in" aria-label="Save"><i class="i">save</i></button>'.
'<button class="save d-inline-flex" data-tooltip="tooltip" aria-label="Save"><i class="i">save</i></button>'.
'</form>'.
'<div class="input-text">'.
'<form class="d-inline-flex" target="sp" method="post" action="core/toggle.php">'.
Expand Down
4 changes: 2 additions & 2 deletions core/add_hours.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @author Dennis Suitters <[email protected]>
* @copyright 2014-2019 Diemen Design
* @license http://opensource.org/licenses/MIT MIT License
* @version 0.2.13
* @version 0.2.23
* @link https://github.com/DiemenDesign/AuroraCMS
* @notes This PHP Script is designed to be executed using PHP 7+
*/
Expand Down Expand Up @@ -60,7 +60,7 @@
'<form target="sp" action="core/purge.php">'.
'<input name="id" type="hidden" value="'.$id.'">'.
'<input name="t" type="hidden" value="choices">'.
'<button class="purge trash" data-tooltip="tooltip" type="submit" aria-label="Delete"><i class="i">trash</i></button>&nbsp;&nbsp;<i class="i handle">drag</i>'.
'<button class="purge" data-tooltip="tooltip" type="submit" aria-label="Delete"><i class="i">trash</i></button>&nbsp;&nbsp;<i class="i handle">drag</i>'.
'</form>'.
'</div>'.
'</div>'.
Expand Down
2 changes: 1 addition & 1 deletion core/add_link.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @author Dennis Suitters <[email protected]>
* @copyright 2014-2019 Diemen Design
* @license http://opensource.org/licenses/MIT MIT License
* @version 0.2.18
* @version 0.2.23
* @link https://github.com/DiemenDesign/AuroraCMS
* @notes This PHP Script is designed to be executed using PHP 7+
*/
Expand Down
2 changes: 1 addition & 1 deletion core/add_mailbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @author Dennis Suitters <[email protected]>
* @copyright 2014-2019 Diemen Design
* @license http://opensource.org/licenses/MIT MIT License
* @version 0.2.13
* @version 0.2.23
* @link https://github.com/DiemenDesign/AuroraCMS
* @notes This PHP Script is designed to be executed using PHP 7+
*/
Expand Down
18 changes: 9 additions & 9 deletions core/add_media.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @author Dennis Suitters <[email protected]>
* @copyright 2014-2019 Diemen Design
* @license http://opensource.org/licenses/MIT MIT License
* @version 0.2.19
* @version 0.2.23
* @link https://github.com/DiemenDesign/AuroraCMS
* @notes This PHP Script is designed to be executed using PHP 7+
*/
Expand Down Expand Up @@ -49,16 +49,16 @@
else
$thumb=ADMINNOIMAGE;
echo'<script>'.
'window.top.window.$("#mi").append(`<div id="mi_'.$iid.'" class="card stats col-6 swing-in-top-fwd">'.
'<div class="btn-group float-right">'.
'<div class="handle btn" data-tooltip="tooltip" aria-label="Drag to ReOrder this item" onclick="return false;"><i class="i">drag</i></div>'.
'<div class="btn" data-tooltip="tooltip" aria-label="Viewed 0 times"><i class="i">view</i> &nbsp;0</div>'.
'<a class="btn" href="'.URL.$settings['system']['admin'].'/media/edit/'.$iid.'"><i class="i">edit</i></a>'.
'window.top.window.$("#mi").append(`<div id="mi_'.$iid.'" class="card stats gallery col-12 col-sm-3 m-0 border-0">'.
'<a class="card bg-dark m-0" data-fancybox="media" data-caption="" href="'.$file.'">'.
'<img src="'.$file.'" alt="Media '.$iid.'">'.
'</a>'.
'<div class="btn-group tools">'.
'<div class="btn" data-tooltip="right" aria-label="0 views"><small>0</small></div>'.
'<a href="'.URL.$settings['system']['admin'].'/media/edit/'.$iid.'" role="button"><i class="i">edit</i></a>'.
'<button class="trash" data-tooltip="tooltip" aria-label="Delete" onclick="purge(\''.$iid.'\',\'media\');"><i class="i">trash</i></button>'.
'<div class="btn handle" data-tooltip="left" aria-label="Drag to Reorder" onclick="return false;"><i class="i">drag</i></div>'.
'</div>'.
'<a class="card bg-dark m-0" data-fancybox="media" data-caption="" href="'.$file.'" style="display:flex;max-height:150px;">'.
'<img src="'.$file.'" alt="Media '.$iid.'" style="object-fit:cover;object-position:center;">'.
'</a>'.
'</div>`);'.
'window.top.window.$().fancybox({selector:`[data-fancybox="media"]`});'.
'</script>';
Expand Down
Loading

0 comments on commit 80cde23

Please sign in to comment.