-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
739 lines (632 loc) · 21.8 KB
/
functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
<?php
require_once('stripe-php/init.php');
require_once('wp-bootstrap-navwalker.php');
require_once('wp-image-box-widget.php');
require_once('wp-custom-image-widget.php');
require_once('wp-product-widget.php');
require_once('wp-portrait-widget.php');
require_once('wp-youtube-widget.php');
require_once('wp-subscription-widget.php');
require_once('wp-footer-walker.php');
require_once('wp-dimox-breadcrumbs.php');
require_once('wp-stripe-subscription.php');
add_theme_support('custom-header');
add_theme_support('post-thumbnails', array('page'));
function load_tether() {
wp_register_script('tether', get_template_directory_uri().'/assets/js/tether.min.js');
wp_enqueue_script('tether');
}
function load_popper() {
wp_register_script('popper', get_template_directory_uri().'/assets/js/popper.min.js');
wp_enqueue_script('popper');
}
function load_aos() {
wp_register_script('aos', get_template_directory_uri().'/assets/js/aos.js');
wp_enqueue_script('aos');
}
function load_youtube() {
wp_register_script('aos', get_template_directory_uri().'/assets/js/youtubeHD.js');
wp_enqueue_script('youtube');
}
function load_animateLogo() {
wp_register_script('animate-logos', get_template_directory_uri().'/assets/js/animate-logos.js');
wp_enqueue_script('animate-logos');
}
function load_carosuelVideo() {
wp_register_script('carousel-to-video', get_template_directory_uri().'/assets/js/carousel-to-video.js');
wp_enqueue_script('carousel-to-video');
}
function bootstrap_with_jquery_and_tether() {
wp_register_script('bootstrap', get_template_directory_uri().'/assets/js/bootstrap.min.js', array('jquery', 'tether'));
wp_enqueue_script('bootstrap');
}
function load_prism() {
wp_register_script('clipboard', get_template_directory_uri().'/assets/js/clipboard.min.js');
wp_register_script('prism', get_template_directory_uri().'/assets/js/prism.js', array('clipboard'));
wp_enqueue_script('clipboard');
wp_enqueue_script('prism');
}
function speedment_menues_init() {
register_nav_menu('top-left-menu', __( 'Top Left (Blue) Menu' ));
register_nav_menu('top-right-menu', __( 'Top Right (White) Menu' ));
register_nav_menu('top-mobile-menu', __( 'Mobile Menu' ));
register_nav_menu('footer-menu', __( 'Footer Menu' ));
}
function speedment_widgets_init() {
register_sidebar(array(
'name' => 'Home Description',
'id' => 'home_description',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
));
register_sidebar(array(
'name' => 'Big Boxes',
'id' => 'big_boxes',
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h3 class="big_boxes_title">',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => 'Small Boxes',
'id' => 'small_boxes',
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h5>',
'after_title' => '</h5>',
));
register_sidebar(array(
'name' => 'Company Logos',
'id' => 'company_logos',
'before_widget' => '<div class="col display-none" data-info="company-logos">',
'after_widget' => '</div>',
'before_title' => '',
'after_title' => '',
));
register_sidebar(array(
'name' => 'Products',
'id' => 'products',
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => 'Features',
'id' => 'features',
'before_widget' => '<div class="col">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => 'Portraits',
'id' => 'portraits',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
));
register_sidebar(array(
'name' => 'Videos',
'id' => 'videos',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '',
));
}
function speedment_options_init($wp_customize) {
// Front Page Guides Text
$wp_customize->add_setting('front_page_guides_text', array(
'default' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis non arcu a nisl hendrerit mollis sit amet a tortor. Aenean malesuada risus neque, lacinia aliquam nisi lobortis ut.',
'transport' => 'refresh',
));
$wp_customize->add_control(
'front_page_guides_text_control',
array(
'label' => __('Guides Text', 'default'),
'description' => __('The text to be shown under the "Guides" section on the frontpage.', 'default'),
'section' => 'static_front_page',
'settings' => 'front_page_guides_text',
'type' => 'textarea'
)
);
// Contact Page reCaptcha code
$wp_customize->add_section('recaptcha_section', array(
'title' => __('ReCaptcha Section', 'default'),
'priority' => 30,
));
$wp_customize->add_setting('contact_email', array(
'default' => '',
'transport' => 'refresh',
));
$wp_customize->add_control(
'contact_email_control',
array(
'label' => __('Contact Email', 'default'),
'description' => __('The email adress to which contact form results should be sent.', 'default'),
'section' => 'recaptcha_section',
'settings' => 'contact_email',
'type' => 'email',
)
);
$wp_customize->add_setting('recaptcha_sitekey', array(
'default' => '',
'transport' => 'refresh',
));
$wp_customize->add_control(
'recaptcha_sitekey_control',
array(
'label' => __('ReCaptcha SiteKey', 'default'),
'description' => __('The public ReCaptcha sitekey.', 'default'),
'section' => 'recaptcha_section',
'settings' => 'recaptcha_sitekey',
'type' => 'text',
)
);
$wp_customize->add_setting('recaptcha_secret', array(
'default' => '',
'transport' => 'refresh',
));
$wp_customize->add_control(
'recaptcha_secret_control',
array(
'label' => __('ReCaptcha Secret', 'default'),
'description' => __('The secret ReCaptcha code.', 'default'),
'section' => 'recaptcha_section',
'settings' => 'recaptcha_secret',
'type' => 'text',
)
);
// Stripe payment API
$wp_customize->add_section('stripe_section', array(
'title' => __('Stripe Payment Settings', 'default'),
'priority' => 31,
));
$wp_customize->add_setting('stripe_sandbox', array(
'default' => '',
'transport' => 'refresh',
));
$wp_customize->add_control(
'stripe_sandbox_control',
array(
'label' => __('Enable Sandbox', 'default'),
'description' => __('In sandbox mode, no real money or credit cards will be used.', 'default'),
'section' => 'stripe_section',
'settings' => 'stripe_sandbox',
'type' => 'checkbox',
)
);
// Stripe Test
$wp_customize->add_setting('stripe_testSecretKey', array(
'default' => '',
'transport' => 'refresh',
));
$wp_customize->add_control(
'stripe_testSecretKey_control',
array(
'label' => __('Stripe Test Secret Key', 'default'),
'description' => __('The test secret stripe key.', 'default'),
'section' => 'stripe_section',
'settings' => 'stripe_testSecretKey',
'type' => 'text',
)
);
$wp_customize->add_setting('stripe_testPublicKey', array(
'default' => '',
'transport' => 'refresh',
));
$wp_customize->add_control(
'stripe_testPublicKey_control',
array(
'label' => __('Stripe Test Public key', 'default'),
'description' => __('The test public stripe key.', 'default'),
'section' => 'stripe_section',
'settings' => 'stripe_testPublicKey',
'type' => 'text',
)
);
// Stripe Live
$wp_customize->add_setting('stripe_secretKey', array(
'default' => '',
'transport' => 'refresh',
));
$wp_customize->add_control(
'stripe_secretKey_control',
array(
'label' => __('Stripe Live Secret Key', 'default'),
'description' => __('The live secret stripe Key.', 'default'),
'section' => 'stripe_section',
'settings' => 'stripe_secretKey',
'type' => 'text',
)
);
$wp_customize->add_setting('stripe_publicKey', array(
'default' => '',
'transport' => 'refresh',
));
$wp_customize->add_control(
'stripe_publicKey_control',
array(
'label' => __('Stripe Live Public key', 'default'),
'description' => __('The live public stripe key.', 'default'),
'section' => 'stripe_section',
'settings' => 'stripe_publicKey',
'type' => 'text',
)
);
// Stripe Costs
$wp_customize->add_setting('stripe_monthlyPlan', array('default' => ''));
$wp_customize->add_setting('stripe_yearlyPlan', array('default' => ''));
$wp_customize->add_setting('stripe_addonCost', array('default' => ''));
$wp_customize->add_setting('stripe_addonText', array('default' => ''));
$wp_customize->add_control(
'stripe_monthlyPlan_control',
array(
'label' => __('Subscription Plan (Pay Monthly)', 'default'),
'description' => __('The Stripe Subscription Plan to use if customer wants to pay monthly.', 'default'),
'section' => 'stripe_section',
'settings' => 'stripe_monthlyPlan',
'type' => 'text',
)
);
$wp_customize->add_control(
'stripe_yearlyPlan_control',
array(
'label' => __('Subscription Plan (Pay Yearly)', 'default'),
'description' => __('The Stripe Subscription Plan to use if customer wants to pay yearly.', 'default'),
'section' => 'stripe_section',
'settings' => 'stripe_yearlyPlan',
'type' => 'text',
)
);
$wp_customize->add_control(
'stripe_addonCost_control',
array(
'label' => __('Subscription Addon Cost (One Time)', 'default'),
'description' => __('The cost of the addon option to apply to the first invoice.', 'default'),
'section' => 'stripe_section',
'settings' => 'stripe_addonCost',
'type' => 'number',
)
);
$wp_customize->add_control(
'stripe_addonText_control',
array(
'label' => __('Subscription Addon Text', 'default'),
'description' => __('Text to show on the customer invoice if addon is selected', 'default'),
'section' => 'stripe_section',
'settings' => 'stripe_addonText',
'type' => 'text',
)
);
}
function cc_mime_types($mimes) {
$mimes['svg'] = 'image/svg+xml';
return $mimes;
}
/**
* Returns information about the current post's discussion, with cache support.
*/
function get_discussion_data() {
static $discussion, $post_id;
$current_post_id = get_the_ID();
if ( $current_post_id === $post_id ) {
return $discussion; /* If we have discussion information for post ID, return cached object */
} else {
$post_id = $current_post_id;
}
$comments = get_comments(
array(
'post_id' => $current_post_id,
'orderby' => 'comment_date_gmt',
'order' => get_option( 'comment_order', 'asc' ), /* Respect comment order from Settings » Discussion. */
'status' => 'approve',
'number' => 20, /* Only retrieve the last 20 comments, as the end goal is just 6 unique authors */
)
);
$authors = array();
foreach ( $comments as $comment ) {
$authors[] = ( (int) $comment->user_id > 0 ) ? (int) $comment->user_id : $comment->comment_author_email;
}
$authors = array_unique( $authors );
$discussion = (object) array(
'authors' => array_slice( $authors, 0, 6 ), /* Six unique authors commenting on the post. */
'responses' => get_comments_number( $current_post_id ), /* Number of responses. */
);
return $discussion;
}
/**
* Determines if post thumbnail can be displayed.
*/
function can_show_post_thumbnail() {
return apply_filters( 'twentynineteen_can_show_post_thumbnail', ! post_password_required() && ! is_attachment() && has_post_thumbnail() );
}
/**
* Author box functions
*/
function wpb_author_info_box( $content ) {
global $post;
// Detect if it is a single post with a post author
if ( is_single() && isset( $post->post_author ) ) {
// Get author's display name
$display_name = get_the_author_meta( 'display_name', $post->post_author );
// If display name is not available then use nickname as display name
if ( empty( $display_name ) )
$display_name = get_the_author_meta( 'nickname', $post->post_author );
// Get author's biographical information or description
$user_description = get_the_author_meta( 'user_description', $post->post_author );
// Get author's website URL
$user_website = get_the_author_meta('url', $post->post_author);
// Get link to the author archive page
$user_posts = get_author_posts_url( get_the_author_meta( 'ID' , $post->post_author));
if ( ! empty( $display_name ) )
$author_details = '<p class="about">About </p>';
$author_details .= '<h1 class="display_name">' . $display_name . '</h1>';
if ( ! empty( $user_description ) )
// Author avatar and bio
$author_details .= '<p class="author_details">' . get_avatar( get_the_author_meta('user_email') , 100 ) . nl2br($user_description ). '</p>';
//$author_details .= '<p class="author_links"><a href="'. $user_posts .'">View all posts by ' . $display_name . '</a>';
// Check if author has a website in their profile
//if ( ! empty( $user_website ) ) {
// Display author website link
//$author_details .= '<a href="' . $user_website .'" target="_blank" rel="nofollow">Website</a></p>';
//} else {
// if there is no author website then just close the paragraph
$author_details .= '</p>';
//}
// Pass all this info to post content
$content = $content . '<div class="author_bio_section" >' . $author_details . '</div>';
}
return $content;
}
// Add our function to the post content filter
add_action( 'the_content', 'wpb_author_info_box' );
/** End of author box functions */
/**
* Custom template tags for this theme
*/
if ( ! function_exists( 'twentynineteen_posted_on' ) ) :
/**
* Prints HTML with meta information for the current post-date/time.
*/
function twentynineteen_posted_on() {
$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
}
$time_string = sprintf(
$time_string,
esc_attr( get_the_date( DATE_W3C ) ),
esc_html( get_the_date() ),
esc_attr( get_the_modified_date( DATE_W3C ) ),
esc_html( get_the_modified_date() )
);
printf(
'<span class="posted-on">%1$s<a href="%2$s" rel="bookmark">%3$s</a></span>',
twentynineteen_get_icon_svg( 'watch', 16 ),
esc_url( get_permalink() ),
$time_string
);
}
endif;
if ( ! function_exists( 'twentynineteen_posted_by' ) ) :
/**
* Prints HTML with meta information about theme author.
*/
function twentynineteen_posted_by() {
printf(
/* translators: 1: SVG icon. 2: post author, only visible to screen readers. 3: author link. */
'<span class="byline">%1$s<span class="screen-reader-text">%2$s</span><span class="author vcard"><a class="url fn n" href="%3$s">%4$s</a></span></span>',
twentynineteen_get_icon_svg( 'person', 16 ),
__( 'Posted by', 'twentynineteen' ),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_html( get_the_author() )
);
}
endif;
if ( ! function_exists( 'twentynineteen_comment_count' ) ) :
/**
* Prints HTML with the comment count for the current post.
*/
function twentynineteen_comment_count() {
if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
echo '<span class="comments-link">';
echo twentynineteen_get_icon_svg( 'comment', 16 );
/* translators: %s: Name of current post. Only visible to screen readers. */
comments_popup_link( sprintf( __( 'Leave a comment<span class="screen-reader-text"> on %s</span>', 'twentynineteen' ), get_the_title() ) );
echo '</span>';
}
}
endif;
if ( ! function_exists( 'twentynineteen_entry_footer' ) ) :
/**
* Prints HTML with meta information for the categories, tags and comments.
*/
function twentynineteen_entry_footer() {
// Hide author, post date, category and tag text for pages.
if ( 'post' === get_post_type() ) {
// Posted by
twentynineteen_posted_by();
// Posted on
twentynineteen_posted_on();
/* translators: used between list items, there is a space after the comma. */
$categories_list = get_the_category_list( __( ', ', 'twentynineteen' ) );
if ( $categories_list ) {
printf(
/* translators: 1: SVG icon. 2: posted in label, only visible to screen readers. 3: list of categories. */
'<span class="cat-links">%1$s<span class="screen-reader-text">%2$s</span>%3$s</span>',
twentynineteen_get_icon_svg( 'archive', 16 ),
__( 'Posted in', 'twentynineteen' ),
$categories_list
); // WPCS: XSS OK.
}
/* translators: used between list items, there is a space after the comma. */
$tags_list = get_the_tag_list( '', __( ', ', 'twentynineteen' ) );
if ( $tags_list ) {
printf(
/* translators: 1: SVG icon. 2: posted in label, only visible to screen readers. 3: list of tags. */
'<span class="tags-links">%1$s<span class="screen-reader-text">%2$s </span>%3$s</span>',
twentynineteen_get_icon_svg( 'tag', 16 ),
__( 'Tags:', 'twentynineteen' ),
$tags_list
); // WPCS: XSS OK.
}
}
// Comment count.
if ( ! is_singular() ) {
twentynineteen_comment_count();
}
// Edit post link.
edit_post_link(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers. */
__( 'Edit <span class="screen-reader-text">%s</span>', 'twentynineteen' ),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title()
),
'<span class="edit-link">' . twentynineteen_get_icon_svg( 'edit', 16 ),
'</span>'
);
}
endif;
if ( ! function_exists( 'twentynineteen_post_thumbnail' ) ) :
/**
* Displays an optional post thumbnail.
*
* Wraps the post thumbnail in an anchor element on index views, or a div
* element when on single views.
*/
function twentynineteen_post_thumbnail() {
if ( ! twentynineteen_can_show_post_thumbnail() ) {
return;
}
if ( is_singular() ) :
?>
<figure class="post-thumbnail">
<?php the_post_thumbnail(); ?>
</figure><!-- .post-thumbnail -->
<?php
else :
?>
<figure class="post-thumbnail">
<a class="post-thumbnail-inner" href="<?php the_permalink(); ?>" aria-hidden="true" tabindex="-1">
<?php the_post_thumbnail( 'post-thumbnail' ); ?>
</a>
</figure>
<?php
endif; // End is_singular().
}
endif;
if ( ! function_exists( 'twentynineteen_comment_avatar' ) ) :
/**
* Returns the HTML markup to generate a user avatar.
*/
function twentynineteen_get_user_avatar_markup( $id_or_email = null ) {
if ( ! isset( $id_or_email ) ) {
$id_or_email = get_current_user_id();
}
return sprintf( '<div class="comment-user-avatar comment-author vcard">%s</div>', get_avatar( $id_or_email, twentynineteen_get_avatar_size() ) );
}
endif;
if ( ! function_exists( 'twentynineteen_discussion_avatars_list' ) ) :
/**
* Displays a list of avatars involved in a discussion for a given post.
*/
function twentynineteen_discussion_avatars_list( $comment_authors ) {
if ( empty( $comment_authors ) ) {
return;
}
echo '<ol class="discussion-avatar-list">', "\n";
foreach ( $comment_authors as $id_or_email ) {
printf(
"<li>%s</li>\n",
twentynineteen_get_user_avatar_markup( $id_or_email )
);
}
echo '</ol><!-- .discussion-avatar-list -->', "\n";
}
endif;
if ( ! function_exists( 'twentynineteen_comment_form' ) ) :
/**
* Documentation for function.
*/
function twentynineteen_comment_form( $order ) {
if ( true === $order || strtolower( $order ) === strtolower( get_option( 'comment_order', 'asc' ) ) ) {
comment_form(
array(
'logged_in_as' => null,
'title_reply' => null,
)
);
}
}
endif;
if ( ! function_exists( 'twentynineteen_the_posts_navigation' ) ) :
/**
* Documentation for function.
*/
function twentynineteen_the_posts_navigation() {
the_posts_pagination(
array(
'mid_size' => 2,
'prev_text' => sprintf(
'%s <span class="nav-prev-text">%s</span>',
twentynineteen_get_icon_svg( 'chevron_left', 22 ),
__( 'Newer posts', 'twentynineteen' )
),
'next_text' => sprintf(
'<span class="nav-next-text">%s</span> %s',
__( 'Older posts', 'twentynineteen' ),
twentynineteen_get_icon_svg( 'chevron_right', 22 )
),
)
);
}
endif;
if ( ! function_exists( 'wp_body_open' ) ) :
/**
* Fire the wp_body_open action.
*
* Added for backwards compatibility to support pre 5.2.0 WordPress versions.
*
* @since Twenty Nineteen 1.4
*/
function wp_body_open() {
/**
* Triggered after the opening <body> tag.
*
* @since Twenty Nineteen 1.4
*/
do_action( 'wp_body_open' );
}
endif;
// Allow HTML in author bio section
remove_filter('pre_user_description', 'wp_filter_kses');
add_filter('upload_mimes', 'cc_mime_types');
add_action('widgets_init', 'speedment_widgets_init');
add_action('init', 'speedment_menues_init');
add_action('init', 'stripe_subscription_init');
add_action('wp_enqueue_scripts', 'load_prism');
add_action('wp_enqueue_scripts', 'load_tether');
add_action('wp_enqueue_scripts', 'load_aos');
add_action('wp_enqueue_scripts', 'load_youtube');
add_action('wp_enqueue_scripts', 'load_popper');
add_action('wp_enqueue_scripts', 'load_animateLogo');
add_action('wp_enqueue_scripts', 'load_carosuelVideo');
add_action('wp_enqueue_scripts', 'bootstrap_with_jquery_and_tether');
add_action('customize_register', 'speedment_options_init');
// Make sure html on pages are not destroyed by WordPress
remove_filter('the_content', 'wptexturize');
remove_filter('the_content', 'wpautop');
remove_filter('the_excerpt', 'wpautop');
?>