This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class = "contact-content"> | |
| <div class = "row"> | |
| <div class = "form-group col-sm-6 name-field"> | |
| [text* Name class:form-control placeholder "Name"] | |
| </div> | |
| <div class = "form-group col-sm-6 email-field"> | |
| [email* Email class:form-control placeholder "EmaIl ID"] | |
| </div> | |
| <div class = "form-group col-sm-12"> | |
| [textarea* TextArea class:form-control placeholder "Your Message"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* ----------------------------------------------------------------------------------- */ | |
| /* Update check awebooking | |
| /*----------------------------------------------------------------------------------- */ | |
| //include_once(ABSPATH.'wp-admin/includes/plugin.php'); | |
| if ( ! function_exists( 'is_plugin_active' ) ){ | |
| require_once( ABSPATH . '/wp-admin/includes/plugin.php' ); | |
| } | |
| if (is_plugin_active('awebooking/init.php')) { | |
| // check the latest Aweooking version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function accommodation_search_forms($form) { | |
| $form = ' | |
| <div class="search-widget search-form"> | |
| <form method="get" class="searchform" action="' . esc_url(home_url('/')) . '" id="search"> | |
| <div class="input-group"> | |
| <span class="input-group-addon"><span class="glyphicon glyphicon-search"></span></span> | |
| <input type="text" name="s" class="form-control" placeholder="' . esc_attr__('Search...', 'accommodation') . '" value="' . get_search_query() . '"> | |
| </div> | |
| </form> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function _error_debug() { | |
| if ($error = error_get_last()) { | |
| /** | |
| * Usage: | |
| * 1. Create a link here https://beeceptor.com/ | |
| * 2. Paste it in $url | |
| * 3. Reproduce the error | |
| * 4. Refresh http://requestb.in/.../inspect and check Request Body (at bottom) | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function filter_caldera_forms_get_form_templates($tmpl) { | |
| $tmpl = array( | |
| 'starter_contact_form' => array( | |
| 'name' => __('Starter Contact Forms', 'caldera-forms'), | |
| 'template' => include CFCORE_PATH . 'includes/templates/starter-contact-form.php' | |
| ), | |
| ); | |
| return $tmpl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** @internal */ | |
| function _action_theme_fw_settings_render($data) { | |
| if ($data['side_tabs']) { | |
| wp_enqueue_style( | |
| 'theme-custom-fw-settings-side-tabs', | |
| // http://manual.unyson.io/en/latest/helpers/php.html#fw-locate-theme-path-uri | |
| fw_locate_theme_path_uri('assets//css/fw-settings-side-tabs.css') | |
| ); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * override loader image of unyson framework | |
| */ | |
| function _filter_core_loader_uri() { | |
| return get_stylesheet_directory_uri() . '/assets/img/loading.gif'; | |
| } | |
| add_filter( 'fw_loader_image', '_filter_core_loader_uri' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| `function _filter_theme_add_hind_google_font($fonts) { | |
| if(defined('FW')) { | |
| return ''; | |
| } | |
| $fonts['Roboto'] = array( | |
| 'family' => 'Roboto', | |
| 'variants' => array( 400, 700 ), | |
| ); | |
| ksort($fonts); |