Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cs translation small correction #274

Open
wants to merge 78 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
2bc88a7
Move Ext.onReady into controllers
danyaPostfactum Dec 27, 2012
aeb7c1a
Added getMediaSource function - looks for setting gallery.mediaSource
Jul 29, 2013
dd1dc76
Updated item+gallery to use mediasource on 'upload item'
Jul 29, 2013
260fe09
Added Multi-upload support with media sources
Jul 30, 2013
8c704f5
Updated batchUpload to use media Source
Jul 30, 2013
e0adb4d
Updated zip upload to use media source
Jul 30, 2013
f2b818d
Tidied comments
Jul 30, 2013
60f5773
Updated img paths for output - if a media source has a baseUrl it is …
Jul 30, 2013
7cab21c
Tidied up - removed some comments
Jul 30, 2013
5cf521d
Added image delete (mediaSource)
Jul 30, 2013
308265f
Added new system setting for default media source
Jul 30, 2013
5c8acd1
Updated absolute paths on image name
Jul 30, 2013
c24edb1
Updated method that gets the selected media source - now works better…
Jul 30, 2013
3f3923f
Merge remote-tracking branch 'splittingred/pr/269' into media-sources
jpdevries Oct 1, 2013
6930c2a
Wrong path
Jako Oct 5, 2013
990ae09
Merge pull request #1 from Jako/patch-1
jpdevries Oct 5, 2013
f4496c1
cs translation small correction
jiripavlicek Nov 1, 2013
18a3c31
Updating changelog
jpdevries Nov 14, 2013
949570a
Merge branch 'pr276' into develop
jpdevries Nov 15, 2013
56b9882
Fixed drag'n'drop resort behaviour
creat-ing Jan 5, 2014
4b38479
Merge pull request #5 from creat-ing/develop
jpdevries Jan 7, 2014
c311219
Updated the tmp folder to exist only within the modx installation (Fi…
Jan 7, 2014
1174c0c
Fixed removal of temporary image
Jan 7, 2014
d8abd51
Removed debug logging
Jan 7, 2014
0db168d
Merge branch 'FEATURE-mediaSources' of github.com:Adido/Gallery into …
jpdevries Jan 8, 2014
73fca7f
Updated BASE path to CORE path
Jan 8, 2014
3820167
Merge branch 'FEATURE-mediaSources' of github.com:Adido/Gallery into …
jpdevries Jan 8, 2014
57dd35a
Merge branch 'media-sources' into develop
jpdevries Jan 8, 2014
610f9e1
Bumping Version to 1.6.0-beta2
jpdevries Jan 8, 2014
16cc618
Fix for Gallery and 'Access Denied' messages in the MODX Manager
garryn Feb 11, 2014
4628249
Merge pull request #10 from garryn/develop
jpdevries Feb 13, 2014
ee31091
Fix for Gallery and 'Access Denied' messages in the MODX Manager
garryn Feb 11, 2014
9009955
Releasing 1.5.3-pl
jpdevries Feb 13, 2014
b6b5ddb
Setting pkg_release to pl
jpdevries Mar 3, 2014
da1c29f
Tagging 1.6.0-pl
jpdevries Mar 3, 2014
5f8a2b8
Fix Backwards Compatibility with galAlbum year
jpdevries Mar 4, 2014
5c3f2ef
Merge branch 'develop' into production
jpdevries Mar 4, 2014
2fa671d
Setting package to 1.6.2-beta1
jpdevries Mar 6, 2014
e7c1b77
Tagging 1.6.2-pl
jpdevries Apr 11, 2014
450ef5f
Add support for 'nth' based tpls
Apr 16, 2014
aac0c7d
Reset develop branch
Apr 25, 2014
3ea0cc5
Add 'nth' tpl support
Apr 25, 2014
6d7ff86
Adds browser caching support to phpthumb processor
May 6, 2014
092027d
phpthumb-processor seems to work better with this mods
Bruno17 May 21, 2014
f076594
repaired improper use of variable
jiripavlicek Jul 5, 2014
bd22d70
Modx 2.3 Compatibility Fix
benjaminglick Jul 25, 2014
fc4b571
Revert "Modx 2.3 Compatibility Fix"
benjaminglick Jul 25, 2014
5661547
Modx 2.3 Compatibility Fix
benjaminglick Jul 25, 2014
1c34331
Backend Thumb Height for Modx 2.3
benjaminglick Jul 25, 2014
c81b43e
Restored exact height of update window
benjaminglick Jul 28, 2014
2fe8d53
Fix windows dimensions (BC check for 2.2 needed)
exside Aug 10, 2014
4268dd9
Adding primary-buttons classes where applicable
exside Aug 10, 2014
457b92f
Add year field to album create window
exside Aug 10, 2014
d3fedce
Fix buttons for cover update and add nice fileupload field for 2.3 in…
exside Aug 10, 2014
008b536
Adjust multi-upload window and styles for 2.3 with bc for 2.2.x
exside Aug 10, 2014
d8ab940
Fix zip upload window fileinput with BC for 2.2.x
exside Aug 10, 2014
649582e
Adjust upload item window with BC for 2.2.x
exside Aug 10, 2014
931ef21
Adjust browser/dataview that displays the images inside an album
exside Aug 10, 2014
dcc8804
Adjust update item window from dataview
exside Aug 10, 2014
022cdc4
Modx 2.3 Compatibility Fixes
theboxer Sep 5, 2014
796e9f8
More 2.3 Fixes
theboxer Sep 5, 2014
99cf226
Add support for &thumbTpl_N tpl in Gallery snippet
theboxer Sep 5, 2014
9626f37
Move Ext.onReady into controllers
theboxer Sep 5, 2014
5326f5c
Add browser caching support to phpthumb processor
theboxer Sep 5, 2014
0821c18
Updated phpthumb-processor
theboxer Sep 5, 2014
2ece8fc
Fixed undefined index: Year
theboxer Sep 5, 2014
1624ef1
Fixed album tree icon
theboxer Sep 5, 2014
dec7104
Fixed showAll parameter in galAlbum
theboxer Sep 5, 2014
b251439
Build updated
theboxer Sep 5, 2014
077b77f
Gallery 1.7.0-dev
theboxer Sep 5, 2014
5103947
Build updated
theboxer Sep 10, 2014
f991f8e
Gallery 1.7.0
theboxer Sep 10, 2014
52623dd
Fixed namespace paths
theboxer Jan 5, 2015
90c9000
Fix vulnerability related to the one fixed in 2.6.5
Mark-H Jul 20, 2018
650dd6f
Add changelog for fix
Mark-H Jul 20, 2018
f67ddc4
Update version
Mark-H Jul 20, 2018
4e14230
1.7.1 version
theboxer Jul 30, 2018
370e701
Merge remote-tracking branch 'modxcms_Gallery/develop' into develop
jiripavlicek Aug 4, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ _build/build.config.php
config.core.php
.idea
nbproject
_packages/*.*
!_packages/.gitignore
!_packages/*.zip
7 changes: 4 additions & 3 deletions _build/build.transport.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
/* define package */
define('PKG_NAME','Gallery');
define('PKG_NAME_LOWER','gallery');
define('PKG_VERSION','1.5.3');
define('PKG_RELEASE','a2');
define('PKG_VERSION','1.7.1');
define('PKG_RELEASE','pl');

/* define sources */
$root = dirname(dirname(__FILE__)).'/';
Expand Down Expand Up @@ -68,8 +68,9 @@

$modx->loadClass('transport.modPackageBuilder','',false, true);
$builder = new modPackageBuilder($modx);
$builder->directory = dirname(dirname(__FILE__)).'/_packages/';
$builder->createPackage(PKG_NAME_LOWER,PKG_VERSION,PKG_RELEASE);
$builder->registerNamespace(PKG_NAME_LOWER,false,true,'{core_path}components/'.PKG_NAME_LOWER.'/');
$builder->registerNamespace(PKG_NAME_LOWER,false,true,'{core_path}components/'.PKG_NAME_LOWER.'/','{assets_path}components/'.PKG_NAME_LOWER.'/');
$modx->log(modX::LOG_LEVEL_INFO,'Created Transport Package and Namespace.');

/* create category */
Expand Down
136 changes: 136 additions & 0 deletions _build/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
{
"name": "Gallery"
,"lowCaseName": "gallery"
,"description": "Gallery"
,"author": "Shaun McCormick"
,"version": "1.7.1"
,"package":{
"actions": [{
"id": 1
,"controller": "index"
}]
,"menus": [{
"text": "gallery"
,"description": "gallery.menu_desc"
,"action": 1
,"parent": "components"
}]
,"elements": {
"snippets": [{
"name": "Gallery"
,"file": "snippet.gallery.php"
},{
"name": "GalleryAlbums"
,"file": "snippet.galleryalbums.php"
},{
"name": "GalleryItem"
,"file": "snippet.galleryitem.php"
}]
,"chunks": [{
"name": "galAlbumRowTpl"
},{
"name": "galItemThumb"
}]
}
,"systemSettings": [{
"key": "backend_thumb_far"
,"type": "textfield"
,"area": "backend"
,"value": "C"
},{
"key": "backend_thumb_height"
,"type": "textfield"
,"area": "backend"
,"value": "100"
},{
"key": "backend_thumb_width"
,"type": "textfield"
,"area": "backend"
,"value": "100"
},{
"key": "backend_thumb_zoomcrop"
,"type": "combo-boolean"
,"area": "backend"
,"value": 1
},{
"key": "default_batch_upload_path"
,"type": "textfield"
,"area": "backend"
,"value": "{assets_path}images/"
},{
"key": "thumbs_prepend_site_url"
,"type": "combo-boolean"
,"area": "backend"
,"value": 0
},{
"key": "mediaSource"
,"type": "modx-combo-source"
,"area": "backend"
,"value": 1
},{
"key": "use_richtext"
,"type": "combo-boolean"
,"area": "TinyMCE"
,"value": 0
},{
"key": "tiny.width"
,"type": "textfield"
,"area": "TinyMCE"
,"value": "95%"
},{
"key": "tiny.height"
,"type": "textfield"
,"area": "TinyMCE"
,"value": "200"
},{
"key": "tiny.buttons1"
,"type": "textfield"
,"area": "TinyMCE"
,"value": "undo,redo,selectall,pastetext,pasteword,charmap,separator,image,modxlink,unlink,media,separator,code,help"
},{
"key": "tiny.buttons2"
,"type": "textfield"
,"area": "TinyMCE"
,"value": "bold,italic,underline,strikethrough,sub,sup,separator,bullist,numlist,outdent,indent,separator,justifyleft,justifycenter,justifyright,justifyfull"
},{
"key": "tiny.buttons3"
,"type": "textfield"
,"area": "TinyMCE"
,"value": "styleselect,formatselect,separator,styleprops"
},{
"key": "tiny.buttons4"
,"type": "textfield"
,"area": "TinyMCE"
,"value": ""
},{
"key": "tiny.buttons5"
,"type": "textfield"
,"area": "TinyMCE"
,"value": ""
},{
"key": "tiny.custom_plugins"
,"type": "textfield"
,"area": "TinyMCE"
,"value": ""
},{
"key": "tiny.theme"
,"type": "textfield"
,"area": "TinyMCE"
,"value": ""
},{
"key": "tiny.theme_advanced_blockformats"
,"type": "textfield"
,"area": "TinyMCE"
,"value": ""
},{
"key": "tiny.theme_advanced_css_selectors"
,"type": "textfield"
,"area": "TinyMCE"
,"value": ""
}]
}
,"database": {
"tables": ["galItem", "galAlbum", "galAlbumItem", "galAlbumContext", "galTag"]
}
,"extensionPackage": {}
}
11 changes: 10 additions & 1 deletion _build/data/transport.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
$settings['gallery.backend_thumb_height']= $modx->newObject('modSystemSetting');
$settings['gallery.backend_thumb_height']->fromArray(array(
'key' => 'gallery.backend_thumb_height',
'value' => '100',
'value' => '80',
'xtype' => 'textfield',
'namespace' => 'gallery',
'area' => 'backend',
Expand Down Expand Up @@ -90,6 +90,15 @@
'area' => '',
),'',true,true);

$settings['gallery.mediaSource']= $modx->newObject('modSystemSetting');
$settings['gallery.mediaSource']->fromArray(array(
'key' => 'gallery.mediaSource',
'value' => 1,
'xtype' => 'modx-combo-source',
'namespace' => 'gallery',
'area' => '',
),'',true,true);

/*
$settings['gallery.']= $modx->newObject('modSystemSetting');
$settings['gallery.']->fromArray(array(
Expand Down
1 change: 1 addition & 0 deletions _build/resolvers/resolve.dbchanges.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
$manager->addIndex('galAlbum','prominent');

$manager->addIndex('galAlbumItem','rank');
$manager->addField('galAlbum', 'year');

/* 1.5.3+ */
$manager->addField('galAlbum','cover_filename');
Expand Down
Binary file added _packages/gallery-1.7.1-pl.transport.zip
Binary file not shown.
3 changes: 1 addition & 2 deletions assets/components/gallery/connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
if ($modx->user->hasSessionContext($modx->context->get('key'))) {
$_SERVER['HTTP_MODAUTH'] = $_SESSION["modx.{$modx->context->get('key')}.user.token"];
} else {
$_SESSION["modx.{$modx->context->get('key')}.user.token"] = 0;
$_SERVER['HTTP_MODAUTH'] = 0;
}
} else {
Expand All @@ -61,4 +60,4 @@
$modx->request->handleRequest(array(
'processors_path' => $path,
'location' => '',
));
));
12 changes: 12 additions & 0 deletions assets/components/gallery/css/fileuploader.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
.qq-uploader { position:relative; width: 100%;}

