forked from galarzaalex/digholtheme
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
40 lines (34 loc) · 1.09 KB
/
Copy pathfunctions.php
File metadata and controls
40 lines (34 loc) · 1.09 KB
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
<?php
function child_scripts_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css', array() );
}
add_action( 'wp_enqueue_scripts', 'child_scripts_styles' );
function fast_facts($atts, $content = null) {
return '<a href="'.$to.'">'. do_shortcode($content) .'</a>';
}
add_shortcode('fast_facts', function($atts){
$atts = shortcode_atts(
array(
'src' => '',
'width' => 250,
'height' => 300,
'title' => 'An Image',
'value' => 'Words'
), $atts);
return '
<div class="container_fast_facts"> <img src="'. $atts['src'].'" width="'. $atts['width'].'" height="'. $atts['height'].'"></img>
<h4>'. $atts['title'].'</h4>
<h5>'. $atts['value'].'</h5>
</div>';
});
function revconcept_anchor($atts, $content=null, $code="") {
$return = '<div class="page-anchor" id="'.$content.'">';
$return .= '</div>';
return $return;
}
add_shortcode('anchor' , 'revconcept_anchor' );
function content_link($atts, $content=null, $code="") {
$return = '<div class="container_content_link" id="'.$content.'">';
$return .= '</div>';
return $return;
}