Text.php ➔ OnTextChange()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
defined('is_running') or die('Not an entry point...');
3
4
5
$texts = array();
6
$texts[] = 'Blog';
7
$texts[] = 'Blog Home';
8
$texts[] = 'Newer Entry';
9
$texts[] = 'Newer Entries';
10
$texts[] = 'Older Entry';
11
$texts[] = 'Older Entries';
12
$texts[] = 'Read More';
13
$texts[] = 'More Blog Entries';
14
$texts[] = 'Name';
15
$texts[] = 'Website';
16
$texts[] = 'Categories';
17
$texts[] = 'Archives';
18
$texts[] = 'Comments';
19
$texts[] = 'Comment';
20
$texts[] = 'Leave Comment';
21
$texts[] = 'Add Comment';
22
$texts[] = 'Comments have been closed.';
23
$texts[] = 'Open Comments';
24
$texts[] = 'Close Comments';
25
26
27
28
29
30
31
/* this function can be used to update the addon once changes to the text values have been made */
32
function OnTextChange(){
33
	gpPlugin_incl('SimpleBlogCommon.php');
34
	new SimpleBlogCommon();//regenerate the gadget and feed
35
}
36