#Release 1.2 from 01.12.2016.
This release includes many changes and improvements that would make simpler of creating sites on MODX EVO.
More then 1200 commits
##On MODX Evolution 1.2 worked:
- Mananori Yamamoto (Yama) https://github.com/yama
// OnManagerTreePrerender,OnManagerTreeRender | |
// Autor: Dmi3yy | |
// Version: 0.2 | |
// 2016-10-11 added category accordion (Nicola1971) | |
// 2016-10-11 added icons to list elements (Nicola1971) | |
// 2016-10-10 added live search/filtering (pmfx) | |
// 2016-10-06 added configuration option to use icons or not (pmfx) | |
// 2016-10-05 tabs have icons instead of text shortcut now (pmfx) | |
// 2016-10-01 modified by Piotr Matysiak (pmfx) to respect MODX roles (hasPermission) |
<?php | |
/** | |
* $Id: plugin.php 22 2010-03-24 19:37:03Z stefan $ | |
* | |
* Collect the currently used TVs and sort them to tabs which created on there | |
* associated categories | |
* | |
* | |
* | |
* Updated by Piotr Matysiak (pmfx) on 2016-09-27: Now works with multiTV |
<?php | |
$output='0'; | |
if($id){ | |
$table = $modx->getFullTableName( 'portfolio_galleries' ); | |
$query = $modx->db->query('SELECT content_id FROM '.$table.' WHERE content_id='.$id.' ORDER BY sortorder ASC'); | |
$output = mysql_num_rows($query); | |
} | |
return $output; | |
?> |
<?php | |
$output=''; | |
if($id){ | |
$table = $modx->getFullTableName( 'portfolio_galleries' ); | |
$query = $modx->db->query('SELECT content_id,filename,sortorder FROM '.$table.' WHERE content_id='.$id.' ORDER BY sortorder ASC LIMIT 0,1'); | |
$row = $modx->db->getRow($query); | |
$gal_id = $row['content_id']; | |
$gal_filename = $row['filename']; | |
if ($row){ | |
$output = 'assets/galleries/'.$gal_id.'/'.$gal_filename; |
<?php | |
$output=''; | |
if($id){ | |
$table = $modx->getFullTableName( 'portfolio_galleries' ); | |
$query = $modx->db->query('SELECT content_id,filename,sortorder FROM '.$table.' WHERE content_id='.$id.' ORDER BY sortorder ASC LIMIT 0,1'); | |
$row = $modx->db->getRow($query); | |
$gal_id = $row['content_id']; | |
$gal_filename = $row['filename']; | |
if ($row){ | |
$output = 'assets/galleries/'.$gal_id.'/thumbs/'.$gal_filename; |
/* -------------------------[ Neutralize styles, fonts and viewport ]--- */ | |
* html { | |
overflow-x: hidden; | |
overflow-y: auto; | |
} | |
/* for IE6 */ |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> | |
<head> | |
<title>MODX CMF Manager Login</title> | |
<meta http-equiv="content-type" content="text/html; charset=[+modx_charset+]" /> | |
<meta name="robots" content="noindex, nofollow" /> | |
<style type="text/css"> | |
body { | |
font-family: Arial, HelveticaNeue, "Helvetica Neue", Helvetica, "Hiragino Kaku Gothic Pro", Meiryo, sans-serif; | |
} |
#Release 1.2 from 01.12.2016.
This release includes many changes and improvements that would make simpler of creating sites on MODX EVO.
More then 1200 commits
##On MODX Evolution 1.2 worked:
<?php | |
// evoSystemInfo 1.3 | |
// Snippet displaying EVO system info and some actions on the frontend. | |
// Call it uncached [!evoSystemInfo!] before </body> tag in your template. | |
// Dark theme: [!evoSystemInfo? &theme=`dark`!] (EVO 1.4.4 or later required) | |
// author: Piotr Matysiak webready.pl | |
if ( isset($_SESSION['mgrValidated']) ) { | |
$docId = $modx->documentIdentifier; | |
$docTemplateId = $modx->documentObject['template']; |
// multitvThumbZoom | |
// adds nice style for image preview with zoom on hover | |
// event: OnManagerMainFrameHeaderHTMLBlock | |
$e = & $modx->Event; | |
if ( $e->name == "OnManagerMainFrameHeaderHTMLBlock" ) { | |
$html = ' | |
<style> | |
.multitv .list li.element .mtvThumb { |