1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00

Add custom colors feature

This commit is contained in:
daniel 2020-04-23 08:13:20 -03:00
parent 7671ec08ee
commit 813a564f05
2 changed files with 24 additions and 0 deletions

20
admin/design_colors.php Normal file
View file

@ -0,0 +1,20 @@
<div class="panel panel-default">
<div class="panel-heading">Customize Your site colors <div class="pull-right"><?php echo getPluginSwitch('Customize'); ?></div></div>
<div class="panel-body" style="padding: 15px 30px;">
<?php
if (!AVideoPlugin::exists('Customize')) {
?>
<center>
<img src="<?php echo $global['webSiteRootURL'], "view/css/custom/customize.png"; ?>" class="img-responsive">
</center>
<div class="alert alert-info">
Truly customize your AVideo and create a more professional video sharing site experience for your visitors by removing or replacing the footer, about page and Meta Description with your own.
<a class="btn btn-info btn-sm btn-xs" href="https://youphp.tube/plugins/">Buy the Customize plugin now</a>
</div>
<?php
} else {
include '../plugin/Customize/page/colors.php';
}
?>
</div>
</div>

View file

@ -63,6 +63,7 @@ $menu = new MenuAdmin(__("Design"), "fas fa-pen-fancy");
$menu->addItem(new MenuAdmin(__("First Page Style"), "fas fa-columns", "design_first_page"));
$menu->addItem(new MenuAdmin(__("Player Skin"), "fas fa-play-circle", "design_player"));
$menu->addItem(new MenuAdmin(__("Themes"), "fas fa-palette", "design_themes"));
$menu->addItem(new MenuAdmin(__("Colors"), "fas fa-palette", "design_colors"));
//$menu->addItem(new MenuAdmin(__("Custom CSS"), "fab fa-css3-alt", "design_css"));
$itens[] = $menu;
@ -99,6 +100,9 @@ switch ($_GET['page']) {
case "design_themes":
$includeBody = $global['systemRootPath'] . 'admin/design_themes.php';
break;
case "design_colors":
$includeBody = $global['systemRootPath'] . 'admin/design_colors.php';
break;
case "design_player":
$includeBody = $global['systemRootPath'] . 'admin/design_player.php';
break;