092a8bc7ce
- Removed all backup/duplicate files - Removed test files from root - Consolidated documentation to /docs/ - Moved scripts to /scripts/ - Renamed f_* directories (removed prefix) - Organized icons and assets - Removed unused vendor directories - Cleaned up redundant config files
363 lines
11 KiB
PHP
363 lines
11 KiB
PHP
<?php
|
|
/* Smarty version 4.5.3, created on 2025-10-19 06:42:53
|
|
from '/srv/easystream/f_templates/tpl_frontend/tpl_index.tpl' */
|
|
|
|
/* @var Smarty_Internal_Template $_smarty_tpl */
|
|
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
|
'version' => '4.5.3',
|
|
'unifunc' => 'content_68f4886d8c2411_27407207',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'10c3ac981b04b8c83d5c3235e2a117c7a7bcdf38' =>
|
|
array (
|
|
0 => '/srv/easystream/f_templates/tpl_frontend/tpl_index.tpl',
|
|
1 => 1760856137,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
),
|
|
),false)) {
|
|
function content_68f4886d8c2411_27407207 (Smarty_Internal_Template $_smarty_tpl) {
|
|
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/srv/easystream/f_core/f_classes/class_smarty/plugins/function.href_entry.php','function'=>'smarty_function_href_entry',),));
|
|
if ($_smarty_tpl->tpl_vars['not_found']->value) {?>
|
|
<div class="pointer left-float wdmax" id="cb-response">
|
|
<!-- NOTIFICATION CONTAINER -->
|
|
<article>
|
|
<h2 class="content-title"><i class="icon-warning"></i>Not found</h2>
|
|
<div class="line"></div>
|
|
<p class="">The requested page was not found!</p>
|
|
<br>
|
|
</article>
|
|
<!-- END NOTIFICATION CONTAINER -->
|
|
<?php } else { ?>
|
|
<?php echo '<script'; ?>
|
|
type="text/javascript">
|
|
var current_url = '<?php echo $_smarty_tpl->tpl_vars['main_url']->value;?>
|
|
/';
|
|
var menu_section = '<?php echo smarty_function_href_entry(array('key'=>"index"),$_smarty_tpl);?>
|
|
';
|
|
<?php echo '</script'; ?>
|
|
>
|
|
|
|
<!-- HOMEPAGE CONTENT WITHIN EASYSTREAM LAYOUT -->
|
|
<div class="homepage-content">
|
|
<div class="hero-welcome">
|
|
<div class="hero-header">
|
|
<h1 class="welcome-title">Welcome to <?php echo $_smarty_tpl->tpl_vars['website_shortname']->value;?>
|
|
</h1>
|
|
<p class="welcome-subtitle">The ultimate platform for sharing and discovering amazing content</p>
|
|
</div>
|
|
|
|
<?php if ($_SESSION['USER_ID']) {?>
|
|
<div class="user-actions">
|
|
<h2>What would you like to do today?</h2>
|
|
<div class="action-grid">
|
|
<a href="<?php echo $_smarty_tpl->tpl_vars['main_url']->value;?>
|
|
/<?php echo smarty_function_href_entry(array('key'=>"upload"),$_smarty_tpl);?>
|
|
" class="action-card upload-card">
|
|
<i class="icon-upload"></i>
|
|
<h3>Upload Content</h3>
|
|
<p>Share your videos, images, audio, and documents</p>
|
|
</a>
|
|
<a href="<?php echo $_smarty_tpl->tpl_vars['main_url']->value;?>
|
|
/<?php echo smarty_function_href_entry(array('key'=>"browse"),$_smarty_tpl);?>
|
|
" class="action-card browse-card">
|
|
<i class="icon-video"></i>
|
|
<h3>Browse Videos</h3>
|
|
<p>Discover trending and popular content</p>
|
|
</a>
|
|
<a href="<?php echo $_smarty_tpl->tpl_vars['main_url']->value;?>
|
|
/<?php echo smarty_function_href_entry(array('key'=>"channels"),$_smarty_tpl);?>
|
|
" class="action-card channels-card">
|
|
<i class="icon-users"></i>
|
|
<h3>Explore Channels</h3>
|
|
<p>Find and follow your favorite creators</p>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<?php } else { ?>
|
|
<div class="guest-actions">
|
|
<h2>Join the EasyStream Community</h2>
|
|
<div class="auth-buttons">
|
|
<a href="<?php echo $_smarty_tpl->tpl_vars['main_url']->value;?>
|
|
/<?php echo smarty_function_href_entry(array('key'=>"signup"),$_smarty_tpl);?>
|
|
" class="btn-primary">Get Started</a>
|
|
<a href="<?php echo $_smarty_tpl->tpl_vars['main_url']->value;?>
|
|
/<?php echo smarty_function_href_entry(array('key'=>"signin"),$_smarty_tpl);?>
|
|
" class="btn-secondary">Sign In</a>
|
|
</div>
|
|
<p class="auth-description">Create an account to upload content, follow channels, and join the community</p>
|
|
</div>
|
|
<?php }?>
|
|
|
|
<div class="platform-stats">
|
|
<div class="stat-item">
|
|
<span class="stat-number">1,000+</span>
|
|
<span class="stat-label">Videos</span>
|
|
</div>
|
|
<div class="stat-item">
|
|
<span class="stat-number">50K+</span>
|
|
<span class="stat-label">Views</span>
|
|
</div>
|
|
<div class="stat-item">
|
|
<span class="stat-number">500+</span>
|
|
<span class="stat-label">Creators</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="features-showcase">
|
|
<h2>Platform Features</h2>
|
|
<div class="features-grid">
|
|
<div class="feature-item">
|
|
<i class="icon-video"></i>
|
|
<h3>Video Sharing</h3>
|
|
<p>Upload and share videos in multiple formats with the community</p>
|
|
</div>
|
|
<div class="feature-item">
|
|
<i class="icon-live"></i>
|
|
<h3>Live Streaming</h3>
|
|
<p>Broadcast live to your audience in real-time</p>
|
|
</div>
|
|
<div class="feature-item">
|
|
<i class="icon-image"></i>
|
|
<h3>Image Gallery</h3>
|
|
<p>Share and discover amazing photos and artwork</p>
|
|
</div>
|
|
<div class="feature-item">
|
|
<i class="icon-headphones"></i>
|
|
<h3>Audio Content</h3>
|
|
<p>Upload music, podcasts, and audio content</p>
|
|
</div>
|
|
<div class="feature-item">
|
|
<i class="icon-file"></i>
|
|
<h3>Document Sharing</h3>
|
|
<p>Share documents and educational materials</p>
|
|
</div>
|
|
<div class="feature-item">
|
|
<i class="icon-users"></i>
|
|
<h3>Community</h3>
|
|
<p>Connect with creators and build your audience</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<style>
|
|
.homepage-content {
|
|
padding: 20px;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.hero-welcome {
|
|
text-align: center;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.hero-header {
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.welcome-title {
|
|
font-size: 2.5rem;
|
|
color: #333;
|
|
margin-bottom: 10px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.welcome-subtitle {
|
|
font-size: 1.2rem;
|
|
color: #666;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.user-actions h2, .guest-actions h2 {
|
|
color: #333;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.action-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 20px;
|
|
margin: 30px 0;
|
|
}
|
|
|
|
.action-card {
|
|
background: white;
|
|
border: 2px solid #e9ecef;
|
|
border-radius: 12px;
|
|
padding: 30px 20px;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
color: #333;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.action-card:hover {
|
|
border-color: #007bff;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 16px rgba(0,0,0,0.15);
|
|
text-decoration: none;
|
|
color: #007bff;
|
|
}
|
|
|
|
.action-card i {
|
|
font-size: 3rem;
|
|
margin-bottom: 15px;
|
|
display: block;
|
|
}
|
|
|
|
.action-card h3 {
|
|
margin-bottom: 10px;
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.action-card p {
|
|
color: #666;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.auth-buttons {
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.btn-primary, .btn-secondary {
|
|
display: inline-block;
|
|
padding: 12px 30px;
|
|
margin: 0 10px;
|
|
border-radius: 6px;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: #007bff;
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #0056b3;
|
|
color: white;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: #6c757d;
|
|
color: white;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: #545b62;
|
|
color: white;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.auth-description {
|
|
color: #666;
|
|
font-size: 0.95rem;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.platform-stats {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 40px;
|
|
margin: 40px 0;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.stat-item {
|
|
text-align: center;
|
|
}
|
|
|
|
.stat-number {
|
|
display: block;
|
|
font-size: 2rem;
|
|
font-weight: bold;
|
|
color: #007bff;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 0.9rem;
|
|
color: #666;
|
|
}
|
|
|
|
.features-showcase {
|
|
margin-top: 50px;
|
|
}
|
|
|
|
.features-showcase h2 {
|
|
text-align: center;
|
|
color: #333;
|
|
margin-bottom: 30px;
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.features-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 25px;
|
|
}
|
|
|
|
.feature-item {
|
|
text-align: center;
|
|
padding: 20px;
|
|
background: #f8f9fa;
|
|
border-radius: 8px;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.feature-item:hover {
|
|
transform: translateY(-3px);
|
|
}
|
|
|
|
.feature-item i {
|
|
font-size: 2.5rem;
|
|
color: #007bff;
|
|
margin-bottom: 15px;
|
|
display: block;
|
|
}
|
|
|
|
.feature-item h3 {
|
|
color: #333;
|
|
margin-bottom: 10px;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.feature-item p {
|
|
color: #666;
|
|
font-size: 0.9rem;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.welcome-title {
|
|
font-size: 2rem;
|
|
}
|
|
.platform-stats {
|
|
gap: 20px;
|
|
}
|
|
.stat-number {
|
|
font-size: 1.5rem;
|
|
}
|
|
.auth-buttons {
|
|
text-align: center;
|
|
}
|
|
.btn-primary, .btn-secondary {
|
|
display: block;
|
|
margin: 10px auto;
|
|
max-width: 200px;
|
|
}
|
|
}
|
|
</style>
|
|
<?php }
|
|
}
|
|
}
|