Beispiel #1
0
 public static function instance($settings = array(), $options = array())
 {
     if (is_null(self::$instance) && ZELS_ACTIVE_FRAMEWORK) {
         self::$instance = new self($settings, $options);
     }
     return self::$instance;
 }
Beispiel #2
0
<div class="col-sm-6">
    [text your-webite class:form-control placeholder "Your Website"] </div>

<div class="col-sm-12">
    [textarea your-message class:form-control placeholder "Write Your message"] </div>

<div class="col-sm-12">[submit class:btn class:btn-lg class:top2bottom-effect class:full-width-btn class:btn-submit "Send Message"]</div>
</pre>'), array('type' => 'subheading', 'content' => 'Address'), array('id' => 'get_intouch_section_title', 'type' => 'text', 'title' => 'Section Title', 'default' => 'Get in touch'), array('id' => 'get_intouch_section_title', 'type' => 'text', 'title' => 'Section Title', 'default' => 'Get in touch'), array('id' => 'detail_address', 'type' => 'textarea', 'title' => 'Address', 'default' => 'Inner Circular Road, Broker <br>
                Sector Rang Plaza, UK'), array('id' => 'detail_mail', 'type' => 'textarea', 'title' => 'Mail', 'default' => 'support@yoursite.com  <br>
                  info@yoursite.com'), array('id' => 'detail_phone', 'type' => 'textarea', 'title' => 'Phone', 'default' => '
      +61 (001) 2345 67890 <br>
      +61 (001) 2345 67890'), array('id' => 'detail_skype', 'type' => 'textarea', 'title' => 'Skype', 'default' => 'support.awe@skype.com  <br>
help.awe@skype.com'), array('type' => 'subheading', 'content' => 'Newsletter'), array('id' => 'mc_API', 'type' => 'text', 'title' => 'Your Mailchimp API key', 'desc' => 'To get API <a href="http://kb.mailchimp.com/accounts/management/about-api-keys" title="">Click Here</a> '), array('id' => 'mc_lst', 'type' => 'text', 'title' => 'Your Mailchimp List ID', 'desc' => 'To get List ID <a href="http://kb.mailchimp.com/lists/managing-subscribers/find-your-list-id" title="">Click Here</a> ')));
/**  twitter 
--------------------------------------------------------------------------------------------------- */
$options[] = array('name' => 'twitter', 'title' => 'Twitter Feed', 'icon' => 'fa fa-twitter', 'fields' => array(array('id' => 'twitter_section_title', 'type' => 'text', 'title' => 'Title', 'default' => 'Latest Tweet'), array('id' => 'twitter_username', 'type' => 'text', 'title' => 'Username'), array('id' => 'tweet_count', 'type' => 'text', 'title' => 'How many tweet slide?', 'default' => '5'), array('id' => 'tweet_cache_time', 'type' => 'text', 'title' => 'Tweets Cache Time (in minutes)', 'default' => '4'), array('id' => 'consumer_key', 'type' => 'text', 'title' => 'Consumer key'), array('id' => 'consumer_secret', 'type' => 'text', 'title' => 'Consumer secret'), array('id' => 'access_token', 'type' => 'text', 'title' => 'Access token'), array('id' => 'access_token_secret', 'type' => 'text', 'title' => 'Access token secret')));
/**  google map.
--------------------------------------------------------------------------------------------------- */
$options[] = array('name' => 'map', 'title' => 'Map', 'icon' => 'fa fa-location-arrow', 'fields' => array(array('id' => 'map_lati', 'type' => 'text', 'title' => 'Latitude', 'default' => 53.599339, 'desc' => 'Get latitude <a target="_blank" href="http://www.gps-coordinates.net/">Click Here</a>'), array('id' => 'map_langi', 'type' => 'text', 'title' => 'Langitude', 'default' => 10.172954, 'desc' => 'Get latitude <a target="_blank" href="http://www.gps-coordinates.net/">Click Here</a>'), array('id' => 'map_icon', 'type' => 'upload', 'title' => 'Upload Map Icon', 'default' => get_template_directory_uri() . '/assets/images/mapicon.png')));
/**  footer.
--------------------------------------------------------------------------------------------------- */
$options[] = array('name' => 'footer', 'title' => 'Footer', 'icon' => 'fa fa-copyright', 'fields' => array(array('id' => 'custom_css', 'type' => 'textarea', 'title' => 'Add custom css code here'), array('id' => 'copyright_txt', 'type' => 'textarea', 'title' => 'Add Copyright Text', 'default' => '  © <a href="#">AWE</a>  2014 - Developed by <a href="http://www.codexcoder.com">CodexCoder</a>')));
/**  advance settings.
--------------------------------------------------------------------------------------------------- */
$options[] = array('name' => 'advance', 'title' => 'Advance', 'icon' => 'fa fa-star', 'fields' => array(array('id' => 'section_sorter', 'type' => 'sorter', 'title' => 'Sorter', 'default' => array('enabled' => array('feature' => 'Feature', 'about' => 'About', 'skill' => 'Skill', 'team' => 'Team', 'service' => 'Service', 'portfolio' => 'Portfolio', 'pricingtable' => 'Pricing Table', 'client' => 'Client', 'blog' => 'Blog', 'twitter' => 'Twitter', 'video' => 'Video', 'contact' => 'Contact'), 'disabled' => array('black' => 'Black', 'white' => 'White')), 'enabled_title' => 'Active Sections', 'disabled_title' => 'Deactive Sections')));
// end: a field
/**  social.
--------------------------------------------------------------------------------------------------- */
$options[] = array('name' => 'awesocial', 'title' => 'Social', 'icon' => 'fa fa-plus', 'fields' => array(array('id' => 'social_bg', 'type' => 'upload', 'title' => 'Add Social Section background'), array('id' => 'social_section_group', 'type' => 'group', 'title' => 'Add Social Account', 'button_title' => 'Add social', 'accordion_title' => 'Add New social', 'fields' => array(array('id' => 'social_name', 'type' => 'text', 'title' => 'Name'), array('id' => 'social_icon', 'type' => 'icon', 'title' => 'Add Icon', 'desc' => 'Add social image'), array('id' => 'social_url', 'type' => 'text', 'title' => 'Social Url')), 'default' => array(array('social_name' => 'Facebook', 'social_icon' => 'fa fa-facebook', 'social_url' => '#'), array('social_name' => 'Twitter', 'social_icon' => 'fa fa-twitter', 'social_url' => '#'), array('social_name' => 'Google', 'social_icon' => 'fa fa-google-plus', 'social_url' => '#')))));
Zels_Framework::instance($settings, $options);