adding the new control panel (2)
parent
5c7d0d84d7
commit
30bb631e5b
197
admin/add.php
197
admin/add.php
|
|
@ -1,197 +0,0 @@
|
||||||
<?
|
|
||||||
/* ===========================
|
|
||||||
|
|
||||||
gelato CMS development version
|
|
||||||
http://www.gelatocms.com/
|
|
||||||
|
|
||||||
gelato CMS is a free software licensed under GPL (General public license)
|
|
||||||
|
|
||||||
=========================== */
|
|
||||||
?>
|
|
||||||
<?
|
|
||||||
require_once('../config.php');
|
|
||||||
include("../classes/user.class.php");
|
|
||||||
include("../classes/gelato.class.php");
|
|
||||||
include("../classes/templates.class.php");
|
|
||||||
require_once("../classes/configuration.class.php");
|
|
||||||
|
|
||||||
$user = new user();
|
|
||||||
$tumble = new gelato();
|
|
||||||
$conf = new configuration();
|
|
||||||
$template = new plantillas("admin");
|
|
||||||
|
|
||||||
if ($user->isAdmin()) {
|
|
||||||
|
|
||||||
if(isset($_POST["btnAdd"])) {
|
|
||||||
unset($_POST["btnAdd"]);
|
|
||||||
|
|
||||||
|
|
||||||
if ($_POST["type"]=="2") { // is Photo type
|
|
||||||
if (isset($_POST["url"]) && $_POST["url"]!="") {
|
|
||||||
$photoName = getFileName($_POST["url"]);
|
|
||||||
if (!$tumble->savePhoto($_POST["url"])) {
|
|
||||||
header("Location: ".$conf->urlGelato."/admin/index.php?photo=false");
|
|
||||||
die();
|
|
||||||
}
|
|
||||||
$_POST["url"] = $conf->urlGelato."/uploads/".$photoName;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( move_uploaded_file( $_FILES['photo']['tmp_name'], "../uploads/".$_FILES['photo']['name'] ) ) {
|
|
||||||
$_POST["url"] = $conf->urlGelato."/uploads/".$_FILES['photo']['name'];
|
|
||||||
}
|
|
||||||
|
|
||||||
unset($_POST["photo"]);
|
|
||||||
unset($_POST["MAX_FILE_SIZE"]);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($_POST["type"]=="7") { // is MP3 type
|
|
||||||
set_time_limit(300);
|
|
||||||
$mp3Name = getFileName($_POST["url"]);
|
|
||||||
if (!$tumble->saveMP3($_POST["url"])) {
|
|
||||||
header("Location: ".$conf->urlGelato."/admin/index.php?mp3=false");
|
|
||||||
die();
|
|
||||||
}
|
|
||||||
$_POST["url"] = $conf->urlGelato."/uploads/".$mp3Name;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (get_magic_quotes_gpc()) {
|
|
||||||
$_POST["title"] = htmlspecialchars(stripslashes($_POST["title"]));
|
|
||||||
$_POST["description"] = htmlspecialchars(stripslashes($_POST["description"]));
|
|
||||||
} else {
|
|
||||||
$_POST["title"] = htmlspecialchars($_POST["title"]);
|
|
||||||
$_POST["description"] = htmlspecialchars($_POST["description"]);
|
|
||||||
}
|
|
||||||
|
|
||||||
$_POST["title"] = strip_tags($_POST["title"]);
|
|
||||||
$_POST["description"] = strip_tags($_POST["description"]);
|
|
||||||
|
|
||||||
|
|
||||||
if (isset($_POST["id_post"])) {
|
|
||||||
//$tumble->modifyPost($_POST, $_POST["id_post"]);
|
|
||||||
} else {
|
|
||||||
if ($tumble->addPost($_POST)) {
|
|
||||||
header("Location: ".$conf->urlGelato."/admin/index.php?added=true");
|
|
||||||
die();
|
|
||||||
} else {
|
|
||||||
header("Location: ".$conf->urlGelato."/admin/index.php?error=2&des=".$this->merror);
|
|
||||||
die();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} elseif (isset($_GET["new"])) {
|
|
||||||
?>
|
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
||||||
<head>
|
|
||||||
<title>gelato</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
||||||
<link rel="shortcut icon" href="<?=$conf->urlGelato;?>/images/favicon.ico" />
|
|
||||||
<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/tools.js"></script>
|
|
||||||
<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/mootools.js"></script>
|
|
||||||
<style type="text/css" media="screen">
|
|
||||||
@import "<?=$conf->urlGelato;?>/admin/css/style-codice.css";
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="div-process" style="display:none;">Processing request...</div>
|
|
||||||
<div id="titulo">
|
|
||||||
<img src="<?=$conf->urlGelato;?>/images/logo.jpg" alt="gelato CMS" title="gelato CMS" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="menuContenedor">
|
|
||||||
<ul>
|
|
||||||
<li id="active"><a href="#" id="current">Posts</a></li>
|
|
||||||
<ul>
|
|
||||||
<li id="subactive"><a href="#" id="subcurrent">Add</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li><a href="index.php">Control Panel</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="contenido">
|
|
||||||
<div class="center">
|
|
||||||
<div class="ventana">
|
|
||||||
<p class="titulo"><span class="handle">Add content</span></p>
|
|
||||||
<div id="formulario">
|
|
||||||
<form action="add.php" method="post" <?=($_GET["new"]=="photo") ? "enctype=\"multipart/form-data\"" : ""?> name="frmAdd">
|
|
||||||
<fieldset>
|
|
||||||
<?
|
|
||||||
switch ($_GET["new"]) {
|
|
||||||
case "post":
|
|
||||||
$input = array("{type}", "{date}", "{id_user}");
|
|
||||||
$output = array("1", time(), $_SESSION['user_id']);
|
|
||||||
|
|
||||||
$template->cargarPlantilla($input, $output, "template_add_post");
|
|
||||||
$template->mostrarPlantilla();
|
|
||||||
break;
|
|
||||||
case "photo":
|
|
||||||
$input = array("{type}", "{date}", "{id_user}");
|
|
||||||
$output = array("2", time(), $_SESSION['user_id']);
|
|
||||||
|
|
||||||
$template->cargarPlantilla($input, $output, "template_add_photo");
|
|
||||||
$template->mostrarPlantilla();
|
|
||||||
break;
|
|
||||||
case "quote":
|
|
||||||
$input = array("{type}", "{date}", "{id_user}");
|
|
||||||
$output = array("3", time(), $_SESSION['user_id']);
|
|
||||||
|
|
||||||
$template->cargarPlantilla($input, $output, "template_add_quote");
|
|
||||||
$template->mostrarPlantilla();
|
|
||||||
break;
|
|
||||||
case "url":
|
|
||||||
$input = array("{type}", "{date}", "{id_user}");
|
|
||||||
$output = array("4", time(), $_SESSION['user_id']);
|
|
||||||
|
|
||||||
$template->cargarPlantilla($input, $output, "template_add_link");
|
|
||||||
$template->mostrarPlantilla();
|
|
||||||
break;
|
|
||||||
case "conversation":
|
|
||||||
$input = array("{type}", "{date}", "{id_user}");
|
|
||||||
$output = array("5", time(), $_SESSION['user_id']);
|
|
||||||
|
|
||||||
$template->cargarPlantilla($input, $output, "template_add_conversation");
|
|
||||||
$template->mostrarPlantilla();
|
|
||||||
break;
|
|
||||||
case "video":
|
|
||||||
$input = array("{type}", "{date}", "{id_user}");
|
|
||||||
$output = array("6", time(), $_SESSION['user_id']);
|
|
||||||
|
|
||||||
$template->cargarPlantilla($input, $output, "template_add_video");
|
|
||||||
$template->mostrarPlantilla();
|
|
||||||
break;
|
|
||||||
case "mp3":
|
|
||||||
$input = array("{type}", "{date}", "{id_user}");
|
|
||||||
$output = array("7", time(), $_SESSION['user_id']);
|
|
||||||
|
|
||||||
$template->cargarPlantilla($input, $output, "template_add_mp3");
|
|
||||||
$template->mostrarPlantilla();
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
echo "<div class=\"error\">The specified type is not valid.</div>";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<p>
|
|
||||||
<input class="submit" type="submit" name="btnAdd" value="Create post" />
|
|
||||||
<a href="#" onclick="if (confirm('Cancel editing this post? All changes will be lost.'))
|
|
||||||
{location.href='index.php';}; return false;">Cancel</a>
|
|
||||||
</p>
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="pie">
|
|
||||||
<p>
|
|
||||||
<a href="http://www.gelatocms.com/" title="gelato CMS" target="_blank">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
<?
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
header("Location: ".$conf->urlGelato."/login.php");
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 715 B |
Binary file not shown.
|
After Width: | Height: | Size: 807 B |
|
Before Width: | Height: | Size: 342 B After Width: | Height: | Size: 342 B |
Binary file not shown.
|
Before Width: | Height: | Size: 379 B |
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
|
|
@ -1,4 +1,11 @@
|
||||||
/* CSS Document created by Jorge Condomi */
|
/* ===========================
|
||||||
|
|
||||||
|
gelato CMS development version
|
||||||
|
http://www.gelatocms.com/
|
||||||
|
|
||||||
|
gelato CMS is a free software licensed under GPL (General public license)
|
||||||
|
|
||||||
|
=========================== */
|
||||||
|
|
||||||
|
|
||||||
/************ BASICS *************/
|
/************ BASICS *************/
|
||||||
|
|
@ -62,8 +69,14 @@ form.newpost textarea{background: #fff url(images/grad-big.png) top left repeat-
|
||||||
.entry{ background-color:#efefef; border:1px solid #ccc; margin:20px 15px;}
|
.entry{ background-color:#efefef; border:1px solid #ccc; margin:20px 15px;}
|
||||||
.info{ border-bottom:1px solid #aaa; position:relative; display:block; padding:4px 10px; height:20px; }
|
.info{ border-bottom:1px solid #aaa; position:relative; display:block; padding:4px 10px; height:20px; }
|
||||||
.info p{font-size:0.8em; color:#297aab; display:inline;}
|
.info p{font-size:0.8em; color:#297aab; display:inline;}
|
||||||
form.compact{ float:right; margin:-2px 0 0 0; padding:0;}
|
|
||||||
|
|
||||||
|
.compact{ float:right; margin:-2px 0 0 0; padding:0;}
|
||||||
|
.compact img{ border:0px; }
|
||||||
|
.compact a { color:#297aab; font-size:0.8em; }
|
||||||
|
.compact a:link { color:#297aab; font-size:0.8em; }
|
||||||
|
.compact a:visited { color:#297aab; font-size:0.8em; }
|
||||||
|
.compact a:active { color:#297aab; font-size:0.8em; }
|
||||||
|
.compact a:hover { color:#297aab; font-size:0.8em; }
|
||||||
|
|
||||||
.post{ padding:10px;}
|
.post{ padding:10px;}
|
||||||
.post h4{ font-style:italic; font-weight:bold; }
|
.post h4{ font-style:italic; font-weight:bold; }
|
||||||
|
|
@ -98,7 +111,10 @@ form.compact{ float:right; margin:-2px 0 0 0; padding:0;}
|
||||||
color:#011940;
|
color:#011940;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Mensajes para el usuario */
|
a.linkFrm, a.linkFrm:link, a.linkFrm:visited, a.linkFrm:active{ color:#297aab; text-decoration:none; outline:none;}
|
||||||
|
a.linkFrm:hover{ text-decoration:underline; color:#297aab; outline:none;}
|
||||||
|
|
||||||
|
/* User messages */
|
||||||
|
|
||||||
.error {
|
.error {
|
||||||
width:80%;
|
width:80%;
|
||||||
|
|
@ -126,3 +142,69 @@ form.compact{ float:right; margin:-2px 0 0 0; padding:0;}
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 5px 20px 5px 45px;
|
padding: 5px 20px 5px 45px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Pagination */
|
||||||
|
|
||||||
|
div.pagination {
|
||||||
|
text-align:center;
|
||||||
|
padding:3px;
|
||||||
|
margin:3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.pagination a {
|
||||||
|
padding: 2px 5px 2px 5px;
|
||||||
|
margin-right: 2px;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
|
||||||
|
text-decoration: none;
|
||||||
|
color: #aaa;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.pagination a:hover, div.pagination a:active {
|
||||||
|
padding: 2px 5px 2px 5px;
|
||||||
|
margin-right: 2px;
|
||||||
|
border: 1px solid #a0a0a0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.pagination span.current {
|
||||||
|
padding: 2px 5px 2px 5px;
|
||||||
|
margin-right: 2px;
|
||||||
|
border: 1px solid #e0e0e0;
|
||||||
|
font-weight: bold;
|
||||||
|
background-color: #f0f0f0;
|
||||||
|
color: #aaa;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.pagination span.disabled {
|
||||||
|
padding: 2px 5px 2px 5px;
|
||||||
|
margin-right: 2px;
|
||||||
|
border: 1px solid #f3f3f3;
|
||||||
|
color: #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Conversation Post */
|
||||||
|
div.conversation ul {
|
||||||
|
list-style-type: none;
|
||||||
|
margin: 0px;
|
||||||
|
padding: 0px 0px 0px 1px;
|
||||||
|
border-left: solid 5px #555;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.conversation ul li {
|
||||||
|
font-size: 12px;
|
||||||
|
padding: 4px 0px 4px 8px;
|
||||||
|
color: #000;
|
||||||
|
margin-bottom: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.conversation ul li span.label {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.conversation ul li.odd {
|
||||||
|
background-color: #f4f4f4;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.conversation ul li.even {
|
||||||
|
background-color: #e8e8e8;
|
||||||
|
}
|
||||||
|
|
|
||||||
155
admin/index.php
155
admin/index.php
|
|
@ -11,7 +11,9 @@
|
||||||
<?
|
<?
|
||||||
require_once('../config.php');
|
require_once('../config.php');
|
||||||
include("../classes/user.class.php");
|
include("../classes/user.class.php");
|
||||||
|
include("../classes/pagination.php");
|
||||||
include("../classes/gelato.class.php");
|
include("../classes/gelato.class.php");
|
||||||
|
include("../classes/textile.class.php");
|
||||||
include("../classes/templates.class.php");
|
include("../classes/templates.class.php");
|
||||||
require_once("../classes/configuration.class.php");
|
require_once("../classes/configuration.class.php");
|
||||||
|
|
||||||
|
|
@ -88,6 +90,7 @@ if ($user->isAdmin()) {
|
||||||
<link rel="shortcut icon" href="<?=$conf->urlGelato;?>/images/favicon.ico" />
|
<link rel="shortcut icon" href="<?=$conf->urlGelato;?>/images/favicon.ico" />
|
||||||
<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/tools.js"></script>
|
<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/tools.js"></script>
|
||||||
<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/mootools.js"></script>
|
<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/mootools.js"></script>
|
||||||
|
<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/slimbox.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
<!--
|
<!--
|
||||||
function exit(el, path) {
|
function exit(el, path) {
|
||||||
|
|
@ -107,7 +110,6 @@ if ($user->isAdmin()) {
|
||||||
contenedor = new Fx.Style('divMessages', 'opacity', {duration: 5000, onComplete:
|
contenedor = new Fx.Style('divMessages', 'opacity', {duration: 5000, onComplete:
|
||||||
function() {
|
function() {
|
||||||
document.getElementById('divMessages').style.display="none";
|
document.getElementById('divMessages').style.display="none";
|
||||||
document.getElementById('pMessages').style.display="none";
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
contenedor.custom(1,0);
|
contenedor.custom(1,0);
|
||||||
|
|
@ -116,6 +118,7 @@ if ($user->isAdmin()) {
|
||||||
</script>
|
</script>
|
||||||
<style type="text/css" media="screen">
|
<style type="text/css" media="screen">
|
||||||
@import "<?=$conf->urlGelato;?>/admin/css/style.css";
|
@import "<?=$conf->urlGelato;?>/admin/css/style.css";
|
||||||
|
@import "<?=$conf->urlGelato;?>/admin/css/slimbox.css";
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
@ -126,56 +129,56 @@ if ($user->isAdmin()) {
|
||||||
<h1><a href="<?=$conf->urlGelato;?>/admin/index.php" title="gelato :: home">gelato cms</a></h1>
|
<h1><a href="<?=$conf->urlGelato;?>/admin/index.php" title="gelato :: home">gelato cms</a></h1>
|
||||||
<ul id="nav">
|
<ul id="nav">
|
||||||
<li><a href="<?=$conf->urlGelato;?>/" title="Take me to the tumblelog">View Tumblelog</a></li>
|
<li><a href="<?=$conf->urlGelato;?>/" title="Take me to the tumblelog">View Tumblelog</a></li>
|
||||||
<li><a href="close.php" onclick="return exit('div-process','<?=$conf->urlGelato;?>/admin/ajax.php?action=close');">Log out</a></li>
|
<li><a href="close.php" title="Log off" onclick="return exit('div-process','<?=$conf->urlGelato;?>/admin/ajax.php?action=close');">Log out</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div id="main">
|
<div id="main">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<ul class="menu">
|
<ul class="menu">
|
||||||
<h3>New Post</h3>
|
<h3>New Post</h3>
|
||||||
<li><a href="<?=$conf->urlGelato;?>/admin/index.php?new=conversation"><img src="css/images/comments.png" alt="New chat" /> Chat</a></li>
|
<li <? echo ($_GET["new"]=="conversation") ? "class=\"selected\"" : ""; ?>><a href="<?=$conf->urlGelato;?>/admin/index.php?new=conversation"><img src="css/images/comments.png" alt="New chat" /> Chat</a></li>
|
||||||
<li><a href="<?=$conf->urlGelato;?>/admin/index.php?new=quote"><img src="css/images/comments.png" alt="New qoute" /> Quote</a></li>
|
<li <? echo ($_GET["new"]=="quote") ? "class=\"selected\"" : ""; ?>><a href="<?=$conf->urlGelato;?>/admin/index.php?new=quote"><img src="css/images/quote.png" alt="New qoute" /> Quote</a></li>
|
||||||
<li><a href="<?=$conf->urlGelato;?>/admin/index.php?new=url"><img src="css/images/world.png" alt="New link" /> Link</a></li>
|
<li <? echo ($_GET["new"]=="url") ? "class=\"selected\"" : ""; ?>><a href="<?=$conf->urlGelato;?>/admin/index.php?new=url"><img src="css/images/world.png" alt="New link" /> Link</a></li>
|
||||||
<li><a href="<?=$conf->urlGelato;?>/admin/index.php?new=mp3"><img src="css/images/music.png" alt="New audio" /> Audio</a></li>
|
<li <? echo ($_GET["new"]=="mp3") ? "class=\"selected\"" : ""; ?>><a href="<?=$conf->urlGelato;?>/admin/index.php?new=mp3"><img src="css/images/music.png" alt="New audio" /> Audio</a></li>
|
||||||
<li><a href="<?=$conf->urlGelato;?>/admin/index.php?new=video"><img src="css/images/film.png" alt="New video" /> Video</a></li>
|
<li <? echo ($_GET["new"]=="video") ? "class=\"selected\"" : ""; ?>><a href="<?=$conf->urlGelato;?>/admin/index.php?new=video"><img src="css/images/film.png" alt="New video" /> Video</a></li>
|
||||||
<li><a href="<?=$conf->urlGelato;?>/admin/index.php?new=photo"><img src="css/images/image.png" alt="New picture" /> Picture</a></li>
|
<li <? echo ($_GET["new"]=="photo") ? "class=\"selected\"" : ""; ?>><a href="<?=$conf->urlGelato;?>/admin/index.php?new=photo"><img src="css/images/image.png" alt="New picture" /> Picture</a></li>
|
||||||
<li class="selected"><a href="<?=$conf->urlGelato;?>/admin/index.php?new=post"><img src="css/images/page_white_text.png" alt="New post" /> Regular</a></li>
|
<li <? echo ($_GET["new"]=="post") ? "class=\"selected\"" : ""; echo (!isset($_GET["new"])) ? "class=\"selected\"" : ""; ?>><a href="<?=$conf->urlGelato;?>/admin/index.php?new=post"><img src="css/images/page.png" alt="New post" /> Regular</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<p> </p>
|
||||||
<?
|
<?
|
||||||
if (isset($_GET["deleted"])) {
|
if (isset($_GET["deleted"])) {
|
||||||
if ($_GET["deleted"]=="true") {
|
if ($_GET["deleted"]=="true") {
|
||||||
echo "<p id=\"pMessages\"> </p><div class=\"exito\" id=\"divMessages\">The article has been eliminated successfully.</div>";
|
echo "<div class=\"exito\" id=\"divMessages\">The article has been eliminated successfully.</div>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_GET["modified"])) {
|
if (isset($_GET["modified"])) {
|
||||||
if ($_GET["modified"]=="true") {
|
if ($_GET["modified"]=="true") {
|
||||||
echo "<p id=\"pMessages\"> </p><div class=\"exito\" id=\"divMessages\">The article has been modified successfully.</div>";
|
echo "<div class=\"exito\" id=\"divMessages\">The article has been modified successfully.</div>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_GET["added"])) {
|
if (isset($_GET["added"])) {
|
||||||
if ($_GET["added"]=="true") {
|
if ($_GET["added"]=="true") {
|
||||||
echo "<p id=\"pMessages\"> </p><div class=\"exito\" id=\"divMessages\">The article has been added successfully.</div>";
|
echo "<div class=\"exito\" id=\"divMessages\">The article has been added successfully.</div>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_GET["error"])) {
|
if (isset($_GET["error"])) {
|
||||||
if ($_GET["error"]==2) {
|
if ($_GET["error"]==2) {
|
||||||
echo "<p id=\"pMessages\"> </p><div class=\"error\"><strong>Error on the database server: </strong>".$_GET["des"]."</div>";
|
echo "<div class=\"error\"><strong>Error on the database server: </strong>".$_GET["des"]."</div>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_GET["mp3"])) {
|
if (isset($_GET["mp3"])) {
|
||||||
if ($_GET["mp3"]=="false") {
|
if ($_GET["mp3"]=="false") {
|
||||||
echo "<p id=\"pMessages\"> </p><div class=\"error\" id=\"divMessages\">Not an MP3 file or an upload problem.</div>";
|
echo "<div class=\"error\" id=\"divMessages\">Not an MP3 file or an upload problem.</div>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_GET["photo"])) {
|
if (isset($_GET["photo"])) {
|
||||||
if ($_GET["photo"]=="false") {
|
if ($_GET["photo"]=="false") {
|
||||||
echo "<p id=\"pMessages\"> </p><div class=\"error\" id=\"divMessages\">Not a photo file or an upload problem.</div>";
|
echo "<div class=\"error\" id=\"divMessages\">Not a photo file or an upload problem.</div>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
@ -242,9 +245,7 @@ if ($user->isAdmin()) {
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<p>
|
<p>
|
||||||
<input class="btn" type="submit" name="btnAdd" value="Create post" />
|
<input class="btn" type="submit" name="btnAdd" value="Create post" />
|
||||||
<a href="#" onclick="if (confirm('Cancel editing this post? All changes will be lost.'))
|
|
||||||
{location.href='index.php';}; return false;">Cancel</a>
|
|
||||||
</p>
|
</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
|
@ -260,27 +261,103 @@ if ($user->isAdmin()) {
|
||||||
<li class="selected"><a href="#">Posts</a></li>
|
<li class="selected"><a href="#">Posts</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="entry">
|
<?
|
||||||
<div class="info"><form class="compact"><input type="submit" value="Edit" /> <input type="submit" value="Delete" /></form>
|
if (isset($_GET["page"])) {
|
||||||
<p>25/05 Regular Post (0 Comments) </p>
|
$page_num = $_GET["page"];
|
||||||
</div>
|
} else {
|
||||||
<div class="post">
|
$page_num = NULL;
|
||||||
<span class="option">(no title)</span>
|
}
|
||||||
<p>I just discovered Gelato</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="entry">
|
$limit=$conf->postLimit;
|
||||||
<div class="info"><form class="compact"><input type="submit" value="Edit" /> <input type="submit" value="Delete" /></form>
|
|
||||||
<p>25/05 Regular Post (0 Comments) </p>
|
|
||||||
</div>
|
|
||||||
<div class="post">
|
|
||||||
<h4>One with a title</h4>
|
|
||||||
<p>Another entry, this one has some varations in the content, even dares
|
|
||||||
to be in two lines.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
if(isset($page_num) && is_numeric($page_num) && $page_num>0) { // Is defined the page and is numeric?
|
||||||
|
$from = (($page_num-1) * $limit);
|
||||||
|
} else {
|
||||||
|
$from = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
$rs = $tumble->getPosts($limit, $from);
|
||||||
|
|
||||||
|
if ($tumble->contarRegistros()>0) {
|
||||||
|
while($register = mysql_fetch_array($rs)) {
|
||||||
|
$formatedDate = date("M d", strtotime($register["date"]));
|
||||||
|
$permalink = $conf->urlGelato."/index.php/post/".$register["id_post"]."/";
|
||||||
|
|
||||||
|
$textile = new Textile;
|
||||||
|
$register["description"] = $textile->process(str_replace(""", "\"", $register["description"]));
|
||||||
|
|
||||||
|
switch ($tumble->getType($register["id_post"])) {
|
||||||
|
case "1":
|
||||||
|
$input = array("{Id_Post}", "{Date_Added}", "{Permalink}", "{Title}", "{Body}", "{URL_Tumble}");
|
||||||
|
$output = array($register["id_post"], $formatedDate, $permalink, $register["title"], $register["description"], $conf->urlGelato);
|
||||||
|
|
||||||
|
$template->cargarPlantilla($input, $output, "template_regular_post");
|
||||||
|
$template->mostrarPlantilla();
|
||||||
|
break;
|
||||||
|
case "2":
|
||||||
|
$fileName = "../uploads/".getFileName($register["url"]);
|
||||||
|
|
||||||
|
$x = @getimagesize($fileName);
|
||||||
|
if ($x[0] > 100) {
|
||||||
|
$photoPath = $conf->urlGelato."/classes/imgsize.php?w=100&img=".$register["url"];
|
||||||
|
} else {
|
||||||
|
$photoPath = $register["url"];
|
||||||
|
}
|
||||||
|
|
||||||
|
$effect = " style=\"cursor: pointer;\" onclick=\"Lightbox.show('".$register["url"]."', '".strip_tags($register["description"])."');\" ";
|
||||||
|
|
||||||
|
$input = array("{Id_Post}", "{Date_Added}", "{Permalink}", "{PhotoURL}", "{PhotoAlt}", "{Caption}", "{Effect}", "{URL_Tumble}");
|
||||||
|
$output = array($register["id_post"], $formatedDate, $permalink, $photoPath, strip_tags($register["description"]), $register["description"], $effect, $conf->urlGelato);
|
||||||
|
|
||||||
|
$template->cargarPlantilla($input, $output, "template_photo");
|
||||||
|
$template->mostrarPlantilla();
|
||||||
|
break;
|
||||||
|
case "3":
|
||||||
|
$input = array("{Id_Post}", "{Date_Added}", "{Permalink}", "{Quote}", "{Source}", "{URL_Tumble}");
|
||||||
|
$output = array($register["id_post"], $formatedDate, $permalink, $register["description"], $register["title"], $conf->urlGelato);
|
||||||
|
|
||||||
|
$template->cargarPlantilla($input, $output, "template_quote");
|
||||||
|
$template->mostrarPlantilla();
|
||||||
|
break;
|
||||||
|
case "4":
|
||||||
|
$input = array("{Id_Post}", "{Date_Added}", "{Permalink}", "{URL}", "{Name}", "{Description}", "{URL_Tumble}");
|
||||||
|
$output = array($register["id_post"], $formatedDate, $permalink, $register["url"], $register["title"], $register["description"], $conf->urlGelato);
|
||||||
|
|
||||||
|
$template->cargarPlantilla($input, $output, "template_url");
|
||||||
|
$template->mostrarPlantilla();
|
||||||
|
break;
|
||||||
|
case "5":
|
||||||
|
$input = array("{Id_Post}", "{Date_Added}", "{Permalink}", "{Title}", "{Conversation}", "{URL_Tumble}");
|
||||||
|
$output = array($register["id_post"], $formatedDate, $permalink, $register["title"], $tumble->formatConversation($register["description"]), $conf->urlGelato);
|
||||||
|
|
||||||
|
$template->cargarPlantilla($input, $output, "template_conversation");
|
||||||
|
$template->mostrarPlantilla();
|
||||||
|
break;
|
||||||
|
case "6":
|
||||||
|
$input = array("{Id_Post}", "{Date_Added}", "{Permalink}", "{Video}", "{Caption}", "{URL_Tumble}");
|
||||||
|
$output = array($register["id_post"], $formatedDate, $permalink, $tumble->getVideoPlayer($register["url"]), $register["description"], $conf->urlGelato);
|
||||||
|
|
||||||
|
$template->cargarPlantilla($input, $output, "template_video");
|
||||||
|
$template->mostrarPlantilla();
|
||||||
|
break;
|
||||||
|
case "7":
|
||||||
|
$input = array("{Id_Post}", "{Date_Added}", "{Permalink}", "{Mp3}", "{Caption}", "{URL_Tumble}");
|
||||||
|
$output = array($register["id_post"], $formatedDate, $permalink, $tumble->getMp3Player($register["url"]), $register["description"], $conf->urlGelato);
|
||||||
|
|
||||||
|
$template->cargarPlantilla($input, $output, "template_mp3");
|
||||||
|
$template->mostrarPlantilla();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
echo pagination($tumble->getPostsNumber(), $limit, isset($page_num) ? $page_num : 1, "index.php", 2);
|
||||||
|
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$template->renderizaEtiqueta("No posts in this tumblelog.", "div","error");
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
<div class="footer-box"> </div>
|
<div class="footer-box"> </div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,10 @@
|
||||||
<legend>Add a Conversation</legend>
|
|
||||||
<p>
|
<p>
|
||||||
<label for="title"><strong>Title</strong> <em>(optional)</em></label>
|
<label for="title">Title <span class="option">(optional)</span></label>
|
||||||
<input class="input-text" type="text" name="title" id="title" size="80" />
|
<input class="txt" type="text" name="title" id="title" size="80" />
|
||||||
</p>
|
</p>
|
||||||
<input type="hidden" name="url" id="url" value="" />
|
<input type="hidden" name="url" id="url" value="" />
|
||||||
<p>
|
<p>
|
||||||
<label for="description"><strong>Conversation</strong></label><br />
|
<label for="description">Conversation</label><br />
|
||||||
<div style="color: rgb(136, 136, 136); margin-bottom: 10px; font-size: 10px;">
|
<div style="color: rgb(136, 136, 136); margin-bottom: 10px; font-size: 10px;">
|
||||||
<span style="font-weight: bold;">Example</span><br>
|
<span style="font-weight: bold;">Example</span><br>
|
||||||
<span style="font-style: italic;">
|
<span style="font-style: italic;">
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,17 @@
|
||||||
<legend>Add a Link</legend>
|
|
||||||
<p>
|
<p>
|
||||||
<label for="title"><strong>Name</strong> <em>(optional)</em></label>
|
<label for="title">Name <span class="option">(optional)</span></label>
|
||||||
<input class="input-text" type="text" name="title" id="title" size="80" />
|
<input class="txt" type="text" name="title" id="title" size="80" />
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<label for="url"><strong>URL</strong></label>
|
<label for="url">URL</label>
|
||||||
<input class="input-text" type="text" name="url" id="url" size="80" />
|
<input class="txt" type="text" name="url" id="url" size="80" />
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<div id="add_link_description" style="margin-top:20px;">
|
<div id="add_link_description" style="margin-top:5px;">
|
||||||
<a href="#" onclick="document.getElementById('link_description').style.display = ''; document.getElementById('add_link_description').style.display = 'none'; return false;" style="font-size:11px;">Add a description</a>
|
<a class="linkFrm" href="#" onclick="document.getElementById('link_description').style.display = ''; document.getElementById('add_link_description').style.display = 'none'; return false;" style="font-size:11px;">Add a description</a><br /><br />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="link_description" style="display:none;">
|
<div id="link_description" style="display:none;">
|
||||||
<label for="description"><strong>Description</strong></label><br />
|
<label for="description">Description</label><br />
|
||||||
<textarea rows="12" cols="84" name="description" id="description"></textarea>
|
<textarea rows="12" cols="84" name="description" id="description"></textarea>
|
||||||
</div>
|
</div>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,13 @@
|
||||||
<legend>Add an MP3</legend>
|
|
||||||
<input type="hidden" name="title" id="title" value="" />
|
<input type="hidden" name="title" id="title" value="" />
|
||||||
<p>
|
<p>
|
||||||
<label for="url"><strong>MP3 URL</strong></label>
|
<label for="url">MP3 URL</label>
|
||||||
<input class="input-text" type="text" name="url" id="url" size="80" />
|
<input class="txt" type="text" name="url" id="url" size="80" />
|
||||||
<div style="color: rgb(136, 136, 136); margin-bottom: 5px; font-size: 11px; font-weight: bold;">
|
<div style="color: rgb(136, 136, 136); margin-bottom: 5px; font-size: 11px; font-weight: bold;">
|
||||||
This is a URL from the Mp3 file.
|
This is the MP3 file URL.
|
||||||
</div>
|
</div>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<label for="description"><strong>Caption</strong> <em>(optional)</em></label><br />
|
<label for="description">Caption <span class="option">(optional)</span></label><br />
|
||||||
<textarea rows="12" cols="84" name="description" id="description" tabindex="2"></textarea>
|
<textarea rows="12" cols="84" name="description" id="description" tabindex="2"></textarea>
|
||||||
</p>
|
</p>
|
||||||
<input type="hidden" name="type" id="type" value="{type}" />
|
<input type="hidden" name="type" id="type" value="{type}" />
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,20 @@
|
||||||
<legend>Upload a Photo</legend>
|
<input class="txt" type="hidden" name="title" id="title" value="" />
|
||||||
<input class="input-text" type="hidden" name="title" id="title" value="" />
|
|
||||||
<p>
|
<p>
|
||||||
<div id="photo_upload">
|
<div id="photo_upload">
|
||||||
<label for="description"><strong>Photo</strong></label>
|
<label for="description">Photo</label>
|
||||||
<input type="file" name="photo" accept="image/gif,image/jpeg,image/jpg,image/png"/>
|
<input type="file" name="photo" accept="image/gif,image/jpeg,image/jpg,image/png"/>
|
||||||
<div style="font-size:11px; color:#666; margin-top:5px;">
|
<div style="font-size:11px; color:#666; margin-top:5px;">
|
||||||
Supports JPEG, GIF and PNG. <b>Max size is 10 MB.</b>
|
Supports JPEG, GIF and PNG. <strong>Max size is 10 MB.</strong>
|
||||||
</div>
|
</div>
|
||||||
<div style="font-size:11px; color:#666; margin-top:5px;">
|
<div style="font-size:11px; color:#666; margin-top:5px;">
|
||||||
<a href="#" onclick="document.getElementById('photo_upload').style.display = 'none';
|
<a class="linkFrm" href="#" onclick="document.getElementById('photo_upload').style.display = 'none';
|
||||||
document.getElementById('photo_url').style.display = 'block';
|
document.getElementById('photo_url').style.display = 'block';
|
||||||
return false;">Use a URL instead</a>
|
return false;">Use a URL instead</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="photo_url" style="display:none;">
|
<div id="photo_url" style="display:none;">
|
||||||
<label for="description"><strong>Photo URL</strong></label>
|
<label for="description">Photo URL</label>
|
||||||
<input class="input-text" type="text" name="url" id="url" size="80" />
|
<input class="input-text" type="text" name="url" id="url" size="80" />
|
||||||
<div style="font-size:11px; color:#666; margin-top:5px;">
|
<div style="font-size:11px; color:#666; margin-top:5px;">
|
||||||
The photo URL.</b>
|
The photo URL.</b>
|
||||||
|
|
@ -23,7 +22,7 @@
|
||||||
</div>
|
</div>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<label for="description"><strong>Caption</strong> <em>(optional)</em></label><br />
|
<label for="description">Caption <span class="option">(optional)</span></label><br />
|
||||||
<textarea rows="12" cols="84" name="description" id="description"></textarea>
|
<textarea rows="12" cols="84" name="description" id="description"></textarea>
|
||||||
</p>
|
</p>
|
||||||
<input type="hidden" name="MAX_FILE_SIZE" value="10485760" />
|
<input type="hidden" name="MAX_FILE_SIZE" value="10485760" />
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
<legend>Add a Regular Post</legend>
|
|
||||||
<p>
|
<p>
|
||||||
<label for="title">Title <span class="option">(optional)</span></label>
|
<label for="title">Title <span class="option">(optional)</span></label>
|
||||||
<input class="txt" type="text" name="title" id="title" size="80" />
|
<input class="txt" type="text" name="title" id="title" size="80" />
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,11 @@
|
||||||
<legend>Add a Quote</legend>
|
<input type="hidden" name="url" id="url" value="" />
|
||||||
<input class="input-text" type="hidden" name="url" id="url" value="" />
|
|
||||||
<p>
|
<p>
|
||||||
<label for="description"><strong>Quote</strong></label><br />
|
<label for="description">Quote</label><br />
|
||||||
<textarea rows="12" cols="84" name="description" id="description"></textarea>
|
<textarea rows="12" cols="84" name="description" id="description"></textarea>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<label for="title"><strong>Source</strong> <em>(optional)</em></label>
|
<label for="title">Source <span class="option">(optional)</span></label>
|
||||||
<input class="input-text" type="text" name="title" id="title" size="80" />
|
<input class="txt" type="text" name="title" id="title" size="80" />
|
||||||
</p>
|
</p>
|
||||||
<input type="hidden" name="type" id="type" value="{type}" />
|
<input type="hidden" name="type" id="type" value="{type}" />
|
||||||
<input type="hidden" name="date" id="date" value="{date}" />
|
<input type="hidden" name="date" id="date" value="{date}" />
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,14 @@
|
||||||
<legend>Add a Video</legend>
|
|
||||||
<input type="hidden" name="title" id="title" value="" />
|
<input type="hidden" name="title" id="title" value="" />
|
||||||
<p>
|
<p>
|
||||||
<label for="url"><strong>Video URL</strong></label>
|
<label for="url">Video URL</label>
|
||||||
<input class="input-text" type="text" name="url" id="url" size="80" />
|
<input class="txt" type="text" name="url" id="url" size="80" />
|
||||||
<div style="color: rgb(136, 136, 136); margin-bottom: 5px; font-size: 11px; font-weight: bold;">
|
<div style="color: rgb(136, 136, 136); margin-bottom: 5px; font-size: 11px; font-weight: bold;">
|
||||||
This is a URL from the video sites YouTube or Vimeo.<br>
|
This is a URL from the video sites YouTube, Vimeo or Google.<br>
|
||||||
<span style="font-size: 10px; font-weight: normal;">(ie. http://youtube.com/watch?v=HcBFLN9cli0)</span>
|
<span style="font-size: 10px; font-weight: normal;">(ie. http://youtube.com/watch?v=HcBFLN9cli0)</span>
|
||||||
</div>
|
</div>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<label for="description"><strong>Caption</strong> <em>(optional)</em></label><br />
|
<label for="description">Caption <span class="option">(optional)</span></label><br />
|
||||||
<textarea rows="12" cols="84" name="description" id="description" tabindex="2"></textarea>
|
<textarea rows="12" cols="84" name="description" id="description" tabindex="2"></textarea>
|
||||||
</p>
|
</p>
|
||||||
<input type="hidden" name="type" id="type" value="{type}" />
|
<input type="hidden" name="type" id="type" value="{type}" />
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
<div class="entry">
|
||||||
|
<div class="info"><span class="compact"><a href="{Permalink}">Link</a> <a href="{URL_Tumble}/admin/index.php?edit={Id_Post}"><img src="{URL_Tumble}/admin/css/images/edit.png" alt="" title="" /></a> <a href="{URL_Tumble}/admin/index.php?delete={Id_Post}"><img src="{URL_Tumble}/admin/css/images/delete.png" alt="" title="" /></a></span>
|
||||||
|
<p>{Date_Added}</p>
|
||||||
|
</div>
|
||||||
|
<div class="post">
|
||||||
|
<span class="option">{Title}</span>
|
||||||
|
<div class="conversation">{Conversation}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
<div class="entry">
|
||||||
|
<div class="info"><span class="compact"><a href="{Permalink}">Link</a> <a href="{URL_Tumble}/admin/index.php?edit={Id_Post}"><img src="{URL_Tumble}/admin/css/images/edit.png" alt="" title="" /></a> <a href="{URL_Tumble}/admin/index.php?delete={Id_Post}"><img src="{URL_Tumble}/admin/css/images/delete.png" alt="" title="" /></a></span>
|
||||||
|
<p>{Date_Added}</p>
|
||||||
|
</div>
|
||||||
|
<div class="post">
|
||||||
|
<span class="option">{Caption}</span>
|
||||||
|
<p><img src="{URL_Tumble}/admin/css/images/music.png" alt="Play song" /> <a href="{Permalink}">Play</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
<div class="entry">
|
||||||
|
<div class="info"><span class="compact"><a href="{Permalink}">Link</a> <a href="{URL_Tumble}/admin/index.php?edit={Id_Post}"><img src="{URL_Tumble}/admin/css/images/edit.png" alt="" title="" /></a> <a href="{URL_Tumble}/admin/index.php?delete={Id_Post}"><img src="{URL_Tumble}/admin/css/images/delete.png" alt="" title="" /></a></span>
|
||||||
|
<p>{Date_Added}</p>
|
||||||
|
</div>
|
||||||
|
<div class="post">
|
||||||
|
<span class="option">{Caption}</span>
|
||||||
|
<p><img src="{PhotoURL}" alt="{PhotoAlt}" {Effect} /></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
<div class="entry">
|
||||||
|
<div class="info"><span class="compact"><a href="{Permalink}">Link</a> <a href="{URL_Tumble}/admin/index.php?edit={Id_Post}"><img src="{URL_Tumble}/admin/css/images/edit.png" alt="" title="" /></a> <a href="{URL_Tumble}/admin/index.php?delete={Id_Post}"><img src="{URL_Tumble}/admin/css/images/delete.png" alt="" title="" /></a></span>
|
||||||
|
<p>{Date_Added}</p>
|
||||||
|
</div>
|
||||||
|
<div class="post">
|
||||||
|
<span class="option">— {Source}</span>
|
||||||
|
<p><big class="quote"><a href="{Permalink}">“</a></big> {Quote}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
<div class="entry">
|
||||||
|
<div class="info"><span class="compact"><a href="{Permalink}">Link</a> <a href="{URL_Tumble}/admin/index.php?edit={Id_Post}"><img src="{URL_Tumble}/admin/css/images/edit.png" alt="" title="" /></a> <a href="{URL_Tumble}/admin/index.php?delete={Id_Post}"><img src="{URL_Tumble}/admin/css/images/delete.png" alt="" title="" /></a></span>
|
||||||
|
<p>{Date_Added}</p>
|
||||||
|
</div>
|
||||||
|
<div class="post">
|
||||||
|
<span class="option"><a href="{Permalink}">{Title}</a></span>
|
||||||
|
<p>{Body}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
<div class="entry">
|
||||||
|
<div class="info"><span class="compact"><a href="{Permalink}">Link</a> <a href="{URL_Tumble}/admin/index.php?edit={Id_Post}"><img src="{URL_Tumble}/admin/css/images/edit.png" alt="" title="" /></a> <a href="{URL_Tumble}/admin/index.php?delete={Id_Post}"><img src="{URL_Tumble}/admin/css/images/delete.png" alt="" title="" /></a></span>
|
||||||
|
<p>{Date_Added}</p>
|
||||||
|
</div>
|
||||||
|
<div class="post">
|
||||||
|
<span class="option">» <a href="{URL}">{Name}</a></span>
|
||||||
|
<p>{Description}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
<div class="entry">
|
||||||
|
<div class="info"><span class="compact"><a href="{Permalink}">Link</a> <a href="{URL_Tumble}/admin/index.php?edit={Id_Post}"><img src="{URL_Tumble}/admin/css/images/edit.png" alt="" title="" /></a> <a href="{URL_Tumble}/admin/index.php?delete={Id_Post}"><img src="{URL_Tumble}/admin/css/images/delete.png" alt="" title="" /></a></span>
|
||||||
|
<p>{Date_Added}</p>
|
||||||
|
</div>
|
||||||
|
<div class="post">
|
||||||
|
<span class="option">{Caption}</span>
|
||||||
|
<p><img src="{URL_Tumble}/admin/css/images/film.png" alt="Watch video" /> <a href="{Permalink}">Watch</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue