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" encoding="UTF-8"?> | |
<config> | |
<modules> | |
<Adept_Catlanding> | |
<active>true</active> | |
<codePool>local</codePool> | |
</Adept_Catlanding> | |
</modules> | |
</config> |
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" encoding="UTF-8"?> | |
<config> | |
<modules> | |
<Adept_Catlanding> | |
<!-- Make sure that the version number matches the filename on your install script! --> | |
<version>0.3.0</version> | |
</Adept_Catlanding> | |
</modules> | |
<global> | |
<resources> |
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 | |
$installer = $this; | |
$installer->startSetup(); | |
/** | |
* This is an entity associated with catalog_category | |
* @var integer | |
*/ | |
$entityTypeId = $installer->getEntityTypeId('catalog_category'); |
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
/*jslint browser: true*/ | |
/*global jQuery */ | |
/*--------------------------------------------------------------- | |
* Barebones Tabs Class | |
* | |
* Requires jQuery | |
* | |
* Markup: | |
* - Tab elements should have class "tab" with a data-tabref="x" |
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
/*jslint browser: true*/ | |
/*global jQuery */ | |
var QuickBrick = { | |
topEntity: null, | |
bottomEntity: null, |
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 | |
/* | |
Plugin Name: BBB - Videos | |
Plugin Uri: URI | |
Description: Custom Field Type Video | |
Author: Phil Birnie | |
Version 0.9 | |
Author Uri: http://mindstreaminteractive.com | |
*/ |
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 | |
/* A class is used to create an object - an object is defined by a class */ | |
class ShopProduct { | |
/** Properties **/ | |
public $title = 'Default Product'; | |
public $producer_last = 'Last Name'; | |
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 | |
/** | |
* If two traits share the same method and are both included in a class, we have a problem. Rare, but possible | |
* Here's how to get around it. | |
* | |
* Reference: PHP Objects, Patterns and Practice, ed 4. pp 49 | |
**/ | |
trait TaxTools { | |
function calculateTax($price) { |
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 | |
/** | |
* | |
* Traits | |
* | |
* 1. PHP does not allow for multiple inheritance | |
* 2. A class can implement many interfaces, but interfaces only provide a template. | |
* 3. Traits allow us to share implementation across class hierarchies. | |
* |
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
<layout version="0.1.0"> | |
<default> | |
<reference name="top.links"> | |
<action method="addLink" translate="label title" module="page"> | |
<label>About</label> | |
<url>about-us</url> | |
<prepare>true</prepare> <!-- This is necessary if we are going to add the base URL --> | |
<title>About</title> | |
<urlParams /> | |
<position>90</position> |
OlderNewer