Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Piano: Keyboard Shortcut Extension for Symphony | ||
=============================================== | ||
|
||
A Symphony CMS extension that enables the use of the keyboard shortcuts (Currently ⌘+S and ⌘+N to save and create new entries respectively.) | ||
|
||
Status: | ||
* Proof of concept | ||
* implements: ⌘+S and ⌘+N | ||
* Missing | ||
* PC Support. | ||
* Future | ||
* More: | ||
* Delete selected when listing entries | ||
* ... | ||
|
||
------------------- | ||
|
||
- Version: 0.1 | ||
- Author: Ross Cairns <ross[~~]electricglen.com> | ||
- Build Date: 19th Dec 2010 | ||
- Requirements: unsure | ||
|
||
------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(function($){ | ||
$(document).ready(function(){ | ||
console.log("Piano Activated"); | ||
}); | ||
})(jQuery); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
class extension_thumbnail extends Extension { | ||
|
||
public function about(){ | ||
return array( | ||
'name' => 'Piano', | ||
'version' => '0.1', | ||
'release-date' => '19th Dec 2010', | ||
'author' => array( | ||
'name' => 'Ross Cairns', | ||
'website' => 'http://rosscairns.com/', | ||
'email' => 'ross[~~]electricglen.com' | ||
) | ||
); | ||
} | ||
|
||
public function getSubscribedDelegates() | ||
{ | ||
return array( | ||
array( | ||
'page' => '/administration/', | ||
'delegate' => 'AdminPagePreGenerate', | ||
'callback' => '__appendAssets' | ||
) | ||
); | ||
} | ||
|
||
public function __appendAssets($context) | ||
{ | ||
$callback = $this->_Parent->getPageCallback(); | ||
|
||
if ($callback['driver'] == 'publish' && ($callback['context']['page'] == 'index' || $callback['context']['page'] == 'edit')) | ||
{ | ||
$page = Administration::instance()->Page; | ||
|
||
$page->addScriptToHead(URL . '/extensions/thumbnail/assets/piano.js', 105); | ||
} | ||
} | ||
|
||
} |