Skip to content

Commit

Permalink
version 0.4.0
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Crawford <[email protected]>
  • Loading branch information
engram-design committed Dec 1, 2015
1 parent ff5e782 commit 8ee2582
Show file tree
Hide file tree
Showing 9 changed files with 323 additions and 40 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#### 0.3.8

- Ensure Craft 2.3.2615 is minimum required version.

#### 0.3.7

- Added relations support, thanks to [joshangell](https://github.com/joshangell).
Expand Down
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,4 @@ Super Table requires a minimum of Craft 2.3.2615 in order to function.

## Changelog

#### 0.3.8

- Ensure Craft 2.3.2615 is minimum required version.


[View Full Changelog](https://github.com/engram-design/SuperTable/blob/master/CHANGELOG.md)
[View JSON Changelog](https://github.com/engram-design/SuperTable/blob/master/changelog.json)
13 changes: 13 additions & 0 deletions changelog.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{
"version": "0.4.0",
"downloadUrl": "https://github.com/engram-design/SuperTable/archive/0.4.0.zip",
"date": "2015-12-01 19:45:00",
"notes": [
"[Added] Craft 2.5 support, including release feed and icons.",
"[Added] Support for [Feed Me](https://github.com/engram-design/FeedMe).",
"[Added] Support for [Export](https://github.com/boboldehampsink/Export).",
"[Fixed] Labels in Row Layout are now top-aligned."
]
}
]
68 changes: 52 additions & 16 deletions supertable/SuperTablePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

class SuperTablePlugin extends BasePlugin
{
/* --------------------------------------------------------------
* PLUGIN INFO
* ------------------------------------------------------------ */
// =========================================================================
// PLUGIN INFO
// =========================================================================

public function getName()
{
Expand All @@ -17,6 +17,11 @@ public function getVersion()
return '0.3.8';
}

public function getSchemaVersion()
{
return '1.0.0';
}

public function getDeveloper()
{
return 'S. Group';
Expand All @@ -27,25 +32,56 @@ public function getDeveloperUrl()
return 'http://sgroup.com.au';
}

public function onAfterInstall()
{
$minBuild = '2615';
public function getPluginUrl()
{
return 'https://github.com/engram-design/SuperTable';
}

if (craft()->getBuild() < $minBuild) {
craft()->plugins->disablePlugin($this->getClassHandle());
public function getDocumentationUrl()
{
return $this->getPluginUrl() . '/blob/master/README.md';
}

craft()->plugins->uninstallPlugin($this->getClassHandle());
public function getReleaseFeedUrl()
{
return $this->getPluginUrl() . '/blob/master/changelog.json';
}

craft()->userSession->setError(Craft::t('{plugin} only works on Craft build {build} or higher', array(
'plugin' => $this->getName(),
'build' => $minBuild,
)));
public function onBeforeInstall()
{
// Craft 2.3.2615 getFieldsForElementsQuery()
if (version_compare(craft()->getVersion() . '.' . craft()->getBuild(), '2.3.2615', '<')) {
throw new Exception($this->getName() . ' requires Craft CMS 2.3.2615+ in order to run.');
}
}


/* --------------------------------------------------------------
* HOOKS
* ------------------------------------------------------------ */
// =========================================================================
// HOOKS
// =========================================================================

// FeedMe 1.4.0
public function registerFeedMeMappingOptions()
{
return array(
'SuperTable' => 'supertable/_plugins/feedMeOptions',
);
}

public function prepForFeedMeFieldType($field, &$data, $handle)
{
craft()->superTable->prepForFeedMeFieldType($field, $data, $handle);
}

public function postForFeedMeFieldType(&$fieldData)
{
craft()->superTable->postForFeedMeFieldType($fieldData);
}

// Export 0.5.8
public function registerExportOperation(&$data, $handle)
{
craft()->superTable->registerExportOperation($data, $handle);
}

}
23 changes: 5 additions & 18 deletions supertable/resources/css/SuperTableInput.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,31 +29,18 @@ body.ltr table.editable.superTable tbody tr td:nth-child(2) {
border-left: none;
}

/* Strange issue for Categories and button alignment */
.elements.structure li {
display: inline-block;
float: left;
}

body.ltr .structure li:first-child {
padding-left: 0;
}

.categoriesfield .btn {
margin-left: 10px;
}



/* Provide special formatting for some third-party field types. Just to make things clean */

.superTableContainer .field .linkit .linkit-type {
margin: 7px 0;
margin: 7px 0;
}

.superTableContainer .field .linkit .linkit-type-option,
.superTableContainer .field .linkit .linkit-text {
margin-bottom: 7px;
.superTableContainer .field .linkit .linkit-text,
.superTableContainer .field .linkit .linkit-target {
margin-bottom: 7px;
}


Expand All @@ -70,7 +57,7 @@ body.ltr .structure li:first-child {

.superTableRow .rowHeader {
font-weight: bold;
vertical-align: middle;
vertical-align: top;
font-size: 11px;
line-height: 1.2;
color: rgba(0, 0, 0, 0.5);
Expand Down
26 changes: 26 additions & 0 deletions supertable/resources/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 8ee2582

Please sign in to comment.