Skip to content

Commit 9455218

Browse files
committed
initial modExtra commit 2
1 parent 34ffc68 commit 9455218

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+31
-2727
lines changed

modExtra/.gitignore .gitignore

File renamed without changes.

modExtra/README.md README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
## modExtra
1+
## Sendex
22

3-
modExtra is a base Extra template that is useful when wanting to create a new
3+
Sendex is a base Extra template that is useful when wanting to create a new
44
Extra for MODx Revolution. One can git archive from this repository to start
55
with all the file structure for beginning MODx Extra development pre-setup.
66

77
## How to Export
88

99
First, clone this repository somewhere on your development machine:
1010

11-
`git clone http://github.com/bezumkin/modExtra.git ./`
11+
`git clone http://github.com/bezumkin/Sendex.git ./`
1212

1313
Then, create the target directory where you want to create the file.
1414

15-
Then, navigate to the directory modExtra is now in, and do this:
15+
Then, navigate to the directory Sendex is now in, and do this:
1616

1717
`git archive HEAD | (cd /path/where/I/want/my/new/repo/ && tar -xvf -)`
1818

@@ -24,8 +24,8 @@ there!
2424

2525
## Configuration
2626

27-
Now, you'll want to change references to modExtra in the files in your
28-
new copied-from-modExtra repo to whatever name of your new Extra will be. Once
27+
Now, you'll want to change references to Sendex in the files in your
28+
new copied-from-Sendex repo to whatever name of your new Extra will be. Once
2929
you've done that, you can create some System Settings:
3030

3131
- 'mynamespace.core_path' - Point to /path/to/my/extra/core/components/extra/
@@ -46,12 +46,12 @@ functionality. This Extra contains files and the setup to do the following:
4646
If you do not require all of this functionality, simply remove it and change the
4747
appropriate code.
4848

49-
Also, you'll want to change all the references of 'modExtra' to whatever the
49+
Also, you'll want to change all the references of 'Sendex' to whatever the
5050
name of your component is.
5151

5252
## Copyright Information
5353

54-
modExtra is distributed as GPL (as MODx Revolution is), but the copyright owner
55-
(Shaun McCormick) grants all users of modExtra the ability to modify, distribute
56-
and use modExtra in MODx development as they see fit, as long as attribution
54+
Sendex is distributed as GPL (as MODx Revolution is), but the copyright owner
55+
(Shaun McCormick) grants all users of Sendex the ability to modify, distribute
56+
and use Sendex in MODx development as they see fit, as long as attribution
5757
is given somewhere in the distributed source of all derivative works.

modExtra/_build/build.config.php _build/build.config.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
// define package
4-
define('PKG_NAME', 'modExtra');
4+
define('PKG_NAME', 'Sendex');
55
define('PKG_NAME_LOWER', strtolower(PKG_NAME));
66

77
define('PKG_VERSION', '1.0.1');
File renamed without changes.
File renamed without changes.

modExtra/_build/data/transport.chunks.php _build/data/transport.chunks.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
$chunks = array();
66

