Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- array (
- 'key' => '53f3aeb4bee0z',
- 'name' => 'contact',
- 'label' => 'Contact',
- 'display' => 'table',
- 'sub_fields' => array (
- array (
- 'key' => 'field_5400c884fb4f0z',
- 'label' => 'Google Map',
- 'name' => 'google_map_contact',
- 'prefix' => '',
- 'type' => 'google_map',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'center_lat' => '',
- 'center_lng' => '',
- 'zoom' => '',
- 'height' => '',
- ),
- array (
- 'key' => 'field_5400e4884364fz',
- 'label' => 'Form Area Title',
- 'name' => 'form_area_title_contact',
- 'prefix' => '',
- 'type' => 'text',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'default_value' => '',
- 'placeholder' => '',
- 'prepend' => '',
- 'append' => '',
- 'maxlength' => '',
- 'readonly' => 0,
- 'disabled' => 0,
- ),
- array (
- 'key' => 'field_5400cc9351bdbz',
- 'label' => 'Contact Form',
- 'name' => 'contact_form_contact',
- 'prefix' => '',
- 'type' => 'cf7',
- 'instructions' => 'Select your contact form',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'allow_null' => 0,
- 'multiple' => 0,
- 'disable' => array (
- 0 => 0,
- ),
- ),
- array (
- 'key' => 'field_5400ccba60d21z',
- 'label' => 'Meta info',
- 'name' => 'meta_info_contact',
- 'prefix' => '',
- 'type' => 'repeater',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'min' => '',
- 'max' => '',
- 'layout' => 'table',
- 'button_label' => 'Add Row',
- 'sub_fields' => array (
- array (
- 'key' => 'field_5400cccf60d22z',
- 'label' => 'Icon',
- 'name' => 'icon',
- 'prefix' => '',
- 'type' => 'select',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'column_width' => '',
- 'choices' => array (
- 'airplay' => 'airplay',
- 'alarm' => 'alarm',
- 'albums' => 'albums',
- 'anchor' => 'anchor',
- 'angle-down' => 'angle-down',
- 'angle-down-circle' => 'angle-down-circle',
- 'angle-left' => 'angle-left',
- 'angle-left-circle' => 'angle-left-circle',
- 'angle-right' => 'angle-right',
- 'angle-right-circle' => 'angle-right-circle',
- 'angle-up' => 'angle-up',
- 'angle-up-circle' => 'angle-up-circle',
- 'attention' => 'attention',
- 'back' => 'back',
- 'ball' => 'ball',
- 'battery' => 'battery',
- 'bell' => 'bell',
- 'bicycle' => 'bicycle',
- 'bookmarks' => 'bookmarks',
- 'box1' => 'box1',
- 'box2' => 'box2',
- 'browser' => 'browser',
- 'calculator' => 'calculator',
- 'call' => 'call',
- 'camera' => 'camera',
- 'cart' => 'cart',
- 'chat' => 'chat',
- 'check' => 'check',
- 'circle' => 'circle',
- 'clock' => 'clock',
- 'close' => 'close',
- 'cloud' => 'cloud',
- 'cloud-download' => 'cloud-download',
- 'cloud-upload' => 'cloud-upload',
- 'coffee' => 'coffee',
- 'comment' => 'comment',
- 'compass' => 'compass',
- 'config' => 'config',
- 'copy-file' => 'copy-file',
- 'credit' => 'credit',
- 'crop' => 'crop',
- 'culture' => 'culture',
- 'cup' => 'cup',
- 'date' => 'date',
- 'diskette' => 'diskette',
- 'display1' => 'display1',
- 'display2' => 'display2',
- 'download' => 'download',
- 'drawer' => 'drawer',
- 'drop' => 'drop',
- 'edit' => 'edit',
- 'expand1' => 'expand1',
- 'expand2' => 'expand2',
- 'file' => 'file',
- 'filter' => 'filter',
- 'flag' => 'flag',
- 'folder' => 'folder',
- 'gift' => 'gift',
- 'glasses' => 'glasses',
- 'gleam' => 'gleam',
- 'global' => 'global',
- 'graph' => 'graph',
- 'graph1' => 'graph1',
- 'graph2' => 'graph2',
- 'graph3' => 'graph3',
- 'help1' => 'help1',
- 'help2' => 'help2',
- 'home' => 'home',
- 'info' => 'info',
- 'junk' => 'junk',
- 'keypad' => 'keypad',
- 'less' => 'less',
- 'light' => 'light',
- 'like' => 'like',
- 'link' => 'link',
- 'lintern' => 'lintern',
- 'look lock' => 'look lock',
- 'loop' => 'loop',
- 'magnet' => 'magnet',
- 'mail' => 'mail',
- 'mail-open' => 'mail-open',
- 'mail-open-file' => 'mail-open-file',
- 'map' => 'map',
- 'map-marker' => 'map-marker',
- 'menu' => 'menu',
- 'micro' => 'micro',
- 'monitor' => 'monitor',
- 'moon' => 'moon',
- 'more' => 'more',
- 'mouse' => 'mouse',
- 'music' => 'music',
- 'musiclist' => 'musiclist',
- 'news-paper' => 'news-paper',
- 'next' => 'next',
- 'note' => 'note',
- 'notebook' => 'notebook',
- 'paint' => 'paint',
- 'paper-plane' => 'paper-plane',
- 'pen' => 'pen',
- 'phone' => 'phone',
- 'photo-gallery' => 'photo-gallery',
- 'plane' => 'plane',
- 'play' => 'play',
- 'plus' => 'plus',
- 'portfolio' => 'portfolio',
- 'power' => 'power',
- 'prev' => 'prev',
- 'print' => 'print',
- 'radio' => 'radio',
- 'refresh' => 'refresh',
- 'refresh-cloud' => 'refresh-cloud',
- 'repeat' => 'repeat',
- 'ribbon' => 'ribbon',
- 'science' => 'science',
- 'search' => 'search',
- 'server' => 'server',
- 'share' => 'share',
- 'shopbag' => 'shopbag',
- 'shuffle' => 'shuffle',
- 'signal' => 'signal',
- 'speaker' => 'speaker',
- 'star' => 'star',
- 'stopwatch' => 'stopwatch',
- 'study' => 'study',
- 'sun' => 'sun',
- 'target' => 'target',
- 'ticket' => 'ticket',
- 'timer' => 'timer',
- 'tools' => 'tools',
- 'trash' => 'trash',
- 'umbrella' => 'umbrella',
- 'unlock' => 'unlock',
- 'upload' => 'upload',
- 'user' => 'user',
- 'video' => 'video',
- 'voicemail' => 'voicemail',
- 'volume1' => 'volume1',
- 'volume2' => 'volume2',
- 'wallet' => 'wallet',
- ),
- 'default_value' => array (
- ),
- 'allow_null' => 0,
- 'multiple' => 0,
- 'ui' => 1,
- 'ajax' => 1,
- 'placeholder' => '',
- 'disabled' => 0,
- 'readonly' => 0,
- ),
- array (
- 'key' => 'field_5400cd3e60d23z',
- 'label' => 'Text',
- 'name' => 'text',
- 'prefix' => '',
- 'type' => 'text',
- 'instructions' => '',
- 'required' => 0,
- 'conditional_logic' => 0,
- 'column_width' => '',
- 'default_value' => '',
- 'placeholder' => '',
- 'prepend' => '',
- 'append' => '',
- 'maxlength' => '',
- 'readonly' => 0,
- 'disabled' => 0,
- ),
- ),
- ),
- ),
- 'min' => '',
- 'max' => '',
- ),
- // content-page.php
- // Contact
- elseif (get_row_layout() == 'contact'):
- ?>
- <div id="contacts-popup" class="lightbox">
- <div class="center-holder">
- <?php
- $location = get_sub_field('google_map_contact');
- if( ! empty($location) ):
- ?>
- <div class="acf-map">
- <div class="marker" data-lat="<?php echo esc_attr($location['lat']); ?>" data-lng="<?php echo esc_attr($location['lng']); ?>"></div>
- </div>
- <?php endif; ?>
- <div class="twocolumn">
- <div class="lightbox-content">
- <h1><?php echo wptexturize(get_sub_field('form_area_title_contact')); ?></h1>
- <?php echo wptexturize(get_sub_field('contact_form_contact')); ?>
- </div>
- <div class="lightbox-aside">
- <ul class="contacts-list">
- <?php
- while (has_sub_field('meta_info_contact')): ?>
- <li><span class="icon pe-7s-<?php echo esc_attr(get_sub_field('icon')); ?>"></span><?php echo wptexturize(get_sub_field('text')); ?></li>
- <?php endwhile; ?>
- </ul>
- <?php
- $twitter = get_theme_mod('twitter_text');
- $facebook = get_theme_mod('facebook_text');
- ?>
- <ul class="social-networks">
- <?php
- if(!empty($facebook)){ ?>
- <li><a class="icon-twitter" href="<?php echo esc_url($twitter); ?>" target="_blank"></a></li>
- <?php }
- if(!empty($twitter)){ ?>
- <li><a class="icon-facebook" href="<?php echo esc_url($facebook); ?>" target="_blank"></a></li>
- <?php } ?>
- </ul>
- </div>
- </div>
- </div>
- </div>
- <?php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement