-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
executable file
·41 lines (35 loc) · 1.82 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
<?php
add_action( 'widgets_init', 'coletivo_sidebar_init' );
function coletivo_sidebar_init() {
register_sidebar(
array(
'name' => 'Sidebar Pessoa Fisica',
'id' => 'sidebar-3',
'description' => 'Sidebar for template Pessoa Fisica',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h2 class="widget-title">',
'after_title' => '</h2>',
) );
}
// Altera a função do footer, originalmente no arquivo inc/template-tags.php
if ( ! function_exists( 'coletivo_footer_site_info' ) ) {
/**
* Add Copyright and Credit text to footer
* @since 1.1.3
*/
function coletivo_footer_site_info()
{
?>
<?php $coletivo_footer_text = get_theme_mod( 'coletivo_footer_text', esc_html__('Few Rights Reserved', 'coletivo') );?>
<?php $coletivo_footer_text_link = get_theme_mod( 'coletivo_footer_text_link' );?>
<?php if ( $coletivo_footer_text_link != '' ) echo '<a href="' . esc_html( $coletivo_footer_text_link) . '" alt="" target="_blank">'; ?>
<?php if ( $coletivo_footer_text != '' ) echo '<div class="container">' . esc_html( $coletivo_footer_text) . '</div>'; ?>
<?php if ( $coletivo_footer_text_link != '' ) echo '</a>'; ?>
<?php printf(esc_html__('%2$s %1$s', 'coletivo'), esc_attr(date('Y')), esc_attr(get_bloginfo())); ?>
<span class="sep"> – </span>
<?php printf(esc_html__('Desenvolvido pela %1$s com %2$s', 'coletivo'), '<a class="logo-brasa" href="' . esc_url('http://brasa.art.br', 'coletivo') . '">Brasa</a>', '<a class="logo-wp" href="' . esc_url('https://br.wordpress.org', 'coletivo') . '"><i class="fa fa-wordpress" aria-hidden="true"></i></a>'); ?>
<?php
}
}
add_action( 'coletivo_footer_site_info', 'coletivo_footer_site_info' );