-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'mediabeastnz/master'
- Loading branch information
Showing
4 changed files
with
50 additions
and
24 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
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,39 @@ | ||
<?php | ||
|
||
/** | ||
* Fancy Dev Build base class | ||
* | ||
* @package DevTasks | ||
* | ||
*/ | ||
class DevTasks extends LeftAndMainExtension { | ||
public function init() { | ||
$tasks = array( | ||
'devbuild' => array( | ||
'title' => 'Dev/Build', | ||
'link' => 'dev/build', | ||
'reset_time' => '5000' | ||
) | ||
); | ||
|
||
$config_tasks = Config::inst()->get(__CLASS__, 'tasks'); | ||
if (is_array($config_tasks)) { | ||
$tasks = array_merge($tasks, $config_tasks); | ||
} | ||
|
||
foreach ($tasks as $item => $values) { | ||
|
||
$attributes = array( | ||
'class' => 'devbuild-trigger', | ||
'data-title' => (isset($values['title']) ? $values['title'] : $item), | ||
'data-link' => $values['link'], | ||
'data-reset-time' => (isset($values['reset_time']) ? $values['reset_time'] : '5000') | ||
); | ||
|
||
// priority controls the ordering of the link in the stack. The | ||
// lower the number, the lower in the list | ||
$priority = -90; | ||
CMSMenu::add_link($item, '', '#', $priority, $attributes); | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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