-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
49 lines (37 loc) · 1.31 KB
/
functions.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
<?php
/*
Author: Martin Sotirov
*/
// LOAD THEME CORE
require_once( 'includes/core.php' );
require_once( 'includes/custom-post-types.php' );
/*********************
LAUNCH THEME
*********************/
add_action( 'after_setup_theme', 'awesome_theme_init' );
function awesome_theme_init() {
// cleanup the head
add_action( 'init', 'awesome_head_cleanup' );
// remove WP version from RSS
add_filter( 'the_generator', 'remove_rss_version' );
// enqueue base scripts and styles
add_action( 'wp_enqueue_scripts', 'awesome_scripts_and_styles', 999 );
// ie conditional wrapper
// add theme support
awesome_theme_support();
// cleaning up random code around images
add_filter( 'the_content', 'awesome_filter_ptags_on_images' );
}
/************* THUMBNAIL SIZE OPTIONS *************/
// add_image_size( 'service-photo', 2880, 'auto', true );
// add_image_size( 'service-photo-medium', 1600, 960, true );
/************* OEMBED SIZE OPTIONS *************/
if ( ! isset( $content_width ) ) {
$content_width = 640;
}
// Add a custom footer text on the admin page
add_filter( 'admin_footer_text', 'awesome_custom_admin_footer' );
function awesome_custom_admin_footer() {
echo '<span id="footer-thankyou">Developed by <a href="http://evil.ninja/" target="_blank">Martin Sotirov</a></span>.';
}
?>