[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: loop-articles.php
File is not writable. Editing disabled.
<?php /** * Docs archive loop articles template * * This template can be overridden by copying it to yourtheme/documentor/archive/loop-articles.php. * * @author softaculous * @package documentor/Templates * @version 1.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } // phpcs:disable $show = documentor()->get_option( 'show_articles', 'documentor_archive', true ); $articles_number = intval( documentor()->get_option( 'articles_number', 'documentor_archive', 3 ) ); if ( -1 === $articles_number ) { $articles_number = 9999; } if ( ! $show || $articles_number < 1 ) { return; } $top_articles = new WP_Query( array( 'post_type' => 'docs', 'posts_per_page' => -1, // phpcs:ignore 'post_parent' => get_the_ID(), 'orderby' => array( 'menu_order' => 'ASC', 'date' => 'DESC', ), ) ); $parent_link = get_permalink(); $count = 0; $nav_list = wp_list_pages( array( 'title_li' => '', 'order' => 'menu_order', 'child_of' => $show_parents ? 0 : documentor()->get_current_doc_id(), 'echo' => false, 'post_type' => 'docs', 'walker' => new Documentor_Walker_Docs(), ) ); if ( $nav_list ) { $show_childs = documentor()->get_option( 'sidebar_show_nav_childs', 'documentor_single', false ); ?> <div class="home_page_cats slimscroll-virt"> <ul class="documentor-nav-list<?php echo ( $show_childs ? ' documentor-nav-list-show-childs' : '' ); ?>"> <?php echo $nav_list; // WP XSS OK. ?> </ul> </div> <?php } wp_reset_postdata(); ?>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 784.9 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
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
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: N/A