.qq-uploader a {
display: inline-block;
margin-top: 10px;
text-decoration: none;
}

.qq-upload-button {
display:block; /* or inline-block */
padding: 7px 0;
Expand All @@ -11,6 +17,12 @@
margin-top: 10px;
font-weight: bold;
}
/* 2.3 style fixes */
.qq-upload-button.x-btn {
border: 0;
padding: 10px 15px;
text-shadow: none;
}
.qq-upload-button-hover {background:#5C7F17;}
.qq-upload-button-focus {outline:1px dotted black;}

Expand Down
23 changes: 18 additions & 5 deletions assets/components/gallery/css/mgr.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,38 @@
.gal-item-inactive {
opacity: 0.5;
}
.green { color: green; }
.red { color: red; }
/* unnecessary as defined in default styles */
/*.green { color: green; }
.red { color: red; }*/

.gal-detail-active {
float: right;
}
.gal-view-item-albums {
overflow:auto;
border-top: 1px solid #d4d4d4;
margin-top: 4px;
border-top: 1px solid #E4E4E4;
margin-top: 7px;
}

.gal-item-thumb {
border: 1px solid #ddd;
padding: 5px 5px 3px;
padding: 5px;
}

.gal-item-update-preview {
margin: 0 auto;
text-align: center;
padding: 2px;
}

#gal-album-items-detail {
border-left: 1px solid #E4E4E4;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
margin-left: 0 !important; /* override default modx theme styles for .x-column */
}

.modx-browser-thumb-wrap .gal-item-thumb {
height: 100px;
}
Loading