-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-config.php
67 lines (56 loc) · 1.37 KB
/
example-config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
/**
*
* PHP version 5
*
* Created: 3/19/19, 11:51 AM
*
* LICENSE:
*
* @author Jeff Behnke <[email protected]>
* @copyright (c) 2019 ValidWebs.com
*
* mormvc
* config-example.php
*/
// These are only examples
// DOCS_NAME is Required
define( 'DOCS_NAME', 'mORMvc' );
define( 'STRIP_FROM_TITLES', array( 'Readme', 'ReadMe', 'README' ) );
// Below here is only used for generating
define( 'DB_SKIP_PATHS', array(
basename( realpath( __DIR__ ) ), // This one makes sure that this generators readme is skipped.
'vendor',
'node_modules',
'bower_components',
'OLD',
'old',
'notify',
'indemna'
) );
define( 'DB_TRIM_PATH', '/Users/jeff/www/mormvc/' );
/**
* Clean text from titles if you so choose.
* This affects navigation link names and page titles.
*
* @author Jeff Behnke <[email protected]>
* @copyright (c) 2009 - 2019 ValidWebs.com
*
* Created: 2019-04-03, 19:16
*
* @param $title
*
* @return mixed
*/
function db_page_title( $title ) {
if ( defined( 'STRIP_FROM_TITLES' ) && is_array( STRIP_FROM_TITLES ) ) {
foreach ( STRIP_FROM_TITLES as $str ) {
// Don't strip if the only text is Readme
if ( strtolower( $title ) !== 'readme.md' && strtolower( $title ) !== 'readme' ) {
$title = str_replace( $str, '', $title );
}
}
}
return str_replace(array('.md', '.MD'), '', $title);
}
// End config-example.php