Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function horizontal_form($atts)
- {
- $atts = shortcode_atts(array(
- 'type'=>'default'
- ), $atts);
- wp_enqueue_style('horizontal_form', get_template_directory_uri() . '/assets/css/horizontal_form.css');
- $template = file_get_contents(get_template_directory() . '/assets/html/horizontal_form.html');
- if($atts['type']=='hp'){
- wp_enqueue_script('moment');
- wp_enqueue_script('bootstrap-datetimepicker');
- $template = file_get_contents(get_template_directory() . '/assets/html/hp_horizontal_form.html');
- }
- $data = array(
- 'segment' => 'adult',
- 'niche' => 'general',
- 'ip' => $_SERVER['REMOTE_ADDR'],
- 'site_lang' => 'Swedish',
- 'site_name' => get_bloginfo('name'),
- 'dating_platform' => 'Dating Factory',
- );
- return html_parser::parse_tpl($template, $data);
- }
- add_shortcode('horizontal_form', 'horizontal_form');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement