Escolar Documentos
Profissional Documentos
Cultura Documentos
php
function themeslug_theme_customizer( $wp_customize ) {
// Fun code will go here
$wp_customize->add_section( 'themeslug_logo_section' , array(
'title'
=> __( 'Logo', 'themeslug' ),
'priority'
=> 30,
'description' => 'Upload a logo to replace the default site name and descrip
tion in the header',
) );
$wp_customize->add_setting( 'themeslug_logo' );
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'them
eslug_logo', array(
'label'
=> __( 'Logo', 'themeslug' ),
'section' => 'themeslug_logo_section',
'settings' => 'themeslug_logo',
) ) );
}
add_action('customize_register', 'themeslug_theme_customizer');
register_sidebar( array(
'name' => 'Header Area',
'id' => 'header_area',
'before_widget' => '<div>',
'after_widget' => '</div>',
'before_title' => '<h2 class="rounded">',
'after_title' => '</h2>',
) );
add_shortcode( "news_letter" , "news_letter_fn" );
function news_letter_fn() {
$html =
'<div class="newsletter_wrap">
<!-- Begin MailChimp Signup Form -->
<link href="//cdn-images.mailchimp.com/embedcode/classic-081711.css" rel="styles
heet" type="text/css">
<style type="text/css">
#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,
sans-serif; }
/* Add your own MailChimp form style overrides in your site stylesheet o
r in this style block.
We recommend moving this block and the preceding CSS link to the HEAD
of your HTML file. */
</style>
<div id="mc_embed_signup">
<form action="//wpvend.us11.list-manage.com/subscribe/post?u=49444b5652fe8fe2c57
a5190e&id=311b3df3cf" method="post" id="mc-embedded-subscribe-form" name="mc
-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div id="mc_embed_signup_scroll">
<h2>Get Your FREE Newsletter Samples!</h2>
<div class="indicates-required"><span class="asterisk">*</span> indicates requir
ed</div>
<div class="mc-field-group">
<label for="mce-NAME">Name <span class="asterisk">*</span>
</label>