forked from DevinVinson/enfold-child-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
51 lines (44 loc) · 1.45 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
50
51
<?php
/**
* Enfold Child Theme - Starter
*
* @since Enfold Starter 1.0
*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*
* @link http://www.kriesi.at/documentation/enfold/using-a-child-theme/
*/
/**
* Add filter to add or replace Enfold ALB shortcodes with new folder contents
*
* Note that the shortcodes must be in the same format as those in
* enfold/config-templatebuilder/avia-shortcodes
*
* @link http://www.kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
*/
add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
function avia_include_shortcode_template($paths)
{
$template_url = get_stylesheet_directory();
array_unshift($paths, $template_url.'/shortcodes/');
return $paths;
}
// Replaced Magazine Shortcode so that it will use get_post_modified_time instead of get_the_time
/**
* Turn on Custom CSS Class field for all Avia Layout Builder elements
* @link http://www.kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/
*/
add_theme_support('avia_template_builder_custom_css');
/**
* Show debug field ALB
*/
add_action('avia_builder_mode', "builder_set_debug");
function builder_set_debug()
{
return "debug";
}
/**
* Better FAQ linking
*/
add_theme_support('avia_template_builder_custom_tab_toogle_id');