Files
easystream/data/data_cache/_c_tpl/c4508c2c8e6c1d3c14f2fcb802bc3b63751ee35d_0.file.tpl_browse.tpl.php
Krystie 092a8bc7ce refactor: organize codebase and remove redundant files
- 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
2026-03-30 16:34:45 -07:00

184 lines
11 KiB
PHP

<?php
/* Smarty version 4.5.3, created on 2025-10-18 02:42:16
from '/srv/easystream/f_templates/tpl_frontend/tpl_file/tpl_browse.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '4.5.3',
'unifunc' => 'content_68f2fe8836cb01_41683146',
'has_nocache_code' => false,
'file_dependency' =>
array (
'c4508c2c8e6c1d3c14f2fcb802bc3b63751ee35d' =>
array (
0 => '/srv/easystream/f_templates/tpl_frontend/tpl_file/tpl_browse.tpl',
1 => 1760749904,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_68f2fe8836cb01_41683146 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/srv/easystream/f_core/f_classes/class_smarty/plugins/function.generate_html.php','function'=>'smarty_function_generate_html',),));
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Browse <?php if ($_smarty_tpl->tpl_vars['type_display']->value == "video") {?>Videos<?php } elseif ($_smarty_tpl->tpl_vars['type_display']->value == "live") {?>Live Streams<?php } elseif ($_smarty_tpl->tpl_vars['type_display']->value == "image") {?>Images<?php } elseif ($_smarty_tpl->tpl_vars['type_display']->value == "audio") {?>Music<?php } elseif ($_smarty_tpl->tpl_vars['type_display']->value == "document") {?>Documents<?php } elseif ($_smarty_tpl->tpl_vars['type_display']->value == "blog") {?>Blogs<?php } elseif ($_smarty_tpl->tpl_vars['type_display']->value == "short") {?>Shorts<?php } else { ?>Content<?php }?> - EasyStream</title>
<link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['main_url']->value;?>
/f_templates/tpl_frontend/css/browse.css">
<style>
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; margin: 0; background: #f8f9fa; }
.header { background: #fff; border-bottom: 1px solid #e1e5e9; padding: 1rem 0; }
.header-content { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.logo { font-size: 1.5rem; font-weight: bold; color: #007bff; text-decoration: none; }
.nav { display: flex; gap: 2rem; }
.nav a { color: #495057; text-decoration: none; padding: 0.5rem 1rem; border-radius: 4px; transition: all 0.2s; }
.nav a:hover, .nav a.active { background: #007bff; color: white; }
.container { max-width: 1200px; margin: 0 auto; padding: 2rem 20px; }
.browse-header { margin-bottom: 2rem; }
.browse-title { font-size: 2rem; margin: 0 0 0.5rem 0; color: #212529; }
.browse-subtitle { color: #6c757d; margin: 0; }
.filters { background: white; padding: 1.5rem; border-radius: 8px; margin-bottom: 2rem; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.filter-tabs { display: flex; gap: 1rem; flex-wrap: wrap; }
.filter-tab { padding: 0.5rem 1rem; border: 1px solid #dee2e6; border-radius: 20px; background: white; color: #495057; text-decoration: none; transition: all 0.2s; }
.filter-tab:hover, .filter-tab.active { background: #007bff; color: white; border-color: #007bff; }
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.video-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: transform 0.2s; }
.video-card:hover { transform: translateY(-2px); }
.video-thumbnail { width: 100%; height: 160px; background: #f8f9fa; position: relative; overflow: hidden; }
.video-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.video-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.8); color: white; padding: 2px 6px; border-radius: 3px; font-size: 0.75rem; }
.video-info { padding: 1rem; }
.video-title { font-weight: 600; margin: 0 0 0.5rem 0; color: #212529; line-height: 1.3; }
.video-title a { color: inherit; text-decoration: none; }
.video-title a:hover { color: #007bff; }
.video-meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.channel-avatar { width: 24px; height: 24px; border-radius: 50%; }
.channel-name { color: #6c757d; font-size: 0.875rem; }
.video-stats { color: #6c757d; font-size: 0.875rem; }
.loading { text-align: center; padding: 3rem; color: #6c757d; }
.no-content { text-align: center; padding: 3rem; }
.no-content h3 { color: #495057; margin: 0 0 1rem 0; }
.no-content p { color: #6c757d; margin: 0; }
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.pagination a, .pagination span { padding: 0.5rem 1rem; border: 1px solid #dee2e6; border-radius: 4px; color: #495057; text-decoration: none; }
.pagination a:hover { background: #f8f9fa; }
.pagination .current { background: #007bff; color: white; border-color: #007bff; }
</style>
</head>
<body>
<header class="header">
<div class="header-content">
<a href="<?php echo $_smarty_tpl->tpl_vars['main_url']->value;?>
" class="logo">🎬 EasyStream</a>
<nav class="nav">
<a href="<?php echo $_smarty_tpl->tpl_vars['main_url']->value;?>
">Home</a>
<a href="<?php echo $_smarty_tpl->tpl_vars['main_url']->value;?>
/videos" <?php if ($_smarty_tpl->tpl_vars['type_display']->value == "video") {?>class="active"<?php }?>>Videos</a>
<a href="<?php echo $_smarty_tpl->tpl_vars['main_url']->value;?>
/broadcasts" <?php if ($_smarty_tpl->tpl_vars['type_display']->value == "live") {?>class="active"<?php }?>>Live</a>
<a href="<?php echo $_smarty_tpl->tpl_vars['main_url']->value;?>
/shorts" <?php if ($_smarty_tpl->tpl_vars['type_display']->value == "short") {?>class="active"<?php }?>>Shorts</a>
<a href="<?php echo $_smarty_tpl->tpl_vars['main_url']->value;?>
/pictures" <?php if ($_smarty_tpl->tpl_vars['type_display']->value == "image") {?>class="active"<?php }?>>Images</a>
<a href="<?php echo $_smarty_tpl->tpl_vars['main_url']->value;?>
/music" <?php if ($_smarty_tpl->tpl_vars['type_display']->value == "audio") {?>class="active"<?php }?>>Music</a>
<a href="<?php echo $_smarty_tpl->tpl_vars['main_url']->value;?>
/documents" <?php if ($_smarty_tpl->tpl_vars['type_display']->value == "document") {?>class="active"<?php }?>>Documents</a>
<a href="<?php echo $_smarty_tpl->tpl_vars['main_url']->value;?>
/blogs" <?php if ($_smarty_tpl->tpl_vars['type_display']->value == "blog") {?>class="active"<?php }?>>Blogs</a>
<a href="<?php echo $_smarty_tpl->tpl_vars['main_url']->value;?>
/upload">Upload</a>
<?php if ($_SESSION['USER_ID']) {?>
<a href="<?php echo $_smarty_tpl->tpl_vars['main_url']->value;?>
/account">Account</a>
<?php } else { ?>
<a href="<?php echo $_smarty_tpl->tpl_vars['main_url']->value;?>
/signin">Sign In</a>
<?php }?>
</nav>
</div>
</header>
<div class="container">
<div class="browse-header">
<h1 class="browse-title">
<?php if ($_smarty_tpl->tpl_vars['type_display']->value == "video") {?>📹 Videos
<?php } elseif ($_smarty_tpl->tpl_vars['type_display']->value == "live") {?>📺 Live Streams
<?php } elseif ($_smarty_tpl->tpl_vars['type_display']->value == "image") {?>🖼️ Images
<?php } elseif ($_smarty_tpl->tpl_vars['type_display']->value == "audio") {?>🎵 Music
<?php } elseif ($_smarty_tpl->tpl_vars['type_display']->value == "document") {?>📄 Documents
<?php } elseif ($_smarty_tpl->tpl_vars['type_display']->value == "blog") {?>📝 Blogs
<?php } elseif ($_smarty_tpl->tpl_vars['type_display']->value == "short") {?>🎬 Shorts
<?php } else { ?>📂 Browse Content
<?php }?>
</h1>
<p class="browse-subtitle">
<?php if ($_smarty_tpl->tpl_vars['type_display']->value == "video") {?>Discover amazing videos from creators around the world
<?php } elseif ($_smarty_tpl->tpl_vars['type_display']->value == "live") {?>Watch live streams and interact with creators
<?php } elseif ($_smarty_tpl->tpl_vars['type_display']->value == "image") {?>Browse beautiful images and photography
<?php } elseif ($_smarty_tpl->tpl_vars['type_display']->value == "audio") {?>Listen to music, podcasts, and audio content
<?php } elseif ($_smarty_tpl->tpl_vars['type_display']->value == "document") {?>Access documents, PDFs, and written content
<?php } elseif ($_smarty_tpl->tpl_vars['type_display']->value == "blog") {?>Read blogs and articles from our community
<?php } elseif ($_smarty_tpl->tpl_vars['type_display']->value == "short") {?>Quick, engaging short-form content
<?php } else { ?>Explore all types of content on EasyStream
<?php }?>
</p>
</div>
<div class="filters">
<div class="filter-tabs">
<a href="?sort=" class="filter-tab <?php if (!$_GET['sort']) {?>active<?php }?>">Latest</a>
<a href="?sort=featured" class="filter-tab <?php if ($_GET['sort'] == 'featured') {?>active<?php }?>">Featured</a>
<a href="?sort=views" class="filter-tab <?php if ($_GET['sort'] == 'views') {?>active<?php }?>">Most Viewed</a>
<?php if ($_smarty_tpl->tpl_vars['file_rating']->value == "1") {?>
<a href="?sort=likes" class="filter-tab <?php if ($_GET['sort'] == 'likes') {?>active<?php }?>">Most Liked</a>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['file_comments']->value == "1") {?>
<a href="?sort=comments" class="filter-tab <?php if ($_GET['sort'] == 'comments') {?>active<?php }?>">Most Commented</a>
<?php }?>
</div>
</div>
<div id="content-area">
<?php echo smarty_function_generate_html(array('type'=>"browse_layout",'bullet_id'=>"ct-bullet1",'entry_id'=>"ct-entry-details1",'section'=>"browse",'bb'=>"0"),$_smarty_tpl);?>
</div>
</div>
<?php echo '<script'; ?>
>
// Simple AJAX loading for pagination and filters
document.addEventListener('DOMContentLoaded', function() {
// Add loading states and smooth transitions
const contentArea = document.getElementById('content-area');
// Lazy loading for images
const images = document.querySelectorAll('img[data-src]');
const imageObserver = new IntersectionObserver((entries, observer) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
const img = entry.target;
img.src = img.dataset.src;
img.removeAttribute('data-src');
observer.unobserve(img);
}
});
});
images.forEach(img => imageObserver.observe(img));
});
<?php echo '</script'; ?>
>
</body>
</html>
<?php }
}