New plugin loader, page features, API0.2b, Bugfixes

This commit is contained in:
2016-11-19 16:13:37 +01:00
parent 6d1eef25ca
commit b97faf21fd
230 changed files with 36532 additions and 36346 deletions

View File

@ -1,256 +1,256 @@
html, body { margin: 0; padding: 0; }
body {
font: 14px open-sans, 'Segoe UI', sans-serif;
background: #fff url(img/stripe.png);
color: #8d8d8d;
}
a { color: #1ecc88; text-decoration: none; }
h1 { font: 32px bebas-neue, sans-serif; letter-spacing: 10px; }
h2 { font: 28px bebas-neue, sans-serif; letter-spacing: 4px; color: #40a5e3; }
img { border: 0; }
textarea { resize: none; height: 100px; }
input, button, textarea {
font: 14px open-sans, 'Segoe UI', sans-serif;
box-shadow: 0 0 0.4em #f0f0f0;
border: 1px solid #b6b6b6;
background-color: #FFF;
margin: 1em 0 0 0;
padding: 0.6em 10px;
width: 210px;
transition: 0.25s ease-in background;
}
input, textarea { display: block; }
button {
color: #FFF;
border: 0;
background-color: #0776d8;
cursor: pointer;
width: 232px;
}
/* ENTRY EDITOR */
form[name="entry-edit"] input { width: 978px; }
form[name="entry-edit"] button { width: 1000px; }
/* COLORED THINGS */
button.orange { background-color: #dd823b; }
input:hover, input:focus, textarea:hover, textarea:focus { background-color: #f0f0f0; }
button:hover { background-color: #0560b1; }
.clear { clear: both; }
p.phantom {
padding: 1.4em 0;
text-align: center;
background-color: #fffef2;
}
#errors, #infos {
background-color: #ff0000;
color: #FFF;
text-align: center;
}
#infos { background-color: #fffed9; color: #222222; }
#errors ul, #infos ul { margin: 0; padding: 0; }
#errors li, #infos li { margin: 0; padding: 0.5em 0; list-style: none; }
#page,
#footer {
min-width: 1000px;
width: 1000px;
background: #FFF;
margin: 20px auto;
padding: 14px;
box-shadow: 0 0 0.4em #999999;
}
/*#main { float: left; width: 70%; }
#sidebar { float: right; width: 28%; }*/
#header {
padding: 20px;
background: #020202;
color: #fff;
}
#title {
float: left;
color: #FFF;
border-right: 1px dotted #fff;
padding-right: 10px;
}
#title h1 {
color: #FFF;
padding: 0;
margin: 0;
}
#title p { padding: 0; margin: 0; }
#menu {
float: right;
list-style: none;
margin: 20px 0 0 0;
padding: 0;
}
#menu li {
display: inline-block;
margin-right: 10px;
}
#menu a {
padding: 10px 20px;
color: #FFF;
background: #020202;
border: 1px solid transparent;
text-transform: uppercase;
text-decoration: none;
}
#menu a:hover,
#menu a.active {
border: 1px solid #c6c6c6;
background: #1f1f1f;
}
#content {
padding-top: 20px;
text-align: justify;
font-size: 1.1em;
}
#content ul { list-style-type: hebrew; margin: 0; padding: 0 0 0 1.4em; }
#content ul li { padding: 0.4em 0; }
#content h1 { font-size: 28px; margin: 0.2em 0 0 0; padding: 0; letter-spacing: 0.12em; }
#content h2 { margin: 0; padding: 0; }
#content h3 { color: #009dff; text-transform: uppercase; margin: 0; padding: 0; }
#content div.profile { margin-top: 1em; }
#content div.profile.pic {
float: left;
width: 290px;
}
#content div.profile p,
#content div.profile h2 { margin: 0; padding: 6px; }
#content div.profile.details {
float: right;
width: 699px;
}
div.profile.details div.box {
float: left;
box-shadow: 0 0 0.4em #dbdbdb;
background-color: #f5f5f5;
margin: 1em 0 0 0;
}
div.profile.details div.spacer { float: left; width: 10px; height: 1px; }
div.box { width: 340px; min-height: 100px; border-left: 4px solid #7ad03a; }
div.box.recent { text-transform: uppercase; }
div.box.contact { border-left-color: #52accc; }
div.box.introduction { border-left-color: #dd823b; width: 693px; }
#profile_pic {
width: 252px;
height: 252px;
background-size: cover;
border-radius: 0.4em;
padding: 10px;
text-align: center;
}
#profile_pic button {
width: 48%;
border: 0;
margin: 0;
box-shadow: none;
opacity: 0;
transition: 0.25s ease-in opacity;
}
#profile_pic:hover button { opacity: 1; }
/* ARTICLES, POSTS */
article { margin: 0 0 2em 0; background-color: #f3f3f3; padding: 0.4em; }
article.full { background-color: #FFF; }
article p.meta a,
article p.meta time { margin: 0 1em 0 0; }
article p.meta a:before,
article p.meta time:before { font: 18px typicons; padding-right: 0.2em; }
article p.meta time:before { content: '\e120'; }
article p.meta a.by:before { content: '\e12c'; }
article p.meta a.pin:before { content: '\e0c9'; }
article p.meta span.admin a.edit:before { content: '\e067'; }
article p.meta span.admin a.delete:before { content: '\e058'; }
article div.content a { color: #222222; }
article div.content a:hover { text-decoration: underline; }
article p.paginator a { margin: 1em 1em 0 0; }
/* PROFILE */
div.box.recent p a:before { font: 18px typicons; padding-right: 0.2em; content: '\e0bf'; }
#content div.profile h3 a.edit { padding-left: 1em; }
#content div.profile h3 a.edit:before { font: 28px typicons; padding-right: 0.2em; content: '\e067'; }
/* DESIGNED TABLE */
table.designed {
width: 100%;
margin: 0;
padding: 0;
border-spacing: 0;
border-collapse: collapse;
}
table button { padding: 0.2em; margin: 0; width: 120px; }
table.designed td { padding: 0.4em; }
table.designed tr:nth-child(3n+0) { background: #eaeaea; }
table.designed tr:first-child { background: #202434; color: #FFF; font-weight: bold; }
table.designed tr td:first-child { font-weight: bold; }
#sidebar {
position: fixed;
top: 0;
right: 0;
height: 100%;
background: rgba(0,0,0,0.8);
text-align: center;
}
#sidebarSw { float: left; background-color: #000; width: 20px; height: 100%; cursor: pointer; }
#sidebarCt { float: right; display: none; padding: 1em; }
#sidebar ul { margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; }
body {
font: 14px open-sans, 'Segoe UI', sans-serif;
background: #fff url(img/stripe.png);
color: #8d8d8d;
}
a { color: #1ecc88; text-decoration: none; }
h1 { font: 32px bebas-neue, sans-serif; letter-spacing: 10px; }
h2 { font: 28px bebas-neue, sans-serif; letter-spacing: 4px; color: #40a5e3; }
img { border: 0; }
textarea { resize: none; height: 100px; }
input, button, textarea {
font: 14px open-sans, 'Segoe UI', sans-serif;
box-shadow: 0 0 0.4em #f0f0f0;
border: 1px solid #b6b6b6;
background-color: #FFF;
margin: 1em 0 0 0;
padding: 0.6em 10px;
width: 210px;
transition: 0.25s ease-in background;
}
input, textarea { display: block; }
button {
color: #FFF;
border: 0;
background-color: #0776d8;
cursor: pointer;
width: 232px;
}
/* ENTRY EDITOR */
form[name="entry-edit"] input { width: 978px; }
form[name="entry-edit"] button { width: 1000px; }
/* COLORED THINGS */
button.orange { background-color: #dd823b; }
input:hover, input:focus, textarea:hover, textarea:focus { background-color: #f0f0f0; }
button:hover { background-color: #0560b1; }
.clear { clear: both; }
p.phantom {
padding: 1.4em 0;
text-align: center;
background-color: #fffef2;
}
#errors, #infos {
background-color: #ff0000;
color: #FFF;
text-align: center;
}
#infos { background-color: #fffed9; color: #222222; }
#errors ul, #infos ul { margin: 0; padding: 0; }
#errors li, #infos li { margin: 0; padding: 0.5em 0; list-style: none; }
#page,
#footer {
min-width: 1000px;
width: 1000px;
background: #FFF;
margin: 20px auto;
padding: 14px;
box-shadow: 0 0 0.4em #999999;
}
/*#main { float: left; width: 70%; }
#sidebar { float: right; width: 28%; }*/
#header {
padding: 20px;
background: #020202;
color: #fff;
}
#title {
float: left;
color: #FFF;
border-right: 1px dotted #fff;
padding-right: 10px;
}
#title h1 {
color: #FFF;
padding: 0;
margin: 0;
}
#title p { padding: 0; margin: 0; }
#menu {
float: right;
list-style: none;
margin: 20px 0 0 0;
padding: 0;
}
#menu li {
display: inline-block;
margin-right: 10px;
}
#menu a {
padding: 10px 20px;
color: #FFF;
background: #020202;
border: 1px solid transparent;
text-transform: uppercase;
text-decoration: none;
}
#menu a:hover,
#menu a.active {
border: 1px solid #c6c6c6;
background: #1f1f1f;
}
#content {
padding-top: 20px;
text-align: justify;
font-size: 1.1em;
}
#content ul { list-style-type: hebrew; margin: 0; padding: 0 0 0 1.4em; }
#content ul li { padding: 0.4em 0; }
#content h1 { font-size: 28px; margin: 0.2em 0 0 0; padding: 0; letter-spacing: 0.12em; }
#content h2 { margin: 0; padding: 0; }
#content h3 { color: #009dff; text-transform: uppercase; margin: 0; padding: 0; }
#content div.profile { margin-top: 1em; }
#content div.profile.pic {
float: left;
width: 290px;
}
#content div.profile p,
#content div.profile h2 { margin: 0; padding: 6px; }
#content div.profile.details {
float: right;
width: 699px;
}
div.profile.details div.box {
float: left;
box-shadow: 0 0 0.4em #dbdbdb;
background-color: #f5f5f5;
margin: 1em 0 0 0;
}
div.profile.details div.spacer { float: left; width: 10px; height: 1px; }
div.box { width: 340px; min-height: 100px; border-left: 4px solid #7ad03a; }
div.box.recent { text-transform: uppercase; }
div.box.contact { border-left-color: #52accc; }
div.box.introduction { border-left-color: #dd823b; width: 693px; }
#profile_pic {
width: 252px;
height: 252px;
background-size: cover;
border-radius: 0.4em;
padding: 10px;
text-align: center;
}
#profile_pic button {
width: 48%;
border: 0;
margin: 0;
box-shadow: none;
opacity: 0;
transition: 0.25s ease-in opacity;
}
#profile_pic:hover button { opacity: 1; }
/* ARTICLES, POSTS */
article { margin: 0 0 2em 0; background-color: #f3f3f3; padding: 0.4em; }
article.full { background-color: #FFF; }
article p.meta a,
article p.meta time { margin: 0 1em 0 0; }
article p.meta a:before,
article p.meta time:before { font: 18px typicons; padding-right: 0.2em; }
article p.meta time:before { content: '\e120'; }
article p.meta a.by:before { content: '\e12c'; }
article p.meta a.pin:before { content: '\e0c9'; }
article p.meta span.admin a.edit:before { content: '\e067'; }
article p.meta span.admin a.delete:before { content: '\e058'; }
article div.content a { color: #222222; }
article div.content a:hover { text-decoration: underline; }
article p.paginator a { margin: 1em 1em 0 0; }
/* PROFILE */
div.box.recent p a:before { font: 18px typicons; padding-right: 0.2em; content: '\e0bf'; }
#content div.profile h3 a.edit { padding-left: 1em; }
#content div.profile h3 a.edit:before { font: 28px typicons; padding-right: 0.2em; content: '\e067'; }
/* DESIGNED TABLE */
table.designed {
width: 100%;
margin: 0;
padding: 0;
border-spacing: 0;
border-collapse: collapse;
}
table button { padding: 0.2em; margin: 0; width: 120px; }
table.designed td { padding: 0.4em; }
table.designed tr:nth-child(3n+0) { background: #eaeaea; }
table.designed tr:first-child { background: #202434; color: #FFF; font-weight: bold; }
table.designed tr td:first-child { font-weight: bold; }
#sidebar {
position: fixed;
top: 0;
right: 0;
height: 100%;
background: rgba(0,0,0,0.8);
text-align: center;
}
#sidebarSw { float: left; background-color: #000; width: 20px; height: 100%; cursor: pointer; }
#sidebarCt { float: right; display: none; padding: 1em; }
#sidebar ul { margin: 0; padding: 0; }
#sidebar ul li { list-style: none; margin: 0; padding: 0; }

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 182 KiB

After

Width:  |  Height:  |  Size: 184 KiB

View File

@ -1,12 +1,12 @@
</div>
</div>
<div class="clear"></div>
</div>
<div id="footer">
<p style="float:left">Copyright &copy; <?=date('Y')?> <?=$_set['title']?><?=(!LOGGEDIN ? '<br/><a href="/login">'.$_locale["login"].'</a>' : '')?></p>
<p style="float:right">Powered by <a href="http://sandros.hu/">Insanely</a>.</p>
<div style="clear:both"></div>
</div>
<?php get_page_extra_body(); ?>
</body>
</div>
</div>
<div class="clear"></div>
</div>
<div id="footer">
<p style="float:left">Copyright &copy; <?=date('Y')?> <?=$_set['title']?><?=(!LOGGEDIN ? '<br/><a href="/login">'.$_locale["login"].'</a>' : '')?></p>
<p style="float:right">Powered by <a href="http://sandros.hu/">Insanely</a>.</p>
<div style="clear:both"></div>
</div>
<?php get_page_extra_body(); ?>
</body>
</html>

View File

@ -1,34 +1,34 @@
<!doctype html>
<html>
<head>
<title><?php get_page_title(); ?></title>
<meta charset="utf-8" />
<link href="/includes/css/ui-lightness/jquery-ui.custom.min.css" rel="stylesheet" />
<link href="/<?=get_theme_lib()?>/font/typicons.min.css" rel="stylesheet" />
<link rel="stylesheet" href="/<?=get_theme_lib()?>/default.css" type="text/css" media="screen" />
<script src="//use.edgefonts.net/bebas-neue:n4:all;open-sans:n3,i3,n4,i4,n6,i6,n7,i7,n8,i8:all.js"></script>
<script src="/includes/js/jquery.js"></script>
<script src="/includes/js/jquery-ui.custom.min.js"></script>
<script src="/includes/js/functions.js"></script>
<meta name="keywords" content="<?=($description ? $description : $_set['description'])?>" />
<meta name="description" content="<?=($description ? $description : $_set['description'])?>" />
<?php get_page_extra_head(); ?>
</head>
<body>
<div id="page">
<div id="header">
<div id="title">
<a href="/"><h1><?=$_set['title']?></h1></a>
<p><?=$_set['tagline']?></p>
</div>
<ul id="menu">
<?php get_navigation(); ?>
</ul>
<div class="clear"></div>
</div>
<!--[if lt IE 7]>
<p style="background: yellow; padding: 2em; color: #000; text-align: center;">You are using an <strong>old</strong> browser. <a href="http://browsehappy.com/">Upgrade</a> your browser.</p>
<![endif]-->
<div id="main">
<div id="content">
<?php get_errors(); get_infos(); ?>
<!doctype html>
<html>
<head>
<title><?php get_page_title(); ?></title>
<meta charset="utf-8" />
<link href="/includes/css/ui-lightness/jquery-ui.custom.min.css" rel="stylesheet" />
<link href="/<?=get_theme_lib()?>/font/typicons.min.css" rel="stylesheet" />
<link rel="stylesheet" href="/<?=get_theme_lib()?>/default.css" type="text/css" media="screen" />
<script src="//use.edgefonts.net/bebas-neue:n4:all;open-sans:n3,i3,n4,i4,n6,i6,n7,i7,n8,i8:all.js"></script>
<script src="/includes/js/jquery.js"></script>
<script src="/includes/js/jquery-ui.custom.min.js"></script>
<script src="/includes/js/functions.js"></script>
<meta name="keywords" content="<?=($description ? $description : $_set['description'])?>" />
<meta name="description" content="<?=($description ? $description : $_set['description'])?>" />
<?php get_page_extra_head(); ?>
</head>
<body>
<div id="page">
<div id="header">
<div id="title">
<a href="/"><h1><?=$_set['title']?></h1></a>
<p><?=$_set['tagline']?></p>
</div>
<ul id="menu">
<?php get_navigation(); ?>
</ul>
<div class="clear"></div>
</div>
<!--[if lt IE 7]>
<p style="background: yellow; padding: 2em; color: #000; text-align: center;">You are using an <strong>old</strong> browser. <a href="http://browsehappy.com/">Upgrade</a> your browser.</p>
<![endif]-->
<div id="main">
<div id="content">
<?php get_errors(); get_infos(); ?>

View File

@ -1,17 +1,17 @@
<?php
addHead('<script src="/'.get_theme_lib().'/theme.js"></script>');
include get_theme_lib().'/header.php';
echo get_site_body();
?>
<div id="sidebar">
<div id="sidebarSw"></div>
<div id="sidebarCt"><?php include 'includes/sidebar/sidebar.php'; ?></div>
<div class="clear"></div>
</div>
<?php
<?php
addHead('<script src="/'.get_theme_lib().'/theme.js"></script>');
include get_theme_lib().'/header.php';
echo get_site_body();
?>
<div id="sidebar">
<div id="sidebarSw"></div>
<div id="sidebarCt"><?php include 'includes/sidebar/sidebar.php'; ?></div>
<div class="clear"></div>
</div>
<?php
include get_theme_lib().'/footer.php';

View File

@ -1,8 +1,8 @@
$(document).ready(function(){
$("#sidebarSw").click(function(){
if ($("#sidebarCt").hasClass('open'))
$("#sidebarCt").css('display', 'hidden').animate({'width': '0px'}).removeClass('open');
else
$("#sidebarCt").css('display', 'block').animate({'width': '300px'}).addClass('open');
});
$(document).ready(function(){
$("#sidebarSw").click(function(){
if ($("#sidebarCt").hasClass('open'))
$("#sidebarCt").css('display', 'hidden').animate({'width': '0px'}).removeClass('open');
else
$("#sidebarCt").css('display', 'block').animate({'width': '300px'}).addClass('open');
});
});

View File

@ -1,24 +1,26 @@
<?php
if ($blog->entries)
{
while ($data = $blog->entries())
{
$entry_init = entry_show_init($data['entryContent'], $data['entrySlug']);
echo "<article".($data['entryPinned'] ? ' class="pinned"' : null).(strlen(strip_tags($entry_init)) <= 210 ? ' class="tweet"' : null)." title='".show_date($data['entryPublished'])."'>
<a href='".get_entry_link($data['entrySlug'])."'><header".($data['entryHeader'] ? " style='background-image:url($data[entryHeader])'" : null).">
<div>
<h2>".htmlspecialchars($data['entryTitle'])."</h2>
</div>
</header></a>
<div class='content'>".$entry_init."</div>
<p class='meta'>
<a href='".get_entry_link($data['entrySlug'])."' class='date' title='{locale:published_on}'>".show_date($data['entryPublished'])."</a>
<a href='".get_profile_link($data['userName'])."' class='by' title='{locale:entry_by}'>$data[publicName]</a>
</p>
</article>\n";
unset($entry_init);
}
echo "<p class='paginator'>".(isset($seo[1]) && isnum($seo[1]) ? "<a href='/p/".($seo[1]-1)."' class='prev'>{locale:prev_page}</a><a href='/p/".($seo[1]+1)."' class='next'>{locale:next_page}</a>" : "<a href='/p/2' class='next'>{locale:next_page}</a>")."</p>";
} else
echo "<h1>{locale:no_more_title}</h1>"
<?php
if ($blog->entries)
{
while ($data = $blog->entries())
{
$entry_init = entry_show_init($data['entryContent'], $data['entrySlug']);
echo "<article".($data['entryPinned'] ? ' class="pinned"' : null).(strlen(strip_tags($entry_init)) <= 210 ? ' class="tweet"' : null)." title='".show_date($data['entryPublished'])."' itemscope itemtype='http://schema.org/Article'>
<a href='".get_entry_link($data['entrySlug'])."'><header".($data['entryHeader'] ? " style='background-image:url($data[entryHeader])'" : null).">
<div>
<h2 itemprop='name'>".htmlspecialchars($data['entryTitle'])."</h2>
</div>
</header></a>
<div class='content' itemprop='articleBody'>".$entry_init."</div>
<p class='meta'>
<a href='".get_entry_link($data['entrySlug'])."' class='date' title='{locale:published_on}' itemprop='datePublished' content='".date('Y-m-d', $data['entryPublished'])."'>".show_date($data['entryPublished'])."</a>
<span itemprop='author' itemscope itemtype='http://schema.org/Person'>
<a href='".get_profile_link($data['userName'])."' class='by' title='{locale:entry_by}' itemprop='url'><span itemprop='name'>$data[publicName]</span></a>
</span>
</p>
</article>\n";
unset($entry_init);
}
echo "<p class='paginator'>".(isset($seo[1]) && isnum($seo[1]) ? "<a href='/p/".($seo[1]-1)."' class='prev'>{locale:prev_page}</a><a href='/p/".($seo[1]+1)."' class='next'>{locale:next_page}</a>" : "<a href='/p/2' class='next'>{locale:next_page}</a>")."</p>";
} else
echo "<h1>{locale:no_more_title}</h1>"
."<p>{locale:no_more}</p>\n";

View File

@ -1,35 +1,38 @@
<?php
if ($blog->entries)
while ($data = $blog->entry())
{
addTitle($data['entryTitle']);
if ($data['entryHidden']) echo "<p>{locale:hidden_content}</p>";
if ($data['entryPIN'] && get_pin() != $data['entryPIN'])
echo "<p>{locale:pin_protected_content}</p>
<form action='".get_entry_link($data['entrySlug'])."' method='post' name='entry-pin-input'>
<input type='text' name='read_entry_pin' placeholder='{locale:entry_pin}' />
<button type='submit'>{locale:unlock}</button>
</form>";
else
{
addDescription(entry_show_init($data['entryContent'], $data['entrySlug']));
addImage((preg_match('/< *img[^>]*src *= *["\']?([^"\']*)/i', $data['entryContent'], $images) ? $images[1] : 0));
headerImage($data['entryHeader']);
echo "<article class='full'>";
if (strlen($data['entryTitle']) > 50)
echo "<header><div><h2>".htmlspecialchars($data['entryTitle'])."</h2></div></header>";
echo "<div class='content'>".entry_show_all($data['entryContent'])."</div>
<p class='meta'>
<a href='".get_entry_link($data['entrySlug'])."' class='date' title='{locale:published_on}'>".show_date($data['entryPublished'])."</a>
<a href='".get_profile_link($data['userName'])."' class='by' title='{locale:entry_by}'>$data[publicName]</a>
".get_entry_admin($data)."
</article>\n";
}
}
else
echo "<h1>{locale:entry_not_found_title}</h1>"
."<p>{locale:entry_not_found}</p>\n";
<?php
if ($blog->entries)
while ($data = $blog->entry())
{
addTitle($data['entryTitle']);
if ($data['entryHidden']) echo "<p>{locale:hidden_content}</p>";
if ($data['entryPIN'] && get_pin() != $data['entryPIN'])
echo "<p>{locale:pin_protected_content}</p>
<form action='".get_entry_link($data['entrySlug'])."' method='post' name='entry-pin-input'>
<input type='text' name='read_entry_pin' placeholder='{locale:entry_pin}' />
<button type='submit'>{locale:unlock}</button>
</form>";
else
{
addDescription(entry_show_init($data['entryContent'], $data['entrySlug']));
addImage((preg_match('/< *img[^>]*src *= *["\']?([^"\']*)/i', $data['entryContent'], $images) ? $images[1] : 0));
headerImage($data['entryHeader']);
echo "<article class='full' itemscope itemtype='http://schema.org/Article'>";
echo "<header".(strlen($data['entryTitle']) < 50 ? " class='hidden'" : null)."><div><h2 itemprop='name'>".htmlspecialchars($data['entryTitle'])."</h2></div></header>";
echo "<div class='hidden' itemprop='headline'>".htmlspecialchars($data['entryTitle'])."</div>";
if ($data['entryHeader']) echo "<img class='hidden' itemprop='image' src='$data[entryHeader]' alt='Header image'/>";
echo "<div class='content' itemprop='articleBody'>".entry_show_all($data['entryContent'])."</div>
<p class='meta'>
<a href='".get_entry_link($data['entrySlug'])."' class='date' title='{locale:published_on}' itemprop='datePublished' content='".date('Y-m-d', $data['entryPublished'])."'>".show_date($data['entryPublished'])."</a>
<span itemprop='author' itemscope itemtype='http://schema.org/Person'>
<a href='".get_profile_link($data['userName'])."' class='by' title='{locale:entry_by}' itemprop='url'><span itemprop='name'>$data[publicName]</span></a>
</span>
".get_entry_admin($data)."
</article>\n";
}
}
else
echo "<h1>{locale:entry_not_found_title}</h1>"
."<p>{locale:entry_not_found}</p>\n";

View File

@ -1,8 +1,8 @@
<?php
if ($page->readable())
{
addTitle($page->data['pageTitle']);
echo "<article><div class='content'>".entry_show_all($page->data['pageContent'])."</div></article>";
} else
<?php
if ($page->readable())
{
addTitle($page->data['pageTitle']);
echo "<article><div class='content'>".entry_show_all($page->data['pageContent'])."</div></article>";
} else
echo "<h2>$_locale[page_not_found]</h2><p>$_locale[page_not_found_text]</p>";

View File

@ -1,46 +1,46 @@
<div class="profile">
<h3><?=$userData['userName'].($me ? ' <a href="'.get_current_link().'/edit" class="edit">{locale:profile_edit}</a>' : '')?></h3>
<div id="profile_pic" style="background-image: url('<?=get_profile_picture($userData)?>')">
<?php if ($me) : ?>
<form action="<?=get_current_link()?>" method="post" name="userpic-upload" enctype="multipart/form-data">
<input type="file" name="userPic" id="userPicInput" style="display: none" />
<button type="button" onclick="$('#userPicInput').focus().click()">{locale:browse}</button><button type="submit" id="userPicSaveBtn" class="orange">{locale:delete}</button>
</form>
<script>
$("#userPicInput").change(function() {
$("#userPicSaveBtn").html('{locale:save}').removeClass('orange');
});
</script>
<?php endif ?>
</div>
<?php if (LOGGEDIN) : ?>
<div class='box contact'>
<p><strong>{locale:name}:</strong> <?=$userData['userRealName']?></p>
<p><strong>{locale:email}:</strong> <?=$userData['userEmail']?></p>
<?=($userData['userWeb'] ? '<p><strong>{locale:web}:</strong> '.$userData['userWeb'].'</p>' : null)?>
</div>
<?php endif ?>
<?php
$recent = $_sql->query("SELECT entrySlug, entryTitle FROM entries WHERE entryBy = $userData[userId] AND entryPublished <= ".time()." ORDER BY entryPublished DESC LIMIT 5");
if ($recent->num_rows) : ?>
<div class='box recent'>
<?php
while ($data = $recent->fetch_assoc())
echo "<p><a href='".get_entry_link($data['entrySlug'])."'>".trimlink($data['entryTitle'], 42)."</a></p>\n";
?>
</div>
<?php endif; unset($recent); ?>
<div style="clear: both"></div>
<?php if ($userData['userIntroduction']) : ?>
<div class='box introduction'>
<p><?=$userData['userIntroduction']?></p>
</div>
<div style="clear: both"></div>
<?php endif ?>
<div class="clear"></div>
</div>
<div class="profile">
<h3><?=$userData['userName'].($me ? ' <a href="'.get_current_link().'/edit" class="edit">{locale:profile_edit}</a>' : '')?></h3>
<div id="profile_pic" style="background-image: url('<?=get_profile_picture($userData)?>')">
<?php if ($me) : ?>
<form action="<?=get_current_link()?>" method="post" name="userpic-upload" enctype="multipart/form-data">
<input type="file" name="userPic" id="userPicInput" style="display: none" />
<button type="button" onclick="$('#userPicInput').focus().click()">{locale:browse}</button><button type="submit" id="userPicSaveBtn" class="orange">{locale:delete}</button>
</form>
<script>
$("#userPicInput").change(function() {
$("#userPicSaveBtn").html('{locale:save}').removeClass('orange');
});
</script>
<?php endif ?>
</div>
<?php if (LOGGEDIN) : ?>
<div class='box contact'>
<p><strong>{locale:name}:</strong> <?=$userData['userRealName']?></p>
<p><strong>{locale:email}:</strong> <?=$userData['userEmail']?></p>
<?=($userData['userWeb'] ? '<p><strong>{locale:web}:</strong> '.$userData['userWeb'].'</p>' : null)?>
</div>
<?php endif ?>
<?php
$recent = $_sql->query("SELECT entrySlug, entryTitle FROM entries WHERE entryBy = $userData[userId] AND entryPublished <= ".time()." ORDER BY entryPublished DESC LIMIT 5");
if ($recent->num_rows) : ?>
<div class='box recent'>
<?php
while ($data = $recent->fetch_assoc())
echo "<p><a href='".get_entry_link($data['entrySlug'])."'>".trimlink($data['entryTitle'], 42)."</a></p>\n";
?>
</div>
<?php endif; unset($recent); ?>
<div style="clear: both"></div>
<?php if ($userData['userIntroduction']) : ?>
<div class='box introduction'>
<p><?=$userData['userIntroduction']?></p>
</div>
<div style="clear: both"></div>
<?php endif ?>
<div class="clear"></div>
</div>
<div class="clear"></div>

View File

@ -1,18 +1,18 @@
<?php
if ($tagged->num_rows)
{
$tag = $tagged->fetch_assoc();
addTitle($tag['tagName']);
if ($entries->num_rows)
{
while ($data = $entries->fetch_assoc())
echo "<h3><a href='".get_entry_link($data['entrySlug'])."'>".htmlspecialchars(trimlink($data['entryTitle'], 120))."</a></h3>"
."<p>".show_date($data['entryPublished'])."</p>";
}
} else
redirect();
unset($tag);
unset($tagged);
<?php
if ($tagged->num_rows)
{
$tag = $tagged->fetch_assoc();
addTitle($tag['tagName']);
if ($entries->num_rows)
{
while ($data = $entries->fetch_assoc())
echo "<h3><a href='".get_entry_link($data['entrySlug'])."'>".htmlspecialchars(trimlink($data['entryTitle'], 120))."</a></h3>"
."<p>".show_date($data['entryPublished'])."</p>";
}
} else
redirect();
unset($tag);
unset($tagged);
unset($entries);

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 182 KiB

After

Width:  |  Height:  |  Size: 184 KiB

View File

@ -1,3 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg height="512px" id="Layer_1" style="enable-background:new 0 0 512 512; fill: #FFF" version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><polygon points="396.6,160 416,180.7 256,352 96,180.7 115.3,160 256,310.5 "/></svg>

Before

Width:  |  Height:  |  Size: 457 B

After

Width:  |  Height:  |  Size: 459 B

File diff suppressed because it is too large Load Diff

View File

@ -1,95 +1,94 @@
<!doctype html>
<html>
<head>
<title><?php get_page_title(); ?></title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<meta name="generator" content="Insanely 0.9b" />
<link href="/includes/css/ui-lightness/jquery-ui.custom.min.css" rel="stylesheet" />
<link href="/<?=get_theme_lib()?>/font/typicons.min.css" rel="stylesheet" />
<link href="/<?=get_theme_lib()?>/style.css" rel="stylesheet" />
<link href="//fonts.googleapis.com/css?family=Archivo+Narrow:400,700%7COpen+Sans:400,300&amp;subset=latin,latin-ext" rel="stylesheet" />
<link href="<?=$_set['url']?>/rss" rel="alternate" type="application/rss+xml" title="<?=$_set['title']?>" />
<script src="/includes/js/jquery.js"></script>
<script src="/includes/js/jquery-ui.custom.min.js"></script>
<script><?php
echo 'var headerimg = '.($headerimg ? 'true':'false').';';
if (LOGGEDIN) echo 'var userdata = ['.$user['userFiltrId'].','.$user['userLevel'].',"'.$user['userName'].'","'.$user['userPublicName'].'"];';
else echo 'var userdata = false;';
?></script>
<script src="/includes/js/functions.js"></script>
<script src="/<?=get_theme_lib()?>/theme.js"></script>
<meta name="keywords" content="<?=keywords()?>" />
<meta name="description" content="<?=($description ? $description : $_set['description'])?>" />
<meta name="copyright" content="Sandros 2015" />
<meta name="robot" content="index, follow" />
<meta name="og:site_name" content="<?=$_set['title']?>" />
<meta name="og:type" content="website" />
<meta name="og:title" content="<?php get_page_title(); ?>" />
<meta name="og:description" content="<?=($description ? $description : $_set['description'])?>" />
<meta name="og:url" content="<?=get_current_link()?>" />
<meta name="og:image" content="<?=($metaimage ? $metaimage : ($headerimg ? $headerimg : '/'.get_theme_lib().'/images/moto360-filter.jpg'))?>" />
<meta name="twitter:site" content="<?=$_set['twitter_site']?>" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="<?php get_page_title(); ?>" />
<meta name="twitter:description" content="<?=($description ? $description : $_set['description'])?>" />
<meta name="twitter:url" content="<?=get_current_link()?>" />
<meta name="twitter:image:src" content="<?=($metaimage ? $metaimage : ($headerimg ? $headerimg : '/'.get_theme_lib().'/images/moto360-filter.jpg'))?>" />
<?php get_page_extra_head(); ?>
</head>
<body<?=(isset($seo[1]) ? ' class="nohome"' : null)?>>
<header id="floating-header">
<div id="header-wrapper"<?=($headerimg ? ' style="background-image:url(\''.$headerimg.'\')" class="dim"' : null)?>>
<div id="header" class="container">
<div id="logo">
<h1><a href="<?=get_current_link()?>"><?=$_set['title'].(isset($_title[0]) ? ' &#8226; <span>'.trimlink($_title[0].(isset($_title[1]) ? ' &#8226; '.$_title[1] : null), 100) : null)?></span></a></h1>
<p><?=$_set['tagline']?></p>
</div>
<div id="menu">
<ul>
<?php get_navigation(); ?>
</ul>
</div>
<div id="tags">
<ul>
<?php get_tags(); ?>
</ul>
</div>
</div>
</div>
<a id="arrowDown" href="#"></a>
</header>
<div id="page">
<?php
get_errors();
get_infos();
?>
<div id="content">
<?php echo get_site_body(); ?>
</div>
</div>
<footer id="footer">
<?php if (!LOGGEDIN) : ?>
<form action="//filtr.sandros.hu/app_login/<?=$_set['filtr_appid']?>&amp;ret" method="get" name="login-form" id="footer-account">
<input type="submit" name="login" value="<?=$_locale['login']?>" />
</form>
<?php else :
echo "<div id='footer-account'>";
include 'includes/sidebar/account.php';
echo "</div>";
endif; ?>
<p>&copy; <?=date('Y')?> <?=$_set['title']?>. All rights reserved. Powered by <a href="http://sandros.hu/">Insanely</a>.</p>
</footer>
<a id="scroll-up" href="#top"></a>
<?php get_page_extra_body(); ?>
</body>
<!doctype html>
<html>
<head>
<title><?php get_page_title(); ?></title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<meta name="generator" content="Insanely 0.9b" />
<link href="/includes/css/ui-lightness/jquery-ui.custom.min.css" rel="preload" onload="this.rel='stylesheet'" />
<link href="/<?=get_theme_lib()?>/font/typicons.min.css" rel="preload" onload="this.rel='stylesheet'" />
<link href="/<?=get_theme_lib()?>/style.css" rel="stylesheet" />
<link href="//fonts.googleapis.com/css?family=Archivo+Narrow:400,700%7COpen+Sans:400,300&amp;subset=latin,latin-ext" rel="preload" onload="this.rel='stylesheet'" />
<script src="/includes/js/jquery.js"></script>
<script src="/includes/js/jquery-ui.custom.min.js"></script>
<script><?php
echo 'var headerimg = '.($headerimg ? 'true':'false').';';
if (LOGGEDIN) echo 'var userdata = ['.$user['userFiltrId'].','.$user['userLevel'].',"'.$user['userName'].'","'.$user['userPublicName'].'"];';
else echo 'var userdata = false;';
?></script>
<script src="/includes/js/functions.js"></script>
<script src="/<?=get_theme_lib()?>/theme.js"></script>
<meta name="keywords" content="<?=keywords()?>" />
<meta name="description" content="<?=($description ? $description : $_set['description'])?>" />
<meta name="copyright" content="Sandros 2015" />
<meta name="robot" content="index, follow" />
<meta name="og:site_name" content="<?=$_set['title']?>" />
<meta name="og:type" content="website" />
<meta name="og:title" content="<?php get_page_title(); ?>" />
<meta name="og:description" content="<?=($description ? $description : $_set['description'])?>" />
<meta name="og:url" content="<?=get_current_link()?>" />
<meta name="og:image" content="<?=($metaimage ? $metaimage : ($headerimg ? $headerimg : '/'.get_theme_lib().'/images/moto360-filter.jpg'))?>" />
<meta name="twitter:site" content="<?=$_set['twitter_site']?>" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="<?php get_page_title(); ?>" />
<meta name="twitter:description" content="<?=($description ? $description : $_set['description'])?>" />
<meta name="twitter:url" content="<?=get_current_link()?>" />
<meta name="twitter:image:src" content="<?=($metaimage ? $metaimage : ($headerimg ? $headerimg : '/'.get_theme_lib().'/images/moto360-filter.jpg'))?>" />
<?php get_page_extra_head(); ?>
</head>
<body<?=(isset($seo[1]) ? ' class="nohome"' : null)?>>
<header id="floating-header">
<div id="header-wrapper"<?=($headerimg ? ' style="background-image:url(\''.$headerimg.'\')" class="dim"' : null)?>>
<div id="header" class="container">
<div id="logo">
<h1><a href="<?=get_current_link()?>"><?=$_set['title'].(isset($_title[0]) ? ' &#8226; <span>'.trimlink($_title[0].(isset($_title[1]) ? ' &#8226; '.$_title[1] : null), 100) : null)?></span></a></h1>
<p><?=$_set['tagline']?></p>
</div>
<div id="menu">
<ul>
<?php get_navigation(); ?>
</ul>
</div>
<div id="tags">
<ul>
<?php get_tags(); ?>
</ul>
</div>
</div>
</div>
<a id="arrowDown" href="#"></a>
</header>
<div id="page">
<?php
get_errors();
get_infos();
?>
<div id="content">
<?php echo get_site_body(); ?>
</div>
</div>
<footer id="footer">
<?php if (!LOGGEDIN) : ?>
<form action="//filtr.sandros.hu/app_login/<?=$_set['filtr_appid']?>&amp;ret" method="get" name="login-form" id="footer-account">
<input type="submit" name="login" value="<?=$_locale['login']?>" />
</form>
<?php else :
echo "<div id='footer-account'>";
include 'includes/sidebar/account.php';
echo "</div>";
endif; ?>
<p>&copy; <?=date('Y')?> <?=$_set['title']?>. All rights reserved. Powered by <a href="http://sandros.hu/">Insanely</a>.</p>
</footer>
<a id="scroll-up" href="#top"></a>
<?php get_page_extra_body(); ?>
</body>
</html>

View File

@ -1,70 +1,70 @@
/* jQuery Plugins */
(function($) {
$.fn.longClick = function(callback, timeout) {
var timer;
timeout = timeout || 500;
$(this).mousedown(function() {
timer = setTimeout(function() { callback(); }, timeout);
return false;
});
$(document).mouseup(function() {
clearTimeout(timer);
return false;
});
};
})(jQuery);
/* EXTRA FUCKING VIEW */
function keepThePageAwesome() {
if ($(window).width() < 1020)
{
keepTheFuckingSidebarOnTheScreenOkay = true;
$(document.body).addClass('tinyscreen');
}
else
{
keepTheFuckingSidebarOnTheScreenOkay = false;
$(document.body).removeClass('tinyscreen');
}
}
/* AWESOMENESS */
$(document).ready(function() {
// Mobile view
if ((navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) ? true : false))
$(document.body).addClass('tinyscreen');
else if (userdata)
$('header').append('<a id="miniprofile" href="'+(userdata[1] > 1 ? '/admin' : '/user/'+userdata[2])+'"><img src="//filtr.sandros.hu/proxy/avatar/'+userdata[0]+'" alt=""/>'+userdata[3]+'</a>'); // User miniprofile
$(window).resize(function() { keepThePageAwesome(); }).resize();
// TWEET ANIMS
$("article.tweet").hover(function() {
$(this).find("p.readmore").stop().slideDown();
},
function(){
$(this).find("p.readmore").stop().slideUp();
});
// Sub-page detection
if (/entry|\/p\/|tag|page|user|admin/.test(window.location.href) && !headerimg)
$(window).scrollTop($('#page').offset().top);
// Scroll down button
$('#arrowDown').click(function() {
$("html, body").animate({scrollTop: $('#page').offset().top}, '500', function() {
window.location.hash = '#content';
});
}).longClick(function() {
$("html, body").animate({scrollTop: $(document).height()-$(window).height()}, '1800');
});
// Scroll to the top button
$('#scroll-up').click(function() { $("html, body").animate({scrollTop: 0}, '2000'); return false; });
// Typing animation
//var $el=$('#logo h1 span'),txt=$el.text(),txtLen=txt.length,timeOut,char=0;$el.text('|');(function typeIt(){var humanize=Math.round(Math.random()*(100-30))+30;timeOut=setTimeout(function(){char++;var type=txt.substring(0,char);$el.text(type+'|');typeIt();if(char==txtLen){$el.text($el.text().slice(0,-1));clearTimeout(timeOut);}},humanize);}());
/* jQuery Plugins */
(function($) {
$.fn.longClick = function(callback, timeout) {
var timer;
timeout = timeout || 500;
$(this).mousedown(function() {
timer = setTimeout(function() { callback(); }, timeout);
return false;
});
$(document).mouseup(function() {
clearTimeout(timer);
return false;
});
};
})(jQuery);
/* EXTRA FUCKING VIEW */
function keepThePageAwesome() {
if ($(window).width() < 1020)
{
keepTheFuckingSidebarOnTheScreenOkay = true;
$(document.body).addClass('tinyscreen');
}
else
{
keepTheFuckingSidebarOnTheScreenOkay = false;
$(document.body).removeClass('tinyscreen');
}
}
/* AWESOMENESS */
$(document).ready(function() {
// Mobile view
if ((navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) ? true : false))
$(document.body).addClass('tinyscreen');
else if (userdata)
$('header').append('<a id="miniprofile" href="'+(userdata[1] > 1 ? '/admin' : '/user/'+userdata[2])+'"><img src="//filtr.sandros.hu/proxy/avatar/'+userdata[0]+'" alt=""/>'+userdata[3]+'</a>'); // User miniprofile
$(window).resize(function() { keepThePageAwesome(); }).resize();
// TWEET ANIMS
$("article.tweet").hover(function() {
$(this).find("p.readmore").stop().slideDown();
},
function(){
$(this).find("p.readmore").stop().slideUp();
});
// Sub-page detection
if (/entry|\/p\/|tag|page|user|admin/.test(window.location.href) && !headerimg)
$(window).scrollTop($('#page').offset().top);
// Scroll down button
$('#arrowDown').click(function() {
$("html, body").animate({scrollTop: $('#page').offset().top}, '500', function() {
window.location.hash = '#content';
});
}).longClick(function() {
$("html, body").animate({scrollTop: $(document).height()-$(window).height()}, '1800');
});
// Scroll to the top button
$('#scroll-up').click(function() { $("html, body").animate({scrollTop: 0}, '2000'); return false; });
// Typing animation
//var $el=$('#logo h1 span'),txt=$el.text(),txtLen=txt.length,timeOut,char=0;$el.text('|');(function typeIt(){var humanize=Math.round(Math.random()*(100-30))+30;timeOut=setTimeout(function(){char++;var type=txt.substring(0,char);$el.text(type+'|');typeIt();if(char==txtLen){$el.text($el.text().slice(0,-1));clearTimeout(timeOut);}},humanize);}());
});

View File

@ -1,19 +1,19 @@
<?php
if ($blog->entries)
{
while ($data = $blog->entries())
{
$entry_init = entry_show_init($data['entryContent'], $data['entrySlug']);
echo "<article".($data['entryPinned'] ? ' class="pinned"' : '').(strlen(strip_tags($entry_init)) <= 210 ? ' class="tweet"' : '')." title='".show_date($data['entryPublished'])."'>
<header>
<h2><a href='".get_entry_link($data['entrySlug'])."'>".htmlspecialchars($data['entryTitle'])."</a></h2>
<p class='meta'><time class='date' title='{locale:published_on}'>".show_date($data['entryPublished'])."</time><a href='".get_profile_link($data['userName'])."' class='by' title='{locale:entry_by}'>$data[publicName]</a></p>
</header>
<div class='content'>".$entry_init."</div>
</article>\n";
unset($entry_init);
}
echo "<p class='paginator'>".(isset($seo[1]) && isnum($seo[1]) ? "<a href='/p/".($seo[1]-1)."' class='prev'>{locale:prev_page}</a><a href='/p/".($seo[1]+1)."' class='next'>{locale:next_page}</a>" : "<a href='/p/2' class='next'>{locale:next_page}</a>")."</p>";
} else
echo "<h1>{locale:no_more_title}</h1>"
<?php
if ($blog->entries)
{
while ($data = $blog->entries())
{
$entry_init = entry_show_init($data['entryContent'], $data['entrySlug']);
echo "<article".($data['entryPinned'] ? ' class="pinned"' : '').(strlen(strip_tags($entry_init)) <= 210 ? ' class="tweet"' : '')." title='".show_date($data['entryPublished'])."'>
<header>
<h2><a href='".get_entry_link($data['entrySlug'])."'>".htmlspecialchars($data['entryTitle'])."</a></h2>
<p class='meta'><time class='date' title='{locale:published_on}'>".show_date($data['entryPublished'])."</time><a href='".get_profile_link($data['userName'])."' class='by' title='{locale:entry_by}'>$data[publicName]</a></p>
</header>
<div class='content'>".$entry_init."</div>
</article>\n";
unset($entry_init);
}
echo "<p class='paginator'>".(isset($seo[1]) && isnum($seo[1]) ? "<a href='/p/".($seo[1]-1)."' class='prev'>{locale:prev_page}</a><a href='/p/".($seo[1]+1)."' class='next'>{locale:next_page}</a>" : "<a href='/p/2' class='next'>{locale:next_page}</a>")."</p>";
} else
echo "<h1>{locale:no_more_title}</h1>"
."<p>{locale:no_more}</p>\n";

View File

@ -1,31 +1,31 @@
<?php
if ($blog->entries)
while ($data = $blog->entry())
{
addTitle($data['entryTitle']);
if ($data['entryHidden']) echo "<p>{locale:hidden_content}</p>";
if ($data['entryPIN'] && get_pin() != $data['entryPIN'])
echo "<p>{locale:pin_protected_content}</p>
<form action='".get_entry_link($data['entrySlug'])."' method='post' name='entry-pin-input'>
<input type='text' name='read_entry_pin' placeholder='{locale:entry_pin}' />
<button type='submit'>{locale:unlock}</button>
</form>";
else
{
addDescription(entry_show_init($data['entryContent'], $data['entrySlug']));
addImage((preg_match('/< *img[^>]*src *= *["\']?([^"\']*)/i', $data['entryContent'], $images) ? $images[1] : 0));
headerImage($data['entryHeader']);
echo "<article class='full'>
".(strlen($data['entryTitle']) > 50 ? "<h2>".htmlspecialchars($data['entryTitle'])."</h2>" : null)."
<p class='meta'><time class='date' title='{locale:published_on}'>".show_date($data['entryPublished'])."</time><a href='".get_profile_link($data['userName'])."' class='by' title='{locale:entry_by}'>$data[publicName]</a>
<div class='content'>".entry_show_all($data['entryContent'])."</div>
<p clasS='meta'>".get_entry_admin($data)."</p>
</article>\n";
}
}
else
echo "<h1>{locale:entry_not_found_title}</h1>"
."<p>{locale:entry_not_found}</p>\n";
<?php
if ($blog->entries)
while ($data = $blog->entry())
{
addTitle($data['entryTitle']);
if ($data['entryHidden']) echo "<p>{locale:hidden_content}</p>";
if ($data['entryPIN'] && get_pin() != $data['entryPIN'])
echo "<p>{locale:pin_protected_content}</p>
<form action='".get_entry_link($data['entrySlug'])."' method='post' name='entry-pin-input'>
<input type='text' name='read_entry_pin' placeholder='{locale:entry_pin}' />
<button type='submit'>{locale:unlock}</button>
</form>";
else
{
addDescription(entry_show_init($data['entryContent'], $data['entrySlug']));
addImage((preg_match('/< *img[^>]*src *= *["\']?([^"\']*)/i', $data['entryContent'], $images) ? $images[1] : 0));
headerImage($data['entryHeader']);
echo "<article class='full'>
".(strlen($data['entryTitle']) > 50 ? "<h2>".htmlspecialchars($data['entryTitle'])."</h2>" : null)."
<p class='meta'><time class='date' title='{locale:published_on}'>".show_date($data['entryPublished'])."</time><a href='".get_profile_link($data['userName'])."' class='by' title='{locale:entry_by}'>$data[publicName]</a>
<div class='content'>".entry_show_all($data['entryContent'])."</div>
<p clasS='meta'>".get_entry_admin($data)."</p>
</article>\n";
}
}
else
echo "<h1>{locale:entry_not_found_title}</h1>"
."<p>{locale:entry_not_found}</p>\n";

View File

@ -1,8 +1,8 @@
<?php
if ($page->readable())
{
addTitle($page->data['pageTitle']);
echo "<article>".entry_show_all($page->data['pageContent'])."</article>";
} else
<?php
if ($page->readable())
{
addTitle($page->data['pageTitle']);
echo "<article>".entry_show_all($page->data['pageContent'])."</article>";
} else
echo "<h2>$_locale[page_not_found]</h2><p>$_locale[page_not_found_text]</p>";

View File

@ -1,46 +1,46 @@
<div class="profile">
<h3><?=$userData['userName'].($me ? ' <a href="'.get_current_link().'/edit" class="edit">{locale:profile_edit}</a>' : '')?></h3>
<div id="profile_pic" style="background-image: url('<?=get_profile_picture($userData)?>')">
<?php if ($me) : ?>
<form action="<?=get_current_link()?>" method="post" name="userpic-upload" enctype="multipart/form-data">
<input type="file" name="userPic" id="userPicInput" style="display: none" />
<button type="button" onclick="$('#userPicInput').focus().click()">{locale:browse}</button><button type="submit" id="userPicSaveBtn" class="orange">{locale:delete}</button>
</form>
<script>
$("#userPicInput").change(function() {
$("#userPicSaveBtn").html('{locale:save}').removeClass('orange');
});
</script>
<?php endif ?>
</div>
<?php if (LOGGEDIN) : ?>
<div class='box contact'>
<p><strong>{locale:name}:</strong> <?=$userData['userRealName']?></p>
<p><strong>{locale:email}:</strong> <?=$userData['userEmail']?></p>
<?=($userData['userWeb'] ? '<p><strong>{locale:web}:</strong> '.$userData['userWeb'].'</p>' : null)?>
</div>
<?php endif ?>
<?php
$recent = $_sql->query("SELECT entrySlug, entryTitle FROM entries WHERE entryBy = $userData[userId] AND entryPublished <= ".time()." ORDER BY entryPublished DESC LIMIT 5");
if ($recent->num_rows) : ?>
<div class='box recent'>
<?php
while ($data = $recent->fetch_assoc())
echo "<p><a href='".get_entry_link($data['entrySlug'])."'>".trimlink($data['entryTitle'], 42)."</a></p>\n";
?>
</div>
<?php endif; unset($recent); ?>
<div style="clear: both"></div>
<?php if ($userData['userIntroduction']) : ?>
<div class='box introduction'>
<p><?=$userData['userIntroduction']?></p>
</div>
<div style="clear: both"></div>
<?php endif ?>
<div class="clear"></div>
</div>
<div class="profile">
<h3><?=$userData['userName'].($me ? ' <a href="'.get_current_link().'/edit" class="edit">{locale:profile_edit}</a>' : '')?></h3>
<div id="profile_pic" style="background-image: url('<?=get_profile_picture($userData)?>')">
<?php if ($me) : ?>
<form action="<?=get_current_link()?>" method="post" name="userpic-upload" enctype="multipart/form-data">
<input type="file" name="userPic" id="userPicInput" style="display: none" />
<button type="button" onclick="$('#userPicInput').focus().click()">{locale:browse}</button><button type="submit" id="userPicSaveBtn" class="orange">{locale:delete}</button>
</form>
<script>
$("#userPicInput").change(function() {
$("#userPicSaveBtn").html('{locale:save}').removeClass('orange');
});
</script>
<?php endif ?>
</div>
<?php if (LOGGEDIN) : ?>
<div class='box contact'>
<p><strong>{locale:name}:</strong> <?=$userData['userRealName']?></p>
<p><strong>{locale:email}:</strong> <?=$userData['userEmail']?></p>
<?=($userData['userWeb'] ? '<p><strong>{locale:web}:</strong> '.$userData['userWeb'].'</p>' : null)?>
</div>
<?php endif ?>
<?php
$recent = $_sql->query("SELECT entrySlug, entryTitle FROM entries WHERE entryBy = $userData[userId] AND entryPublished <= ".time()." ORDER BY entryPublished DESC LIMIT 5");
if ($recent->num_rows) : ?>
<div class='box recent'>
<?php
while ($data = $recent->fetch_assoc())
echo "<p><a href='".get_entry_link($data['entrySlug'])."'>".trimlink($data['entryTitle'], 42)."</a></p>\n";
?>
</div>
<?php endif; unset($recent); ?>
<div style="clear: both"></div>
<?php if ($userData['userIntroduction']) : ?>
<div class='box introduction'>
<p><?=$userData['userIntroduction']?></p>
</div>
<div style="clear: both"></div>
<?php endif ?>
<div class="clear"></div>
</div>
<div class="clear"></div>

View File

@ -1,18 +1,18 @@
<?php
if ($tagged->num_rows)
{
$tag = $tagged->fetch_assoc();
addTitle($tag['tagName']);
if ($entries->num_rows)
{
while ($data = $entries->fetch_assoc())
echo "<h3><a href='".get_entry_link($data['entrySlug'])."'>".htmlspecialchars(trimlink($data['entryTitle'],90))."</a></h3>"
."<p>".show_date($data['entryPublished'])."</p>";
}
} else
redirect();
unset($tag);
unset($tagged);
<?php
if ($tagged->num_rows)
{
$tag = $tagged->fetch_assoc();
addTitle($tag['tagName']);
if ($entries->num_rows)
{
while ($data = $entries->fetch_assoc())
echo "<h3><a href='".get_entry_link($data['entrySlug'])."'>".htmlspecialchars(trimlink($data['entryTitle'],90))."</a></h3>"
."<p>".show_date($data['entryPublished'])."</p>";
}
} else
redirect();
unset($tag);
unset($tagged);
unset($entries);

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 182 KiB

After

Width:  |  Height:  |  Size: 184 KiB

View File

@ -1,3 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg height="512px" id="Layer_1" style="enable-background:new 0 0 512 512; fill: #FFF" version="1.1" viewBox="0 0 512 512" width="512px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><polygon points="396.6,160 416,180.7 256,352 96,180.7 115.3,160 256,310.5 "/></svg>

Before

Width:  |  Height:  |  Size: 457 B

After

Width:  |  Height:  |  Size: 459 B

File diff suppressed because it is too large Load Diff

View File

@ -1,76 +1,76 @@
<!doctype html>
<html>
<head>
<title><?php get_page_title(); ?></title>
<meta charset="utf-8" />
<link href="/includes/css/ui-lightness/jquery-ui.custom.min.css" rel="stylesheet" />
<link href="/<?=get_theme_lib()?>/font/typicons.min.css" rel="stylesheet" />
<link rel="stylesheet" href="/<?=get_theme_lib()?>/style.css" type="text/css" media="screen" />
<link href='//fonts.googleapis.com/css?family=Archivo+Narrow:400,700|Open+Sans:400,300&amp;subset=latin,latin-ext' rel='stylesheet' type='text/css' />
<script src="/includes/js/jquery.js"></script>
<script src="/includes/js/jquery-ui.custom.min.js"></script>
<script src="/includes/js/functions.js"></script>
<script><?php
echo 'var headerimg = '.($headerimg ? 'true':'false').';';
if (LOGGEDIN) echo 'var userdata = ['.$user['userFiltrId'].','.$user['userLevel'].',"'.$user['userName'].'","'.$user['userPublicName'].'"];';
else echo 'var userdata = false;';
?></script>
<script src="/<?=get_theme_lib()?>/theme.js"></script>
<meta name="keywords" content="<?=keywords()?>" />
<meta name="description" content="<?=($description ? $description : $_set['description'])?>" />
<meta name="copyright" content="Sandros 2015" />
<meta name="robot" content="index, follow" />
<meta property="og:title" content="<?=(isset($_title[0]) ? $_title[0] : $_set['title'])?>" />
<meta property="og:image" content="<?=($metaimage ? $metaimage : ($headerimg ? $headerimg : '/'.get_theme_lib().'/images/moto360-filter.jpg'))?>" />
<meta property="og:description" content="<?=($description ? $description : $_set['description'])?>" />
<?php get_page_extra_head(); ?>
</head>
<body>
<header id="floating-header">
<div id="header-wrapper"<?=($headerimg ? ' style="background-image:url(\''.$headerimg.'\')" class="dim"' : null)?>>
<div id="header" class="container">
<div id="logo">
<h1><a href="<?=get_current_link()?>"><?=$_set['title'].(isset($_title[0]) ? ' &#8226; '.trimlink($_title[0].(isset($_title[1]) ? ' &#8226; '.$_title[1] : null), 100) : null)?></a></h1>
<p><?=$_set['tagline']?></p>
</div>
<div id="menu">
<ul>
<?php get_navigation(); ?>
</ul>
</div>
<div id="tags">
<ul>
<?php get_tags(); ?>
</ul>
</div>
</div>
</div>
<a id="arrowDown" href="#"></a>
</header>
<div id="page">
<?php
get_errors();
get_infos();
?>
<section id="content">
<?php echo get_site_body(); ?>
</section>
</div>
<footer id="footer">
<?php if (!LOGGEDIN) : ?>
<form action="//filtr.sandros.hu/app_login/<?=$_set['filtr_appid']?>&amp;ret" method="get" name="login-form" id="footer-account">
<input type="submit" name="login" value="<?=$_locale['login']?>" />
</form>
<?php else :
echo "<div id='footer-account'>";
include 'includes/sidebar/account.php';
echo "</div>";
endif; ?>
<p>&copy; <?=date('Y')?> <?=$_set['title']?>. All rights reserved. Powered by <a href="http://sandros.hu/">Insanely</a>.</p>
</footer>
<a id="scroll-up" href="#top"></a>
<?php get_page_extra_body(); ?>
</body>
<!doctype html>
<html>
<head>
<title><?php get_page_title(); ?></title>
<meta charset="utf-8" />
<link href="/includes/css/ui-lightness/jquery-ui.custom.min.css" rel="stylesheet" />
<link href="/<?=get_theme_lib()?>/font/typicons.min.css" rel="stylesheet" />
<link rel="stylesheet" href="/<?=get_theme_lib()?>/style.css" type="text/css" media="screen" />
<link href='//fonts.googleapis.com/css?family=Archivo+Narrow:400,700|Open+Sans:400,300&amp;subset=latin,latin-ext' rel='stylesheet' type='text/css' />
<script src="/includes/js/jquery.js"></script>
<script src="/includes/js/jquery-ui.custom.min.js"></script>
<script src="/includes/js/functions.js"></script>
<script><?php
echo 'var headerimg = '.($headerimg ? 'true':'false').';';
if (LOGGEDIN) echo 'var userdata = ['.$user['userFiltrId'].','.$user['userLevel'].',"'.$user['userName'].'","'.$user['userPublicName'].'"];';
else echo 'var userdata = false;';
?></script>
<script src="/<?=get_theme_lib()?>/theme.js"></script>
<meta name="keywords" content="<?=keywords()?>" />
<meta name="description" content="<?=($description ? $description : $_set['description'])?>" />
<meta name="copyright" content="Sandros 2015" />
<meta name="robot" content="index, follow" />
<meta property="og:title" content="<?=(isset($_title[0]) ? $_title[0] : $_set['title'])?>" />
<meta property="og:image" content="<?=($metaimage ? $metaimage : ($headerimg ? $headerimg : '/'.get_theme_lib().'/images/moto360-filter.jpg'))?>" />
<meta property="og:description" content="<?=($description ? $description : $_set['description'])?>" />
<?php get_page_extra_head(); ?>
</head>
<body>
<header id="floating-header">
<div id="header-wrapper"<?=($headerimg ? ' style="background-image:url(\''.$headerimg.'\')" class="dim"' : null)?>>
<div id="header" class="container">
<div id="logo">
<h1><a href="<?=get_current_link()?>"><?=$_set['title'].(isset($_title[0]) ? ' &#8226; '.trimlink($_title[0].(isset($_title[1]) ? ' &#8226; '.$_title[1] : null), 100) : null)?></a></h1>
<p><?=$_set['tagline']?></p>
</div>
<div id="menu">
<ul>
<?php get_navigation(); ?>
</ul>
</div>
<div id="tags">
<ul>
<?php get_tags(); ?>
</ul>
</div>
</div>
</div>
<a id="arrowDown" href="#"></a>
</header>
<div id="page">
<?php
get_errors();
get_infos();
?>
<section id="content">
<?php echo get_site_body(); ?>
</section>
</div>
<footer id="footer">
<?php if (!LOGGEDIN) : ?>
<form action="//filtr.sandros.hu/app_login/<?=$_set['filtr_appid']?>&amp;ret" method="get" name="login-form" id="footer-account">
<input type="submit" name="login" value="<?=$_locale['login']?>" />
</form>
<?php else :
echo "<div id='footer-account'>";
include 'includes/sidebar/account.php';
echo "</div>";
endif; ?>
<p>&copy; <?=date('Y')?> <?=$_set['title']?>. All rights reserved. Powered by <a href="http://sandros.hu/">Insanely</a>.</p>
</footer>
<a id="scroll-up" href="#top"></a>
<?php get_page_extra_body(); ?>
</body>
</html>

View File

@ -1,67 +1,67 @@
/* jQuery Plugins */
(function($) {
$.fn.longClick = function(callback, timeout) {
var timer;
timeout = timeout || 500;
$(this).mousedown(function() {
timer = setTimeout(function() { callback(); }, timeout);
return false;
});
$(document).mouseup(function() {
clearTimeout(timer);
return false;
});
};
})(jQuery);
/* EXTRA FUCKING VIEW */
function keepThePageAwesome() {
if ($(window).width() < 1020)
{
keepTheFuckingSidebarOnTheScreenOkay = true;
$(document.body).addClass('tinyscreen');
}
else
{
keepTheFuckingSidebarOnTheScreenOkay = false;
$(document.body).removeClass('tinyscreen');
}
}
/* AWESOMENESS */
$(document).ready(function() {
// Mobile view
if ((navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) ? true : false))
$(document.body).addClass('tinyscreen');
else if (userdata)
$('header').append('<a id="miniprofile" href="'+(userdata[1] > 1 ? '/admin' : '/user/'+userdata[2])+'"><img src="//filtr.sandros.hu/proxy/avatar/'+userdata[0]+'" alt=""/>'+userdata[3]+'</a>'); // User miniprofile
$(window).resize(function() { keepThePageAwesome(); }).resize();
// TWEET ANIMS
$("article.tweet").hover(function() {
$(this).find("p.readmore").stop().slideDown();
},
function(){
$(this).find("p.readmore").stop().slideUp();
});
// Sub-page detection
if (/entry|\/p\/|tag|page|user|admin/.test(window.location.href) && !headerimg)
$(window).scrollTop($('#page').offset().top);
// Scroll down button
$('#arrowDown').click(function() {
$("html, body").animate({scrollTop: $('#page').offset().top}, '500', function() {
window.location.hash = '#content';
});
}).longClick(function() {
$("html, body").animate({scrollTop: $(document).height()-$(window).height()}, '1800');
});
// Scroll to the top button
$('#scroll-up').click(function() { $("html, body").animate({scrollTop: 0}, '2000'); return false; });
/* jQuery Plugins */
(function($) {
$.fn.longClick = function(callback, timeout) {
var timer;
timeout = timeout || 500;
$(this).mousedown(function() {
timer = setTimeout(function() { callback(); }, timeout);
return false;
});
$(document).mouseup(function() {
clearTimeout(timer);
return false;
});
};
})(jQuery);
/* EXTRA FUCKING VIEW */
function keepThePageAwesome() {
if ($(window).width() < 1020)
{
keepTheFuckingSidebarOnTheScreenOkay = true;
$(document.body).addClass('tinyscreen');
}
else
{
keepTheFuckingSidebarOnTheScreenOkay = false;
$(document.body).removeClass('tinyscreen');
}
}
/* AWESOMENESS */
$(document).ready(function() {
// Mobile view
if ((navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) ? true : false))
$(document.body).addClass('tinyscreen');
else if (userdata)
$('header').append('<a id="miniprofile" href="'+(userdata[1] > 1 ? '/admin' : '/user/'+userdata[2])+'"><img src="//filtr.sandros.hu/proxy/avatar/'+userdata[0]+'" alt=""/>'+userdata[3]+'</a>'); // User miniprofile
$(window).resize(function() { keepThePageAwesome(); }).resize();
// TWEET ANIMS
$("article.tweet").hover(function() {
$(this).find("p.readmore").stop().slideDown();
},
function(){
$(this).find("p.readmore").stop().slideUp();
});
// Sub-page detection
if (/entry|\/p\/|tag|page|user|admin/.test(window.location.href) && !headerimg)
$(window).scrollTop($('#page').offset().top);
// Scroll down button
$('#arrowDown').click(function() {
$("html, body").animate({scrollTop: $('#page').offset().top}, '500', function() {
window.location.hash = '#content';
});
}).longClick(function() {
$("html, body").animate({scrollTop: $(document).height()-$(window).height()}, '1800');
});
// Scroll to the top button
$('#scroll-up').click(function() { $("html, body").animate({scrollTop: 0}, '2000'); return false; });
});

View File

@ -1,19 +1,19 @@
<?php
if ($blog->entries)
{
while ($data = $blog->entries())
{
$entry_init = entry_show_init($data['entryContent'], $data['entrySlug']);
echo "<article".($data['entryPinned'] ? ' class="pinned"' : '').(strlen(strip_tags($entry_init)) <= 210 ? ' class="tweet"' : '')." title='".show_date($data['entryPublished'])."'>
<header>
<h2><a href='".get_entry_link($data['entrySlug'])."'>".htmlspecialchars($data['entryTitle'])."</a></h2>
<p class='meta'><time class='date' title='{locale:published_on}'>".show_date($data['entryPublished'])."</time><a href='".get_profile_link($data['userName'])."' class='by' title='{locale:entry_by}'>$data[publicName]</a></p>
</header>
<div class='content'>".$entry_init."</div>
</article>\n";
unset($entry_init);
}
echo "<p class='paginator'>".(isset($seo[1]) && isnum($seo[1]) ? "<a href='/p/".($seo[1]-1)."' class='prev'>{locale:prev_page}</a><a href='/p/".($seo[1]+1)."' class='next'>{locale:next_page}</a>" : "<a href='/p/2' class='next'>{locale:next_page}</a>")."</p>";
} else
echo "<h1>$_locale[entry_not_found_title]</h1>"
<?php
if ($blog->entries)
{
while ($data = $blog->entries())
{
$entry_init = entry_show_init($data['entryContent'], $data['entrySlug']);
echo "<article".($data['entryPinned'] ? ' class="pinned"' : '').(strlen(strip_tags($entry_init)) <= 210 ? ' class="tweet"' : '')." title='".show_date($data['entryPublished'])."'>
<header>
<h2><a href='".get_entry_link($data['entrySlug'])."'>".htmlspecialchars($data['entryTitle'])."</a></h2>
<p class='meta'><time class='date' title='{locale:published_on}'>".show_date($data['entryPublished'])."</time><a href='".get_profile_link($data['userName'])."' class='by' title='{locale:entry_by}'>$data[publicName]</a></p>
</header>
<div class='content'>".$entry_init."</div>
</article>\n";
unset($entry_init);
}
echo "<p class='paginator'>".(isset($seo[1]) && isnum($seo[1]) ? "<a href='/p/".($seo[1]-1)."' class='prev'>{locale:prev_page}</a><a href='/p/".($seo[1]+1)."' class='next'>{locale:next_page}</a>" : "<a href='/p/2' class='next'>{locale:next_page}</a>")."</p>";
} else
echo "<h1>$_locale[entry_not_found_title]</h1>"
."<p>$_locale[entry_not_found]</p>\n";

View File

@ -1,18 +1,18 @@
<?php
if ($blog->entries)
while ($data = $blog->entry())
{
addTitle($data['entryTitle']);
addDescription(trimlink($data['entryContent']));
addImage((preg_match('/< *img[^>]*src *= *["\']?([^"\']*)/i', $data['entryContent'], $images) ? $images[1] : 0));
echo "<article class='full'>
".(strlen($data['entryTitle']) > 50 ? "<h2>".htmlspecialchars($data['entryTitle'])."</h2>" : '')."
<p class='meta'><time class='date' title='{locale:published_on}'>".show_date($data['entryPublished'])."</time><a href='".get_profile_link($data['userName'])."' class='by' title='{locale:entry_by}'>$data[publicName]</a>
<div class='content'>".entry_show_all($data['entryContent'])."</div>
<p clasS='meta'>".get_entry_admin($data)."</p>
</article>\n";
}
else
echo "<h1>$_locale[entry_not_found_title]</h1>"
<?php
if ($blog->entries)
while ($data = $blog->entry())
{
addTitle($data['entryTitle']);
addDescription(trimlink($data['entryContent']));
addImage((preg_match('/< *img[^>]*src *= *["\']?([^"\']*)/i', $data['entryContent'], $images) ? $images[1] : 0));
echo "<article class='full'>
".(strlen($data['entryTitle']) > 50 ? "<h2>".htmlspecialchars($data['entryTitle'])."</h2>" : '')."
<p class='meta'><time class='date' title='{locale:published_on}'>".show_date($data['entryPublished'])."</time><a href='".get_profile_link($data['userName'])."' class='by' title='{locale:entry_by}'>$data[publicName]</a>
<div class='content'>".entry_show_all($data['entryContent'])."</div>
<p clasS='meta'>".get_entry_admin($data)."</p>
</article>\n";
}
else
echo "<h1>$_locale[entry_not_found_title]</h1>"
."<p>$_locale[entry_not_found]</p>\n";

View File

@ -1,7 +1,7 @@
<?php
if ($page->readable())
{
addTitle($page->data['pageTitle']);
echo "<article>".entry_show_all($page->data['pageContent'])."</article>";
<?php
if ($page->readable())
{
addTitle($page->data['pageTitle']);
echo "<article>".entry_show_all($page->data['pageContent'])."</article>";
}

View File

@ -1,45 +1,45 @@
<div class="profile">
<h3><?=$userData['userName'].($me ? ' <a href="'.get_current_link().'/edit" class="edit">{locale:profile_edit}</a>' : '')?></h3>
<div id="profile_pic" style="background-image: url('<?=get_profile_picture($userData)?>')">
<?php if ($me) : ?>
<form action="<?=get_current_link()?>" method="post" name="userpic-upload" enctype="multipart/form-data">
<input type="file" name="userPic" id="userPicInput" style="display: none" />
<button type="button" onclick="$('#userPicInput').focus().click()">{locale:browse}</button><button type="submit" id="userPicSaveBtn" class="orange">{locale:delete}</button>
</form>
<script>
$("#userPicInput").change(function() {
$("#userPicSaveBtn").html('{locale:save}').removeClass('orange');
});
</script>
<?php endif ?>
</div>
<?php if (LOGGEDIN) : ?>
<div class='box contact'>
<p><strong>{locale:name}:</strong> <?=$userData['userRealName']?></p>
<p><strong>{locale:email}:</strong> <?=$userData['userEmail']?></p>
<p><strong>{locale:web}:</strong> <?=$userData['userWeb']?></p>
</div>
<?php endif ?>
<?php
$recent = $_sql->query("SELECT entrySlug, entryTitle FROM entries WHERE entryBy = $userData[userId] AND entryPublished <= ".time()." ORDER BY entryPublished DESC LIMIT 5");
if ($recent->num_rows) : ?>
<div class='box recent'>
<?php
while ($data = $recent->fetch_assoc())
echo "<p><a href='".get_entry_link($data['entrySlug'])."'>".trimlink($data['entryTitle'], 42)."</a></p>\n";
?>
</div>
<?php endif; unset($recent); ?>
<div style="clear: both"></div>
<?php if ($userData['userIntroduction']) : ?>
<div class='box introduction'>
<p><?=$userData['userIntroduction']?></p>
</div>
<?php endif ?>
<div class="clear"></div>
</div>
<div class="profile">
<h3><?=$userData['userName'].($me ? ' <a href="'.get_current_link().'/edit" class="edit">{locale:profile_edit}</a>' : '')?></h3>
<div id="profile_pic" style="background-image: url('<?=get_profile_picture($userData)?>')">
<?php if ($me) : ?>
<form action="<?=get_current_link()?>" method="post" name="userpic-upload" enctype="multipart/form-data">
<input type="file" name="userPic" id="userPicInput" style="display: none" />
<button type="button" onclick="$('#userPicInput').focus().click()">{locale:browse}</button><button type="submit" id="userPicSaveBtn" class="orange">{locale:delete}</button>
</form>
<script>
$("#userPicInput").change(function() {
$("#userPicSaveBtn").html('{locale:save}').removeClass('orange');
});
</script>
<?php endif ?>
</div>
<?php if (LOGGEDIN) : ?>
<div class='box contact'>
<p><strong>{locale:name}:</strong> <?=$userData['userRealName']?></p>
<p><strong>{locale:email}:</strong> <?=$userData['userEmail']?></p>
<p><strong>{locale:web}:</strong> <?=$userData['userWeb']?></p>
</div>
<?php endif ?>
<?php
$recent = $_sql->query("SELECT entrySlug, entryTitle FROM entries WHERE entryBy = $userData[userId] AND entryPublished <= ".time()." ORDER BY entryPublished DESC LIMIT 5");
if ($recent->num_rows) : ?>
<div class='box recent'>
<?php
while ($data = $recent->fetch_assoc())
echo "<p><a href='".get_entry_link($data['entrySlug'])."'>".trimlink($data['entryTitle'], 42)."</a></p>\n";
?>
</div>
<?php endif; unset($recent); ?>
<div style="clear: both"></div>
<?php if ($userData['userIntroduction']) : ?>
<div class='box introduction'>
<p><?=$userData['userIntroduction']?></p>
</div>
<?php endif ?>
<div class="clear"></div>
</div>
<div class="clear"></div>

View File

@ -1,19 +1,19 @@
<?php
if ($tagged->num_rows)
{
$tag = $tagged->fetch_assoc();
addTitle($tag['tagName']);
if ($entries->num_rows)
{
echo "<table class='pro'>";
while ($data = $entries->fetch_assoc())
echo "<tr><td><a href='".get_entry_link($data['entrySlug'])."'>".htmlspecialchars(trimlink($data['entryTitle'],90))."</a></td><td>".show_date($data['entryPublished'])."</td></tr>";
echo "</table>";
}
} else
redirect();
unset($tag);
unset($tagged);
<?php
if ($tagged->num_rows)
{
$tag = $tagged->fetch_assoc();
addTitle($tag['tagName']);
if ($entries->num_rows)
{
echo "<table class='pro'>";
while ($data = $entries->fetch_assoc())
echo "<tr><td><a href='".get_entry_link($data['entrySlug'])."'>".htmlspecialchars(trimlink($data['entryTitle'],90))."</a></td><td>".show_date($data['entryPublished'])."</td></tr>";
echo "</table>";
}
} else
redirect();
unset($tag);
unset($tagged);
unset($entries);

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 182 KiB

After

Width:  |  Height:  |  Size: 184 KiB

View File

@ -1,12 +1,12 @@
<!-- end #sidebar -->
<div style="clear: both;">&nbsp;</div>
</div>
<!-- end #page -->
</div>
<div id="footer">
<p>&copy; <?=date('Y')?> <?=$_set['title']?>. All rights reserved. Powered by <a href="http://sandros.hu/">Insanely</a>.</p>
</div>
<!-- end #footer -->
<?php get_page_extra_body(); ?>
</body>
<!-- end #sidebar -->
<div style="clear: both;">&nbsp;</div>
</div>
<!-- end #page -->
</div>
<div id="footer">
<p>&copy; <?=date('Y')?> <?=$_set['title']?>. All rights reserved. Powered by <a href="http://sandros.hu/">Insanely</a>.</p>
</div>
<!-- end #footer -->
<?php get_page_extra_body(); ?>
</body>
</html>

View File

@ -1,40 +1,40 @@
<!doctype html>
<html>
<head>
<title><?php get_page_title(); ?></title>
<meta charset="utf-8" />
<link href="/includes/css/ui-lightness/jquery-ui.custom.min.css" rel="stylesheet" />
<link href="/<?=get_theme_lib()?>/font/typicons.min.css" rel="stylesheet" />
<link rel="stylesheet" href="/<?=get_theme_lib()?>/style.css" type="text/css" media="screen" />
<link href='http://fonts.googleapis.com/css?family=Archivo+Narrow:400,700|Open+Sans:400,300&amp;subset=latin,latin-ext' rel='stylesheet' type='text/css' />
<script src="/includes/js/jquery.js"></script>
<script src="/includes/js/jquery-ui.custom.min.js"></script>
<script src="/includes/js/functions.js"></script>
<meta name="keywords" content="<?=($description ? $description : $_set['description'])?>" />
<meta name="description" content="<?=($description ? $description : $_set['description'])?>" />
<?php get_page_extra_head(); ?>
</head>
<body>
<div id="wrapper">
<div id="header-wrapper">
<div id="header" class="container">
<div id="logo">
<h1><a href="<?=get_current_link()?>"><?=(isset($_title[0]) ? trimlink($_title[0], 50) : $_set['title'])?></a></h1>
<p><?=$_set['tagline']?></p>
</div>
<div id="menu">
<ul>
<?php
if (isset($seo[0]) && strlen($seo[0]))
echo "<li><a href='$_set[url]'>$_locale[home]</a></li>";
?>
</ul>
</div>
</div>
</div>
<div id="page">
<?php
get_errors();
get_infos();
?>
<div id="content">
<!doctype html>
<html>
<head>
<title><?php get_page_title(); ?></title>
<meta charset="utf-8" />
<link href="/includes/css/ui-lightness/jquery-ui.custom.min.css" rel="stylesheet" />
<link href="/<?=get_theme_lib()?>/font/typicons.min.css" rel="stylesheet" />
<link rel="stylesheet" href="/<?=get_theme_lib()?>/style.css" type="text/css" media="screen" />
<link href='http://fonts.googleapis.com/css?family=Archivo+Narrow:400,700|Open+Sans:400,300&amp;subset=latin,latin-ext' rel='stylesheet' type='text/css' />
<script src="/includes/js/jquery.js"></script>
<script src="/includes/js/jquery-ui.custom.min.js"></script>
<script src="/includes/js/functions.js"></script>
<meta name="keywords" content="<?=($description ? $description : $_set['description'])?>" />
<meta name="description" content="<?=($description ? $description : $_set['description'])?>" />
<?php get_page_extra_head(); ?>
</head>
<body>
<div id="wrapper">
<div id="header-wrapper">
<div id="header" class="container">
<div id="logo">
<h1><a href="<?=get_current_link()?>"><?=(isset($_title[0]) ? trimlink($_title[0], 50) : $_set['title'])?></a></h1>
<p><?=$_set['tagline']?></p>
</div>
<div id="menu">
<ul>
<?php
if (isset($seo[0]) && strlen($seo[0]))
echo "<li><a href='$_set[url]'>$_locale[home]</a></li>";
?>
</ul>
</div>
</div>
</div>
<div id="page">
<?php
get_errors();
get_infos();
?>
<div id="content">

File diff suppressed because it is too large Load Diff

View File

@ -1,25 +1,25 @@
<?php
addHead('<script src="/'.get_theme_lib().'/theme.js"></script>');
include get_theme_lib().'/header.php';
echo get_site_body();
?>
<div style="clear: both;">&nbsp;</div>
</div>
<div id="sidebar">
<ul>
<li>
<h2><?=$_locale['navigation']?></h2>
<ul>
<?php get_navigation(); ?>
</ul>
</li>
<?php include 'includes/sidebar/sidebar.php'; ?>
</ul>
</div>
<?php
<?php
addHead('<script src="/'.get_theme_lib().'/theme.js"></script>');
include get_theme_lib().'/header.php';
echo get_site_body();
?>
<div style="clear: both;">&nbsp;</div>
</div>
<div id="sidebar">
<ul>
<li>
<h2><?=$_locale['navigation']?></h2>
<ul>
<?php get_navigation(); ?>
</ul>
</li>
<?php include 'includes/sidebar/sidebar.php'; ?>
</ul>
</div>
<?php
include get_theme_lib().'/footer.php';

View File

@ -1,65 +1,65 @@
/* EXTRA FUCKING VIEW */
var keepTheFuckingSidebarOnTheScreenOkay = false;
function keepThePageAwesome() {
$(document.body).addClass('smallscreen');
if ($(window).width() < 1000)
{
keepTheFuckingSidebarOnTheScreenOkay = true;
$(document.body).addClass('tinyscreen');
}
else
{
keepTheFuckingSidebarOnTheScreenOkay = false;
$(document.body).removeClass('tinyscreen');
}
}
$(window).resize(function() { keepThePageAwesome(); $("#sidebar").css('max-height', $(window).height()); });
/* AWESOMENESS */
var sidebarHeight = 900;
var contentWidth = 690;
$(document).ready(function() {
// MORE EXTA FUCKING FUNCTION
$("#sidebar").css('overflow', 'hidden').hover(function() {
$(this).css('overflow', 'auto');
},
function() {
$(this).css('overflow', 'hidden');
});
// TWEET ANIMS
$("article.tweet").hover(function() {
$(this).find("p.readmore").stop().slideDown();
},
function(){
$(this).find("p.readmore").stop().slideUp();
});
// SIDEBAR MAX HEIGHT
$("#sidebar").css('max-height', $(window).height()-100);
var contentHeight = $("#content").height();
if (sidebarHeight < $("#sidebar").height())
sidebarHeight = $("#sidebar").height();
contentWidth = $("#content").width();
keepThePageAwesome();
/* MORE AWESOMENESS */
var scrollTopLoc = 0;
$(window).scroll(function(){
scrollTopLoc = $(window).scrollTop();
if (!keepTheFuckingSidebarOnTheScreenOkay)
if (contentHeight > sidebarHeight && scrollTopLoc > 100)
{
if (contentHeight > sidebarHeight+scrollTopLoc)
$("#sidebar").stop().animate({"margin-top": ''+($(window).scrollTop() - 100)+'px'});
}
else
$("#sidebar").stop().css("margin-top", '0px');
});
/* EXTRA FUCKING VIEW */
var keepTheFuckingSidebarOnTheScreenOkay = false;
function keepThePageAwesome() {
$(document.body).addClass('smallscreen');
if ($(window).width() < 1000)
{
keepTheFuckingSidebarOnTheScreenOkay = true;
$(document.body).addClass('tinyscreen');
}
else
{
keepTheFuckingSidebarOnTheScreenOkay = false;
$(document.body).removeClass('tinyscreen');
}
}
$(window).resize(function() { keepThePageAwesome(); $("#sidebar").css('max-height', $(window).height()); });
/* AWESOMENESS */
var sidebarHeight = 900;
var contentWidth = 690;
$(document).ready(function() {
// MORE EXTA FUCKING FUNCTION
$("#sidebar").css('overflow', 'hidden').hover(function() {
$(this).css('overflow', 'auto');
},
function() {
$(this).css('overflow', 'hidden');
});
// TWEET ANIMS
$("article.tweet").hover(function() {
$(this).find("p.readmore").stop().slideDown();
},
function(){
$(this).find("p.readmore").stop().slideUp();
});
// SIDEBAR MAX HEIGHT
$("#sidebar").css('max-height', $(window).height()-100);
var contentHeight = $("#content").height();
if (sidebarHeight < $("#sidebar").height())
sidebarHeight = $("#sidebar").height();
contentWidth = $("#content").width();
keepThePageAwesome();
/* MORE AWESOMENESS */
var scrollTopLoc = 0;
$(window).scroll(function(){
scrollTopLoc = $(window).scrollTop();
if (!keepTheFuckingSidebarOnTheScreenOkay)
if (contentHeight > sidebarHeight && scrollTopLoc > 100)
{
if (contentHeight > sidebarHeight+scrollTopLoc)
$("#sidebar").stop().animate({"margin-top": ''+($(window).scrollTop() - 100)+'px'});
}
else
$("#sidebar").stop().css("margin-top", '0px');
});
});

View File

@ -1,19 +1,19 @@
<?php
if ($blog->entries)
{
while ($data = $blog->entries())
{
$entry_init = entry_show_init($data['entryContent'], $data['entrySlug']);
echo "<article".($data['entryPinned'] ? ' class="pinned"' : '').(strlen(strip_tags($entry_init)) <= 210 ? ' class="tweet"' : '')." title='".show_date($data['entryPublished'])."'>
<header>
<h2><a href='".get_entry_link($data['entrySlug'])."'>$data[entryTitle]</a></h2>
<p class='meta'><time class='date' title='{locale:published_on}'>".show_date($data['entryPublished'])."</time><a href='".get_profile_link($data['userName'])."' class='by' title='{locale:entry_by}'>$data[publicName]</a></p>
</header>
<div class='content'>".$entry_init."</div>
</article>\n";
unset($entry_init);
}
echo "<p class='paginator'>".(isset($seo[1]) && isnum($seo[1]) ? "<a href='/p/".($seo[1]-1)."' class='prev'>{locale:prev_page}</a><a href='/p/".($seo[1]+1)."' class='next'>{locale:next_page}</a>" : "<a href='/p/2' class='next'>{locale:next_page}</a>")."</p>";
} else
echo "<h1>$_locale[entry_not_found_title]</h1>"
<?php
if ($blog->entries)
{
while ($data = $blog->entries())
{
$entry_init = entry_show_init($data['entryContent'], $data['entrySlug']);
echo "<article".($data['entryPinned'] ? ' class="pinned"' : '').(strlen(strip_tags($entry_init)) <= 210 ? ' class="tweet"' : '')." title='".show_date($data['entryPublished'])."'>
<header>
<h2><a href='".get_entry_link($data['entrySlug'])."'>$data[entryTitle]</a></h2>
<p class='meta'><time class='date' title='{locale:published_on}'>".show_date($data['entryPublished'])."</time><a href='".get_profile_link($data['userName'])."' class='by' title='{locale:entry_by}'>$data[publicName]</a></p>
</header>
<div class='content'>".$entry_init."</div>
</article>\n";
unset($entry_init);
}
echo "<p class='paginator'>".(isset($seo[1]) && isnum($seo[1]) ? "<a href='/p/".($seo[1]-1)."' class='prev'>{locale:prev_page}</a><a href='/p/".($seo[1]+1)."' class='next'>{locale:next_page}</a>" : "<a href='/p/2' class='next'>{locale:next_page}</a>")."</p>";
} else
echo "<h1>$_locale[entry_not_found_title]</h1>"
."<p>$_locale[entry_not_found]</p>\n";

View File

@ -1,18 +1,18 @@
<?php
if ($blog->entries)
while ($data = $blog->entry())
{
addTitle($data['entryTitle']);
addDescription(trimlink($data['entryContent']));
addImage((preg_match('/< *img[^>]*src *= *["\']?([^"\']*)/i', $data['entryContent'], $images) ? $images[1] : 0));
echo "<article class='full'>
".(strlen($data['entryTitle']) > 28 ? "<h2>$data[entryTitle]</h2>" : '')."
<p class='meta'><time class='date' title='{locale:published_on}'>".show_date($data['entryPublished'])."</time><a href='".get_profile_link($data['userName'])."' class='by' title='{locale:entry_by}'>$data[publicName]</a>
<div class='content'>".entry_show_all($data['entryContent'])."</div>
<p clasS='meta'>".get_entry_admin($data)."</p>
</article>\n";
}
else
echo "<h1>$_locale[entry_not_found_title]</h1>"
<?php
if ($blog->entries)
while ($data = $blog->entry())
{
addTitle($data['entryTitle']);
addDescription(trimlink($data['entryContent']));
addImage((preg_match('/< *img[^>]*src *= *["\']?([^"\']*)/i', $data['entryContent'], $images) ? $images[1] : 0));
echo "<article class='full'>
".(strlen($data['entryTitle']) > 28 ? "<h2>$data[entryTitle]</h2>" : '')."
<p class='meta'><time class='date' title='{locale:published_on}'>".show_date($data['entryPublished'])."</time><a href='".get_profile_link($data['userName'])."' class='by' title='{locale:entry_by}'>$data[publicName]</a>
<div class='content'>".entry_show_all($data['entryContent'])."</div>
<p clasS='meta'>".get_entry_admin($data)."</p>
</article>\n";
}
else
echo "<h1>$_locale[entry_not_found_title]</h1>"
."<p>$_locale[entry_not_found]</p>\n";

View File

@ -1,7 +1,7 @@
<?php
if ($page->readable())
{
addTitle($page->data['pageTitle']);
echo "<article>".$page->data['pageContent']."</article>";
<?php
if ($page->readable())
{
addTitle($page->data['pageTitle']);
echo "<article>".$page->data['pageContent']."</article>";
}

View File

@ -1,45 +1,45 @@
<div class="profile">
<h3><?=$userData['userName'].($me ? ' <a href="'.get_current_link().'/edit" class="edit">{locale:profile_edit}</a>' : '')?></h3>
<div id="profile_pic" style="background-image: url('<?=get_profile_picture($userData)?>')">
<?php if ($me) : ?>
<form action="<?=get_current_link()?>" method="post" name="userpic-upload" enctype="multipart/form-data">
<input type="file" name="userPic" id="userPicInput" style="display: none" />
<button type="button" onclick="$('#userPicInput').focus().click()">{locale:browse}</button><button type="submit" id="userPicSaveBtn" class="orange">{locale:delete}</button>
</form>
<script>
$("#userPicInput").change(function() {
$("#userPicSaveBtn").html('{locale:save}').removeClass('orange');
});
</script>
<?php endif ?>
</div>
<?php if (LOGGEDIN) : ?>
<div class='box contact'>
<p><strong>{locale:name}:</strong> <?=$userData['userRealName']?></p>
<p><strong>{locale:email}:</strong> <?=$userData['userEmail']?></p>
<p><strong>{locale:web}:</strong> <?=$userData['userWeb']?></p>
</div>
<?php endif ?>
<?php
$recent = $_sql->query("SELECT entrySlug, entryTitle FROM entries WHERE entryBy = $userData[userId] AND entryPublished <= ".time()." ORDER BY entryPublished DESC LIMIT 5");
if ($recent->num_rows) : ?>
<div class='box recent'>
<?php
while ($data = $recent->fetch_assoc())
echo "<p><a href='".get_entry_link($data['entrySlug'])."'>".trimlink($data['entryTitle'], 42)."</a></p>\n";
?>
</div>
<?php endif; unset($recent); ?>
<div style="clear: both"></div>
<?php if ($userData['userIntroduction']) : ?>
<div class='box introduction'>
<p><?=$userData['userIntroduction']?></p>
</div>
<?php endif ?>
<div class="clear"></div>
</div>
<div class="profile">
<h3><?=$userData['userName'].($me ? ' <a href="'.get_current_link().'/edit" class="edit">{locale:profile_edit}</a>' : '')?></h3>
<div id="profile_pic" style="background-image: url('<?=get_profile_picture($userData)?>')">
<?php if ($me) : ?>
<form action="<?=get_current_link()?>" method="post" name="userpic-upload" enctype="multipart/form-data">
<input type="file" name="userPic" id="userPicInput" style="display: none" />
<button type="button" onclick="$('#userPicInput').focus().click()">{locale:browse}</button><button type="submit" id="userPicSaveBtn" class="orange">{locale:delete}</button>
</form>
<script>
$("#userPicInput").change(function() {
$("#userPicSaveBtn").html('{locale:save}').removeClass('orange');
});
</script>
<?php endif ?>
</div>
<?php if (LOGGEDIN) : ?>
<div class='box contact'>
<p><strong>{locale:name}:</strong> <?=$userData['userRealName']?></p>
<p><strong>{locale:email}:</strong> <?=$userData['userEmail']?></p>
<p><strong>{locale:web}:</strong> <?=$userData['userWeb']?></p>
</div>
<?php endif ?>
<?php
$recent = $_sql->query("SELECT entrySlug, entryTitle FROM entries WHERE entryBy = $userData[userId] AND entryPublished <= ".time()." ORDER BY entryPublished DESC LIMIT 5");
if ($recent->num_rows) : ?>
<div class='box recent'>
<?php
while ($data = $recent->fetch_assoc())
echo "<p><a href='".get_entry_link($data['entrySlug'])."'>".trimlink($data['entryTitle'], 42)."</a></p>\n";
?>
</div>
<?php endif; unset($recent); ?>
<div style="clear: both"></div>
<?php if ($userData['userIntroduction']) : ?>
<div class='box introduction'>
<p><?=$userData['userIntroduction']?></p>
</div>
<?php endif ?>
<div class="clear"></div>
</div>
<div class="clear"></div>

View File

@ -1,19 +1,19 @@
<?php
if ($tagged->num_rows)
{
$tag = $tagged->fetch_assoc();
addTitle($tag['tagName']);
if ($entries->num_rows)
{
echo "<table class='pro'>";
while ($data = $entries->fetch_assoc())
echo "<tr><td><a href='".get_entry_link($data['entrySlug'])."'>".htmlspecialchars(trimlink($data['entryTitle'],90))."</a></td><td>".show_date($data['entryPublished'])."</td></tr>";
echo "</table>";
}
} else
redirect();
unset($tag);
unset($tagged);
<?php
if ($tagged->num_rows)
{
$tag = $tagged->fetch_assoc();
addTitle($tag['tagName']);
if ($entries->num_rows)
{
echo "<table class='pro'>";
while ($data = $entries->fetch_assoc())
echo "<tr><td><a href='".get_entry_link($data['entrySlug'])."'>".htmlspecialchars(trimlink($data['entryTitle'],90))."</a></td><td>".show_date($data['entryPublished'])."</td></tr>";
echo "</table>";
}
} else
redirect();
unset($tag);
unset($tagged);
unset($entries);

View File

@ -1,256 +1,256 @@
html, body { margin: 0; padding: 0; }
body {
font: 14px open-sans, 'Segoe UI', sans-serif;
background: #fff url(img/stripe.png);
color: #8d8d8d;
}
a { color: #1ecc88; text-decoration: none; }
h1 { font: 32px bebas-neue, sans-serif; letter-spacing: 10px; }
h2 { font: 28px bebas-neue, sans-serif; letter-spacing: 4px; color: #40a5e3; }
img { border: 0; }
textarea { resize: none; height: 100px; }
input, button, textarea {
font: 14px open-sans, 'Segoe UI', sans-serif;
box-shadow: 0 0 0.4em #f0f0f0;
border: 1px solid #b6b6b6;
background-color: #FFF;
margin: 1em 0 0 0;
padding: 0.6em 10px;
width: 210px;
transition: 0.25s ease-in background;
}
input, textarea { display: block; }
button {
color: #FFF;
border: 0;
background-color: #0776d8;
cursor: pointer;
width: 232px;
}
/* ENTRY EDITOR */
form[name="entry-edit"] input { width: 978px; }
form[name="entry-edit"] button { width: 1000px; }
/* COLORED THINGS */
button.orange { background-color: #dd823b; }
input:hover, input:focus, textarea:hover, textarea:focus { background-color: #f0f0f0; }
button:hover { background-color: #0560b1; }
.clear { clear: both; }
p.phantom {
padding: 1.4em 0;
text-align: center;
background-color: #fffef2;
}
#errors, #infos {
background-color: #ff0000;
color: #FFF;
text-align: center;
}
#infos { background-color: #fffed9; color: #222222; }
#errors ul, #infos ul { margin: 0; padding: 0; }
#errors li, #infos li { margin: 0; padding: 0.5em 0; list-style: none; }
#page,
#footer {
min-width: 1000px;
width: 1000px;
background: #FFF;
margin: 20px auto;
padding: 14px;
box-shadow: 0 0 0.4em #999999;
}
/*#main { float: left; width: 70%; }
#sidebar { float: right; width: 28%; }*/
#header {
padding: 20px;
background: #020202;
color: #fff;
}
#title {
float: left;
color: #FFF;
border-right: 1px dotted #fff;
padding-right: 10px;
}
#title h1 {
color: #FFF;
padding: 0;
margin: 0;
}
#title p { padding: 0; margin: 0; }
#menu {
float: right;
list-style: none;
margin: 20px 0 0 0;
padding: 0;
}
#menu li {
display: inline-block;
margin-right: 10px;
}
#menu a {
padding: 10px 20px;
color: #FFF;
background: #020202;
border: 1px solid transparent;
text-transform: uppercase;
text-decoration: none;
}
#menu a:hover,
#menu a.active {
border: 1px solid #c6c6c6;
background: #1f1f1f;
}
#content {
padding-top: 20px;
text-align: justify;
font-size: 1.1em;
}
#content ul { list-style-type: hebrew; margin: 0; padding: 0 0 0 1.4em; }
#content ul li { padding: 0.4em 0; }
#content h1 { font-size: 28px; margin: 0.2em 0 0 0; padding: 0; letter-spacing: 0.12em; }
#content h2 { margin: 0; padding: 0; }
#content h3 { color: #009dff; text-transform: uppercase; margin: 0; padding: 0; }
#content div.profile { margin-top: 1em; }
#content div.profile.pic {
float: left;
width: 290px;
}
#content div.profile p,
#content div.profile h2 { margin: 0; padding: 6px; }
#content div.profile.details {
float: right;
width: 699px;
}
div.profile.details div.box {
float: left;
box-shadow: 0 0 0.4em #dbdbdb;
background-color: #f5f5f5;
margin: 1em 0 0 0;
}
div.profile.details div.spacer { float: left; width: 10px; height: 1px; }
div.box { width: 340px; min-height: 100px; border-left: 4px solid #7ad03a; }
div.box.recent { text-transform: uppercase; }
div.box.contact { border-left-color: #52accc; }
div.box.introduction { border-left-color: #dd823b; width: 693px; }
#profile_pic {
width: 252px;
height: 252px;
background-size: cover;
border-radius: 0.4em;
padding: 10px;
text-align: center;
}
#profile_pic button {
width: 48%;
border: 0;
margin: 0;
box-shadow: none;
opacity: 0;
transition: 0.25s ease-in opacity;
}
#profile_pic:hover button { opacity: 1; }
/* ARTICLES, POSTS */
article { margin: 0 0 2em 0; background-color: #f3f3f3; padding: 0.4em; }
article.full { background-color: #FFF; }
article p.meta a,
article p.meta time { margin: 0 1em 0 0; }
article p.meta a:before,
article p.meta time:before { font: 18px typicons; padding-right: 0.2em; }
article p.meta time:before { content: '\e120'; }
article p.meta a.by:before { content: '\e12c'; }
article p.meta a.pin:before { content: '\e0c9'; }
article p.meta span.admin a.edit:before { content: '\e067'; }
article p.meta span.admin a.delete:before { content: '\e058'; }
article div.content a { color: #222222; }
article div.content a:hover { text-decoration: underline; }
article p.paginator a { margin: 1em 1em 0 0; }
/* PROFILE */
div.box.recent p a:before { font: 18px typicons; padding-right: 0.2em; content: '\e0bf'; }
#content div.profile h3 a.edit { padding-left: 1em; }
#content div.profile h3 a.edit:before { font: 28px typicons; padding-right: 0.2em; content: '\e067'; }
/* DESIGNED TABLE */
table.designed {
width: 100%;
margin: 0;
padding: 0;
border-spacing: 0;
border-collapse: collapse;
}
table button { padding: 0.2em; margin: 0; width: 120px; }
table.designed td { padding: 0.4em; }
table.designed tr:nth-child(3n+0) { background: #eaeaea; }
table.designed tr:first-child { background: #202434; color: #FFF; font-weight: bold; }
table.designed tr td:first-child { font-weight: bold; }
#sidebar {
position: fixed;
top: 0;
right: 0;
height: 100%;
background: rgba(0,0,0,0.8);
text-align: center;
}
#sidebarSw { float: left; background-color: #000; width: 20px; height: 100%; cursor: pointer; }
#sidebarCt { float: right; display: none; padding: 1em; }
#sidebar ul { margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; }
body {
font: 14px open-sans, 'Segoe UI', sans-serif;
background: #fff url(img/stripe.png);
color: #8d8d8d;
}
a { color: #1ecc88; text-decoration: none; }
h1 { font: 32px bebas-neue, sans-serif; letter-spacing: 10px; }
h2 { font: 28px bebas-neue, sans-serif; letter-spacing: 4px; color: #40a5e3; }
img { border: 0; }
textarea { resize: none; height: 100px; }
input, button, textarea {
font: 14px open-sans, 'Segoe UI', sans-serif;
box-shadow: 0 0 0.4em #f0f0f0;
border: 1px solid #b6b6b6;
background-color: #FFF;
margin: 1em 0 0 0;
padding: 0.6em 10px;
width: 210px;
transition: 0.25s ease-in background;
}
input, textarea { display: block; }
button {
color: #FFF;
border: 0;
background-color: #0776d8;
cursor: pointer;
width: 232px;
}
/* ENTRY EDITOR */
form[name="entry-edit"] input { width: 978px; }
form[name="entry-edit"] button { width: 1000px; }
/* COLORED THINGS */
button.orange { background-color: #dd823b; }
input:hover, input:focus, textarea:hover, textarea:focus { background-color: #f0f0f0; }
button:hover { background-color: #0560b1; }
.clear { clear: both; }
p.phantom {
padding: 1.4em 0;
text-align: center;
background-color: #fffef2;
}
#errors, #infos {
background-color: #ff0000;
color: #FFF;
text-align: center;
}
#infos { background-color: #fffed9; color: #222222; }
#errors ul, #infos ul { margin: 0; padding: 0; }
#errors li, #infos li { margin: 0; padding: 0.5em 0; list-style: none; }
#page,
#footer {
min-width: 1000px;
width: 1000px;
background: #FFF;
margin: 20px auto;
padding: 14px;
box-shadow: 0 0 0.4em #999999;
}
/*#main { float: left; width: 70%; }
#sidebar { float: right; width: 28%; }*/
#header {
padding: 20px;
background: #020202;
color: #fff;
}
#title {
float: left;
color: #FFF;
border-right: 1px dotted #fff;
padding-right: 10px;
}
#title h1 {
color: #FFF;
padding: 0;
margin: 0;
}
#title p { padding: 0; margin: 0; }
#menu {
float: right;
list-style: none;
margin: 20px 0 0 0;
padding: 0;
}
#menu li {
display: inline-block;
margin-right: 10px;
}
#menu a {
padding: 10px 20px;
color: #FFF;
background: #020202;
border: 1px solid transparent;
text-transform: uppercase;
text-decoration: none;
}
#menu a:hover,
#menu a.active {
border: 1px solid #c6c6c6;
background: #1f1f1f;
}
#content {
padding-top: 20px;
text-align: justify;
font-size: 1.1em;
}
#content ul { list-style-type: hebrew; margin: 0; padding: 0 0 0 1.4em; }
#content ul li { padding: 0.4em 0; }
#content h1 { font-size: 28px; margin: 0.2em 0 0 0; padding: 0; letter-spacing: 0.12em; }
#content h2 { margin: 0; padding: 0; }
#content h3 { color: #009dff; text-transform: uppercase; margin: 0; padding: 0; }
#content div.profile { margin-top: 1em; }
#content div.profile.pic {
float: left;
width: 290px;
}
#content div.profile p,
#content div.profile h2 { margin: 0; padding: 6px; }
#content div.profile.details {
float: right;
width: 699px;
}
div.profile.details div.box {
float: left;
box-shadow: 0 0 0.4em #dbdbdb;
background-color: #f5f5f5;
margin: 1em 0 0 0;
}
div.profile.details div.spacer { float: left; width: 10px; height: 1px; }
div.box { width: 340px; min-height: 100px; border-left: 4px solid #7ad03a; }
div.box.recent { text-transform: uppercase; }
div.box.contact { border-left-color: #52accc; }
div.box.introduction { border-left-color: #dd823b; width: 693px; }
#profile_pic {
width: 252px;
height: 252px;
background-size: cover;
border-radius: 0.4em;
padding: 10px;
text-align: center;
}
#profile_pic button {
width: 48%;
border: 0;
margin: 0;
box-shadow: none;
opacity: 0;
transition: 0.25s ease-in opacity;
}
#profile_pic:hover button { opacity: 1; }
/* ARTICLES, POSTS */
article { margin: 0 0 2em 0; background-color: #f3f3f3; padding: 0.4em; }
article.full { background-color: #FFF; }
article p.meta a,
article p.meta time { margin: 0 1em 0 0; }
article p.meta a:before,
article p.meta time:before { font: 18px typicons; padding-right: 0.2em; }
article p.meta time:before { content: '\e120'; }
article p.meta a.by:before { content: '\e12c'; }
article p.meta a.pin:before { content: '\e0c9'; }
article p.meta span.admin a.edit:before { content: '\e067'; }
article p.meta span.admin a.delete:before { content: '\e058'; }
article div.content a { color: #222222; }
article div.content a:hover { text-decoration: underline; }
article p.paginator a { margin: 1em 1em 0 0; }
/* PROFILE */
div.box.recent p a:before { font: 18px typicons; padding-right: 0.2em; content: '\e0bf'; }
#content div.profile h3 a.edit { padding-left: 1em; }
#content div.profile h3 a.edit:before { font: 28px typicons; padding-right: 0.2em; content: '\e067'; }
/* DESIGNED TABLE */
table.designed {
width: 100%;
margin: 0;
padding: 0;
border-spacing: 0;
border-collapse: collapse;
}
table button { padding: 0.2em; margin: 0; width: 120px; }
table.designed td { padding: 0.4em; }
table.designed tr:nth-child(3n+0) { background: #eaeaea; }
table.designed tr:first-child { background: #202434; color: #FFF; font-weight: bold; }
table.designed tr td:first-child { font-weight: bold; }
#sidebar {
position: fixed;
top: 0;
right: 0;
height: 100%;
background: rgba(0,0,0,0.8);
text-align: center;
}
#sidebarSw { float: left; background-color: #000; width: 20px; height: 100%; cursor: pointer; }
#sidebarCt { float: right; display: none; padding: 1em; }
#sidebar ul { margin: 0; padding: 0; }
#sidebar ul li { list-style: none; margin: 0; padding: 0; }

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 182 KiB

After

Width:  |  Height:  |  Size: 184 KiB

View File

@ -1,12 +1,12 @@
<!-- end #sidebar -->
<div style="clear: both;">&nbsp;</div>
</div>
<!-- end #page -->
</div>
<div id="footer">
<p>&copy; <?=date('Y')?> <?=$_set['title']?>. All rights reserved. Powered by <a href="http://sandros.hu/">Insanely</a>.</p>
</div>
<!-- end #footer -->
<?php get_page_extra_body(); ?>
</body>
<!-- end #sidebar -->
<div style="clear: both;">&nbsp;</div>
</div>
<!-- end #page -->
</div>
<div id="footer">
<p>&copy; <?=date('Y')?> <?=$_set['title']?>. All rights reserved. Powered by <a href="http://sandros.hu/">Insanely</a>.</p>
</div>
<!-- end #footer -->
<?php get_page_extra_body(); ?>
</body>
</html>

View File

@ -1,39 +1,39 @@
<!doctype html>
<html>
<head>
<title><?php get_page_title(); ?></title>
<meta charset="utf-8" />
<link href="/includes/css/ui-lightness/jquery-ui.custom.min.css" rel="stylesheet" />
<link href="/<?=get_theme_lib()?>/font/typicons.min.css" rel="stylesheet" />
<link rel="stylesheet" href="/<?=get_theme_lib()?>/style.css" type="text/css" media="screen" />
<link href='http://fonts.googleapis.com/css?family=Archivo+Narrow:400,700|Open+Sans:400,300&amp;subset=latin,latin-ext' rel='stylesheet' type='text/css' />
<script src="/includes/js/jquery.js"></script>
<script src="/includes/js/jquery-ui.custom.min.js"></script>
<script src="/includes/js/functions.js"></script>
<meta name="keywords" content="<?=($description ? $description : $_set['description'])?>" />
<meta name="description" content="<?=($description ? $description : $_set['description'])?>" />
<?php get_page_extra_head(); ?>
</head>
<body>
<div id="wrapper">
<div id="header-wrapper">
<div id="header" class="container">
<div id="logo">
<h1><a href="<?=get_current_link()?>"><?=(isset($_title[0]) ? trimlink($_title[0], 28) : $_set['title'])?></a></h1>
<p><?=$_set['tagline']?></p>
</div>
<div id="menu">
<ul>
<?php get_navigation(); ?>
</ul>
</div>
<div style="clear: both"></div>
<div id="header-line"></div>
</div>
</div>
<div id="page">
<?php
get_errors();
get_infos();
?>
<div id="content">
<!doctype html>
<html>
<head>
<title><?php get_page_title(); ?></title>
<meta charset="utf-8" />
<link href="/includes/css/ui-lightness/jquery-ui.custom.min.css" rel="stylesheet" />
<link href="/<?=get_theme_lib()?>/font/typicons.min.css" rel="stylesheet" />
<link rel="stylesheet" href="/<?=get_theme_lib()?>/style.css" type="text/css" media="screen" />
<link href='http://fonts.googleapis.com/css?family=Archivo+Narrow:400,700|Open+Sans:400,300&amp;subset=latin,latin-ext' rel='stylesheet' type='text/css' />
<script src="/includes/js/jquery.js"></script>
<script src="/includes/js/jquery-ui.custom.min.js"></script>
<script src="/includes/js/functions.js"></script>
<meta name="keywords" content="<?=($description ? $description : $_set['description'])?>" />
<meta name="description" content="<?=($description ? $description : $_set['description'])?>" />
<?php get_page_extra_head(); ?>
</head>
<body>
<div id="wrapper">
<div id="header-wrapper">
<div id="header" class="container">
<div id="logo">
<h1><a href="<?=get_current_link()?>"><?=(isset($_title[0]) ? trimlink($_title[0], 28) : $_set['title'])?></a></h1>
<p><?=$_set['tagline']?></p>
</div>
<div id="menu">
<ul>
<?php get_navigation(); ?>
</ul>
</div>
<div style="clear: both"></div>
<div id="header-line"></div>
</div>
</div>
<div id="page">
<?php
get_errors();
get_infos();
?>
<div id="content">

File diff suppressed because it is too large Load Diff

View File

@ -1,19 +1,19 @@
<?php
addHead('<script src="/'.get_theme_lib().'/theme.js"></script>');
include get_theme_lib().'/header.php';
echo get_site_body();
?>
<div style="clear: both;">&nbsp;</div>
</div>
<div id="sidebar">
<ul>
<?php include 'includes/sidebar/sidebar.php'; ?>
</ul>
</div>
<?php
<?php
addHead('<script src="/'.get_theme_lib().'/theme.js"></script>');
include get_theme_lib().'/header.php';
echo get_site_body();
?>
<div style="clear: both;">&nbsp;</div>
</div>
<div id="sidebar">
<ul>
<?php include 'includes/sidebar/sidebar.php'; ?>
</ul>
</div>
<?php
include get_theme_lib().'/footer.php';

View File

@ -1,65 +1,65 @@
/* EXTRA FUCKING VIEW */
var keepTheFuckingSidebarOnTheScreenOkay = false;
function keepThePageAwesome() {
$(document.body).addClass('smallscreen');
if ($(window).width() < 1000)
{
keepTheFuckingSidebarOnTheScreenOkay = true;
$(document.body).addClass('tinyscreen');
}
else
{
keepTheFuckingSidebarOnTheScreenOkay = false;
$(document.body).removeClass('tinyscreen');
}
}
$(window).resize(function() { keepThePageAwesome(); $("#sidebar").css('max-height', $(window).height()); });
/* AWESOMENESS */
var sidebarHeight = 900;
var contentWidth = 690;
$(document).ready(function() {
// MORE EXTA FUCKING FUNCTION
$("#sidebar").css('overflow', 'hidden').hover(function() {
$(this).css('overflow', 'auto');
},
function() {
$(this).css('overflow', 'hidden');
});
// TWEET ANIMS
$("article.tweet").hover(function() {
$(this).find("p.readmore").stop().slideDown();
},
function(){
$(this).find("p.readmore").stop().slideUp();
});
// SIDEBAR MAX HEIGHT
$("#sidebar").css('max-height', $(window).height()-100);
var contentHeight = $("#content").height();
if (sidebarHeight < $("#sidebar").height())
sidebarHeight = $("#sidebar").height();
contentWidth = $("#content").width();
keepThePageAwesome();
/* MORE AWESOMENESS */
var scrollTopLoc = 0;
$(window).scroll(function(){
scrollTopLoc = $(window).scrollTop();
if (!keepTheFuckingSidebarOnTheScreenOkay)
if (contentHeight > sidebarHeight && scrollTopLoc > 100)
{
if (contentHeight > sidebarHeight+scrollTopLoc)
$("#sidebar").stop().animate({"margin-top": ''+($(window).scrollTop() - 100)+'px'});
}
else
$("#sidebar").stop().css("margin-top", '0px');
});
/* EXTRA FUCKING VIEW */
var keepTheFuckingSidebarOnTheScreenOkay = false;
function keepThePageAwesome() {
$(document.body).addClass('smallscreen');
if ($(window).width() < 1000)
{
keepTheFuckingSidebarOnTheScreenOkay = true;
$(document.body).addClass('tinyscreen');
}
else
{
keepTheFuckingSidebarOnTheScreenOkay = false;
$(document.body).removeClass('tinyscreen');
}
}
$(window).resize(function() { keepThePageAwesome(); $("#sidebar").css('max-height', $(window).height()); });
/* AWESOMENESS */
var sidebarHeight = 900;
var contentWidth = 690;
$(document).ready(function() {
// MORE EXTA FUCKING FUNCTION
$("#sidebar").css('overflow', 'hidden').hover(function() {
$(this).css('overflow', 'auto');
},
function() {
$(this).css('overflow', 'hidden');
});
// TWEET ANIMS
$("article.tweet").hover(function() {
$(this).find("p.readmore").stop().slideDown();
},
function(){
$(this).find("p.readmore").stop().slideUp();
});
// SIDEBAR MAX HEIGHT
$("#sidebar").css('max-height', $(window).height()-100);
var contentHeight = $("#content").height();
if (sidebarHeight < $("#sidebar").height())
sidebarHeight = $("#sidebar").height();
contentWidth = $("#content").width();
keepThePageAwesome();
/* MORE AWESOMENESS */
var scrollTopLoc = 0;
$(window).scroll(function(){
scrollTopLoc = $(window).scrollTop();
if (!keepTheFuckingSidebarOnTheScreenOkay)
if (contentHeight > sidebarHeight && scrollTopLoc > 100)
{
if (contentHeight > sidebarHeight+scrollTopLoc)
$("#sidebar").stop().animate({"margin-top": ''+($(window).scrollTop() - 100)+'px'});
}
else
$("#sidebar").stop().css("margin-top", '0px');
});
});