1
|
|
|
<?php |
|
|
|
|
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* |
5
|
|
|
* Module: SmartPartner |
6
|
|
|
* Author: The SmartFactory <www.smartfactory.ca> |
7
|
|
|
* Licence: GNU |
8
|
|
|
*/ |
9
|
|
|
// including the common language file |
10
|
|
|
$fileName = XOOPS_ROOT_PATH . '/modules/smartpartner/language/' . $GLOBALS['xoopsConfig']['language'] . '/common.php'; |
11
|
|
|
if (file_exists($fileName)) { |
12
|
|
|
include_once $fileName; |
13
|
|
|
} else { |
14
|
|
|
include_once XOOPS_ROOT_PATH . '/modules/smartpartner/language/english/common.php'; |
15
|
|
|
} |
16
|
|
|
define('_MB_SPARTNER_PARTNERS_PSPACE', 'Put spaces between partners?'); |
17
|
|
|
define('_MB_SPARTNER_BRAND', 'Randomize partners in blocks?'); |
18
|
|
|
define('_MB_SPARTNER_BLIMIT', 'Limit blocks to xx entries: (0 = no limit)'); |
19
|
|
|
define('_MB_SPARTNER_BSHOW', 'In blocks show:'); |
20
|
|
|
define('_MB_SPARTNER_BORDER', 'Order block content by:'); |
21
|
|
|
define('_MB_SPARTNER_ID', 'ID'); |
22
|
|
|
define('_MB_SPARTNER_HITS', 'Hits'); |
23
|
|
|
define('_MB_SPARTNER_TITLE', 'Title'); |
24
|
|
|
define('_MB_SPARTNER_WEIGHT', 'Weight'); |
25
|
|
|
define('_MB_SPARTNER_ASC', 'Ascending'); |
26
|
|
|
define('_MB_SPARTNER_DESC', 'Descending'); |
27
|
|
|
define('_MB_SPARTNER_IMAGES', 'Images'); |
28
|
|
|
define('_MB_SPARTNER_TEXT', 'Text Links'); |
29
|
|
|
define('_MB_SPARTNER_BOTH', 'Both'); |
30
|
|
|
define('_MB_SPARTNER_FADE', 'Fade Image'); |
31
|
|
|
define('_MB_SPARTNER_SEE_ALL', "Display 'See all partners...'"); |
32
|
|
|
define('_MB_SPARTNER_LANG_SEE_ALL', 'See all partners...'); |
33
|
|
|
define('_MB_SMARTPARTNER_CATEGORY', 'Category'); |
34
|
|
|
define('_MB_SPARTNER_BWIDTH', 'Block width'); |
35
|
|
|
define('_MB_SPARTNER_BHEIGHT', 'Block height'); |
36
|
|
|
define('_MB_SPARTNER_BSPEED', 'Speed (1 to 10; ten = fast)'); |
37
|
|
|
define('_MB_SPARTNER_BSPACE', 'Space beetween each slide'); |
38
|
|
|
define('_MB_SPARTNER_BBG', 'Background color (without #)'); |
39
|
|
|
define('_MB_SPARTNER_SORT', 'Sort by'); |
40
|
|
|
define('_MB_SPARTNER_ORDER', 'Order by'); |
41
|
|
|
define('_MB_SPARTNER_SHOW_SUBS', 'Display subcats'); |
42
|
|
|
define('_MB_SPARTNER_YES', 'Yes'); |
43
|
|
|
define('_MB_SPARTNER_NO', 'No'); |
44
|
|
|
define('_MB_SPARTNER_LANG_SEE_ALL_OFFERS', 'See all offers...'); |
45
|
|
|
define('_MB_SPARTNER_SHOW_CURR_SUBS', 'Display subcats of current category'); |
46
|
|
|
|
The PSR-1: Basic Coding Standard recommends that a file should either introduce new symbols, that is classes, functions, constants or similar, or have side effects. Side effects are anything that executes logic, like for example printing output, changing ini settings or writing to a file.
The idea behind this recommendation is that merely auto-loading a class should not change the state of an application. It also promotes a cleaner style of programming and makes your code less prone to errors, because the logic is not spread out all over the place.
To learn more about the PSR-1, please see the PHP-FIG site on the PSR-1.