77
$tmp = array(
8-
'tpl.modExtra.item' => array(
8+
'tpl.Sendex.item' => array(
99
'file' => 'item',
1010
'description' => '',
1111
),
12-
'tpl.modExtra.office' => array(
12+
'tpl.Sendex.office' => array(
1313
'file' => 'office',
1414
'description' => '',
1515
),

modExtra/_build/data/transport.menu.php _build/data/transport.menu.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
$menus = array();
66

77
$tmp = array(
8-
'modextra' => array(
9-
'description' => 'modextra_menu_desc',
8+
'sendex' => array(
9+
'description' => 'sendex_menu_desc',
1010
'action' => 'home',
1111
//'icon' => '<i class="icon icon-large icon-modx"></i>',
1212
),

modExtra/_build/data/transport.plugins.php _build/data/transport.plugins.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
$plugins = array();
66

77
$tmp = array(/*
8-
'modExtra' => array(
9-
'file' => 'modextra',
8+
'Sendex' => array(
9+
'file' => 'sendex',
1010
'description' => '',
1111
'events' => array(
1212
'OnManagerPageInit' => array()

modExtra/_build/data/transport.settings.php _build/data/transport.settings.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
'some_setting' => array(
99
'xtype' => 'combo-boolean',
1010
'value' => true,
11-
'area' => 'modextra_main',
11+
'area' => 'sendex_main',
1212
),
1313
*/
1414
);
@@ -18,7 +18,7 @@
1818
$setting = $modx->newObject('modSystemSetting');
1919
$setting->fromArray(array_merge(
2020
array(
21-
'key' => 'modextra_' . $k,
21+
'key' => 'sendex_' . $k,
2222
'namespace' => PKG_NAME_LOWER,
2323
), $v
2424
), '', true, true);

modExtra/_build/data/transport.snippets.php _build/data/transport.snippets.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
$snippets = array();
66

77
$tmp = array(
8-
'modExtra' => array(
9-
'file' => 'modextra',
8+
'Sendex' => array(
9+
'file' => 'sendex',
1010
'description' => '',
1111
),
1212
);
File renamed without changes.

modExtra/_build/resolvers/resolve.office.php _build/resolvers/resolve.office.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
if ($Office = $modx->getService('office', 'Office', MODX_CORE_PATH . 'components/office/model/office/')) {
99

1010
if (!($Office instanceof Office)) {
11-
$modx->log(xPDO::LOG_LEVEL_ERROR, '[modExtra] Could not register paths for Office component!');
11+
$modx->log(xPDO::LOG_LEVEL_ERROR, '[Sendex] Could not register paths for Office component!');
1212

1313
return true;
1414
} elseif (!method_exists($Office, 'addExtension')) {
1515
$modx->log(xPDO::LOG_LEVEL_ERROR,
16-
'[modExtra] You need to update Office for support of 3rd party packages!');
16+
'[Sendex] You need to update Office for support of 3rd party packages!');
1717

1818
return true;
1919
}
@@ -22,13 +22,13 @@
2222
switch ($options[xPDOTransport::PACKAGE_ACTION]) {
2323
case xPDOTransport::ACTION_INSTALL:
2424
case xPDOTransport::ACTION_UPGRADE:
25-
$Office->addExtension('modExtra', '[[++core_path]]components/modextra/controllers/office/');
26-
$modx->log(xPDO::LOG_LEVEL_INFO, '[modExtra] Successfully registered modExtra as Office extension!');
25+
$Office->addExtension('Sendex', '[[++core_path]]components/sendex/controllers/office/');
26+
$modx->log(xPDO::LOG_LEVEL_INFO, '[Sendex] Successfully registered Sendex as Office extension!');
2727
break;
2828

2929
case xPDOTransport::ACTION_UNINSTALL:
30-
$Office->removeExtension('modExtra');
31-
$modx->log(xPDO::LOG_LEVEL_INFO, '[modExtra] Successfully unregistered modExtra as Office extension.');
30+
$Office->removeExtension('Sendex');
31+
$modx->log(xPDO::LOG_LEVEL_INFO, '[Sendex] Successfully unregistered Sendex as Office extension.');
3232
break;
3333
}
3434
}
File renamed without changes.

modExtra/_build/resolvers/resolve.tables.php _build/resolvers/resolve.tables.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
switch ($options[xPDOTransport::PACKAGE_ACTION]) {
99
case xPDOTransport::ACTION_INSTALL:
1010
case xPDOTransport::ACTION_UPGRADE:
11-
$modelPath = $modx->getOption('modextra_core_path', null,
12-
$modx->getOption('core_path') . 'components/modextra/') . 'model/';
13-
$modx->addPackage('modextra', $modelPath);
11+
$modelPath = $modx->getOption('sendex_core_path', null,
12+
$modx->getOption('core_path') . 'components/sendex/') . 'model/';
13+
$modx->addPackage('sendex', $modelPath);
1414

1515
$manager = $modx->getManager();
1616
$objects = array();
17-
$schemaFile = MODX_CORE_PATH . 'components/modextra/model/schema/modextra.mysql.schema.xml';
17+
$schemaFile = MODX_CORE_PATH . 'components/sendex/model/schema/sendex.mysql.schema.xml';
1818
if (is_file($schemaFile)) {
1919
$schema = new SimpleXMLElement($schemaFile, 0, true);
2020
if (isset($schema->object)) {
File renamed without changes.

modExtra/assets/components/modextra/connector.php

-29
This file was deleted.

modExtra/assets/components/modextra/css/index.html

Whitespace-only changes.

modExtra/assets/components/modextra/css/mgr/bootstrap.buttons.css

-6
This file was deleted.

modExtra/assets/components/modextra/css/mgr/main.css

-27
This file was deleted.

modExtra/assets/components/modextra/index.html

Whitespace-only changes.

modExtra/assets/components/modextra/js/index.html

Whitespace-only changes.

0 commit comments

Comments
 (0)