This commit is contained in:
KuJoe 2026-03-21 12:56:02 -04:00 committed by GitHub
commit 8d55fe3c71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
66 changed files with 418 additions and 104 deletions

View file

@ -340,3 +340,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -341,3 +341,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -340,3 +340,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -351,3 +351,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -340,3 +340,4 @@ subpages = "Unterseiten"
getstarted = "Los geht's"
onthispage = "Auf dieser Seite"
backtotop = "Nach oben"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -340,3 +340,4 @@ subpages = "Unterseiten"
getstarted = "Los geht's"
onthispage = "Auf dieser Seite"
backtotop = "Nach oben"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -340,3 +340,4 @@ subpages = "Unterseiten"
getstarted = "Los geht's"
onthispage = "Auf dieser Seite"
backtotop = "Nach oben"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -342,3 +342,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -407,3 +407,15 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."
health_check = "Health Check"
directory_permissions = "Directory Permissions"
cache_folder_writable = "/cache/ directory is writable."
content_folder_not_writable = "/content/ directory is not writable, please update the permissions/ownership to continue."
content_folder_writable = "/content/ directory is writable."
users_folder_not_writable = "/config/users/ directory is not writable, please update the permissions/ownership to continue."
users_folder_writable = "/config/users/ directory is writable."
php_check = "PHP Version"
php_version_check_passed = "PHP version meets the minimum requirement."
php_version_check_failed = "PHP version does not meet the minimum requirement. Please upgrade your PHP version."
php_modules = "PHP Modules"

View file

@ -340,3 +340,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -340,3 +340,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -340,3 +340,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -340,3 +340,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -340,3 +340,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -340,3 +340,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -340,3 +340,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -340,3 +340,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -340,3 +340,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -340,3 +340,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -407,3 +407,4 @@ backtotop = "Torna in cima"
subpages = "Sottopagine"
getstarted = "Per cominciare"
onthispage = "Su questa pagina"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -340,3 +340,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -340,3 +340,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -340,3 +340,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -340,3 +340,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -341,3 +341,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -340,3 +340,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -341,3 +341,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -352,3 +352,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -340,3 +340,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -340,3 +340,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -340,3 +340,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -340,3 +340,4 @@ backtotop = "Back to top"
subpages = "Sub pages"
getstarted = "Get started"
onthispage = "On this page"
cache_folder_not_writable = "/cache/ directory is not writable, please update the permissions/ownership to continue."

View file

@ -1674,6 +1674,7 @@ EOF;
}
if ($role === 'editor' || $role === 'admin') {
$toolbar .= '<li class="tb-clearcache"><a href="' . $base . 'admin/clear-cache">' . i18n('Clear_cache') . '</a></li>';
$toolbar .= '<li class="tb-health"><a href="' . $base . 'admin/health">' . i18n('health_check') . '</a></li>';
}
$toolbar .= '<li class="tb-editprofile"><a href="' . $base . 'edit/profile">' . i18n('Edit_profile') . '</a></li>';
$toolbar .= '<li class="tb-logout"><a href="' . $base . 'logout">' . i18n('Logout') . '</a></li>';

View file

