PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / 1.0.93
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses v1.0.93
2.10.0 2.10.01 2.9.1 2.9.0 2.8.1 2.8.0 2.7.7 2.7.5 2.7.0 2.6.01 2.6.0 2.5.0 2.4.01 trunk 1.0.90 1.0.91 1.0.92 1.0.93 1.0.94 1.0.95 1.0.96 1.0.97 1.0.98 1.0.99 1.1.0 All 77 releases
fluent-community / app / Views / headless_page.php

headless_page.php in FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses 1.0.93, at app/Views/headless_page.php

101 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
2 <?php
3 /**
4 * @var $title string
5 * @var $description string
6 * @var $url string
7 * @var $featured_image string
8 * @var $css_files array
9 * @var $js_files array
10 * @var $js_vars array
11 * @var $scope string
12 */
13 ?>
14 <!DOCTYPE html>
15 <html lang='en'>
16 <head>
17 <title><?php echo esc_attr($title); ?></title>
18 <meta charset='utf-8'>
19
20 <meta name="viewport"
21 content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,viewport-fit=cover"/>
22 <meta name="mobile-web-app-capable" content="yes">
23 <meta name="description" content="<?php echo esc_attr($description); ?>">
24 <meta name="robots" content="noindex">
25 <link rel="icon" type="image/x-icon" href="<?php echo esc_url(get_site_icon_url()); ?>"/>
26
27 <meta property="og:type" content="website">
28 <meta property="og:url" content="<?php echo esc_url($url); ?>">
29 <meta property="og:site_name" content="<?php bloginfo('name'); ?>">
30 <meta property="og:description" content="<?php echo esc_attr($description); ?>">
31
32 <?php if ($featured_image): ?>
33 <meta property="og:image" content="<?php echo esc_url($featured_image); ?>"/>
34 <?php endif; ?>
35 <style>
36 .fluent_com, .fcom_full_layout {
37 display: block;
38 width: 100%;
39 }
40 </style>
41
42 <?php foreach ($css_files as $css_file): ?>
43 <link rel="stylesheet"
44 href="<?php echo esc_url($css_file); ?>?version=<?php echo esc_attr(FLUENT_COMMUNITY_PLUGIN_VERSION); ?>"
45 media="screen"/>
46 <?php endforeach; ?>
47 <?php do_action('fluent_community/headless/head', $scope); ?>
48 </head>
49 <body class="fcom_headless_page fcom_headless_scope_<?php echo esc_attr($scope); ?>">
50
51 <?php if ($layout == 'signup'): ?>
52 <div class="fcom_full_layout">
53 <div class="fcom_layout_side">
54 <div class="fcom_welcome">
55 <?php if($logo = \FluentCommunity\Framework\Support\Arr::get($portal, 'logo')): ?>
56 <div class="fcom_logo">
57 <a href="<?php echo esc_url(\FluentCommunity\App\Services\Helper::baseUrl()); ?>">
58 <img src="<?php echo esc_url($logo); ?>" alt="Site logo">
59 </a>
60 </div>
61 <?php endif; ?>
62 <h2 class="fcom_title">
63 <?php echo wp_kses_post(\FluentCommunity\Framework\Support\Arr::get($portal, 'title')); ?>
64 </h2>
65 <div class="fcom_sub_title">
66 <?php echo wp_kses_post(wp_kses_post(\FluentCommunity\Framework\Support\Arr::get($portal, 'description'))); ?>
67 </div>
68 </div>
69 </div>
70 <div class="fcom_layout_main">
71 <div class="fluent_com">
72 <?php do_action('fluent_community/headless/content', $scope); ?>
73 </div>
74 </div>
75 </div>
76 <?php else: ?>
77
78 <div class="fluent_com">
79 <?php do_action('fluent_community/headless/content', $scope); ?>
80 </div>
81
82 <?php endif; ?>
83
84 <script>
85 <?php foreach ($js_vars as $varKey => $values): ?>
86 var <?php echo esc_attr($varKey); ?> = <?php echo wp_json_encode($values); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>;
87 <?php endforeach; ?>
88 </script>
89
90 <?php do_action('fluent_community/headless/before_js_loaded', $scope); ?>
91
92 <?php foreach ($js_files as $file): ?>
93 <script type="module"
94 src="<?php echo esc_url($file); ?>?version=<?php echo esc_attr(FLUENT_COMMUNITY_PLUGIN_VERSION); ?>"
95 defer="defer"></script>
96 <?php endforeach; ?>
97
98 <?php do_action('fluent_community/headless/footer', $scope); ?>
99 </body>
100 </html>
101