Skip to content

Commit

Permalink
v2.3.01
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Parker committed Apr 15, 2021
1 parent 9fd8095 commit d8a7f30
Show file tree
Hide file tree
Showing 12 changed files with 116 additions and 22 deletions.
8 changes: 8 additions & 0 deletions Info Grid/CHANGEDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,11 @@
++$count;
$sql[$count][0] = '2.3.00';
$sql[$count][1] = '';

//v2.3.01
++$count;
$sql[$count][0] = '2.3.01';
$sql[$count][1] = "
UPDATE gibbonAction SET description='Allows a user to define and edit entries in the Info Grid.' WHERE name='Manage Info Grid' AND gibbonModuleID=(SELECT gibbonModuleID FROM gibbonModule WHERE name='Info Grid');end
";

4 changes: 4 additions & 0 deletions Info Grid/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
CHANGELOG
=========
v2.3.01
-------
Added Afrikaans as a language option

v2.3.00
-------
Responsive info grid
Expand Down
Binary file added Info Grid/i18n/af_ZA/LC_MESSAGES/Info Grid.mo
Binary file not shown.
72 changes: 72 additions & 0 deletions Info Grid/i18n/af_ZA/LC_MESSAGES/Info Grid.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: POEditor.com\n"
"Project-Id-Version: Info Grid\n"
"Language: af\n"

#:
msgid "Info Grid"
msgstr ""

#:
msgid "Credits & Licensing"
msgstr ""

#:
msgid "Manage Info Grid"
msgstr ""

#:
msgid "Add Info Grid Entry"
msgstr ""

#:
msgid "Higher priorities are displayed first."
msgstr ""

#:
msgid "Logo License/Credits"
msgstr ""

#:
msgid "Delete Info Grid Entry"
msgstr ""

#:
msgid "Edit Info Grid Entry"
msgstr ""

#:
msgid "View Info Grid"
msgstr ""

#:
msgid "Offers school-defined image-grids of links to useful resources, with access based on role category (staff, student, parent)."
msgstr ""

#:
msgid "Allows a user to define and edit entries in the Info Grid."
msgstr ""

#:
msgid "Allows a user to view the Info Grid."
msgstr ""

#:
msgid "Allows a user to view image credits for logo images."
msgstr ""

#:
msgid "Staff Information"
msgstr ""

#:
msgid "Student Information"
msgstr "Leerderpaneelbord"