@ -0,0 +1,70 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php
$CSRF = get_csrf();
echo '<h2>'.i18n('health_check').'</h2><hr>';
echo '<h3>'.i18n('php_check').'</h3>';
$requiredPhpVersion = '7.2';
if (version_compare(PHP_VERSION, $requiredPhpVersion, '>=')) {
echo '<p> ✅ '.i18n('php_version_check_passed').' (Current: '.PHP_VERSION.', Required: '.$requiredPhpVersion.')</p>';
} else {
echo '<p> ❌ '.i18n('php_version_check_failed').' (Current: '.PHP_VERSION.', Required: '.$requiredPhpVersion.')</p>';
}
echo '<h3>'.i18n('directory_permissions').'</h3>';
$cachedir = 'cache/';
if (!is_writable($cachedir)) {
echo '<p> ❌ '.i18n('cache_folder_not_writable').'</p>';
} else {
echo '<p> ✅ '.i18n('cache_folder_writable').'</p>';
}
$contentdir = 'content/';
if (!is_writable($contentdir)) {
echo '<p> ❌ '.i18n('content_folder_not_writable').'</p>';
} else {
echo '<p> ✅ '.i18n('content_folder_writable').'</p>';
}
$usersdir = 'config/users/';
if (!is_writable($usersdir)) {
echo '<p> ❌ '.i18n('users_folder_not_writable').'</p>';
} else {
echo '<p> ✅ '.i18n('users_folder_writable').'</p>';
}
echo '<h3>'.i18n('php_modules').'</h3>';
$requiredChecks = array(
'json' => extension_loaded('json'),
'mbstring' => extension_loaded('mbstring'),
'libxml' => extension_loaded('libxml'),
'dom' => extension_loaded('dom') && class_exists('DOMDocument'),
'simplexml' => extension_loaded('simplexml') && class_exists('SimpleXMLElement'),
'xml' => extension_loaded('xml'),
'hash' => extension_loaded('hash'),
'session' => extension_loaded('session'),
'pcre' => extension_loaded('pcre'),
'filter' => extension_loaded('filter'),
'ctype' => extension_loaded('ctype'),
'openssl' => extension_loaded('openssl'),
'zip' => extension_loaded('zip') && class_exists('ZipArchive'),
'gd' => extension_loaded('gd') && function_exists('gd_info'),
'iconv' => extension_loaded('iconv') && function_exists('iconv'),
'intl' => extension_loaded('intl'),
'apcu' => extension_loaded('apcu'),
'mcrypt' => extension_loaded('mcrypt'),
);
foreach ($requiredChecks as $label => $ok) {
if ($ok) {
echo '<p> ✅ '.$label.'</p>';
} else {
echo '<p> ❌ '.$label.'</p>';
}
}

View file

