PluginProbe
Catch Web Tools / 0.1
Catch Web Tools v0.1
trunk 0.1 0.2 0.3 0.4 1.0 1.1 1.2 1.3 1.4 1.4.1 1.5 1.5.1 1.5.2 1.6 1.7 1.8 1.8.1 1.9 1.9.1 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 All 58 releases
catch-web-tools / frontend / frontend-functions.php

frontend-functions.php in Catch Web Tools 0.1, at frontend/frontend-functions.php

60 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package Frontend
4 */
5
6
7 /**
8 * Enqueue genericons
9 */
10 function catchwebtools_enqueue_genericons( $hook_suffix ) {
11 wp_enqueue_style( 'catchwebtools-genericons', CATCHWEBTOOLS_URL . 'css/genericons.css', false, '3.0.1' );
12 }
13
14 /**
15 * Check and implement if genericons css needs to included
16 */
17 $get_social_settings = (array) get_option( 'catchwebtools_social' );
18 if( isset( $get_social_settings['status'] ) && $get_social_settings['status'] )
19 add_action( 'wp_enqueue_scripts', 'catchwebtools_enqueue_genericons' );
20
21 require_once 'inc/webmasters-tools.php';
22
23 require_once 'inc/opengraph-tools.php';
24
25 require_once 'inc/seo.php';
26
27 require_once 'inc/custom-css.php';
28
29 /**
30 * Function to get header information to output in wp_head
31 * @uses catchwebtools_webmaster_header_display, catchwebtools_opengraph_display, catchwebtools_seo_display, catchwebtools_custom_css_display
32 */
33 function catchwebtools_get_header_information(){
34 $webmaster = catchwebtools_webmaster_header_display();
35 $opengraph = catchwebtools_opengraph_display();
36 $seo = catchwebtools_seo_display();
37 $custom_css = catchwebtools_custom_css_display();
38
39 echo '<!-- This site is optimized with the Catch Web Tools v'. CATCHWEBTOOLS_VERSION .' - http://catchwebtools.com -->'. PHP_EOL ;
40 echo $webmaster. PHP_EOL ;
41 echo $opengraph. PHP_EOL ;
42 echo $seo. PHP_EOL ;
43 echo $custom_css. PHP_EOL ;
44 echo '<!-- / Catch Web Tools plugin. -->'. PHP_EOL ;
45 }
46 add_action('wp_head', 'catchwebtools_get_header_information',99);
47
48 /**
49 * Function to get footer information to output in wp_footer
50 * @uses catchwebtools_webmaster_footer_display
51 */
52 function catchwebtools_get_footer_information(){
53 $webmaster = catchwebtools_webmaster_footer_display();
54
55 echo '<!-- This site is optimized with the Catch Web Tools v'. CATCHWEBTOOLS_VERSION .' - http://catchwebtools.com -->'. PHP_EOL ;
56 echo $webmaster. PHP_EOL ;
57 echo '<!-- / Catch Web Tools plugin. -->'. PHP_EOL ;
58 }
59 add_action('wp_footer', 'catchwebtools_get_footer_information',99);
60