示例#1
0
            <div class="nav-right">
                <?php 
get_template_part("inc/social-icons");
?>
            </div><!-- End .nav-left -->
        </div><!-- End #header-top -->
        <div id="header-inner" class="clearfix">
            <div class="nav-logo nav-left">
                <h1 class="logo"><a href="<?php 
echo esc_url(home_url('/'));
?>
" title="<?php 
echo get_bloginfo("description");
?>
"><img src="<?php 
echo esc_url(mango_get_logo_url());
?>
" alt="<?php 
bloginfo("title");
?>
"></a><span><?php 
echo get_bloginfo("description");
?>
</span></h1>
            </div><!-- End .nav-left -->
            <div class="nav-center nav-left">
                <?php 
mango_get_header_box(13);
?>
            </div><!-- End .nav-center -->
            <div class="nav-right">
示例#2
0
<?php

global $mango_settings, $post;
?>
<footer id="footer" class="mango_footer_3 footer-minimal" role="contentinfo">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="footer-logo"><img src="<?php 
echo esc_url(mango_get_logo_url('footer_'));
?>
" alt="<?php 
bloginfo("title");
?>
" class="img-responsive"></div><!-- End .footer-logo -->
                <?php 
if (has_nav_menu('footer_menu') && mango_show_footer_menu()) {
    wp_nav_menu(array('theme_location' => 'footer_menu', 'menu_class' => 'footer-menu', "depth" => 1, 'container' => false));
}
?>
                <p class="copyright"><?php 
echo htmlspecialchars_decode(esc_textarea($mango_settings['mango_copyright']));
?>
</p>
            </div><!-- End .col-md-12 -->
        </div><!-- End .row -->
    </div><!-- End .container -->
</footer><!-- End #footer -->
示例#3
0
    function form($instance)
    {
        $defaults = array('title' => '', 'img' => '', 'address' => '', 'phone' => '', 'email' => '', 'description' => '', 'link' => '');
        $instance = wp_parse_args((array) $instance, $defaults);
        ?>
        <p>
            <label for="<?php 
        echo $this->get_field_id('title');
        ?>
">
                <?php 
        echo __('Title', 'mango');
        ?>
:
                <input type="text" class="widefat" id="<?php 
        echo $this->get_field_id('title');
        ?>
"
                name="<?php 
        echo $this->get_field_name('title');
        ?>
"
                value="<?php 
        if (isset($instance['title'])) {
            echo $instance['title'];
        }
        ?>
"/>
            </label>
        </p>

        <p>
            <input type="checkbox" class="custom_media_url" name="<?php 
        echo $this->get_field_name('img');
        ?>
"
                id="<?php 
        echo $this->get_field_id('img');
        ?>
"
                 value="<?php 
        echo $img_path = mango_get_logo_url("footer_");
        ?>
" <?php 
        if (isset($instance['img'])) {
            echo 'checked="checked"';
        }
        ?>
 />
            <label for="<?php 
        echo $this->get_field_id('img');
        ?>
"><?php 
        _e('Upload Footer Logo', 'mango');
        ?>
</label>
        </p>

        <p>
            <label for="<?php 
        echo $this->get_field_id('address');
        ?>
">
                <?php 
        echo __('Address', 'mango');
        ?>
:
                <input type="text" class="widefat" id="<?php 
        echo $this->get_field_id('address');
        ?>
"
                 name="<?php 
        echo $this->get_field_name('address');
        ?>
"
                 value="<?php 
        if (isset($instance['address'])) {
            echo esc_attr($instance['address']);
        }
        ?>
"/>
            </label>
        </p>

        <p>
            <label for="<?php 
        echo $this->get_field_id('phone');
        ?>
">
                <?php 
        echo __('Phone', 'mango');
        ?>
:
                <input type="text" class="widefat" id="<?php 
        echo $this->get_field_id('phone');
        ?>
"
                 name="<?php 
        echo $this->get_field_name('phone');
        ?>
"
                 value="<?php 
        if (isset($instance['phone'])) {
            echo esc_attr($instance['phone']);
        }
        ?>
"/>
            </label>
        </p>

        <p>
            <label for="<?php 
        echo $this->get_field_id('email');
        ?>
">
                <?php 
        echo __('Email', 'mango');
        ?>
:
                <input type="text" class="widefat" id="<?php 
        echo $this->get_field_id('email');
        ?>
"
                 name="<?php 
        echo $this->get_field_name('email');
        ?>
"
                value="<?php 
        if (isset($instance['email'])) {
            echo esc_attr($instance['email']);
        }
        ?>
"/>
            </label>
        </p>

        <p>
            <label for="<?php 
        echo $this->get_field_id('description');
        ?>
">
                <?php 
        echo __('Description', 'mango');
        ?>
:
                <textarea class="widefat" id="<?php 
        echo $this->get_field_id('description');
        ?>
"
                 name="<?php 
        echo $this->get_field_name('description');
        ?>
"><?php 
        if (isset($instance['description'])) {
            echo esc_textarea($instance['description']);
        }
        ?>
</textarea>
            </label>
        </p>

        <p>
            <label for="<?php 
        echo $this->get_field_id('link');
        ?>
">
                <?php 
        echo __('Link', 'mango');
        ?>
:
                <input type="url" class="widefat" id="<?php 
        echo $this->get_field_id('link');
        ?>
"
                name="<?php 
        echo $this->get_field_name('link');
        ?>
"
                value="<?php 
        if (isset($instance['link'])) {
            echo esc_url($instance['link']);
        }
        ?>
"/>
            </label>
        </p>

        <p>
            <input type="checkbox" class="widefat" id="<?php 
        echo $this->get_field_id('tab');
        ?>
"
                name="<?php 
        echo $this->get_field_name('tab');
        ?>
"
                value="<?php 
        if (isset($instance['tab'])) {
            echo esc_attr($instance['tab']);
        }
        ?>
"   <?php 
        if (isset($instance['tab'])) {
            echo 'checked="checked"';
        }
        ?>
 />
            <label for="<?php 
        echo $this->get_field_id('tab');
        ?>
">
                <?php 
        _e('URL Open in new tab', 'mango');
        ?>
            </label>
        </p>
    <?php 
    }