/
var
/
www
/
vhosts
/
ihelp.ro
/
ajutam.ro
/
wp-content
/
plugins
/
give
/
includes
/
/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/includes
mkdir
upload
Name
Size
Mode
Actions
admin/
-
0755
rm
api/
-
0755
rm
database/
-
0755
rm
deprecated/
-
0755
rm
donors/
-
0755
rm
emails/
-
0755
rm
forms/
-
0755
rm
frontend/
-
0755
rm
gateways/
-
0755
rm
libraries/
-
0755
rm
payments/
-
0755
rm
actions.php
9723
0644
edit
dl
rm
ajax-functions.php
20842
0644
edit
dl
rm
class-give-async-process.php
1177
0644
edit
dl
rm
class-give-background-updater.php
13110
0644
edit
dl
rm
class-give-cache-setting.php
6402
0644
edit
dl
rm
class-give-cache.php
18186
0644
edit
dl
rm
class-give-cli-commands.php
33154
0644
edit
dl
rm
class-give-comment.php
17386
0644
edit
dl
rm
class-give-cron.php
5157
0644
edit
dl
rm
class-give-donate-form.php
24078
0644
edit
dl
rm
class-give-donor.php
41007
0644
edit
dl
rm
class-give-email-access.php
8503
0644
edit
dl
rm
class-give-license-handler.php
27610
0644
edit
dl
rm
class-give-logging.php
7492
0644
edit
dl
rm
class-give-readme-parser.php
1259
0644
edit
dl
rm
class-give-roles.php
10783
0644
edit
dl
rm
class-give-scripts.php
25159
0644
edit
dl
rm
class-give-session.php
15164
0644
edit
dl
rm
class-give-stats.php
12049
0644
edit
dl
rm
class-give-template-loader.php
3638
0644
edit
dl
rm
class-give-tooltips.php
4670
0644
edit
dl
rm
class-give-translation.php
8466
0644
edit
dl
rm
class-notices.php
19401
0644
edit
dl
rm
country-functions.php
77972
0644
edit
dl
rm
currencies-list.php
48937
0644
edit
dl
rm
currency-functions.php
11784
0644
edit
dl
rm
error-tracking.php
2996
0644
edit
dl
rm
filters.php
8946
0644
edit
dl
rm
formatting.php
25206
0644
edit
dl
rm
install.php
16535
0644
edit
dl
rm
login-register.php
10578
0644
edit
dl
rm
misc-functions.php
113297
0644
edit
dl
rm
plugin-compatibility.php
3247
0644
edit
dl
rm
post-types.php
18224
0644
edit
dl
rm
price-functions.php
2895
0644
edit
dl
rm
process-donation.php
47979
0644
edit
dl
rm
setting-functions.php
4461
0644
edit
dl
rm
shortcodes.php
29823
0644
edit
dl
rm
template-functions.php
13292
0644
edit
dl
rm
user-functions.php
16145
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/includes/class-give-template-loader.php
(3638B)
<?php /** * Template Loader * * @package Give * @subpackage Classes/Give_Template_Loader * @copyright Copyright (c) 2016, Give * @license https://opensource.org/licenses/gpl-license GNU Public License * @since 1.0 */ // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Give_Template_Loader Class * * Base class template loader. * * @since 1.0 */ class Give_Template_Loader { /** * Class Constructor * * Set up the template loader Class. * * @since 1.0 * @access public */ public function __construct() { /** * Templates */ add_filter( 'template_include', array( __CLASS__, 'template_loader' ) ); /** * Content Wrappers */ add_action( 'give_before_main_content', 'give_output_content_wrapper', 10 ); add_action( 'give_after_main_content', 'give_output_content_wrapper_end', 10 ); /** * Entry Summary Classes */ add_filter( 'give_forms_single_summary_classes', array( $this, 'give_set_single_summary_classes' ) ); /** * Sidebar */ add_action( 'give_before_single_form_summary', array( $this, 'give_output_sidebar_option' ), 1 ); /** * Single Forms Summary Box */ add_action( 'give_single_form_summary', 'give_template_single_title', 5 ); add_action( 'give_single_form_summary', 'give_get_donation_form', 10 ); } /** * Give Set Single Summary Classes * * Determines if the single form should be full width or with a sidebar. * * @access public * * @param string $classes List of space separated class names. * * @return string $classes List of space separated class names. */ public function give_set_single_summary_classes( $classes ) { // Add full width class when feature image is disabled AND no widgets are present if ( ! give_is_setting_enabled( give_get_option( 'form_sidebar' ) ) ) { $classes .= ' give-full-width'; } return $classes; } /** * Output sidebar option * * Determines whether the user has enabled or disabled the sidebar for Single Give forms. * * @since 1.3 * @access public * * @return void */ public function give_output_sidebar_option() { // Add full width class when feature image is disabled AND no widgets are present if ( give_is_setting_enabled( give_get_option( 'form_sidebar' ) ) ) { add_action( 'give_before_single_form_summary', 'give_left_sidebar_pre_wrap', 5 ); add_action( 'give_before_single_form_summary', 'give_show_form_images', 10 ); add_action( 'give_before_single_form_summary', 'give_get_forms_sidebar', 20 ); add_action( 'give_before_single_form_summary', 'give_left_sidebar_post_wrap', 30 ); } } /** * Load a template. * * Handles template usage so that we can use our own templates instead of the themes. * * Templates are in the 'templates' folder. Give looks for theme * overrides in /theme/give/ by default. * * For beginners, it also looks for a give.php template first. If the user adds this * to the theme (containing give() inside) this will be used for all give templates. * * @access public * * @param mixed $template * * @return string $template */ public static function template_loader( $template ) { $find = array( 'give.php' ); $file = ''; if ( is_single() && get_post_type() == 'give_forms' ) { $file = 'single-give-form.php'; $find[] = $file; $find[] = apply_filters( 'give_template_path', 'give/' ) . $file; } if ( $file ) { $template = locate_template( array_unique( $find ) ); if ( ! $template ) { $template = GIVE_PLUGIN_DIR . '/templates/' . $file; } } return $template; } }
Save
cmd:
run