@ -262,6 +262,13 @@ if (isset($author[0])) {
</p>
</a>
</li>
<li class="nav-item">
<a href="<?php echo site_url();?>admin/health" class="nav-link">
<p>
<?php echo i18n('health_check');?>
</p>
</a>
</li>
<?php if (config('fulltext.search') == 'true') : ?>
<li class="nav-item">
<a href="<?php echo site_url();?>admin/search" class="nav-link">

View file

@ -14,6 +14,11 @@ $dir = 'cache/';
if (!is_dir($dir)) {
mkdir($dir, 0775, true);
}
if (!is_writable($dir)) {
echo '<h2>'.i18n('Update').'</h2><hr>';
echo i18n('cache_folder_not_writable');
return;
}
if (defined("JSON_PRETTY_PRINT")) {
file_put_contents(
'cache/installedVersion.json',

View file

@ -2626,6 +2626,41 @@ get('/admin/clear-cache', function () {
}
});
// Show health status page
get('/admin/health', function () {
$user = $_SESSION[site_url()]['user'] ?? null;
$role = user('role', $user) ?? null;
if (login()) {
config('views.root', 'system/admin/views');
if ($role === 'editor' || $role === 'admin') {
render('health', array(
'title' => generate_title('is_default', i18n('Health_check')),
'description' => safe_html(strip_tags(blog_description())),
'canonical' => site_url(),
'metatags' => generate_meta(null, null),
'type' => 'is_admin-health',
'is_admin' => true,
'bodyclass' => 'admin-health',
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . i18n('Health_check')
));
} else {
render('denied', array(
'title' => generate_title('is_default', i18n('Denied')),
'description' => safe_html(strip_tags(blog_description())),
'canonical' => site_url(),
'metatags' => generate_meta(null, null),
'type' => 'is_admin-health',
'is_admin' => true,
'bodyclass' => 'denied',
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; ' . i18n('Denied')
));
}
} else {
$login = site_url() . 'login';
header("location: $login");
}
});
// Show Update page
get('/admin/update', function () {
$user = $_SESSION[site_url()]['user'] ?? null;

Binary file not shown.

After

Width:  |  Height:  |  Size: 716 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 781 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View file

@ -0,0 +1,67 @@
var copyPermalinkToastTimeout;
function showCopyPermalinkToast(message) {
var toast = document.getElementById('copy-permalink-toast');
if (!toast) {
toast = document.createElement('div');
toast.id = 'copy-permalink-toast';
toast.setAttribute('role', 'status');
toast.setAttribute('aria-live', 'polite');
toast.style.position = 'fixed';
toast.style.bottom = '16px';
toast.style.right = '16px';
toast.style.zIndex = '9999';
toast.style.background = 'rgba(0, 0, 0, 0.82)';
toast.style.color = '#fff';
toast.style.padding = '8px 12px';
toast.style.borderRadius = '4px';
toast.style.fontSize = '14px';
toast.style.opacity = '0';
toast.style.transition = 'opacity 160ms ease-in-out';
document.body.appendChild(toast);
}
toast.textContent = message;
toast.style.opacity = '1';
if (copyPermalinkToastTimeout) {
clearTimeout(copyPermalinkToastTimeout);
}
copyPermalinkToastTimeout = setTimeout(function() {
toast.style.opacity = '0';
}, 1800);
}
function copyPermalink(url) {
if (navigator.clipboard && navigator.clipboard.writeText) {
navigator.clipboard.writeText(url).then(function() {
showCopyPermalinkToast('Permalink copied to clipboard.');
}).catch(function() {
window.prompt('Copy this permalink:', url);
showCopyPermalinkToast('Clipboard access blocked. Copy from prompt.');
});
} else {
window.prompt('Copy this permalink:', url);
showCopyPermalinkToast('Clipboard not available. Copy from prompt.');
}
return false;
}
function shareToFediverse(platformName, encodedText) {
var input = window.prompt('Enter your ' + platformName + ' server domain (for example: mastodon.social)');
if (!input) {
return false;
}
var domain = input.trim().replace(/^https?:\/\//i, '').replace(/\/+$/, '');
if (!domain) {
return false;
}
var shareUrl = 'https://' + domain + '/share?text=' + encodedText;
window.open(shareUrl, '_blank', 'noopener,noreferrer');
return false;
}

View file

@ -189,6 +189,7 @@
</footer><!--//footer-->
<!-- Javascript -->
<script type="text/javascript" src="<?php echo site_url();?>system/resources/js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo site_url();?>system/resources/js/share-post.js"></script>
<script type="text/javascript" src="<?php echo theme_path();?>js/bootstrap.min.js"></script>
<?php if (analytics()): ?><?php echo analytics() ?><?php endif; ?>
</body>

View file

@ -70,8 +70,12 @@
<span class="more"><a class="btn btn-cta-secondary" href="<?php echo $p->url;?>"><?php echo $readMore; ?></a></span>
<?php endif;?>
<span class="share pull-right">
<a target="_blank" class="first" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>"><i class="fab fa-facebook"></i></a>
<a href="#" class="first" onclick='return copyPermalink(<?php echo json_encode($p->url); ?>);'><i class="fa fa-link"></i></a>
<a target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>"><i class="fab fa-facebook"></i></a>
<a target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>"><i class="fab fa-twitter"></i></a>
<a target="_blank" href="https://bsky.app/intent/compose?text=<?php echo rawurlencode($p->title . ' ' . $p->url); ?>"><i class="fab fa-bluesky"></i></a>
<a target="_blank" href="#" onclick="return shareToFediverse('Mastodon', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');"><i class="fab fa-mastodon"></i></a>
<a target="_blank" href="#" onclick="return shareToFediverse('GoToSocial', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');"><i class="fa-solid fa-g"></i></a>
</span>
<div style="clear:both;"></div>
</div>

View file

@ -50,8 +50,12 @@
<i class="fa fa-comments"></i> <a href="<?php echo $p->url ?>#comments"><span><fb:comments-count href=<?php echo $p->url ?>></fb:comments-count> <?php echo i18n("Comments");?></span></a>
<?php } ?>
<span class="share pull-right">
<a target="_blank" class="first" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>"><i class="fab fa-facebook"></i></a>
<a href="#" class="first" onclick='return copyPermalink(<?php echo json_encode($p->url); ?>);'><i class="fa fa-link"></i></a>
<a target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>"><i class="fab fa-facebook"></i></a>
<a target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>"><i class="fab fa-twitter"></i></a>
<a target="_blank" href="https://bsky.app/intent/compose?text=<?php echo rawurlencode($p->title . ' ' . $p->url); ?>"><i class="fab fa-bluesky"></i></a>
<a target="_blank" href="#" onclick="return shareToFediverse('Mastodon', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');"><i class="fab fa-mastodon"></i></a>
<a target="_blank" href="#" onclick="return shareToFediverse('GoToSocial', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');"><i class="fa-solid fa-g"></i></a>
</span>
<div style="clear:both;"></div>
</div>

View file

@ -724,37 +724,19 @@ aside .copyright p {
margin-right: 2em;
}
.share {
font-size: 12px;
font-style: italic;
width: 120px;
float: right;
/* share section */
.share{
padding-top:0;
width: 180px;
float: right;
}
.share a {
display: inline-block;
width: 18px;
height: 18px;
margin: 0;
padding: 0 5px;
vertical-align: middle;
-o-transition: all .3s;
-moz-transition: all .3s;
-webkit-transition: all .3s;
-ms-transition: all .3s;
text-indent: -9999em;
}
.share a.twitter {
background: url(../../../system/resources/images/share-twitter.png) left top no-repeat;
}
.share a.facebook {
background: url(../../../system/resources/images/share-facebook.png) left top no-repeat;
}
.share a:hover {
background-position: left -26px;
.share a{
color: #479fc8;
padding:4px;
vertical-align: middle;
display:inline-block;
line-height: 1.42857;
margin-bottom: 0
}
/*----------------------------

View file

@ -4,6 +4,9 @@
<head>
<?php echo head_contents() ?>
<?php echo $metatags;?>
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/fontawesome.min.css?v=1">
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/solid.min.css">
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/brands.min.css">
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/source-sans.css">
<link href="<?php echo theme_path() ?>css/style.css?v=2" rel="stylesheet"/>
</head>
@ -56,6 +59,8 @@
<section id="content">
<?php echo content() ?>
</section>
<!-- Javascript -->
<script type="text/javascript" src="<?php echo site_url();?>system/resources/js/share-post.js"></script>
<?php if (analytics()): ?><?php echo analytics() ?><?php endif; ?>
</body>
</html>

View file

@ -45,16 +45,18 @@
</div>
<div class="separator">&rarr;</div>
<div class="share-box">
<div class="share">
<a href="#" class="first" onclick='return copyPermalink(<?php echo json_encode($p->url); ?>);'><i class="fa fa-link"></i></a>
<a target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>"><i class="fab fa-facebook"></i></a>
<a target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>"><i class="fab fa-twitter"></i></a>
<a target="_blank" href="https://bsky.app/intent/compose?text=<?php echo rawurlencode($p->title . ' ' . $p->url); ?>"><i class="fab fa-bluesky"></i></a>
<a target="_blank" href="#" onclick="return shareToFediverse('Mastodon', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');"><i class="fab fa-mastodon"></i></a>
<a target="_blank" href="#" onclick="return shareToFediverse('GoToSocial', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');"><i class="fa-solid fa-g"></i></a>
</div>
<div class="author-info">
<h4><?php echo i18n('Posts_by'); ?> <strong><?php echo $author->name ?></strong></h4>
<?php echo $author->about ?>
</div>
<div class="share">
<a class="twitter" target="_blank"
href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>">Twitter</a>
<a class="facebook" target="_blank"
href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>">Facebook</a>
</div>
</div>
<div class="related">
<h4><?php echo i18n('Related_posts'); ?></h4>

View file

@ -3580,4 +3580,19 @@ body.dark .social-logo a:hover, .dark .toc-wrapper a:hover {
.list-unstyled li {
margin: 0;
}
/* share section */
.share{
padding-top:0;
width: 200px;
float: right;
}
.share a{
color: #479fc8;
padding:4px;
vertical-align: middle;
display:inline-block;
line-height: 1.42857;
margin-bottom: 0
}

View file

@ -6,6 +6,9 @@
<?php echo $metatags;?>
<link rel="preload" as="font" href="<?php echo theme_path();?>fonts/jost/jost-v4-latin-regular.woff2" type="font/woff2" crossorigin>
<link rel="preload" as="font" href="<?php echo theme_path();?>fonts/jost/jost-v4-latin-700.woff2" type="font/woff2" crossorigin>
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/fontawesome.min.css?v=1">
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/solid.min.css">
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/brands.min.css">
<link rel="stylesheet" href="<?php echo theme_path();?>css/style.css">
<meta name="theme-color" content="#fff">
</head>
@ -122,7 +125,8 @@ $front = get_frontpage(); ?>
</div>
</div>
</footer>
<!-- Javascript -->
<script type="text/javascript" src="<?php echo site_url();?>system/resources/js/share-post.js"></script>
<script src="<?php echo theme_path();?>js/main.js"></script>
<?php if (analytics()): ?><?php echo analytics() ?><?php endif; ?>
</body>

View file

@ -50,6 +50,14 @@
<?php echo $post->body;?>
<p class="post-footer">
<small>
<div class="share">
<a href="#" class="first" onclick='return copyPermalink(<?php echo json_encode($p->url); ?>);'><i class="fa fa-link"></i></a>
<a target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>"><i class="fab fa-facebook"></i></a>
<a target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>"><i class="fab fa-twitter"></i></a>
<a target="_blank" href="https://bsky.app/intent/compose?text=<?php echo rawurlencode($p->title . ' ' . $p->url); ?>"><i class="fab fa-bluesky"></i></a>
<a target="_blank" href="#" onclick="return shareToFediverse('Mastodon', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');"><i class="fab fa-mastodon"></i></a>
<a target="_blank" href="#" onclick="return shareToFediverse('GoToSocial', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');"><i class="fa-solid fa-g"></i></a>
</div>
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" class="icon bi bi-folder" viewBox="0 0 18 18"><path d="M.54 3.87.5 3a2 2 0 0 1 2-2h3.672a2 2 0 0 1 1.414.586l.828.828A2 2 0 0 0 9.828 3h3.982a2 2 0 0 1 1.992 2.181l-.637 7A2 2 0 0 1 13.174 14H2.826a2 2 0 0 1-1.991-1.819l-.637-7a2 2 0 0 1 .342-1.31zM2.19 4a1 1 0 0 0-.996 1.09l.637 7a1 1 0 0 0 .995.91h10.348a1 1 0 0 0 .995-.91l.637-7A1 1 0 0 0 13.81 4zm4.69-1.707A1 1 0 0 0 6.172 2H2.5a1 1 0 0 0-1 .981l.006.139q.323-.119.684-.12h5.396z"/></svg>
<span class="cat-meta"><?php echo $post->category;?></span>

View file

@ -532,37 +532,18 @@ ul li, ol li {
}
.share {
width: 140px;
width: 240px;
margin-left: 1em;
float: right;
}
.share a {
display: inline-block;
width: 18px;
height: 18px;
margin: 0;
padding: 0 5px;
vertical-align: middle;
-o-transition: all .3s;
-moz-transition: all .3s;
-webkit-transition: all .3s;
-ms-transition: all .3s;
text-indent: -9999em;
border: none;
}
.share a.twitter {
background: url(../../../system/resources/images/share-twitter.png) left top no-repeat;
}
.share a.facebook {
background: url(../../../system/resources/images/share-facebook.png) left top no-repeat;
}
.share a:hover {
background-position: left -26px;
border: none;
.share a{
color: #479fc8;
padding:4px;
vertical-align: middle;
display:inline-block;
line-height: 1.42857;
margin-bottom: 0
}
.related {
@ -983,4 +964,4 @@ ul.archivegroup {
margin-top:-1rem;
box-shadow: none;
border: none;
}
}

View file

@ -4,6 +4,9 @@
<head>
<?php echo head_contents() ?>
<?php echo $metatags;?>
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/fontawesome.min.css?v=1">
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/solid.min.css">
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/brands.min.css">
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/source-sans.css">
<link href="<?php echo theme_path() ?>css/style.css?v=2" rel="stylesheet"/>
</head>
@ -102,6 +105,8 @@
</footer>
</div>
</div>
<!-- Javascript -->
<script type="text/javascript" src="<?php echo site_url();?>system/resources/js/share-post.js"></script>
<?php if (analytics()): ?><?php echo analytics() ?><?php endif; ?>
</body>
</html>

View file

@ -49,11 +49,13 @@
<h4><?php echo i18n('Posts_by');?> <strong><?php echo $author->name ?></strong></h4>
<?php echo $author->about ?>
</div>
<div class="share">
<a class="twitter" target="_blank"
href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>">Twitter</a>
<a class="facebook" target="_blank"
href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>">Facebook</a>
<div class="share">
<a href="#" class="first" onclick='return copyPermalink(<?php echo json_encode($p->url); ?>);'><i class="fa fa-link"></i></a>
<a target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>"><i class="fab fa-facebook"></i></a>
<a target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>"><i class="fab fa-twitter"></i></a>
<a target="_blank" href="https://bsky.app/intent/compose?text=<?php echo rawurlencode($p->title . ' ' . $p->url); ?>"><i class="fab fa-bluesky"></i></a>
<a target="_blank" href="#" onclick="return shareToFediverse('Mastodon', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');"><i class="fab fa-mastodon"></i></a>
<a target="_blank" href="#" onclick="return shareToFediverse('GoToSocial', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');"><i class="fa-solid fa-g"></i></a>
</div>
</div>
<div class="related">

View file

@ -585,39 +585,18 @@ h1.title-post a:hover, h2.title-index a:hover {
}
.share {
width: 140px;
width: 180px;
margin-right: 1em;
float: right;
}
.share a {
display: inline-block;
width: 18px;
height: 18px;
margin: 0;
padding: 0 5px;
vertical-align: middle;
-o-transition: all .3s;
-moz-transition: all .3s;
-webkit-transition: all .3s;
-ms-transition: all .3s;
text-indent: -9999em;
}
.share a.twitter {
background: url(../img/share-twitter.png) left top no-repeat;
}
.share a.facebook {
background: url(../img/share-facebook.png) left top no-repeat;
}
.share a.googleplus {
background: url(../img/share-googleplus.png) left top no-repeat;
}
.share a:hover {
background-position: left -26px;
.share a{
color: #479fc8;
padding:4px;
vertical-align: middle;
display:inline-block;
line-height: 1.42857;
margin-bottom: 0
}
/*-------------------------

View file

@ -4,6 +4,9 @@
<head>
<?php echo head_contents() ?>
<?php echo $metatags;?>
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/fontawesome.min.css?v=1">
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/solid.min.css">
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/brands.min.css">
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/source-sans.css">
<link href="<?php echo theme_path() ?>css/style.css?v=1" rel="stylesheet"/>
</head>
@ -52,6 +55,8 @@
</div>
</div>
</div>
<!-- Javascript -->
<script type="text/javascript" src="<?php echo site_url();?>system/resources/js/share-post.js"></script>
<?php if (analytics()): ?><?php echo analytics() ?><?php endif; ?>
</body>
</html>

View file

@ -50,8 +50,12 @@
<?php echo $author->about ?>
</div>
<div class="share">
<a class="twitter" target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>">Twitter</a>
<a class="facebook" target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>">Facebook</a>
<a href="#" class="first" onclick='return copyPermalink(<?php echo json_encode($p->url); ?>);'><i class="fa fa-link"></i></a>
<a target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>"><i class="fab fa-facebook"></i></a>
<a target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>"><i class="fab fa-twitter"></i></a>
<a target="_blank" href="https://bsky.app/intent/compose?text=<?php echo rawurlencode($p->title . ' ' . $p->url); ?>"><i class="fab fa-bluesky"></i></a>
<a target="_blank" href="#" onclick="return shareToFediverse('Mastodon', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');"><i class="fab fa-mastodon"></i></a>
<a target="_blank" href="#" onclick="return shareToFediverse('GoToSocial', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');"><i class="fa-solid fa-g"></i></a>
</div>
</div>
<div class="related">

View file

@ -147,4 +147,19 @@
.recent-posts > ul {
padding-left: 15px;
}
/* share section */
.share{
padding-top:0;
width: 180px;
float: right;
}
.share a{
color: #479fc8;
padding:4px;
vertical-align: middle;
display:inline-block;
line-height: 1.42857;
margin-bottom: 0
}

View file

@ -4,6 +4,9 @@
<head>
<?php echo head_contents();?>
<?php echo $metatags;?>
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/fontawesome.min.css?v=1">
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/solid.min.css">
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/brands.min.css">
<link rel="stylesheet" href="<?php echo theme_path();?>css/typography.css" data-precedence="next" />
<link rel="stylesheet" href="<?php echo theme_path();?>css/tailwind.css" data-precedence="next" />
<link rel="stylesheet" href="<?php echo theme_path();?>css/style.css" data-precedence="next" />
@ -155,6 +158,8 @@
})
</script>
<!-- Javascript -->
<script type="text/javascript" src="<?php echo site_url();?>system/resources/js/share-post.js"></script>
<script src="<?php echo theme_path();?>js/functions.js"></script>
<?php if (analytics()): ?><?php echo analytics() ?><?php endif; ?>
</body>

View file

@ -64,6 +64,14 @@
<?php echo $p->body;?>
</div>
<div class="share">
<a href="#" class="first" onclick='return copyPermalink(<?php echo json_encode($p->url); ?>);'><i class="fa fa-link"></i></a>
<a target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>"><i class="fab fa-facebook"></i></a>
<a target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>"><i class="fab fa-twitter"></i></a>
<a target="_blank" href="https://bsky.app/intent/compose?text=<?php echo rawurlencode($p->title . ' ' . $p->url); ?>"><i class="fab fa-bluesky"></i></a>
<a target="_blank" href="#" onclick="return shareToFediverse('Mastodon', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');"><i class="fab fa-mastodon"></i></a>
<a target="_blank" href="#" onclick="return shareToFediverse('GoToSocial', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');"><i class="fa-solid fa-g"></i></a>
</div>
<div class="prose max-w-none pb-6 pt-6 text-sm text-gray-700 dark:text-gray-300 related-posts">
<h2 class="text-xl text-gray-700 dark:text-gray-300"><?php echo i18n('related_posts');?></h2>
<?php echo get_related($p->related);?>

View file

@ -6159,4 +6159,19 @@ ul.month {
.social-logo a {
height:35px;
width:35px;
}
/* share section */
.share{
padding-top:0;
width: 200px;
float: right;
}
.share a{
color: #479fc8;
padding:4px;
vertical-align: middle;
display:inline-block;
line-height: 1.42857;
margin-bottom: 0;
}

View file

@ -4,6 +4,9 @@
<head>
<?php echo head_contents();?>
<?php echo $metatags;?>
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/fontawesome.min.css?v=1">
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/solid.min.css">
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/brands.min.css">
<link rel="stylesheet" id="twentyfifteen-fonts-noto" href="<?php echo site_url();?>system/resources/css/noto-serif.css?v=1" type="text/css" media="all">
<link rel="stylesheet" id="twentyfifteen-fonts-sans" href="<?php echo site_url();?>system/resources/css/open-sans.css" type="text/css" media="all">
<link rel="stylesheet" id="genericons-css" href="<?php echo theme_path();?>genericons/genericons.css" type="text/css" media="all">
@ -117,6 +120,8 @@
/* ]]> */
</script>
<!--[if lte IE 8]><script type='text/javascript' src='<?php echo theme_path();?>js/html5.js'></script><![endif]-->
<!-- Javascript -->
<script type="text/javascript" src="<?php echo site_url();?>system/resources/js/share-post.js"></script>
<script type="text/javascript" src="<?php echo theme_path();?>js/jquery.js"></script>
<script type="text/javascript" src="<?php echo theme_path();?>js/jquery-migrate.js"></script>
<script type="text/javascript" src="<?php echo theme_path();?>js/theia-sticky-sidebar.min.js"></script>

View file

@ -33,6 +33,14 @@
</div>
<style>.related {padding-bottom:2em;}.related p {margin-top:0;margin-bottom:0.5em;} .related ul {margin-left:1em;}</style>
<div class="related entry-content">
<div class="share">
<a href="#" class="first" onclick='return copyPermalink(<?php echo json_encode($p->url); ?>);'><i class="fa fa-link"></i></a>
<a target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>"><i class="fab fa-facebook"></i></a>
<a target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>"><i class="fab fa-twitter"></i></a>
<a target="_blank" href="https://bsky.app/intent/compose?text=<?php echo rawurlencode($p->title . ' ' . $p->url); ?>"><i class="fab fa-bluesky"></i></a>
<a target="_blank" href="#" onclick="return shareToFediverse('Mastodon', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');"><i class="fab fa-mastodon"></i></a>
<a target="_blank" href="#" onclick="return shareToFediverse('GoToSocial', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');"><i class="fa-solid fa-g"></i></a>
</div>
<hr>
<p><strong><?php echo i18n('Related_posts');?></strong></p>
<?php echo get_related($p->related);?>

View file

@ -4092,4 +4092,19 @@ ul.month {
.social-logo a:before {
line-height: 33px!important;
}
/* share section */
.share{
padding-top:1px;
width: 200px;
float: right;
}
.share a{
color: #479fc8;
padding:4px;
vertical-align: middle;
display:inline-block;
line-height: 1.42857;
margin-bottom: 0;
}

View file

@ -4,6 +4,9 @@
<head>
<?php echo head_contents();?>
<?php echo $metatags;?>
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/fontawesome.min.css?v=1">
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/solid.min.css">
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/brands.min.css">
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/merriweather.css">
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/montserrat.css">
<link rel="stylesheet" id="genericons-css" href="<?php echo theme_path();?>genericons/genericons.css" type="text/css" media="all" />
@ -141,6 +144,8 @@
<!--[if lt IE 9]>
<script type="text/javascript" src="<?php echo theme_path();?>js/html5.js"></script>
<![endif]-->
<!-- Javascript -->
<script type="text/javascript" src="<?php echo site_url();?>system/resources/js/share-post.js"></script>
<script type="text/javascript" src="<?php echo theme_path();?>js/jquery.js"></script>
<script type="text/javascript" src="<?php echo theme_path();?>js/jquery-migrate.js"></script>
<script type="text/javascript" src="<?php echo theme_path();?>js/skip-link-focus-fix.js"></script>

View file

@ -28,7 +28,16 @@
<span class="embed-soundcloud"><iframe width="100%" height="200px" class="embed-responsive-item" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=<?php echo $p->audio;?>&amp;auto_play=false&amp;visual=true"></iframe></span>
<?php endif; ?>
<?php echo $p->body;?>
<hr>
<div class="share">
<a href="#" class="first" onclick='return copyPermalink(<?php echo json_encode($p->url); ?>);'><i class="fa fa-link"></i></a>
<a target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title ?>"><i class="fab fa-facebook"></i></a>
<a target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title ?>"><i class="fab fa-twitter"></i></a>
<a target="_blank" href="https://bsky.app/intent/compose?text=<?php echo rawurlencode($p->title . ' ' . $p->url); ?>"><i class="fab fa-bluesky"></i></a>
<a target="_blank" href="#" onclick="return shareToFediverse('Mastodon', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');"><i class="fab fa-mastodon"></i></a>
<a target="_blank" href="#" onclick="return shareToFediverse('GoToSocial', '<?php echo rawurlencode($p->title . ' ' . $p->url); ?>');"><i class="fa-solid fa-g"></i></a>
</div>
<style>.related p {margin-top:0;margin-bottom:0.5em;} .related ul {margin-left:1em;}</style>
<div class="related">
<p><strong><?php echo i18n("Related_posts");?></strong></p>