-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
27 lines (17 loc) · 711 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
$THEME = wp_get_theme(basename(dirname(__FILE__)));
define('THEME_AUTHOR', $THEME['Author']);
define('THEME_NAME', $THEME['Name']);
define('THEME_VERSION', $THEME['Version']);
// Override WooCommerce product thumbnail function to allow styling.
function woocommerce_template_loop_product_thumbnail() {
echo '<div class="product-image">'.woocommerce_get_product_thumbnail().'</div>';
}
function get_the_ID_and_post_classes($classes = '') {
return 'id="post-'.get_the_ID().'" class="'.implode(' ', get_post_class($classes)).'"';
}
function the_ID_and_post_classes($classes = '') {
echo get_the_ID_and_post_classes($classes);
}
// Initialize all the things.
require_once('inc/init.php');