-
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 pull request #5 from melisplatform/develop
Develop
- Loading branch information
Showing
13 changed files
with
301 additions
and
35 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
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,38 @@ | ||
<?php | ||
return array( | ||
'front' => array( | ||
'template_path' => array('MiniTemplate/Content'), | ||
'id' => 'tag-miniTpl', | ||
'pageId' => 1, | ||
'type' => 'html', | ||
'default' => null, | ||
'value' => '', | ||
'widthDesktop' => 100, | ||
'widthTablet' => 100, | ||
'widthMobile' => 100, | ||
'pluginContainerId' => null, | ||
'files' => array( | ||
'css' => array( | ||
), | ||
'js' => array( | ||
), | ||
), | ||
), | ||
'melis' => array( | ||
'subcategory' => array( | ||
'id' => 'miniTemplatePlugins', | ||
'title' => 'Site Name' | ||
), | ||
'name' => 'Mini Template Name', | ||
'thumbnail' => null, | ||
'description' => null, | ||
'files' => array( | ||
'css' => array( | ||
), | ||
'js' => array( | ||
'js_melistag' => '/MelisFront/plugins/js/plugin.melistagHTML.init.js' | ||
), | ||
), | ||
'js_initialization' => array(), | ||
), | ||
); |
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
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
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,56 @@ | ||
<?php | ||
|
||
namespace MelisFront\Controller\Plugin; | ||
|
||
|
||
/** | ||
* This plugin implements the business logic of the | ||
* "Tag" plugin. | ||
* | ||
* Please look inside app.plugins.php for possible awaited parameters | ||
* in front and back function calls. | ||
* | ||
* front() and back() are the only functions to create / update. | ||
* front() generates the website view | ||
* back() generates the plugin view in template edition mode (TODO) | ||
* | ||
* Configuration can be found in $pluginConfig / $pluginFrontConfig / $pluginBackConfig | ||
* Configuration is automatically merged with the parameters provided when calling the plugin. | ||
* Merge detects automatically from the route if rendering must be done for front or back. | ||
* | ||
* How to call this plugin without parameters: | ||
* $plugin = $this->MiniTemplatePlugin(); | ||
* $pluginView = $plugin->render(); | ||
* | ||
* How to call this plugin with custom parameters: | ||
* $plugin = $this->MiniTemplatePlugin(); | ||
* $parameters = array( | ||
* 'template_path' => 'MySiteTest/tag/tag' | ||
* ); | ||
* $pluginView = $plugin->render($parameters); | ||
* | ||
* How to add to your controller's view: | ||
* $view->addChild($pluginView, 'tag_01'); | ||
* | ||
* How to display in your controller's view: | ||
* echo $this->tag_01; | ||
* | ||
* | ||
*/ | ||
class MiniTemplatePlugin extends MelisFrontTagPlugin | ||
{ | ||
public function __construct() | ||
{ | ||
$this->configPluginKey = 'MelisMiniTemplate'; | ||
$this->pluginXmlDbKey = 'melisTag'; | ||
} | ||
|
||
/** | ||
* This function will set the plugin name | ||
* | ||
* @param $pluginName | ||
*/ | ||
public function setMiniTplPluginName($pluginName){ | ||
$this->pluginName = $pluginName; | ||
} | ||
} |
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
Oops, something went wrong.