#:
msgid "Parent Information"
msgstr ""
2 changes: 1 addition & 1 deletion Info Grid/infoGrid_credits.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
$page->addError(__('You do not have access to this action.'));
} else {
//Proceed!
$page->breadcrumbs->add(__('Credits & Licensing'));
$page->breadcrumbs->add(__m('Credits & Licensing'));

try {
$data = array();
Expand Down
2 changes: 1 addition & 1 deletion Info Grid/infoGrid_manage.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
//Acess denied
$page->addError(__('You do not have access to this action.'));
} else {
$page->breadcrumbs->add(__('Manage Info Grid'));
$page->breadcrumbs->add(__m('Manage Info Grid'));

if (isset($_GET['return'])) {
returnProcess($guid, $_GET['return'], null, null);
Expand Down
14 changes: 7 additions & 7 deletions Info Grid/infoGrid_manage_add.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
//Acess denied
$page->addError(__('You do not have access to this action.'));
} else {
$page->breadcrumbs->add(__('Manage Info Grid'), 'infoGrid_manage.php');
$page->breadcrumbs->add(__('Add Info Grid Entry'));
$page->breadcrumbs->add(__m('Manage Info Grid'), 'infoGrid_manage.php');
$page->breadcrumbs->add(__m('Add Info Grid Entry'));

$returns = array();
$editLink = '';
Expand All @@ -52,19 +52,19 @@
$row->addTextField('title')->isRequired()->maxLength(100);

$row = $form->addRow();
$row->addLabel('staff', __('Viewable To Staff?'));
$row->addLabel('staff', __('Viewable To Staff'));
$row->addYesNo('staff')->isRequired();

$row = $form->addRow();
$row->addLabel('student', __('Viewable To Students?'));
$row->addLabel('student', __('Viewable To Students'));
$row->addYesNo('student')->isRequired();

$row = $form->addRow();
$row->addLabel('parent', __('Viewable To Parents?'));
$row->addLabel('parent', __('Viewable To Parents'));
$row->addYesNo('parent')->isRequired();

$row = $form->addRow();
$row->addLabel('priority', __('Priority'))->description(__('Higher priorities are displayed first.'));
$row->addLabel('priority', __('Priority'))->description(__m('Higher priorities are displayed first.'));
$row->addNumber('priority')->maxLength(2)->setValue('0')->isRequired();

$row = $form->addRow();
Expand All @@ -76,7 +76,7 @@
$row->addFileUpload('file')->accepts('.jpg,.jpeg,.gif,.png');

$row = $form->addRow();
$row->addLabel('logoLicense', __('Logo License/Credits'));
$row->addLabel('logoLicense', __m('Logo License/Credits'));
$row->addTextArea('logoLicense')->setRows(5);

$row = $form->addRow();
Expand Down
4 changes: 2 additions & 2 deletions Info Grid/infoGrid_manage_delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
$page->addError(__('You do not have access to this action.'));
} else {
//Proceed!
$page->breadcrumbs->add(__('Manage Info Grid'), 'infoGrid_manage.php');
$page->breadcrumbs->add(__('Delete Staff Hanbook Entry'));
$page->breadcrumbs->add(__m('Manage Info Grid'), 'infoGrid_manage.php');
$page->breadcrumbs->add(__m('Delete Staff Hanbook Entry'));

if (isset($_GET['return'])) {
returnProcess($guid, $_GET['return'], null, null);
Expand Down
14 changes: 7 additions & 7 deletions Info Grid/infoGrid_manage_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
$page->addError(__('You do not have access to this action.'));
} else {
//Proceed!
$page->breadcrumbs->add(__('Manage Info Grid'), 'infoGrid_manage.php');
$page->breadcrumbs->add(__('Edit Info Grid Entry'));
$page->breadcrumbs->add(__m('Manage Info Grid'), 'infoGrid_manage.php');
$page->breadcrumbs->add(__m('Edit Info Grid Entry'));

if (isset($_GET['return'])) {
returnProcess($guid, $_GET['return'], null, null);
Expand Down Expand Up @@ -69,19 +69,19 @@
$row->addTextField('title')->isRequired()->maxLength(100);

$row = $form->addRow();
$row->addLabel('staff', __('Viewable To Staff?'));
$row->addLabel('staff', __('Viewable To Staff'));
$row->addYesNo('staff')->isRequired();

$row = $form->addRow();
$row->addLabel('student', __('Viewable To Students?'));
$row->addLabel('student', __('Viewable To Students'));
$row->addYesNo('student')->isRequired();

$row = $form->addRow();
$row->addLabel('parent', __('Viewable To Parents?'));
$row->addLabel('parent', __('Viewable To Parents'));
$row->addYesNo('parent')->isRequired();

$row = $form->addRow();
$row->addLabel('priority', __('Priority'))->description(__('Higher priorities are displayed first.'));
$row->addLabel('priority', __('Priority'))->description(__m('Higher priorities are displayed first.'));
$row->addNumber('priority')->maxLength(2)->setValue('0')->isRequired();

$row = $form->addRow();
Expand All @@ -95,7 +95,7 @@
->setAttachment('logo', $_SESSION[$guid]['absoluteURL'], $values['logo']);

$row = $form->addRow();
$row->addLabel('logoLicense', __('Logo License/Credits'));
$row->addLabel('logoLicense', __m('Logo License/Credits'));
$row->addTextArea('logoLicense')->setRows(5);

$row = $form->addRow();
Expand Down
2 changes: 1 addition & 1 deletion Info Grid/infoGrid_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
$page->addError(__('You do not have access to this action.'));
} else {
//Proceed!
$page->breadcrumbs->add(__('View Info Grid'));
$page->breadcrumbs->add(__m('View Info Grid'));

//Get action with highest precendence
$highestAction = getHighestGroupedAction($guid, $_GET['q'], $connection2);
Expand Down
14 changes: 12 additions & 2 deletions Info Grid/manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
$entryURL = 'infoGrid_manage.php';
$type = 'Additional';
$category = 'Other';
$version = '2.3.00';
$version = '2.3.01';
$author = 'Ross Parker';
$url = 'http://rossparker.org';

Expand All @@ -49,7 +49,7 @@
$actionRows[0]['name'] = 'Manage Info Grid';
$actionRows[0]['precedence'] = '0';
$actionRows[0]['category'] = 'Info Grid';
$actionRows[0]['description'] = 'Allows a user to define and edit entires in the Info Grid.';
$actionRows[0]['description'] = 'Allows a user to define and edit entries in the Info Grid.';
$actionRows[0]['URLList'] = 'infoGrid_manage.php, infoGrid_manage_add.php, infoGrid_manage_edit.php, infoGrid_manage_delete.php';
$actionRows[0]['entryURL'] = 'infoGrid_manage.php';
$actionRows[0]['menuShow'] = 'Y';
Expand Down Expand Up @@ -113,3 +113,13 @@
$array['sourceModuleAction'] = 'View Info Grid';
$array['sourceModuleInclude'] = 'hook_dashboard_infoGridView.php';
$hooks[2] = "INSERT INTO `gibbonHook` (`gibbonHookID`, `name`, `type`, `options`, gibbonModuleID) VALUES (NULL, 'Parent Information', 'Parental Dashboard', '".serialize($array)."', (SELECT gibbonModuleID FROM gibbonModule WHERE name='$name'));";

//Translatables
__m('Info Grid');
__m('Offers school-defined image-grids of links to useful resources, with access based on role category (staff, student, parent).');
__m('Allows a user to define and edit entries in the Info Grid.');
__m('Allows a user to view the Info Grid.');
__m('Allows a user to view image credits for logo images.');
__m('Staff Information');
__m('Student Information');
__m('Parent Information');
2 changes: 1 addition & 1 deletion Info Grid/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
/**
* Sets version information.
*/
$moduleVersion = '2.3.00';
$moduleVersion = '2.3.01';

0 comments on commit d8a7f30

Please sign in to comment.