コード例 #1
0
<!-- ======================================================================
                                        START FOOTER
        ======================================================================= -->
        <div class="footer-model-2">
            <div class="location-map">
                <div class="container">
                    <div class="row">
                        <div class="col-md-6">
                            <?php 
tt_form_location('footer');
?>
                        </div>
                    </div>
                </div>
                <?php 
tt_gmap('contact_map', 'google-map', 'google-map', 'false');
?>
            </div>            
            <div class="footer-bottom-line">
                <div class="container">
                    <ul class="all-socials">
                        <?php 
$social_platforms = array('facebook', 'twitter', 'linkedin', 'youtube', 'vimeo', 'pinterest', 'google', 'dribble', 'rss');
foreach ($social_platforms as $platform) {
    if (_go('social_platforms_' . $platform)) {
        ?>
                                    <li>
                                        <a href="<?php 
        echo _go('social_platforms_' . $platform);
        ?>
"><i class="socials-<?php 
コード例 #2
0
ファイル: functions.php プロジェクト: sissisnothere/testWeb
function biznex_contact_section($atts, $content = null)
{
    extract(shortcode_atts(array('section_title' => _x('Contact us', '[biznex_contact_section]', 'biznex'), 'section_header_icon' => '', 'section_header_left' => '', 'section_header_right' => '', 'form_title' => _x('We\'d love to hear from you! Send us a message using the form below.', '[biznex_contact_section]', 'biznex'), 'placeholder_name' => _x('NAME', '[biznex_contact_section]', 'biznex'), 'placeholder_email' => _x('EMAIL', '[biznex_contact_section]', 'biznex'), 'placeholder_subject' => _x('SUBJECT', '[biznex_contact_section]', 'biznex'), 'placeholder_message' => _x('MESSAGE', '[biznex_contact_section]', 'biznex'), 'submit_text' => _x('SEND MESSAGE', '[biznex_contact_section]', 'biznex'), 'section_id' => ''), $atts));
    if ('' !== $section_title) {
        $section_title = '<h1>' . $section_title . '</h1>';
    }
    if ('' !== $form_title) {
        $form_title = '<p class="align-center">' . $form_title . '</p>';
    }
    if ('' !== $section_header_icon) {
        $section_header_icon = '<img src="' . $section_header_icon . '" class="arrow" alt="arrow" />';
    }
    if ('' !== $section_header_left) {
        $section_header_left = '<div class="left"><p>' . $section_header_left . '</p></div>';
    }
    if ('' !== $section_header_right) {
        $section_header_right = '<div class="right"><p>' . $section_header_right . '</p></div>';
    }
    if ('' !== $section_header_icon || '' !== $section_header_left || '' !== $section_header_right) {
        $section_header = '
    <div class="contact-line">
        ' . $section_header_left . '
        ' . $section_header_right . '
        ' . $section_header_icon . '
    </div>
    ';
    } else {
        $section_header = '';
    }
    $output = '';
    $output .= '
    <!-- Contact us section -->
    <section id="' . $section_id . '" class="light no-bottom-padding">
        ' . $section_title . '
        ' . $section_header . '
        <div class="container compact">
            ' . $form_title . '
            <form method="post" class="contact-form row">
                <div class="col-lg-6 col-md-6">
                    <input type="text" name="biznex-name" value="" placeholder="' . $placeholder_name . '" /><br />
                    <input type="text" name="biznex-email" value="" placeholder="' . $placeholder_email . '" /><br />
                    <input type="text" name="biznex-subject" value="" placeholder="' . $placeholder_subject . '" />
                    <div class="result"></div>
                </div>
                <div class="col-lg-6 col-md-6">
                    <textarea name="biznex-message" placeholder="' . $placeholder_message . '"></textarea><br />
                    <div class="align-right">
                        <button type="submit" class="button button-small">' . $submit_text . '</button>
                    </div>
                </div>
                <input type="hidden" name="action" value="biznex_contact" />
            </form>
        </div>
    ';
    ob_start();
    tt_gmap('contact_map', 'contact_map', 'map', 'false');
    $output .= ob_get_contents();
    ob_end_clean();
    $output .= '
    </section>
    ';
    return biznex_before_shortcode() . $output . biznex_after_shortcode();
}
<?php

/*
	Template Name: Contact
*/
get_header();
tt_gmap('contact_map', 'content-map', 'content-map', 'false');
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
    <div class='container'>
        <?php 
        the_content();
        ?>
    </div>
    <?php 
    }
}
tt_form_location('contact_page');
get_footer();
コード例 #4
0
ファイル: functions.php プロジェクト: ailyak/wordpress_site
function tesla_map_shortcode($atts, $content = null)
{
    extract(shortcode_atts(array('height' => '384px', 'width' => '100%', 'address' => 'London, UK', 'style' => ''), $atts));
    return tt_gmap('contact_map', 'map-canvas', 'revoke_map\' style=\'height:' . $height . ';width:' . $width . ';' . $style, 'true', false);
}