-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
27 lines (26 loc) · 910 Bytes
/
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
<?php
require 'theme_update_check.php';
$MyUpdateChecker = new ThemeUpdateChecker(
'ee-child-theme-radcliffe',
'https://kernl.us/api/v1/theme-updates/59f61e825b98c63c58e32e7c/'
);
//Load the parent theme css file
add_action( 'wp_enqueue_scripts', 'radcliffe_theme_enqueue_styles' );
function radcliffe_theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
function radcliffe_ee_venue_city_state( $VNU_ID = 0, $echo = TRUE ) {
EE_Registry::instance()->load_helper( 'Venue_View' );
$venue = EEH_Venue_View::get_venue( $VNU_ID );
$city = ( $venue->city() != 'Unknown' ? $venue->city() : '' );
$state = ( $venue->state_name() != 'Unknown' ? $venue->state_name() : '' );
if ( $echo ) {
echo '<div class="ee_city_state">' .
$city .
' <span class="ee_state">' .
$state .
'</span></div>';
return '';
}
return $city . $state;
}