-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
88 lines (73 loc) · 2.26 KB
/
Copy pathfunctions.php
File metadata and controls
88 lines (73 loc) · 2.26 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php
/**
* Functions
*
* PHP version 5
*
* @package PicturePerfect/Setup
* @author Agent Evolution <support@agentevolution.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
* @link http://themes.agentevolution.com
*/
if (defined('ABSPATH') === false) {
die('Sorry, you are not allowed to access this file directly.');
}
define('AE_CHILD_THEME_NAME', 'Picture Perfect');
define('AE_CHILD_THEME_SLUG', 'picture-perfect');
require_once 'lib/classes/class-agentevo-helpers.php';
require_once 'lib/classes/class-agentevo-customizer.php';
require_once 'lib/classes/class-agentevo-nav-walker.php';
require_once 'lib/functions/admin.php';
require_once 'lib/functions/frontend.php';
/**
* Outputs the footer markup
*
* @return void
*/
function picture_perfect_footer()
{
?>
<div class="one-half first footer-left">
<?php echo do_shortcode(genesis_get_option('footer-left', 'agentevo-footer-settings')); ?>
</div>
<div class="one-half footer-right">
<?php echo do_shortcode(genesis_get_option('footer-right', 'agentevo-footer-settings')); ?>
<?php echo agentevo_footer_copy(); ?>
</div>
<?php
$disclaimer = genesis_get_option('disclaimer', 'agentevo-footer-settings');
if (false === empty($disclaimer)) {
echo '
<div class="footer-disclaimer">',
do_shortcode(wpautop($disclaimer)),
'</div>';
}
}
# Include functions that should run in development only
# Else serve css/style.css
// if ( isset($_SERVER['SERVER_NAME']) && 'localhost' == $_SERVER['SERVER_NAME'] ) {
// require_once 'lib/classes/class-agentevo-development-setup.php';
// } else {
// add_filter('stylesheet_uri', 'picture_perfect_stylesheet_uri', 10, 2);
// }
/**
* Returns the path to the style.css file
*
* @return string path to the style.css file
*/
function picture_perfect_stylesheet_uri($stylesheet_uri, $stylesheet_dir_uri)
{
return $stylesheet_dir_uri . '/style.css';
}
if ( ! get_option('picture_perfect_theme_activation') ) {
wp_remote_post(
'http://themes.agentevolution.com/child-theme-stats',
array(
'body' => array(
'theme' => 'picture_perfect',
'url' => $_SERVER['SERVER_NAME'],
)
)
);
add_option('picture_perfect_theme_activation', 'yes');
}