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
<!-- Only lines 26 through 44 are shown --> | |
<news translate="title" module="magentostudy_news"> | |
<title>News</title> | |
<sort_order>65</sort_order> | |
<children> | |
<manage translate="title"> | |
<title>Manage News</title> | |
<sort_order>0</sort_order> | |
<children> | |
<save translate="title"> |
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
<?xml version="1.0"?> | |
<!-- | |
/** | |
* Magento admin configiguration section config | |
* | |
* @author Magento | |
*/ | |
--> | |
<config> | |
<sections> |
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
<?xml version="1.0"?> | |
<!-- | |
/** | |
* Magento admin config | |
* | |
* @author Magento | |
*/ | |
--> | |
<config> | |
<menu> |
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
<?php | |
/** | |
* News module observer | |
* | |
* @author Magento | |
*/ | |
class Magentostudy_News_Model_Observer | |
{ | |
/** | |
* Event before show news item on frontend |
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
<?php | |
/** | |
* Lines 62 to 75 of IndexController.php that | |
* show how to fire an event | |
* | |
* Other code is removed for brevity | |
* | |
* @author Magento | |
*/ |
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
<?php | |
/** | |
* News Image Helper | |
* | |
* @author Magento | |
*/ | |
class Magentostudy_News_Helper_Image extends Mage_Core_Helper_Abstract | |
{ | |
/** | |
* Media path to extension imahes |
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
<?php | |
/** | |
* News Data helper | |
* | |
* @author Magento | |
*/ | |
class Magentostudy_News_Helper_Data extends Mage_Core_Helper_Data | |
{ | |
/** | |
* Path to store config if front-end output is enabled |
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
<?xml version="1.0"?> | |
<!-- | |
/** | |
* Module configuration | |
* | |
* @author Magento | |
*/ | |
--> | |
<config> | |
<modules> |
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
<?php | |
/** | |
* News template for separate item | |
* | |
* @author Magento | |
*/ | |
/** | |
* @var $this Magentostudy_News_Block_Item | |
* @see Magentostudy_News_Block_Item |
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
<?php | |
/** | |
* News template for items list | |
* | |
* @author Magento | |
*/ | |
/** | |
* @var $this Magentostudy_News_Block_List | |
* @see Magentostudy_News_Block_List |