-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
97 lines (86 loc) · 3.28 KB
/
Copy pathfunctions.php
File metadata and controls
97 lines (86 loc) · 3.28 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
89
90
91
92
93
94
95
96
97
<?php
//* Start the engine
include_once( get_template_directory() . '/lib/init.php' );
//* Child theme (do not remove)
define( 'CHILD_THEME_NAME', __( 'Equity Magazine', 'equity-magazine' ) );
define( 'CHILD_THEME_URL', 'http://www.agentevolution.com/' );
define( 'CHILD_THEME_VERSION', '1.0.0' );
//* Set Localization (do not remove)
load_child_theme_textdomain( 'equity-magazine', apply_filters( 'child_theme_textdomain', get_stylesheet_directory() . '/languages', 'equity-magazine' ) );
//* Add Theme Support
add_theme_support( 'equity-top-header-bar' );
add_theme_support( 'equity-after-entry-widget-area' );
//* Load parent theme CSS first
add_action( 'wp_enqueue_scripts', 'equity_child_theme_scripts', 5 );
function equity_child_theme_scripts() {
wp_enqueue_style( 'equity-theme-css', get_template_directory_uri() . '/style.css', false );
}
//* Add rectangular size image for featured posts/pages
add_image_size( 'featured-post', '700', '370', true);
//* Register widget areas
equity_register_widget_area(
array(
'id' => 'home-top',
'name' => __( 'Home Top', 'equity-magazine' ),
'description' => __( 'This is the Top section of the Home page', 'equity-magazine' ),
)
);
equity_register_widget_area(
array(
'id' => 'home-bottom-left',
'name' => __( 'Home Bottom Left', 'equity-magazine' ),
'description' => __( 'This is the Bottom Left section of the Home page', 'equity-magazine' ),
)
);
equity_register_widget_area(
array(
'id' => 'home-bottom-right',
'name' => __( 'Home Bottom Right', 'equity-magazine' ),
'description' => __( 'This is the Bottom Right section of the Home page', 'equity-magazine' ),
)
);
equity_register_widget_area(
array(
'id' => 'home-sidebar',
'name' => __( 'Home Sidebar', 'equity-magazine' ),
'description' => __( 'This is the Sidebar section of the Home page', 'equity-magazine' ),
)
);
//* Remove welcome screen (getting started links)
add_filter( 'equity_display_welcome_screen', 'equity_no_welcome' );
function equity_no_welcome() {
return false;
}
// * Home page - markup and default widgets
function equity_child_home() {
?>
<div class="columns small-8 content">
<div class="home-top">
<div class="row">
<div class="columns small-12">
<?php equity_widget_area( 'home-top' ); ?>
</div><!-- end .columns .small-12 -->
</div><!-- end .row -->
</div><!-- end .home-top -->
<div class="home-bottom">
<div class="row">
<div class="columns small-12 large-6 home-bottom-left">
<?php equity_widget_area( 'home-bottom-left' ); ?>
</div><!-- end .home-bottom-left .columns .small-12 -->
<div class="columns small-12 large-6 home-bottom-right">
<?php equity_widget_area( 'home-bottom-right' ); ?>
</div><!-- end .home-bottom-right .columns .small-12 -->
</div><!-- end .row -->
</div><!-- end .home-bottom -->
</div><!-- end .content -->
<div class="columns small-4 sidebar-primary">
<?php equity_widget_area( 'home-sidebar' ); ?>
</div><!-- end .sidebar -->
<?php
}
// * Home page - default blog. Uncomment to use.
// function equity_child_home() {
// equity();
// }
# Theme Customizatons
require_once get_stylesheet_directory() . '/lib/customizer.php';