Skip to content
zenmiu edited this page Aug 8, 2011 · 9 revisions

License information

A LiteCommerce distribution kit must contain a file LICENSE.txt, which is to be located in the root folder of the distribution kit.

The file LICENSE.txt must contain the text of Open Software License ("OSL") v. 3.0.

The same file must be located in the lc_connector folder of the LC Connector module distribution kit.

Besides that, the headers of the LiteCommerce and LC Connector script must contain a reference to the license (see the requirements below).

LiteCommerce script header

<?php
// vim: set ts=4 sw=4 sts=4 et:

/**
* LiteCommerce
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to licensing@litecommerce.com so we can send you a copy immediately.
*
* PHP version 5.3.0
*
* @category   LiteCommerce
* @author     Creative Development LLC <info@cdev.ru>
* @copyright  Copyright (c) 2011 Creative Development LLC <info@cdev.ru>. All rights reserved
* @license    http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @link       http://www.litecommerce.com/
* @see        ____file_see____
* @since      3.0.0
*/

LC Connector (Drupal) module script header

All scripts of the LC Connector module for Drupal CMS must contain the following block:

<?php
/**
 * @file
 * Module functions repository
 *
 * @author    Creative Development LLC <info@cdev.ru>
 * @copyright Copyright (c) 2010 Creative Development LLC <info@cdev.ru>. All rights reserved
 * @license   http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2
 * @link      http://www.litecommerce.com/
 */

CSS, JS (LiteCommerce) file headers

/* vim: set ts=2 sw=2 sts=2 et: */

/**
 * Styles definition for the administration area
 *
 * @author    Creative Development LLC <info@cdev.ru>
 * @copyright Copyright (c) 2010 Creative Development LLC <info@cdev.ru>. All rights reserved
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
 * @link      http://www.litecommerce.com/
 * @since     1.0.0
 */

Flexy template (LiteCommerce) file headers

{* vim: set ts=2 sw=2 sts=2 et: *}

{**
 * Widget template
 *
 * @author    Creative Development LLC <info@cdev.ru>
 * @copyright Copyright (c) 2010 Creative Development LLC <info@cdev.ru>. All rights reserved
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
 * @link      http://www.litecommerce.com/
 * @since     1.0.0
 *} 

Flexy template development

Referencing data in templates

You may not refer to a parameter directly by its name; for example:

<span IF="parameter name"></span>

A class property value should be obtained by calling the respective class method:

<span IF="getProductsCount()"></span>

Loops

No variable with param in its name may be used as a key/value in FOREACH operators.

Coding standards

The following base standards were used for the development of the LiteCommerce coding standard:

Clone this wiki locally