-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
732 lines (593 loc) · 29.8 KB
/
header.php
File metadata and controls
732 lines (593 loc) · 29.8 KB
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
<!DOCTYPE html>
<html <?php language_attributes(); ?> xmlns:fb="http://ogp.me/ns/fb#" id="desktop">
<head>
<meta charset="utf-8">
<title><?php wp_title(''); ?></title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0">
<meta name="twitter:widgets:csp" content="on">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script>window.twttr = (function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0],
t = window.twttr || {};
if (d.getElementById(id)) return;
js = d.createElement(s);
js.id = id;
js.src = "https://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
t._e = [];
t.ready = function(f) {
t._e.push(f);
};
return t;
}(document, "script", "twitter-wjs"));</script>
<?php
global $post;
$current_user = wp_get_current_user();
?>
<meta property="og:title" content="<?php wp_title(); ?>"/>
<meta property="og:site_name" content="<?php echo get_bloginfo( 'name' ); ?>"/>
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'large' ); ?>
<meta property="og:image" content="<?php echo $image[0]; ?>"/>
<?php
if ( ! isset( $content_width ) ) $content_width = 900;
wp_head();
?>
<style>
.ph-nav-center a .active, .ph-nav-center a:hover, {
color: <?php echo of_get_option('ph_main_color'); ?>;
}
.newsletter-box input[type=submit],.ph-layout-2-body .mailchimp-sub .newsletter-box .subscribeButton {
background: <?php echo of_get_option('ph_main_color'); ?>;
}
.hunt-row .none .score{
color: <?php echo of_get_option('ph_novote'); ?> !important;
}
.ph-layout-2-body .mailchimp-sub .newsletter-box .subscribeButton{
border: 1px solid <?php echo of_get_option('ph_main_color'); ?>;
}
.blue .arrow{
color: <?php echo of_get_option('ph_vote'); ?> !important;
}
.single .blue .arrow, .single .blue .score{
color: <?php echo of_get_option('ph_vote_fly'); ?> !important;
}
.post-submission--form-media-section .media-item{
background-color: <?php echo of_get_option('ph_secondary_color'); ?>;
border: 1px solid <?php echo of_get_option('ph_secondary_color'); ?>;
}
.modal-post-submission--header.ph-newsubmit, .ph-newsubmit .modal-post-submission--header {
background: <?php echo of_get_option('ph_newpost_header'); ?>;
}
#post-submission input[type=submit] {
background: <?php echo of_get_option('ph_newpost_header'); ?>;
}
.none .fa{
color: <?php echo of_get_option('ph_novote'); ?>;
}
.post-header .get-it {
background: <?php echo of_get_option('ph_main_color'); ?>;
color: <?php echo of_get_option('ph_get_it_color', '#ffffff'); ?>;
}
.media-placeholder a:hover, .single-post .upmod {
color: <?php echo of_get_option('ph_main_color'); ?>;
text-decoration: underline;
}
.site--header{
background: <?php echo of_get_option('ph_menu_color'); ?>;
}
.none .score{
color: <?php echo of_get_option('ph_novote'); ?>;
}
.m-active{color:<?php echo of_get_option('ph_newpost_header'); ?> !important;}
.m-active-g{color:<?php echo of_get_option('ph_discuss_header'); ?> !important;}
.nogrid .ph-layout-2 .blue {
background: <?php echo of_get_option('ph_main_color'); ?>;
border: 1px solid <?php echo of_get_option('ph_main_color'); ?>;
}
.nogrid .ph-layout-2 .blue .fa {
color: <?php echo of_get_option('ph_vote'); ?>;;
}
.nogrid .ph-layout-2 .blue .score {
color: <?php echo of_get_option('ph_vote'); ?>;
}
.maincontent .blue .fa{
color: <?php echo of_get_option('ph_vote'); ?>;
}
.blue, .blue .fa, .blue .score, .ph-lhs a {
color: <?php echo of_get_option('ph_vote'); ?>;
}
.tour-wrapper-footer a, .tour-wrapper-footer:hover a, .feedback-popup .title{
color: <?php echo of_get_option('ph_main_color'); ?> !important;
}
.feedback-popup .action-expand-feedback-popup, .feedback-popup .button{
background: <?php echo of_get_option('ph_main_color'); ?> !important;
}
.feedback-popup, .feedback-popup .button{
border-top: 2px solid <?php echo of_get_option('ph_main_color'); ?> !important;
border-left: 2px solid <?php echo of_get_option('ph_main_color'); ?> !important;
border-right: 2px solid <?php echo of_get_option('ph_main_color'); ?> !important;
border-bottom: none !important;
}
.ph-layout-2 .ph-collect-in {
background: <?php echo of_get_option('ph_main_color'); ?> !important;
border: 1px solid <?php echo of_get_option('ph_main_color'); ?> !important;
}
.ph-layout-2 .ph-saved {
background: <?php echo of_get_option('ph_main_color'); ?> !important;
}
.collections-html a {
color: <?php echo of_get_option('ph_main_color'); ?> !important;
}
.modal--close-lb:hover, .modal--close-new:hover, .modal--close.v-desktop:hover {
background: <?php echo of_get_option('ph_main_color'); ?> !important;
}
.ph-lhs .media-placeholder a {
color: <?php echo of_get_option('ph_main_color'); ?> !important;
}
#ph_notifications_preferences input[type="submit"] {
background: <?php echo of_get_option('ph_main_color'); ?> !important;
}
.notfications {
background: <?php echo of_get_option('ph_main_color'); ?> !important;
}
.entry-content a:link, .entry-content a:visited, .entry-content a:active {
color: <?php echo of_get_option('ph_main_color'); ?> !important;
}
.comment-submit {
border: 2px solid <?php echo of_get_option('ph_main_color'); ?> !important;
background: <?php echo of_get_option('ph_main_color'); ?> !important;
}
.button-primary, .button.v-green, .notice.v-colorset-brown .button.notice--button {
background: <?php echo of_get_option('ph_main_color'); ?> !important;
border-color: <?php echo of_get_option('ph_main_color'); ?> !important;
}
.tml #wp-submit {
background: <?php echo of_get_option('ph_main_color'); ?> !important;
border-bottom: 2px solid <?php echo of_get_option('ph_main_color'); ?> !important;
}
.brand h1 {
color: <?php echo of_get_option('ph_main_color'); ?> !important;
}
.modal-content-fullscreen .brand a, .modal-content-fullscreen .brand a:hover, .modal-content-fullscreen a, .modal-content-fullscreen a:hover {
color: <?php echo of_get_option('ph_main_color'); ?> !important;
}
.button-primary, .button.v-green, .notice.v-colorset-brown .button.notice--button {
background: <?php echo of_get_option('ph_main_color'); ?> !important;
border-color: <?php echo of_get_option('ph_main_color'); ?> !important;
}
.search-query {
color: <?php echo of_get_option('ph_main_color'); ?> !important;
}
.modal-container .blue .score, .modal-container .blue .arrow, .slider-post-meta .blue .score, .slider-post-meta .blue .arrow{
color: <?php echo of_get_option('ph_vote_fly'); ?> !important;
}
.submit-discuss{
background: <?php echo of_get_option('ph_main_color'); ?> !important;
}
.feedback-popup .button:hover {
color: white !important;
}
.can-comment a{
color: <?php echo of_get_option('ph_main_color'); ?> !important;
}
</style>
<?php
if(!wp_is_mobile()){
echo '<style>' . of_get_option('ph_custom_css') .'</style>';
}else{
echo '<style>' . of_get_option('ph_mobile_custom_css') .'</style>';
}
if ( is_user_logged_in() ){
$size='35';
$current_user = wp_get_current_user();
$email = $current_user->user_email;
$author_id = $current_user->ID;
}
?>
<script>
<?php
$ph_ga = of_get_option('ph_ga');
echo $ph_ga;
?>
</script>
</head>
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '427029257462972',
xfbml : true,
version : 'v2.0'
});
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<body <?php
if (!isset($class)) $class = '';
body_class( $class ); ?>>
<div id='wrapper'>
<header class="site--header headroom headroom--top">
<nav class="navbar nav-fixed-top">
<div class="container main-content-tour">
<div class="ph-left-side">
<div class="logo">
<a href='<?php echo esc_url( home_url( '/' ) ); ?>' title='<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>' rel='home'>
<img src='<?php echo esc_url( of_get_option('main_logo') ); ?>' alt='<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>'>
</a>
</div>
<div class="ph-search-wrap">
<form class="ph-search-form" role="search" action="<?php echo esc_url( home_url('/') );?>">
<div class="form-group-ph">
<label class="header--search-form--label" for="search" data-reactid=".0.0.0.0.0"><span><svg width="15" height="15" viewBox="0 0 15 15" xmlns="http://www.w3.org/2000/svg"><title>Oval 95</title><path d="M9.383 10.347c-.987.78-2.233 1.244-3.588 1.244C2.595 11.59 0 8.997 0 5.796 0 2.595 2.595 0 5.795 0c3.2 0 5.796 2.595 5.796 5.795 0 1.355-.464 2.6-1.243 3.588L15 14.036l-.964.964-4.653-4.653zm-3.588-.12c2.448 0 4.432-1.984 4.432-4.432 0-2.447-1.984-4.43-4.432-4.43-2.447 0-4.43 1.983-4.43 4.43 0 2.448 1.983 4.432 4.43 4.432z" fill="#BBB" fill-rule="evenodd"></path></svg></span></label>
<input type="text" class="form-control header--search-form--field" placeholder = "<?php _e('Search..','pluginhunt'); ?>" value="<?php the_search_query(); ?>" name="s" id="s">
</div>
<button type="submit" class="btn btn-default hide"><?php _e('Submit','pluginhunt');?></button>
</form>
</div>
</div>
<div class="ph-right-side">
<ul class="right-side-menu-ph">
<li class='ph-menu-icon' id='second-dropdown-menu-tour'>
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><svg width="20" height="4" viewBox="0 0 20 4" xmlns="http://www.w3.org/2000/svg"><path d="M2 4c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm8 0c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm8 0c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="#BBB" fill-rule="evenodd"></path></svg></a>
<ul class="dropdown-menu ph-dots" role="menu">
<?php wp_nav_menu( array( 'container' => '','container_class' => '','theme_location' => 'primary','menu_class' => 'nav','walker' => new Bootstrap_Walker()) ); ?>
</ul>
</li>
<li class='ph-menu-icon'>
<?php if(of_get_option('ph_layout_style') != 'index-3'){ ?>
<div id="ph-onb-tour" class='new-post-button'><svg width="22" height="22" viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg"><path d="M10 12H0v-2h10V0h2v10h10v2H12v10h-2V12z" fill="#BBB" fill-rule="evenodd"></path></svg></div>
<?php }else{ ?>
<div id="ph-onb-tour" class='new-post-button ind3 button'><?php echo of_get_option('ph_new_post_string','Submit Content'); ?></div>
<?php } ?>
</li>
<?php do_action('epic-notify'); ?>
<li class='ph-menu-icon'>
<?php if ( is_user_logged_in() ){ ?>
<span class="dropdown inline ph-drop-arr">
<a class="dropdown-toggle small" id="account-dropdown" role="button" data-toggle="dropdown" href="#">
<span class="strongest">
<?php
$args = array( 'class' => 'img-rounded');
echo get_avatar($author_id, 32); ?>
</span>
</a>
<ul class="dropdown-menu" id="user-dropdown-menu" role="menu" aria-labelledby="account-dropdown">
<li><a href="<?php echo get_author_posts_url( $author_id ); ?>"><i class="icon-fixed-width icon-user"></i><?php _e('My Profile','pluginhunt'); ?></a></li>
<li><a href="<?php echo esc_url( home_url( '/' ) ) . of_get_option('ph_edit_profile','/your-profile'); ?>"><i class="icon-fixed-width icon-user"></i><?php _e('Edit Profile','pluginhunt'); ?></a></li>
<?php if(function_exists('notifyme_header')){ ?>
<li><a href="<?php echo esc_url( home_url( '/' ) ) . of_get_option('ph_activity_link','activity'); ?>"><i class="icon-fixed-width icon-user"></i><?php _e('Activity','pluginhunt'); ?></a></li>
<li><a href="<?php echo esc_url( home_url( '/' ) ) . of_get_option('ph_settings_link','settings'); ?>"><i class="icon-fixed-width icon-user"></i><?php _e('Settings','pluginhunt'); ?></a></li>
<?php } ?>
<li><a href="<?php echo wp_logout_url(); ?>" title="Logout"><?php _e('Logout','pluginhunt'); ?></a></li>
</ul>
</span>
<?php
}else{
$logged = 'loggedout';
?>
<?php $surl = get_home_url(); ?>
<span class='login-link-header'>
<a href="#" class='ph-log-new'><?php _e('Login','pluginhunt'); ?></a>
</span>
<?php } ?>
</li>
</ul>
</div>
<div class="clear" id="imclear"></div>
</div>
<?php
global $sub_menu_ph62;
$hm = wp_nav_menu( array( 'echo' => FALSE, 'container' => '','container_class' => '','theme_location' => 'home','menu_class' => '','walker' => new Bootstrap_Walker()) );
if($hm == ''){
$hm_hide = 'display:none';
global $post_wrapper;
$post_wrapper = 'margin-top:-5px;';
}else{
$hm_hide = '';
$sub_menu_ph62 = true;
}
?>
<div class="ph_62_menu container" style="<?php echo $hm_hide;?>">
<!-- Hamburguer Menu -->
<div class="hamburguer-menu-wrapper">
<button class="hamburger" id="hamburger">☰</button> Menu
</div>
<!-- /Hamburguer Menu -->
<hr/>
<div class="ph_62_menu_wrapper menu-hide">
<nav class="navbar nav">
<?php
if(!empty($hm)){
echo $hm;
}
?>
</nav>
</div>
</div>
<div class='clear'></div>
</nav>
</header>
<header class="site--header headroom headroom--top hide" data-auto-hide="true">
<nav class="navbar nav-fixed-top" role="navigation">
<div class="container-header">
<div id='leftm'>
<div class='ph-logo'>
<div class='site-logo'>
<span class='pull-left'><a href='<?php echo esc_url( home_url( '/' ) ); ?>' title='<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>' rel='home'><img src='<?php echo esc_url( of_get_option('main_logo') ); ?>' alt='<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>'></a>
</span>
</div>
</div>
<form class="navbar-form navbar-left header--search-form" role="search" action="<?php echo esc_url( home_url('/') );?>">
<div class="form-group">
<label class="header--search-form--label" for="search" data-reactid=".0.0.0.0.0"><span><svg width="15" height="15" viewBox="0 0 15 15" xmlns="http://www.w3.org/2000/svg"><title>Oval 95</title><path d="M9.383 10.347c-.987.78-2.233 1.244-3.588 1.244C2.595 11.59 0 8.997 0 5.796 0 2.595 2.595 0 5.795 0c3.2 0 5.796 2.595 5.796 5.795 0 1.355-.464 2.6-1.243 3.588L15 14.036l-.964.964-4.653-4.653zm-3.588-.12c2.448 0 4.432-1.984 4.432-4.432 0-2.447-1.984-4.43-4.432-4.43-2.447 0-4.43 1.983-4.43 4.43 0 2.448 1.983 4.432 4.43 4.432z" fill="#BBB" fill-rule="evenodd"></path></svg></span></label>
<input type="text" class="form-control header--search-form--field" placeholder = "<?php _e('Search..','pluginhunt'); ?>" value="<?php the_search_query(); ?>" name="s" id="s">
</div>
<button type="submit" class="btn btn-default hide"><?php _e('Submit','pluginhunt');?></button>
</form>
<?php if( of_get_option('ph_grid_toggle') == 1){ $h = 'hide'; }else{ $h = ''; } ?>
<?php if( of_get_option('ph_grid_on') == 1) { ?>
<div class='ph-grid-view'><i class="ph-view-container fa fa-list-ul <?php echo $h;?>"></i></div>
<?php }else{ ?>
<div class='ph-grid-view'><i class="ph-view-container fa fa-th <?php echo $h; ?>"></i></div>
<?php } ?>
</div>
<div id='rightm hide'>
<li class='dropdown pull-left phmenu hide'>
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><svg width="20" height="4" viewBox="0 0 20 4" xmlns="http://www.w3.org/2000/svg"><path d="M2 4c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm8 0c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm8 0c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="#BBB" fill-rule="evenodd"></path></svg></a>
<ul class="dropdown-menu ph-dots" role="menu">
<?php wp_nav_menu( array( 'container' => '','container_class' => '','theme_location' => 'primary','menu_class' => 'nav','walker' => new Bootstrap_Walker()) ); ?>
</ul>
</li>
<span class="pull-right topnav-options hide">
<span class='usermeta'>
<nav>
<span class="inline">
<?php if(of_get_option('ph_layout_style') != 'index-3'){ ?>
<div class='new-post-button'><svg width="22" height="22" viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg"><path d="M10 12H0v-2h10V0h2v10h10v2H12v10h-2V12z" fill="#BBB" fill-rule="evenodd"></path></svg></div>
<?php }else{ ?>
<div class='new-post-button ind3 button'><?php echo of_get_option('ph_new_post_string'); ?></div>
<?php } ?>
<?php do_action('epic-notify'); ?>
<span class='hopt'>
<?php
if ( is_user_logged_in() ){
$size='35';
$current_user = wp_get_current_user();
$email = $current_user->user_email;
$author_id = $current_user->ID;
?>
<span class="dropdown inline ph-drop-arr">
<a class="dropdown-toggle small" id="account-dropdown" role="button" data-toggle="dropdown" href="#">
<span class="strongest">
<?php
$args = array( 'class' => 'img-rounded');
echo get_avatar($author_id, 32); ?>
</span>
</a>
<ul class="dropdown-menu" id="user-dropdown-menu" role="menu" aria-labelledby="account-dropdown">
<li><a href="<?php echo get_author_posts_url( $author_id ); ?>"><i class="icon-fixed-width icon-user"></i><?php _e('My Profile','pluginhunt'); ?></a></li>
<li><a href="<?php echo esc_url( home_url( '/' ) ) . of_get_option('ph_edit_profile','/your-profile'); ?>"><i class="icon-fixed-width icon-user"></i><?php _e('Edit Profile','pluginhunt'); ?></a></li>
<?php if(function_exists('notifyme_header')){ ?>
<li><a href="<?php echo esc_url( home_url( '/' ) ) . of_get_option('ph_settings_link','/settings'); ?>"><i class="icon-fixed-width icon-user"></i><?php _e('Settings','pluginhunt'); ?></a></li>
<?php } ?>
<li><a href="<?php echo wp_logout_url(); ?>" title="Logout"><?php _e('Logout','pluginhunt'); ?></a></li>
</ul>
</span>
<?php
}else{
$logged = 'loggedout';
?>
<?php $surl = get_home_url(); ?>
<span class='login-link-header'>
<a href="#" class='ph-log-new'><?php _e('Login','pluginhunt'); ?></a>
</span>
<?php } ?>
</span>
</span>
</nav>
</span>
</span>
</span>
</div> <!-- end rightm -->
<div id = 'midm'>
<div class='ph-nav-center'>
<?php
wp_nav_menu( array( 'theme_location' => 'main', 'container_class' => 'menu-c') );
?>
</div>
</div>
</div> <!-- end of header container -->
</nav>
</header>
<?php if( of_get_option('ph_show_welcome') == 1 && !is_user_logged_in() && is_home()) { ?>
<div class='ph-welcome'>
<div class='container welcome-container'>
<div class='col-md-6 pull-left'>
<h2><?php echo of_get_option('ph_welcome_tit'); ?></h2>
<p class='welcome-lead'>
<?php echo of_get_option('ph_welcome_sub'); ?>
</p>
<a class='btn btn-lg wel-btn' href="<?php echo wp_login_url(); ?>">Sign up</a>
</div>
<div class='col-md-6 pull-right wel-img'>
<img src='<?php echo of_get_option('welcome_logo'); ?>' />
</div>
<div class='clear'></div>
</div>
</div>
<?php } ?>
<div style='clear:both'></div>
<!-- new post modal -->
<?php // }
global $mc;
?>
</div>
<div class='modal-overlay-lightbox'>
<a class="modal--close-lb <?php echo $mc; ?>" href="#" title="Close">
<span>
<svg width="12" height="12" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">
<path d="M6 4.586l4.24-4.24c.395-.395 1.026-.392 1.416-.002.393.393.39 1.024 0 1.415L7.413 6l4.24 4.24c.395.395.392 1.026.002 1.416-.393.393-1.024.39-1.415 0L6 7.413l-4.24 4.24c-.395.395-1.026.392-1.416.002-.393-.393-.39-1.024 0-1.415L4.587 6 .347 1.76C-.05 1.364-.048.733.342.343c.393-.393 1.024-.39 1.415 0L6 4.587z" fill-rule="evenodd"></path>
</svg>
</span>
</a>
<div class='ph-lb-post-image'></div>
<div class="ph-lb-nav"><div class="v-left-lb"><span><svg width="26" height="46" viewBox="0 0 26 46" xmlns="http://www.w3.org/2000/svg"><path d="M24 2L3 23l21 21" stroke-width="4" fill="none"></path></svg></span></div><div class="lb-mid"><span id='lb-num'>1</span><span> <?php _e('of','pluginhunt');?> </span><span id='lb-tot'></span></div><div class="v-right-lb"><span><svg width="26" height="46" viewBox="0 0 26 46" xmlns="http://www.w3.org/2000/svg"><path d="M2 2l21 21L2 44" stroke-width="4" fill="none"></path></svg></span></div></div>
</div>
<!-- new post modal -->
<div class="modal-overlay-new">
<?php if(wp_is_mobile()){ $mc = 'v-mobile'; }else{ $mc = 'v-desktop'; } ?>
<a class="modal--close-new <?php echo $mc; ?>" href="#" title="Close">
<span>
<svg width="12" height="12" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">
<path d="M6 4.586l4.24-4.24c.395-.395 1.026-.392 1.416-.002.393.393.39 1.024 0 1.415L7.413 6l4.24 4.24c.395.395.392 1.026.002 1.416-.393.393-1.024.39-1.415 0L6 7.413l-4.24 4.24c-.395.395-1.026.392-1.416.002-.393-.393-.39-1.024 0-1.415L4.587 6 .347 1.76C-.05 1.364-.048.733.342.343c.393-.393 1.024-.39 1.415 0L6 4.587z" fill-rule="evenodd"></path>
</svg>
</span>
</a>
<div class="new-post-modal">
<div class='modal-loading'>
<i class="fa fa-spinner fa-spin"></i>
</div>
<div class="new-modal-container">
<!-- new post form -->
<?php if(current_user_can( 'edit_posts' )){
if(of_get_option('ph_full_content') == 0) {
$full = 'post-submission-full';
}else{
$full = '';
}
?>
<form class="post-submission <?php echo $full; ?>" id="post-submission">
<header class="modal-post-submission--header ph-newsubmit">
<div class='new-post-info'>
<h1><span><?php echo of_get_option('ph_newpost_title','Found something?'); ?></h1>
<h2><?php echo of_get_option('ph_newpost_subtitle','Hunt it'); ?></h2>
</div>
<div class='new-discuss-info hide'>
<h1><span><?php echo of_get_option('ph_newdis_title','Want to talk?'); ?></h1>
<h2><?php echo of_get_option('ph_newdis_subtitle','Discuss it'); ?></h2>
</div>
<?php if(of_get_option('ph_enable_marketplace') == 1){ ?>
<div class='new-woo-info hide'>
<h1><span><?php echo of_get_option('ph_newwoo_title','Got something to sell?'); ?></h1>
<h2><?php echo of_get_option('ph_newwoo_subtitle','Sell it'); ?></h2>
</div>
<?php } ?>
</header>
<input name='ph-post-or-dis' id='ph-post-or-dis' type='hidden' value=1/>
<div class="post-type-choice">
<?php do_action('ph_post_type_choice'); ?>
</div>
<div class="post-submission--body">
<?php do_action('ph_form_extras'); ?>
<div class="alert alert-warning alert-dismissible hide" role="alert" id='form-alert'>
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<strong><?php _e('Warning','pluginhunt'); ?></strong> <?php _e('You have not filled in the form correctly','pluginhunt'); ?>
</div>
<?php
if(of_get_option('ph_type_drop') == 1){
ph_type();
}
?>
<?php ph_category(); ?>
<?php ph_product_title(); ?>
<?php ph_discuss_title(); ?>
<?php if(of_get_option('ph_enable_marketplace')){ ?>
<?php ph_woo_form(); ?>
<?php } ?>
<?php ph_product_link(); ?>
<?php
if( of_get_option('ph_full_content') == 1) {
ph_product_excerpt();
}else{
ph_product_content();
}
ph_dis_content();
?>
<div class="post-submission--form-media-section post-submission--form-row">
<label class="form--label" for="media_url">
<span class="form--label-icon">
<svg width="16" height="14" viewBox="0 0 16 14" xmlns="http://www.w3.org/2000/svg"><path d="M14 1.167c0 .397.373.833 1 .833H1c.627 0 1-.436 1-.833v11.666C2 12.436 1.627 12 1 12h14c-.627 0-1 .436-1 .833V1.167zm2 0v11.666c0 .645-.448 1.167-1 1.167H1c-.552 0-1-.522-1-1.167V1.167C0 .522.448 0 1 0h14c.552 0 1 .522 1 1.167zM4 10l2.246-3.935 5.915 3.84L4 10zm6-5c0 .552.448 1 1 1s1-.448 1-1-.448-1-1-1-1 .448-1 1z" fill="#BBB" fill-rule="evenodd"></path>
</svg>
</span>
<span><?php _e('Media','pluginhunt');?></span>
</label>
<div class="post-submission--form-field-group">
<div class="form--field">
<input class="form--input" name="media_url" placeholder="<?php _e("Paste a direct link to an image or a YouTube video","pluginhunt");?>" type="text" id="media_url">
<div>
<a class="trigger-upload" href="#" id="_unique_name_button" data-pid='1'>+ <?php _e('Upload an image','pluginhunt');?></a><input accept="image/gif, image/jpeg, image/png" class="uploader" type="file">
<span class='invalid'><span>
</div>
</div>
<div class="media-items"></div>
</div>
</div>
<?php
if(of_get_option('ph_type_avail') == 1){
ph_availability();
}
?>
</div>
<div class="post-submission--footer"><input class="button ph-newsubmit-button" type="submit" value="<?php echo of_get_option('ph_newpost_cta'); ?>" data-reactid=".4.3.0"></div>
</form>
<?php }else{ ?>
<header class="modal--header">
<h1 class="modal--header--title"><?php _e('Posting on ','pluginhunt');?><?php echo get_bloginfo( 'name' ); ?></h1>
<p class="modal--header--description"><?php _e('An invite is needed to submit content','pluginhunt');?></p>
</header>
<div class="p-new-post">
<p class="s-p">
<?php echo of_get_option('ph_lockout'); ?>
</p>
<p class="s-p"><a href="<?php echo of_get_option('ph_faq');?>"><?php _e('Learn more about invites','pluginhunt');?></a></p>
</div>
<?php } ?>
<!-- end new post form -->
</div>
</div>
</div>
<!-- post modal -->
<div class="modal-overlay">
<a class="modal--close <?php echo $mc; ?>" href="javascript:;" title="Close">
<span>
<svg width="12" height="12" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">
<path d="M6 4.586l4.24-4.24c.395-.395 1.026-.392 1.416-.002.393.393.39 1.024 0 1.415L7.413 6l4.24 4.24c.395.395.392 1.026.002 1.416-.393.393-1.024.39-1.415 0L6 7.413l-4.24 4.24c-.395.395-1.026.392-1.416.002-.393-.393-.39-1.024 0-1.415L4.587 6 .347 1.76C-.05 1.364-.048.733.342.343c.393-.393 1.024-.39 1.415 0L6 4.587z" fill-rule="evenodd"></path>
</svg>
</span>
</a>
<div class="post-detail--navigation hide">
<button class="post-detail--navigation--button" data-action="open-modal" data-href="/tech/ultimate-startup-decision-maker" >
<span>
<svg width="7" height="11" viewBox="0 0 7 11" xmlns="http://www.w3.org/2000/svg">
<path d="M.256 5.498c0-.255.098-.51.292-.703L4.795.548C5.18.163 5.817.16 6.207.55c.393.393.392 1.023.002 1.412L2.67 5.5l3.54 3.538c.384.384.388 1.02-.003 1.412-.393.393-1.023.39-1.412.002L.548 6.205c-.192-.192-.29-.447-.29-.702z" fill="#948B88" fill-rule="evenodd"></path>
</svg>
</span>
</button>
<button class="post-detail--navigation--button" data-action="open-modal" data-modal-replace="true" title="Ultimate Startup Decision Maker">
<span data-reactid=".6.1.1.0">
<svg width="7" height="11" viewBox="0 0 7 11" xmlns="http://www.w3.org/2000/svg">
<path d="M6.744 5.502c0 .255-.098.51-.292.703l-4.247 4.247c-.385.385-1.022.388-1.412-.002C.4 10.057.4 9.427.79 9.038L4.33 5.5.79 1.962C.407 1.578.403.942.794.55 1.186.157 1.816.16 2.204.548l4.248 4.247c.192.192.29.447.29.702z" fill="#948B88" fill-rule="evenodd"></path>
</svg>
</span>
</button>
</div>
<div class="show-post-modal">
<div class='modal-loading'>
<i class="fa fa-spinner fa-spin"></i>
</div>
<div class="modal-container"></div>
</div>
</div>
</div>
<a id="ph-log-social-new" href="#animatedModal" style="display:none">.</a>