Version Notes
The Help – Video Tutorials module has been created to guide you, directly from your Magento® workspace.
Download this release
Release Info
| Developer | Market Academy |
| Extension | helpvideotutorials |
| Version | 1.0.0.1 |
| Comparing to | |
| See all releases | |
Version 1.0.0.1
- app/code/local/MarketAcademy/Help/Block/Adminhtml/Table.php +20 -0
- app/code/local/MarketAcademy/Help/Block/Adminhtml/Videos/Grid.php +96 -0
- app/code/local/MarketAcademy/Help/Block/Adminhtml/Videos/Renderer/Thumbnail.php +24 -0
- app/code/local/MarketAcademy/Help/Block/Adminhtml/Videos/Renderer/View.php +26 -0
- app/code/local/MarketAcademy/Help/Block/Adminhtml/videos.php +20 -0
- app/code/local/MarketAcademy/Help/Block/Help.php +72 -0
- app/code/local/MarketAcademy/Help/Block/Video/List.php +52 -0
- app/code/local/MarketAcademy/Help/Helper/Data.php +17 -0
- app/code/local/MarketAcademy/Help/Model/Feed.php +25 -0
- app/code/local/MarketAcademy/Help/Model/Mavideohelp.php +26 -0
- app/code/local/MarketAcademy/Help/Model/Mysql4/Mavideohelp.php +20 -0
- app/code/local/MarketAcademy/Help/Model/Mysql4/Mavideohelp/Collection.php +21 -0
- app/code/local/MarketAcademy/Help/Model/Mysql4/Users.php +20 -0
- app/code/local/MarketAcademy/Help/Model/Mysql4/Users/Collection.php +21 -0
- app/code/local/MarketAcademy/Help/Model/Observer.php +30 -0
- app/code/local/MarketAcademy/Help/Model/Options.php +29 -0
- app/code/local/MarketAcademy/Help/Model/Service.php +145 -0
- app/code/local/MarketAcademy/Help/Model/Users.php +50 -0
- app/code/local/MarketAcademy/Help/controllers/Adminhtml/AdminController.php +28 -0
- app/code/local/MarketAcademy/Help/controllers/Adminhtml/ApiController.php +77 -0
- app/code/local/MarketAcademy/Help/controllers/Adminhtml/UsersController.php +56 -0
- app/code/local/MarketAcademy/Help/etc/adminhtml.xml +54 -0
- app/code/local/MarketAcademy/Help/etc/config.xml +124 -0
- app/code/local/MarketAcademy/Help/etc/system.xml +51 -0
- app/code/local/MarketAcademy/Help/sql/mavideohelp_setup/mysql4-install-1.0.0.0.php +26 -0
- app/design/adminhtml/default/default/layout/MarketAcademy_Help.xml +39 -0
- app/design/adminhtml/default/default/template/marketAcademy/videohelp/btnOpen.phtml +49 -0
- app/design/adminhtml/default/default/template/marketAcademy/videohelp/help.phtml +22 -0
- app/design/adminhtml/default/default/template/marketAcademy/videohelp/table.phtml +51 -0
- app/etc/modules/MarketAcademy_Help.xml +18 -0
- app/locale/en_US/MarketAcademy_Help.csv +5 -0
- package.xml +18 -0
app/code/local/MarketAcademy/Help/Block/Adminhtml/Table.php
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Market Academy SAS
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* It is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
+
*
|
| 11 |
+
* @copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
class MarketAcademy_Help_Block_Adminhtml_Table extends Mage_Core_Block_Template{
|
| 15 |
+
public function __construct() {
|
| 16 |
+
$this->setTemplate('marketAcademy/videohelp/table.phtml');
|
| 17 |
+
parent::__construct();
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
}
|
app/code/local/MarketAcademy/Help/Block/Adminhtml/Videos/Grid.php
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Market Academy SAS
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* It is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
+
*
|
| 11 |
+
* @copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
class MarketAcademy_Help_Block_Adminhtml_Videos_Grid extends Mage_Adminhtml_Block_Widget_Grid {
|
| 15 |
+
public function __construct()
|
| 16 |
+
{
|
| 17 |
+
parent::__construct();
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
protected function _prepareCollection()
|
| 21 |
+
{
|
| 22 |
+
$collection = new Varien_Data_Collection();
|
| 23 |
+
$videos = Mage::getModel("mavideohelp/service");
|
| 24 |
+
$list = $videos->getAllVideo();
|
| 25 |
+
foreach ($list as $vid) {
|
| 26 |
+
$data = new Varien_Object();
|
| 27 |
+
$data->setId($vid['id_tuto']);
|
| 28 |
+
$data->setThumbnail($vid['thumbnail']);
|
| 29 |
+
$data->setCategory($vid['catName']);
|
| 30 |
+
$data->setTags($vid['tagsName']);
|
| 31 |
+
$data->setTitre(urldecode($vid['titre_tuto']));
|
| 32 |
+
$data->setDescription(urldecode($vid['description_tuto']));
|
| 33 |
+
$data->setDure($vid['lien_tuto']);
|
| 34 |
+
$data->setLink($vid['lien_tuto']);
|
| 35 |
+
$collection->addItem($data);
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
$this->setCollection($collection);
|
| 39 |
+
//Debug
|
| 40 |
+
// foreach ($collection as $key => $value) {
|
| 41 |
+
// echo '<pre>';var_dump($value->getData());echo '</pre>';
|
| 42 |
+
// }
|
| 43 |
+
parent::_prepareCollection();
|
| 44 |
+
return $this;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
protected function _prepareColumns()
|
| 48 |
+
{
|
| 49 |
+
$helper = Mage::helper('mavideohelp');
|
| 50 |
+
// $currency = (string) Mage::getStoreConfig(Mage_Directory_Model_Currency::XML_PATH_CURRENCY_BASE);
|
| 51 |
+
|
| 52 |
+
$this->addColumn('thumbnail', array(
|
| 53 |
+
'header' => $helper->__('Thumbnail'),
|
| 54 |
+
'index' => 'thumbnail',
|
| 55 |
+
'renderer' => 'mavideohelp/Adminhtml_Videos_Renderer_Thumbnail'
|
| 56 |
+
));
|
| 57 |
+
$this->addColumn('cats', array(
|
| 58 |
+
'header' => $helper->__('Categories'),
|
| 59 |
+
'index' => 'category'
|
| 60 |
+
));
|
| 61 |
+
|
| 62 |
+
$this->addColumn('tags', array(
|
| 63 |
+
'header' => $helper->__('Tags'),
|
| 64 |
+
'index' => 'tags'
|
| 65 |
+
));
|
| 66 |
+
|
| 67 |
+
$this->addColumn('titre', array(
|
| 68 |
+
'header' => $helper->__('Titre'),
|
| 69 |
+
'index' => 'titre'
|
| 70 |
+
));
|
| 71 |
+
|
| 72 |
+
$this->addColumn('description', array(
|
| 73 |
+
'header' => $helper->__('Description'),
|
| 74 |
+
'index' => 'description'
|
| 75 |
+
));
|
| 76 |
+
|
| 77 |
+
$this->addColumn('vue', array(
|
| 78 |
+
'header' => $helper->__('Vue'),
|
| 79 |
+
'index' => 'id',
|
| 80 |
+
'renderer' => 'mavideohelp/Adminhtml_Videos_Renderer_View'
|
| 81 |
+
));
|
| 82 |
+
|
| 83 |
+
// $this->addColumn('increment_id', array(
|
| 84 |
+
// 'header' => $helper->__('Video #'),
|
| 85 |
+
// 'index' => 'id',
|
| 86 |
+
// 'width' =>"20px"
|
| 87 |
+
// ));
|
| 88 |
+
|
| 89 |
+
return parent::_prepareColumns();
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
public function getGridUrl()
|
| 93 |
+
{
|
| 94 |
+
return $this->getUrl('*/*/grid', array('_current'=>true));
|
| 95 |
+
}
|
| 96 |
+
}
|
app/code/local/MarketAcademy/Help/Block/Adminhtml/Videos/Renderer/Thumbnail.php
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Market Academy SAS
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* It is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
+
*
|
| 11 |
+
* @copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
class MarketAcademy_Help_Block_Adminhtml_Videos_Renderer_Thumbnail extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract{
|
| 15 |
+
|
| 16 |
+
public function render(Varien_Object $row) {
|
| 17 |
+
$value = $row->getData($this->getColumn()->getIndex());
|
| 18 |
+
$baseUrl = "https://www.youtube.com/watch?v=";
|
| 19 |
+
$url = $baseUrl.$row->getData('link');
|
| 20 |
+
return '<a href="'.$url.'" target="_blank">'.$value.'</a>';
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
}
|
| 24 |
+
?>
|
app/code/local/MarketAcademy/Help/Block/Adminhtml/Videos/Renderer/View.php
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Market Academy SAS
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* It is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
+
*
|
| 11 |
+
* @copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
class MarketAcademy_Help_Block_Adminhtml_Videos_Renderer_View extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract{
|
| 15 |
+
|
| 16 |
+
public function render(Varien_Object $row) {
|
| 17 |
+
$idv = $row->getData('id');
|
| 18 |
+
if(Mage::getModel('mavideohelp/mavideohelp')->hasSeen($idv)){
|
| 19 |
+
return '<span style="color:green;display:block;text-align:center;">Oui</span>';
|
| 20 |
+
}else{
|
| 21 |
+
return '<span style="color:red;display:block;text-align:center;">Non</span>';
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
}
|
| 26 |
+
?>
|
app/code/local/MarketAcademy/Help/Block/Adminhtml/videos.php
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Market Academy SAS
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* It is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
+
*
|
| 11 |
+
* @copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
class MarketAcademy_Help_Block_Help extends Mage_Core_Block_Template{
|
| 15 |
+
public function __construct()
|
| 16 |
+
{
|
| 17 |
+
parent::__construct();
|
| 18 |
+
$this->_removeButton('add');
|
| 19 |
+
}
|
| 20 |
+
}
|
app/code/local/MarketAcademy/Help/Block/Help.php
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Market Academy SAS
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* It is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
+
*
|
| 11 |
+
* @copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
class MarketAcademy_Help_Block_Help extends Mage_Core_Block_Template{
|
| 16 |
+
|
| 17 |
+
public function isRegisterMA(){
|
| 18 |
+
$id = $this->userId();
|
| 19 |
+
$url = Mage::getUrl();
|
| 20 |
+
|
| 21 |
+
return Mage::getModel('mavideohelp/service')->isRegister($url,$id);
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
public function getVideoRoute(){
|
| 25 |
+
return Mage::app()->getRequest()->getControllerName().'/'.Mage::app()->getRequest()->getActionName();
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
public function getVideoUrl(){
|
| 29 |
+
// Mage::getModel('mypackage_module/modeltest)
|
| 30 |
+
$videos = Mage::getModel("mavideohelp/service");
|
| 31 |
+
$list = $videos->getVideoList();
|
| 32 |
+
// var_dump($list);
|
| 33 |
+
return Mage::helper("adminhtml")->getUrl('ma_videohelp');
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
public function getVideos(){
|
| 37 |
+
$videos = Mage::getModel("mavideohelp/service");
|
| 38 |
+
$list = $videos->getVideoList();
|
| 39 |
+
// var_dump($list);
|
| 40 |
+
return $list;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
public function decode($item){
|
| 44 |
+
$result = htmlspecialchars_decode(urldecode($item));
|
| 45 |
+
return $result;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
public function viewedVids(){
|
| 49 |
+
$userId = $this->userId();
|
| 50 |
+
$collection = Mage::getModel('mavideohelp/mavideohelp')->getCollection()->addFieldToFilter('id_user_seen',$userId)->getData();
|
| 51 |
+
// echo '<pre>';var_dump(Mage::getModel('mavideohelp/mavideohelp')->UserId());echo '</pre>';
|
| 52 |
+
$vidIds = array();
|
| 53 |
+
foreach ($collection as $vue) {
|
| 54 |
+
$vidIds[] = $vue['id_video_seen'];
|
| 55 |
+
}
|
| 56 |
+
return $vidIds;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
public function jsviewedVids(){
|
| 60 |
+
$js = $this->viewedVids();
|
| 61 |
+
$js = "[".implode(",", $js)."]";
|
| 62 |
+
return $js;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
public function userId(){
|
| 66 |
+
return Mage::getModel('mavideohelp/mavideohelp')->userId();
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
public function UserData(){
|
| 70 |
+
return Mage::getSingleton('admin/session')->getUser()->getData();
|
| 71 |
+
}
|
| 72 |
+
}
|
app/code/local/MarketAcademy/Help/Block/Video/List.php
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Market Academy SAS
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* It is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
+
*
|
| 11 |
+
* @copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
class MarketAcademy_Help_Block_Video_List extends Mage_Core_Block_Template
|
| 15 |
+
{
|
| 16 |
+
protected $_list = array();
|
| 17 |
+
protected $_route =NULL;
|
| 18 |
+
|
| 19 |
+
protected function _construct()
|
| 20 |
+
{
|
| 21 |
+
parent::_construct();
|
| 22 |
+
$this->setTemplate('ma/videohelp/list.phtml');
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
public function getVideoRoute()
|
| 26 |
+
{
|
| 27 |
+
return $this->_route;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
public function setVideoRoute($route)
|
| 31 |
+
{
|
| 32 |
+
$this->_route = $route;
|
| 33 |
+
return $this;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
public function setList($list)
|
| 37 |
+
{
|
| 38 |
+
if(!is_array($list)) $list = array();
|
| 39 |
+
$this->_list = $list;
|
| 40 |
+
return $this;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
public function getList()
|
| 44 |
+
{
|
| 45 |
+
return $this->_list;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
public function countList()
|
| 49 |
+
{
|
| 50 |
+
return count($this->getList());
|
| 51 |
+
}
|
| 52 |
+
}
|
app/code/local/MarketAcademy/Help/Helper/Data.php
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Market Academy SAS
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* It is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
+
*
|
| 11 |
+
* @copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
class MarketAcademy_Help_Helper_Data extends Mage_Core_Helper_Abstract{
|
| 16 |
+
|
| 17 |
+
}
|
app/code/local/MarketAcademy/Help/Model/Feed.php
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Market Academy SAS
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* It is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
+
*
|
| 11 |
+
* @copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
class MarketAcademy_Help_Model_Feed extends Mage_AdminNotification_Model_Feed {
|
| 15 |
+
public function getFeedUrl() {
|
| 16 |
+
$url =
|
| 17 |
+
Mage::getStoreConfigFlag(self::XML_USE_HTTPS_PATH) ? 'https://' : 'http://'
|
| 18 |
+
. 'tuto.market-academy.com/notification.rss';
|
| 19 |
+
return $url;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
public function observe() {
|
| 23 |
+
$this->checkUpdate();
|
| 24 |
+
}
|
| 25 |
+
}
|
app/code/local/MarketAcademy/Help/Model/Mavideohelp.php
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Market Academy SAS
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* It is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
+
*
|
| 11 |
+
* @copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
class MarketAcademy_Help_Model_Mavideohelp extends Mage_Core_Model_Abstract
|
| 15 |
+
{
|
| 16 |
+
public function _construct() {
|
| 17 |
+
parent::_construct();
|
| 18 |
+
$this->_init('mavideohelp/mavideohelp');
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
public function UserId(){
|
| 22 |
+
$user = Mage::getSingleton('admin/session');
|
| 23 |
+
$userId = $user->getUser()->getUserId();
|
| 24 |
+
return $userId;
|
| 25 |
+
}
|
| 26 |
+
}
|
app/code/local/MarketAcademy/Help/Model/Mysql4/Mavideohelp.php
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Market Academy SAS
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* It is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
+
*
|
| 11 |
+
* @copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
class MarketAcademy_Help_Model_Mysql4_Mavideohelp extends Mage_Core_Model_Mysql4_Abstract
|
| 15 |
+
{
|
| 16 |
+
public function _construct()
|
| 17 |
+
{
|
| 18 |
+
$this->_init('mavideohelp/mavideohelp', 'id_seen');
|
| 19 |
+
}
|
| 20 |
+
}
|
app/code/local/MarketAcademy/Help/Model/Mysql4/Mavideohelp/Collection.php
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Market Academy SAS
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* It is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
+
*
|
| 11 |
+
* @copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
class MarketAcademy_Help_Model_Mysql4_Mavideohelp_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
|
| 15 |
+
{
|
| 16 |
+
public function _construct()
|
| 17 |
+
{
|
| 18 |
+
// parent::_construct();
|
| 19 |
+
$this->_init('mavideohelp/mavideohelp');
|
| 20 |
+
}
|
| 21 |
+
}
|
app/code/local/MarketAcademy/Help/Model/Mysql4/Users.php
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Market Academy SAS
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* It is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
+
*
|
| 11 |
+
* @copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
class MarketAcademy_Help_Model_Mysql4_Users extends Mage_Core_Model_Mysql4_Abstract
|
| 15 |
+
{
|
| 16 |
+
public function _construct()
|
| 17 |
+
{
|
| 18 |
+
$this->_init('mavideohelp/Users', 'mu_id');
|
| 19 |
+
}
|
| 20 |
+
}
|
app/code/local/MarketAcademy/Help/Model/Mysql4/Users/Collection.php
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Market Academy SAS
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* It is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
+
*
|
| 11 |
+
* @copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
class MarketAcademy_Help_Model_Mysql4_Users_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
|
| 15 |
+
{
|
| 16 |
+
public function _construct()
|
| 17 |
+
{
|
| 18 |
+
// parent::_construct();
|
| 19 |
+
$this->_init('mavideohelp/Users');
|
| 20 |
+
}
|
| 21 |
+
}
|
app/code/local/MarketAcademy/Help/Model/Observer.php
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Magento
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
| 9 |
+
* It is also available through the world-wide-web at this URL:
|
| 10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 11 |
+
* If you did not receive a copy of the license and are unable to
|
| 12 |
+
* obtain it through the world-wide-web, please send an email
|
| 13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
| 14 |
+
*
|
| 15 |
+
* @category MarketAcademy
|
| 16 |
+
* @package MarketAcademy_Help
|
| 17 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 18 |
+
* @generator http://www.mgt-commerce.com/kickstarter/ Mgt Kickstarter
|
| 19 |
+
*/
|
| 20 |
+
|
| 21 |
+
class MarketAcademy_Help_Model_Observer
|
| 22 |
+
{
|
| 23 |
+
public function catalogProductLoadAfter(Varien_Event_Observer $observer) {
|
| 24 |
+
$product = $observer->getEvent()->getProduct();
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
public function getVideos(){
|
| 28 |
+
|
| 29 |
+
}
|
| 30 |
+
}
|
app/code/local/MarketAcademy/Help/Model/Options.php
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Market Academy SAS
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* It is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
+
*
|
| 11 |
+
* @copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
class MarketAcademy_Help_Model_Options {
|
| 15 |
+
/**
|
| 16 |
+
* Provide available options as a value/label array
|
| 17 |
+
*
|
| 18 |
+
* @return array
|
| 19 |
+
*/
|
| 20 |
+
public function toOptionArray()
|
| 21 |
+
{
|
| 22 |
+
return array(
|
| 23 |
+
array('value'=>1, 'label'=>'One'),
|
| 24 |
+
array('value'=>2, 'label'=>'Two'),
|
| 25 |
+
array('value'=>3, 'label'=>'Three'),
|
| 26 |
+
array('value'=>4, 'label'=>'Four')
|
| 27 |
+
);
|
| 28 |
+
}
|
| 29 |
+
}
|
app/code/local/MarketAcademy/Help/Model/Service.php
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Market Academy SAS
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* It is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
+
*
|
| 11 |
+
* @copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
class MarketAcademy_Help_Model_Service extends Varien_Object
|
| 15 |
+
{
|
| 16 |
+
const URL_REQUEST = 'https://tuto.market-academy.com/api/api.php';
|
| 17 |
+
private $_apiKey;
|
| 18 |
+
|
| 19 |
+
public function __construct(){
|
| 20 |
+
$hasKey = Mage::getModel('mavideohelp/users')->getKey();
|
| 21 |
+
if (!empty($hasKey["mu_apiKey"])) {
|
| 22 |
+
$this->_apiKey = $hasKey['mu_apiKey'];
|
| 23 |
+
return true;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
return false;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
public function getVideoList() {
|
| 30 |
+
$url = $this->_getUrl('getVideos');
|
| 31 |
+
$final = $url .$this;
|
| 32 |
+
$ch = curl_init($final);
|
| 33 |
+
curl_setopt($ch, CURLOPT_HEADER, false);
|
| 34 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
| 35 |
+
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
|
| 36 |
+
$dataJson = curl_exec($ch);
|
| 37 |
+
curl_close($ch);
|
| 38 |
+
return json_decode($dataJson, true);
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
public function getAllVideo() {
|
| 42 |
+
$url = $this->_getUrl('getAllVideos');
|
| 43 |
+
$final = $url .$this;
|
| 44 |
+
$ch = curl_init($final);
|
| 45 |
+
curl_setopt($ch, CURLOPT_HEADER, false);
|
| 46 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
| 47 |
+
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
|
| 48 |
+
$dataJson = curl_exec($ch);
|
| 49 |
+
curl_close($ch);
|
| 50 |
+
return json_decode($dataJson, true);
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
public function iframeUrl(){
|
| 54 |
+
$urlAsk = static::URL_REQUEST.'?api=iframe&cms=magento'.'&'.$this->_getRouteParameters();
|
| 55 |
+
if (!empty($this->_apiKey)) {
|
| 56 |
+
$urlAsk .= "&key=".$this->_apiKey;
|
| 57 |
+
}
|
| 58 |
+
return $urlAsk;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
public function getBtnUrl($direction){
|
| 62 |
+
if ($direction == "left" || $direction == "right") {
|
| 63 |
+
$urlAsk = static::URL_REQUEST.'?api=button&cms=magento&sens='.$direction.'&'.$this->_getRouteParameters();
|
| 64 |
+
if (!empty($this->_apiKey)) {
|
| 65 |
+
$urlAsk .= "&key=".$this->_apiKey;
|
| 66 |
+
}
|
| 67 |
+
return $urlAsk;
|
| 68 |
+
}
|
| 69 |
+
return false;
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
public function getTableFrameUrl(){
|
| 73 |
+
return static::iframeUrl()."&table=1";
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
protected function _getUrl($action) {
|
| 77 |
+
return static::URL_REQUEST . '?' . $this->_getUrlParameters($action);
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
protected function _getUrlParameters($api) {
|
| 81 |
+
if (!empty($api)) {
|
| 82 |
+
$moduleName = Mage::app()->getRequest()->getModuleName();
|
| 83 |
+
$module = Mage::app()->getRequest()->getControllerName();
|
| 84 |
+
$action = Mage::app()->getRequest()->getActionName();
|
| 85 |
+
$storeLocaleCode = Mage::app()->getLocale()->getLocaleCode();
|
| 86 |
+
|
| 87 |
+
if ($action == 'index') {
|
| 88 |
+
$route = $module;
|
| 89 |
+
}else{
|
| 90 |
+
$route = $module.'/'.$action;
|
| 91 |
+
}
|
| 92 |
+
$parameters = array(
|
| 93 |
+
'api' => $api,
|
| 94 |
+
'r' => $route,
|
| 95 |
+
'l' => $storeLocaleCode,
|
| 96 |
+
'm' => $moduleName
|
| 97 |
+
);
|
| 98 |
+
|
| 99 |
+
if (!empty($section)) {
|
| 100 |
+
$parameters['section'] = $section;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
$urlP = array();
|
| 104 |
+
foreach($parameters as $key=>$val){
|
| 105 |
+
if(!empty($val))
|
| 106 |
+
$urlP[] = $key.'='.urlencode($val);
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
return implode('&', $urlP);
|
| 110 |
+
}
|
| 111 |
+
return false;
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
protected function _getRouteParameters() {
|
| 115 |
+
$module = Mage::app()->getRequest()->getControllerName();
|
| 116 |
+
$action = Mage::app()->getRequest()->getActionName();
|
| 117 |
+
$storeLocaleCode = Mage::app()->getLocale()->getLocaleCode();
|
| 118 |
+
$moduleName = Mage::app()->getRequest()->getControllerModule();
|
| 119 |
+
$section = Mage::app()->getRequest()->getParam('section');
|
| 120 |
+
|
| 121 |
+
if ($action == 'index') {
|
| 122 |
+
$route = $module;
|
| 123 |
+
}else{
|
| 124 |
+
$route = $module.'/'.$action;
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
$parameters = array(
|
| 128 |
+
'r' => $route,
|
| 129 |
+
'l' => $storeLocaleCode,
|
| 130 |
+
'm' => $moduleName,
|
| 131 |
+
);
|
| 132 |
+
|
| 133 |
+
if (!empty($section)) {
|
| 134 |
+
$parameters['section'] = $section;
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
$urlP = array();
|
| 138 |
+
foreach($parameters as $key=>$val){
|
| 139 |
+
if(!empty($val))
|
| 140 |
+
$urlP[] = $key.'='.urlencode($val);
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
return implode('&', $urlP);
|
| 144 |
+
}
|
| 145 |
+
}
|
app/code/local/MarketAcademy/Help/Model/Users.php
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Market Academy SAS
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* It is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
+
*
|
| 11 |
+
* @copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
class MarketAcademy_Help_Model_Users extends Mage_Core_Model_Abstract
|
| 15 |
+
{
|
| 16 |
+
public function _construct() {
|
| 17 |
+
parent::_construct();
|
| 18 |
+
$this->_init('mavideohelp/Users');
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
public function addUser($apiKey){
|
| 22 |
+
$userId = Mage::getModel('mavideohelp/mavideohelp')->userId();
|
| 23 |
+
|
| 24 |
+
$list = $this->getCollection()->addFieldToFilter('mu_id_mage',$userId);
|
| 25 |
+
foreach ($list as $key) {
|
| 26 |
+
$key->delete();
|
| 27 |
+
}
|
| 28 |
+
$userExist = $this->load($userId,"mu_id_mage");
|
| 29 |
+
if ($userExist) {
|
| 30 |
+
$userExist->setData('mu_id_mage',$userId);
|
| 31 |
+
$userExist->setData('mu_apiKey',$apiKey);
|
| 32 |
+
$userExist->setData('mu_date',"NOW");
|
| 33 |
+
$userExist->save();
|
| 34 |
+
}else{
|
| 35 |
+
$this->setData('mu_id_mage',$userId);
|
| 36 |
+
$this->setData('mu_apiKey',$apiKey);
|
| 37 |
+
$this->setData('mu_date',"NOW");
|
| 38 |
+
return $this->save();
|
| 39 |
+
}
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
public function getKey(){
|
| 43 |
+
$userId = Mage::getModel('mavideohelp/mavideohelp')->userId();
|
| 44 |
+
$list = $this->getCollection()->addFieldToFilter('mu_id_mage',$userId)->getData();
|
| 45 |
+
if (count($list) > 0) {
|
| 46 |
+
return $list[0];
|
| 47 |
+
}
|
| 48 |
+
return false;
|
| 49 |
+
}
|
| 50 |
+
}
|
app/code/local/MarketAcademy/Help/controllers/Adminhtml/AdminController.php
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Market Academy SAS
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* It is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
+
*
|
| 11 |
+
* @copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
class MarketAcademy_Help_Adminhtml_AdminController extends Mage_Adminhtml_Controller_Action
|
| 16 |
+
{
|
| 17 |
+
public function indexAction()
|
| 18 |
+
{
|
| 19 |
+
$this->_title($this->__('Sales'))->_title($this->__('Les videos Market Academy'));
|
| 20 |
+
$this->loadLayout();
|
| 21 |
+
$this->_addContent($this->getLayout()->createBlock('mavideohelp/adminhtml_table'));
|
| 22 |
+
$this->renderLayout();
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
public function _isAllowed(){
|
| 26 |
+
return Mage::getSingleton('admin/session')->isAllowed('markethelp_menu/view');
|
| 27 |
+
}
|
| 28 |
+
}
|
app/code/local/MarketAcademy/Help/controllers/Adminhtml/ApiController.php
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Market Academy SAS
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* It is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
+
*
|
| 11 |
+
* @copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
class MarketAcademy_Help_Adminhtml_ApiController extends Mage_Adminhtml_Controller_Action
|
| 16 |
+
{
|
| 17 |
+
public function RegisterUserAction(){
|
| 18 |
+
$db = Mage::getModel('mavideohelp/users');
|
| 19 |
+
|
| 20 |
+
exit();
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
public function seenAction(){
|
| 24 |
+
$get = $_GET;
|
| 25 |
+
if (isset($get['idv'])) {
|
| 26 |
+
if (!empty($get['idv'])) {
|
| 27 |
+
$idvideo = $get['idv'];
|
| 28 |
+
}else{
|
| 29 |
+
return false;
|
| 30 |
+
}
|
| 31 |
+
}else{
|
| 32 |
+
return false;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
$db = Mage::getModel('mavideohelp/mavideohelp');
|
| 36 |
+
if (!$db->hasSeen($idvideo)) {
|
| 37 |
+
echo $db->seenVideo($idvideo);
|
| 38 |
+
echo "true";
|
| 39 |
+
}else{
|
| 40 |
+
echo "false";
|
| 41 |
+
}
|
| 42 |
+
exit();
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
public function seenToggleAction(){
|
| 46 |
+
$get = $_GET;
|
| 47 |
+
if (isset($get['idv'])) {
|
| 48 |
+
if (!empty($get['idv'])) {
|
| 49 |
+
$idvideo = $get['idv'];
|
| 50 |
+
}else{
|
| 51 |
+
return false;
|
| 52 |
+
}
|
| 53 |
+
}else{
|
| 54 |
+
return false;
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
$db = Mage::getModel('mavideohelp/mavideohelp');
|
| 58 |
+
if ($db->hasSeen($idvideo)) {
|
| 59 |
+
echo $db->unseeVideo($idvideo);
|
| 60 |
+
echo "false";
|
| 61 |
+
}else{
|
| 62 |
+
echo $db->seenVideo($idvideo);
|
| 63 |
+
echo "true";
|
| 64 |
+
}
|
| 65 |
+
exit();
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
public function testAction()
|
| 69 |
+
{
|
| 70 |
+
$this->loadLayout();
|
| 71 |
+
$this->renderLayout();
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
public function _isAllowed(){
|
| 75 |
+
return Mage::getSingleton('admin/session')->isAllowed('markethelp_menu/view_videos');
|
| 76 |
+
}
|
| 77 |
+
}
|
app/code/local/MarketAcademy/Help/controllers/Adminhtml/UsersController.php
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Market Academy SAS
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* It is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
+
*
|
| 11 |
+
* @copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
class MarketAcademy_Help_Adminhtml_UsersController extends Mage_Adminhtml_Controller_Action
|
| 16 |
+
{
|
| 17 |
+
public function adduserAction(){
|
| 18 |
+
$post = $_POST;
|
| 19 |
+
if (isset($post['idMage'])) {
|
| 20 |
+
$idM = $post['idMage'];
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
if (isset($post['apiKey'])) {
|
| 24 |
+
$apiKey = $post['apiKey'];
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
if (!empty($idM) && !empty($apiKey)) {
|
| 28 |
+
if (is_int((int)$idM)) {
|
| 29 |
+
if ($idM == Mage::getModel('mavideohelp/mavideohelp')->userId()) {
|
| 30 |
+
$newUser = Mage::getModel('mavideohelp/users')->addUser($apiKey);
|
| 31 |
+
if ($newUser) {
|
| 32 |
+
echo "true";
|
| 33 |
+
}else{
|
| 34 |
+
echo "false";
|
| 35 |
+
}
|
| 36 |
+
}
|
| 37 |
+
}else{
|
| 38 |
+
echo "false";
|
| 39 |
+
}
|
| 40 |
+
}else{
|
| 41 |
+
echo "false";
|
| 42 |
+
}
|
| 43 |
+
exit();
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
public function indexAction(){
|
| 47 |
+
$this->_title($this->__('Sales'))->_title($this->__('Les videos Market Academy'));
|
| 48 |
+
$this->loadLayout();
|
| 49 |
+
$this->_addContent($this->getLayout()->createBlock('mavideohelp/adminhtml_videos_grid'));
|
| 50 |
+
$this->renderLayout();
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
public function _isAllowed(){
|
| 54 |
+
return Mage::getSingleton('admin/session')->isAllowed('markethelp_menu/view');
|
| 55 |
+
}
|
| 56 |
+
}
|
app/code/local/MarketAcademy/Help/etc/adminhtml.xml
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" ?>
|
| 2 |
+
<!--
|
| 3 |
+
Market Academy SAS
|
| 4 |
+
NOTICE OF LICENSE
|
| 5 |
+
This source file is subject to the Open Software License (OSL 3.0)
|
| 6 |
+
It is available through the world-wide-web at this URL:
|
| 7 |
+
http://opensource.org/licenses/osl-3.0.php
|
| 8 |
+
@copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 9 |
+
@license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 10 |
+
-->
|
| 11 |
+
<config>
|
| 12 |
+
<menu>
|
| 13 |
+
<markethelp_menu translate="title" module="mavideohelp">
|
| 14 |
+
<title>Aide - Tutos vidéos</title>
|
| 15 |
+
<action>mavideohelp/admin/index</action>
|
| 16 |
+
<sort_order>9999</sort_order>
|
| 17 |
+
<children>
|
| 18 |
+
<table translate="title" module="mavideohelp">
|
| 19 |
+
<title>Voir tous les tutos</title>
|
| 20 |
+
<action>mavideohelp/admin/index</action>
|
| 21 |
+
<sort_order>0</sort_order>
|
| 22 |
+
</table>
|
| 23 |
+
<config translate="title" module="mavideohelp">
|
| 24 |
+
<title>Configuration</title>
|
| 25 |
+
<action>adminhtml/system_config/edit/section/mavideohelp_options</action>
|
| 26 |
+
<sort_order>1</sort_order>
|
| 27 |
+
</config>
|
| 28 |
+
</children>
|
| 29 |
+
</markethelp_menu>
|
| 30 |
+
</menu>
|
| 31 |
+
<acl>
|
| 32 |
+
<resources>
|
| 33 |
+
<admin>
|
| 34 |
+
<children>
|
| 35 |
+
<markethelp_menu translate="title" module="mavideohelp">
|
| 36 |
+
<title>Aide - Tutos vidéos</title>
|
| 37 |
+
<sort_order>999999</sort_order>
|
| 38 |
+
<children>
|
| 39 |
+
<!-- child items go here -->
|
| 40 |
+
<view translate="title" module="mavideohelp">
|
| 41 |
+
<title>Voir le panneau de droite</title>
|
| 42 |
+
<sort_order>10</sort_order>
|
| 43 |
+
</view>
|
| 44 |
+
<view_videos translate="title" module="mavideohelp">
|
| 45 |
+
<title>Marquer une video comme "vue"</title>
|
| 46 |
+
<sort_order>11</sort_order>
|
| 47 |
+
</view_videos>
|
| 48 |
+
</children>
|
| 49 |
+
</markethelp_menu>
|
| 50 |
+
</children>
|
| 51 |
+
</admin>
|
| 52 |
+
</resources>
|
| 53 |
+
</acl>
|
| 54 |
+
</config>
|
app/code/local/MarketAcademy/Help/etc/config.xml
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
Market Academy SAS
|
| 4 |
+
NOTICE OF LICENSE
|
| 5 |
+
This source file is subject to the Open Software License (OSL 3.0)
|
| 6 |
+
It is available through the world-wide-web at this URL:
|
| 7 |
+
http://opensource.org/licenses/osl-3.0.php
|
| 8 |
+
@copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 9 |
+
@license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 10 |
+
-->
|
| 11 |
+
<config>
|
| 12 |
+
<modules>
|
| 13 |
+
<MarketAcademy_Help>
|
| 14 |
+
<version>1.0.0.1</version>
|
| 15 |
+
</MarketAcademy_Help>
|
| 16 |
+
</modules>
|
| 17 |
+
<global>
|
| 18 |
+
<models>
|
| 19 |
+
<mavideohelp>
|
| 20 |
+
<class>MarketAcademy_Help_Model</class>
|
| 21 |
+
<resourceModel>mavideohelp_mysql4</resourceModel>
|
| 22 |
+
</mavideohelp>
|
| 23 |
+
<mavideohelp_mysql4>
|
| 24 |
+
<class>MarketAcademy_Help_Model_Mysql4</class>
|
| 25 |
+
<entities>
|
| 26 |
+
<mavideohelp>
|
| 27 |
+
<table>markethelp_seen</table>
|
| 28 |
+
</mavideohelp>
|
| 29 |
+
<Users>
|
| 30 |
+
<table>markethelp_users</table>
|
| 31 |
+
</Users>
|
| 32 |
+
</entities>
|
| 33 |
+
</mavideohelp_mysql4>
|
| 34 |
+
</models>
|
| 35 |
+
<resources>
|
| 36 |
+
<mavideohelp_setup>
|
| 37 |
+
<setup>
|
| 38 |
+
<module>MarketAcademy_Help</module>
|
| 39 |
+
</setup>
|
| 40 |
+
<connection>
|
| 41 |
+
<use>core_setup</use>
|
| 42 |
+
</connection>
|
| 43 |
+
</mavideohelp_setup>
|
| 44 |
+
</resources>
|
| 45 |
+
<blocks>
|
| 46 |
+
<mavideohelp>
|
| 47 |
+
<class>MarketAcademy_Help_Block</class>
|
| 48 |
+
</mavideohelp>
|
| 49 |
+
</blocks>
|
| 50 |
+
<helpers>
|
| 51 |
+
<mavideohelp>
|
| 52 |
+
<class>MarketAcademy_Help_Helper</class>
|
| 53 |
+
</mavideohelp>
|
| 54 |
+
</helpers>
|
| 55 |
+
</global>
|
| 56 |
+
|
| 57 |
+
<admin>
|
| 58 |
+
<routers>
|
| 59 |
+
<MarketAcademy_Help>
|
| 60 |
+
<use>admin</use>
|
| 61 |
+
<args>
|
| 62 |
+
<module>MarketAcademy_Help_Adminhtml</module>
|
| 63 |
+
<frontName>mavideohelp</frontName>
|
| 64 |
+
</args>
|
| 65 |
+
</MarketAcademy_Help>
|
| 66 |
+
</routers>
|
| 67 |
+
</admin>
|
| 68 |
+
<adminhtml>
|
| 69 |
+
<layout>
|
| 70 |
+
<updates>
|
| 71 |
+
<mavideohelp>
|
| 72 |
+
<file>MarketAcademy_Help.xml</file>
|
| 73 |
+
</mavideohelp>
|
| 74 |
+
</updates>
|
| 75 |
+
</layout>
|
| 76 |
+
<translate>
|
| 77 |
+
<modules>
|
| 78 |
+
<mavideohelp>
|
| 79 |
+
<files>
|
| 80 |
+
<default>MarketAcademy_Help.csv</default>
|
| 81 |
+
</files>
|
| 82 |
+
</mavideohelp>
|
| 83 |
+
</modules>
|
| 84 |
+
</translate>
|
| 85 |
+
<!-- Onglet configuration -->
|
| 86 |
+
<acl>
|
| 87 |
+
<resources>
|
| 88 |
+
<admin>
|
| 89 |
+
<children>
|
| 90 |
+
<system>
|
| 91 |
+
<children>
|
| 92 |
+
<config>
|
| 93 |
+
<children>
|
| 94 |
+
<mavideohelp_options>
|
| 95 |
+
<title>Configurer le module de tutos vidéos</title>
|
| 96 |
+
</mavideohelp_options>
|
| 97 |
+
</children>
|
| 98 |
+
</config>
|
| 99 |
+
</children>
|
| 100 |
+
</system>
|
| 101 |
+
</children>
|
| 102 |
+
</admin>
|
| 103 |
+
</resources>
|
| 104 |
+
</acl>
|
| 105 |
+
<events>
|
| 106 |
+
<controller_action_predispatch>
|
| 107 |
+
<observers>
|
| 108 |
+
<mavideohelp_notification>
|
| 109 |
+
<type>singleton</type>
|
| 110 |
+
<class>mavideohelp/feed</class>
|
| 111 |
+
<method>observe</method>
|
| 112 |
+
</mavideohelp_notification>
|
| 113 |
+
</observers>
|
| 114 |
+
</controller_action_predispatch>
|
| 115 |
+
</events>
|
| 116 |
+
</adminhtml>
|
| 117 |
+
<default>
|
| 118 |
+
<mavideohelp_options>
|
| 119 |
+
<section_one>
|
| 120 |
+
<mavideohelp_alwaysOpen>1</mavideohelp_alwaysOpen>
|
| 121 |
+
</section_one>
|
| 122 |
+
</mavideohelp_options>
|
| 123 |
+
</default>
|
| 124 |
+
</config>
|
app/code/local/MarketAcademy/Help/etc/system.xml
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<!--
|
| 3 |
+
Market Academy SAS
|
| 4 |
+
NOTICE OF LICENSE
|
| 5 |
+
This source file is subject to the Open Software License (OSL 3.0)
|
| 6 |
+
It is available through the world-wide-web at this URL:
|
| 7 |
+
http://opensource.org/licenses/osl-3.0.php
|
| 8 |
+
@copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 9 |
+
@license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 10 |
+
-->
|
| 11 |
+
<config>
|
| 12 |
+
<tabs>
|
| 13 |
+
<mavideohelp translate="label" module="mavideohelp">
|
| 14 |
+
<label>Aide - Tutos vidéos</label>
|
| 15 |
+
<sort_order>100</sort_order>
|
| 16 |
+
</mavideohelp>
|
| 17 |
+
</tabs>
|
| 18 |
+
|
| 19 |
+
<sections>
|
| 20 |
+
<mavideohelp_options translate="label" module="mavideohelp">
|
| 21 |
+
<label>Configuration du module</label>
|
| 22 |
+
<tab>mavideohelp</tab>
|
| 23 |
+
<sort_order>999999000</sort_order>
|
| 24 |
+
<frontend_type>text</frontend_type>
|
| 25 |
+
<show_in_default>1</show_in_default>
|
| 26 |
+
<show_in_website>1</show_in_website>
|
| 27 |
+
<show_in_store>1</show_in_store>
|
| 28 |
+
<groups>
|
| 29 |
+
<section_one translate="label">
|
| 30 |
+
<label>Configuration</label>
|
| 31 |
+
<frontend_type>text</frontend_type>
|
| 32 |
+
<sort_order>999999999</sort_order>
|
| 33 |
+
<show_in_default>1</show_in_default>
|
| 34 |
+
<show_in_website>1</show_in_website>
|
| 35 |
+
<show_in_store>1</show_in_store>
|
| 36 |
+
<fields>
|
| 37 |
+
<mavideohelp_alwaysOpen translate="label">
|
| 38 |
+
<label>Panneau toujours ouvert :</label>
|
| 39 |
+
<frontend_type>select</frontend_type>
|
| 40 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 41 |
+
<sort_order>30</sort_order>
|
| 42 |
+
<show_in_default>1</show_in_default>
|
| 43 |
+
<show_in_website>1</show_in_website>
|
| 44 |
+
<show_in_store>1</show_in_store>
|
| 45 |
+
</mavideohelp_alwaysOpen>
|
| 46 |
+
</fields>
|
| 47 |
+
</section_one>
|
| 48 |
+
</groups>
|
| 49 |
+
</mavideohelp_options>
|
| 50 |
+
</sections>
|
| 51 |
+
</config>
|
app/code/local/MarketAcademy/Help/sql/mavideohelp_setup/mysql4-install-1.0.0.0.php
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Market Academy SAS
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* It is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
+
*
|
| 11 |
+
* @copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
$installer = $this;
|
| 15 |
+
$table = $this->getTable('markethelp_users');
|
| 16 |
+
$installer->startSetup();
|
| 17 |
+
$sql="CREATE TABLE IF NOT EXISTS `".$table."` (
|
| 18 |
+
`mu_id` int(11) NOT NULL AUTO_INCREMENT,
|
| 19 |
+
`mu_id_mage` int(11) NOT NULL,
|
| 20 |
+
`mu_apiKey` varchar(255) NOT NULL,
|
| 21 |
+
`mu_date` datetime NOT NULL,
|
| 22 |
+
PRIMARY KEY (`mu_id`),
|
| 23 |
+
KEY `mu_id_mage` (`mu_id_mage`)
|
| 24 |
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;";
|
| 25 |
+
$installer->run($sql);
|
| 26 |
+
$installer->endSetup();
|
app/design/adminhtml/default/default/layout/MarketAcademy_Help.xml
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
Market Academy SAS
|
| 4 |
+
NOTICE OF LICENSE
|
| 5 |
+
This source file is subject to the Open Software License (OSL 3.0)
|
| 6 |
+
It is available through the world-wide-web at this URL:
|
| 7 |
+
http://opensource.org/licenses/osl-3.0.php
|
| 8 |
+
@copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 9 |
+
@license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 10 |
+
-->
|
| 11 |
+
<layout>
|
| 12 |
+
<default>
|
| 13 |
+
<reference name="head">
|
| 14 |
+
<action method="addCss"><name>marketAcademy/videohelp/font-awesome.min.css</name></action>
|
| 15 |
+
|
| 16 |
+
</reference>
|
| 17 |
+
|
| 18 |
+
<reference name="content">
|
| 19 |
+
</reference>
|
| 20 |
+
|
| 21 |
+
<reference name='before_body_end'>
|
| 22 |
+
<block type="core/text" name="helpJs">
|
| 23 |
+
<action method="setText"><text><![CDATA[<script src="https://tuto.market-academy.com/ressources/magento/help.js"></script>]]></text></action>
|
| 24 |
+
</block>
|
| 25 |
+
<block type="core/text" name="helpCss">
|
| 26 |
+
<action method="setText"><text><![CDATA[<link href="https://tuto.market-academy.com/ressources/magento/help.css" rel="stylesheet" type="text/css" id="mybuysstyles">]]></text></action>
|
| 27 |
+
</block>
|
| 28 |
+
<block type="mavideohelp/help" name="mavideohelp.content" template="marketAcademy/videohelp/help.phtml"/>
|
| 29 |
+
<block type="mavideohelp/help" name="mavideohelp.open" template="marketAcademy/videohelp/btnOpen.phtml"/>
|
| 30 |
+
|
| 31 |
+
</reference>
|
| 32 |
+
</default>
|
| 33 |
+
|
| 34 |
+
<mavideohelp_admin_index>
|
| 35 |
+
<reference name="content">
|
| 36 |
+
<block type="mavideohelp/help" name="mavideohelp.list" template="marketAcademy/videohelp/table.phtml"/>
|
| 37 |
+
</reference>
|
| 38 |
+
</mavideohelp_admin_index>
|
| 39 |
+
</layout>
|
app/design/adminhtml/default/default/template/marketAcademy/videohelp/btnOpen.phtml
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Market Academy SAS
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* It is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
+
*
|
| 11 |
+
* @copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
$helping = mage::getModel('MarketAcademy_Help_Model_Service');
|
| 15 |
+
|
| 16 |
+
$store = Mage::app()->getStore();
|
| 17 |
+
$isOpen = Mage::getStoreConfig('mavideohelp_options/section_one/mavideohelp_alwaysOpen',$store);
|
| 18 |
+
|
| 19 |
+
if ($isOpen) {
|
| 20 |
+
$imgUrl = $helping->getBtnUrl("right");
|
| 21 |
+
|
| 22 |
+
}else{
|
| 23 |
+
$imgUrl = $helping->getBtnUrl("left");
|
| 24 |
+
}
|
| 25 |
+
?>
|
| 26 |
+
<script type="text/javascript">
|
| 27 |
+
var URLBTNRIGHT ="<?php echo $helping->getBtnUrl("right") ?>";
|
| 28 |
+
var URLBTNLEFT = "<?php echo $helping->getBtnUrl("left") ?>";
|
| 29 |
+
</script>
|
| 30 |
+
<div id="openTutosVideo" >
|
| 31 |
+
<a href="javascript:;" >
|
| 32 |
+
<img src="<?php echo $imgUrl ?>" id="imgBtnOpen" alt="<?php echo $this->__('Tout les Tutos Market Academy');?>" class="MA_logo">
|
| 33 |
+
</a>
|
| 34 |
+
</div>
|
| 35 |
+
|
| 36 |
+
<?php
|
| 37 |
+
if ($isOpen) {
|
| 38 |
+
?>
|
| 39 |
+
<script type="text/javascript">
|
| 40 |
+
Event.observe(window, 'load', function() {
|
| 41 |
+
var wrapper = document.getElementsByClassName("wrapper")[0];
|
| 42 |
+
var MA = document.getElementById('maHelp');
|
| 43 |
+
document.getElementById('openTutosVideo').toggleClassName('panelOpen');
|
| 44 |
+
wrapper.toggleClassName('maVideosTrue');
|
| 45 |
+
MA.toggleClassName('actif');
|
| 46 |
+
});
|
| 47 |
+
</script>
|
| 48 |
+
<?php
|
| 49 |
+
}
|
app/design/adminhtml/default/default/template/marketAcademy/videohelp/help.phtml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Market Academy SAS
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* It is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
+
*
|
| 11 |
+
* @copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
?>
|
| 15 |
+
<div id="maHelp">
|
| 16 |
+
<iframe src="<?php echo Mage::getModel('mavideohelp/service')->iframeUrl() ?>" name="marketVideoPanel" id="marketVideoPanel" frameborder="0" style="width:100%;height:100%;" allowFullscreen></iframe>
|
| 17 |
+
</div>
|
| 18 |
+
<script type="text/javascript">
|
| 19 |
+
var IDUSERSADMIN = <?php echo "'".$this->userId()."'"; ?>;
|
| 20 |
+
var ADDUSERURL = <?php echo "'".Mage::helper('adminhtml')->getUrl('mavideohelp/users/adduser')."'"; ?>;
|
| 21 |
+
</script>
|
| 22 |
+
<script type="text/javaScript" src="https://tuto.market-academy.com/js/iframe.js"></script>
|
app/design/adminhtml/default/default/template/marketAcademy/videohelp/table.phtml
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Market Academy SAS
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* It is available through the world-wide-web at this URL:
|
| 9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 10 |
+
*
|
| 11 |
+
* @copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
$key = Mage::getModel('mavideohelp/users')->getKey();
|
| 15 |
+
?>
|
| 16 |
+
<?php if ($key): ?>
|
| 17 |
+
<iframe src="<?php echo Mage::getModel('mavideohelp/service')->getTableFrameUrl() ?>" frameborder="0" id="tableIframeContainer" ></iframe>
|
| 18 |
+
<script language="javascript" type="text/javascript">
|
| 19 |
+
function receiveSize(e){
|
| 20 |
+
if(e.origin === "https://tuto.market-academy.com"){
|
| 21 |
+
var newHeight = e.data+20 ;
|
| 22 |
+
$("tableIframeContainer").setStyle({height:newHeight+"px"})
|
| 23 |
+
}
|
| 24 |
+
}
|
| 25 |
+
window.addEventListener("message", receiveSize, false);
|
| 26 |
+
</script>
|
| 27 |
+
<script type="text/javascript">
|
| 28 |
+
Event.observe(window, 'load', function() {
|
| 29 |
+
$("imgBtnOpen").hide();
|
| 30 |
+
});
|
| 31 |
+
</script>
|
| 32 |
+
<?php else: ?>
|
| 33 |
+
<h2>Pour accéder a cette page connectez vous depuis le panneau de droite</h2>
|
| 34 |
+
<?php endif ?>
|
| 35 |
+
|
| 36 |
+
<?php
|
| 37 |
+
$isOpen = Mage::getStoreConfig('mavideohelp_options/section_one/mavideohelp_alwaysOpen',$store);
|
| 38 |
+
if ($isOpen) {
|
| 39 |
+
?>
|
| 40 |
+
<script type="text/javascript">
|
| 41 |
+
Event.observe(window, 'load', function() {
|
| 42 |
+
var wrapper = document.getElementsByClassName("wrapper")[0];
|
| 43 |
+
var MA = document.getElementById('maHelp');
|
| 44 |
+
document.getElementById('openTutosVideo').toggleClassName('panelOpen');
|
| 45 |
+
wrapper.toggleClassName('maVideosTrue');
|
| 46 |
+
MA.toggleClassName('actif');
|
| 47 |
+
});
|
| 48 |
+
</script>
|
| 49 |
+
<?php
|
| 50 |
+
}
|
| 51 |
+
?>
|
app/etc/modules/MarketAcademy_Help.xml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<!--
|
| 3 |
+
Market Academy SAS
|
| 4 |
+
NOTICE OF LICENSE
|
| 5 |
+
This source file is subject to the Open Software License (OSL 3.0)
|
| 6 |
+
It is available through the world-wide-web at this URL:
|
| 7 |
+
http://opensource.org/licenses/osl-3.0.php
|
| 8 |
+
@copyright Copyright (c) Market Academy SAS. (http://www.market-academy.com)
|
| 9 |
+
@license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 10 |
+
-->
|
| 11 |
+
<config>
|
| 12 |
+
<modules>
|
| 13 |
+
<MarketAcademy_Help>
|
| 14 |
+
<active>true</active>
|
| 15 |
+
<codePool>local</codePool>
|
| 16 |
+
</MarketAcademy_Help>
|
| 17 |
+
</modules>
|
| 18 |
+
</config>
|
app/locale/en_US/MarketAcademy_Help.csv
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"Aide - Tutos vidéos","Help - Videos tutorials"
|
| 2 |
+
"Voir tous les tutos","See all tutorials"
|
| 3 |
+
"Configuration","Configuration"
|
| 4 |
+
"Panneau toujours ouvert :","Panel always open"
|
| 5 |
+
"Configuration du module","Module configuration"
|
package.xml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<package>
|
| 3 |
+
<name>helpvideotutorials</name>
|
| 4 |
+
<version>1.0.0.1</version>
|
| 5 |
+
<stability>stable</stability>
|
| 6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
| 7 |
+
<channel>community</channel>
|
| 8 |
+
<extends/>
|
| 9 |
+
<summary>The Help – Video Tutorials module has been created to guide you, directly from your Magento workspace.</summary>
|
| 10 |
+
<description>Magento is often seen as the complicated eCommerce platform. Loads of people don’t enjoy every piece of it. That’s a shame, because so many options and possibilities are given by Magento® ! Market Academy, Magento® expert and creator of hundreds of tutos on Youtube, gives you a complete and effective module made to ease your everyday-life.</description>
|
| 11 |
+
<notes>The Help – Video Tutorials module has been created to guide you, directly from your Magento® workspace.</notes>
|
| 12 |
+
<authors><author><name>Market Academy</name><user>ma_admin</user><email>contact@market-academy.com</email></author></authors>
|
| 13 |
+
<date>2016-04-18</date>
|
| 14 |
+
<time>06:48:10</time>
|
| 15 |
+
<contents><target name="magelocal"><dir name="MarketAcademy"><dir name="Help"><dir name="Block"><dir name="Adminhtml"><file name="Table.php" hash="d3ad21267d8562f4708d8e952985f263"/><dir name="Videos"><file name="Grid.php" hash="614d3a6cf8e2b5589651a35380258164"/><dir name="Renderer"><file name="Thumbnail.php" hash="118785a39a3375e201a08c7f5119e8d7"/><file name="View.php" hash="ccf07f0bea911a6e9e06a0ccca4af253"/></dir></dir><file name="videos.php" hash="765086abe1c71fc5ad77be04cb8dc92e"/></dir><file name="Help.php" hash="38b05e31a6c49ff5627f42f1938d8880"/><dir name="Video"><file name="List.php" hash="9424b99294fc009697b0cd066dc9f39d"/></dir></dir><dir name="Helper"><file name="Data.php" hash="1ec30ab078a53adedb3c89c376ab6382"/></dir><dir name="Model"><file name="Feed.php" hash="9c51968f32d8d55ece43e4487b092b11"/><file name="Mavideohelp.php" hash="9696b28ba5c9a2de3571bb79785b8370"/><dir name="Mysql4"><dir name="Mavideohelp"><file name="Collection.php" hash="af64dd7f492eb0c0b71a41541acfd57e"/></dir><file name="Mavideohelp.php" hash="cf4f4a3cdeb36e679846d38cc9ca3657"/><dir name="Users"><file name="Collection.php" hash="88ca695572598553a1d93cc92ddc25e1"/></dir><file name="Users.php" hash="0877c4884d979574e8c1cb3cbc619c49"/></dir><file name="Observer.php" hash="837a23b6f7dee880d51111cb2fda4637"/><file name="Options.php" hash="05b9d3e02d803deb6850c1f56c52609d"/><file name="Service.php" hash="7ed9879d829f0567a7bf2582af556a83"/><file name="Users.php" hash="0a3de66765c294384348fe1816b78733"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="AdminController.php" hash="5ac2739cece99879180ef8e82d100ec5"/><file name="ApiController.php" hash="5616ed8f4c76287776c9437873395172"/><file name="UsersController.php" hash="8278a403331be43a65c3924b0ef578f3"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="f9f8c25eeef90f54f3c7cb49b9dde09e"/><file name="config.xml" hash="f6d5b062c9aab4c1583bead3860c428b"/><file name="system.xml" hash="8ef4f50fc4c8d98fc2cc9d3cab97ae67"/></dir><dir name="sql"><dir name="mavideohelp_setup"><file name="mysql4-install-1.0.0.0.php" hash="2fd7dc42186f48e75c039d5e9d35a9ed"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="MarketAcademy_Help.xml" hash="28e28e74731206a0efdf6b6c8636d537"/></dir><dir name="template"><dir name="marketAcademy"><dir name="videohelp"><file name="btnOpen.phtml" hash="2016f4cd991b4fa06a3fe5eb4699be91"/><file name="help.phtml" hash="e2faa84eb0d5327424e8f7cdddc37221"/><file name="table.phtml" hash="4c8a02b899651f9848f444fb58dbb7ab"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="MarketAcademy_Help.xml" hash="a4f507b21871e9b9fd6710f0238ecda0"/></dir></target><target name="magelocale"><dir name="en_US"><file name="MarketAcademy_Help.csv" hash="cbba2199b2645f3311f6b781e8ca1eeb"/></dir></target></contents>
|
| 16 |
+
<compatible/>
|
| 17 |
+
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
| 18 |
+
</package>
|
