- Actualización con cambios de la web
- Paquete con iconos de redes sociales git-svn-id: https://192.168.0.254/svn/Proyectos.Mushi_Web/trunk@5 be4d90b4-1c1e-b94a-a93f-fa0693deb923
BIN
referencia/WDD_Buddycon_Icons.zip
Normal file
56
src/category-profesores.php
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
<?php get_header(); ?>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$sidebar = get_option(THEME_SHORT_NAME.'_search_archive_sidebar','no-sidebar');
|
||||||
|
$sidebar_class = '';
|
||||||
|
if( $sidebar == "left-sidebar" || $sidebar == "right-sidebar"){
|
||||||
|
$sidebar_class = "sidebar-included " . $sidebar;
|
||||||
|
}else if( $sidebar == "both-sidebar" ){
|
||||||
|
$sidebar_class = "both-sidebar-included";
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<div class="content-wrapper <?php echo $sidebar_class; ?>">
|
||||||
|
<div class="page-wrapper archive-wrapper">
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$left_sidebar = "Search/Archive Left Sidebar";
|
||||||
|
$right_sidebar = "Search/Archive Right Sidebar";
|
||||||
|
$num_excerpt = get_option(THEME_SHORT_NAME.'_search_archive_num_excerpt', 200);
|
||||||
|
|
||||||
|
// 1: full-width 2: one-sidebar 3: both-sidebar
|
||||||
|
if( $sidebar == "left-sidebar" || $sidebar == "right-sidebar" ){
|
||||||
|
$image_size = "570x230";
|
||||||
|
}else if( $sidebar == "both-sidebar" ){
|
||||||
|
$image_size = "460x172";
|
||||||
|
}else{
|
||||||
|
$image_size = "870x270";
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "<div class='gdl-page-float-left'>";
|
||||||
|
|
||||||
|
echo "<div class='gdl-page-item'>";
|
||||||
|
|
||||||
|
echo '<div id="blog-item-holder" class="blog-item-holder">';
|
||||||
|
|
||||||
|
gdl_print_blog_full('sixteen columns', $image_size, '2', $num_excerpt);
|
||||||
|
|
||||||
|
echo "</div>"; // blog-item-holder
|
||||||
|
|
||||||
|
echo '<div class="clear"></div>';
|
||||||
|
|
||||||
|
pagination();
|
||||||
|
|
||||||
|
echo "</div>"; // gdl-page-item
|
||||||
|
|
||||||
|
get_sidebar('left');
|
||||||
|
|
||||||
|
echo "</div>"; // gdl-page-float-left
|
||||||
|
|
||||||
|
get_sidebar('right');
|
||||||
|
?>
|
||||||
|
<br class="clear">
|
||||||
|
</div>
|
||||||
|
</div> <!-- content-wrapper -->
|
||||||
|
|
||||||
|
<?php get_footer(); ?>
|
||||||
57
src/category.php
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
<?php
|
||||||
|
get_header(); ?>
|
||||||
|
|
||||||
|
<section id="primary">
|
||||||
|
<div id="content" role="main">
|
||||||
|
|
||||||
|
<?php if ( have_posts() ) : ?>
|
||||||
|
|
||||||
|
<header class="page-header">
|
||||||
|
<h1 class="page-title"><?php
|
||||||
|
printf( __( 'Category Archives: %s', 'twentyeleven' ), '<span>' . single_cat_title( '', false ) . '</span>' );
|
||||||
|
?></h1>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$category_description = category_description();
|
||||||
|
if ( ! empty( $category_description ) )
|
||||||
|
echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' );
|
||||||
|
?>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<?php twentyeleven_content_nav( 'nav-above' ); ?>
|
||||||
|
|
||||||
|
<?php /* Start the Loop */ ?>
|
||||||
|
<?php while ( have_posts() ) : the_post(); ?>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
/* Include the Post-Format-specific template for the content.
|
||||||
|
* If you want to overload this in a child theme then include a file
|
||||||
|
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
|
||||||
|
*/
|
||||||
|
get_template_part( 'content', get_post_format() );
|
||||||
|
?>
|
||||||
|
|
||||||
|
<?php endwhile; ?>
|
||||||
|
|
||||||
|
<?php twentyeleven_content_nav( 'nav-below' ); ?>
|
||||||
|
|
||||||
|
<?php else : ?>
|
||||||
|
|
||||||
|
<article id="post-0" class="post no-results not-found">
|
||||||
|
<header class="entry-header">
|
||||||
|
<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
|
||||||
|
</header><!-- .entry-header -->
|
||||||
|
|
||||||
|
<div class="entry-content">
|
||||||
|
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
|
||||||
|
<?php get_search_form(); ?>
|
||||||
|
</div><!-- .entry-content -->
|
||||||
|
</article><!-- #post-0 -->
|
||||||
|
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
</div><!-- #content -->
|
||||||
|
</section><!-- #primary -->
|
||||||
|
|
||||||
|
<?php get_sidebar(); ?>
|
||||||
|
<?php get_footer(); ?>
|
||||||
@ -82,4 +82,130 @@
|
|||||||
// remove admin bar
|
// remove admin bar
|
||||||
// add_filter('show_admin_bar', '__return_false');
|
// add_filter('show_admin_bar', '__return_false');
|
||||||
|
|
||||||
|
|
||||||
|
add_filter( 'the_excerpt', 'shortcode_unautop');
|
||||||
|
add_filter( 'the_excerpt', 'do_shortcode');
|
||||||
|
|
||||||
|
|
||||||
|
function shortcode_handler_rodax( $atts ) {
|
||||||
|
|
||||||
|
extract( shortcode_atts( array(
|
||||||
|
'categories' => '',
|
||||||
|
'author' => ''
|
||||||
|
), $atts ) );
|
||||||
|
|
||||||
|
global $post;
|
||||||
|
|
||||||
|
// Create an array of category IDs based on the categories fed in.
|
||||||
|
$catFilter = array();
|
||||||
|
$catList = explode(',', $categories);
|
||||||
|
foreach( $catList as $catName ){
|
||||||
|
$id = get_cat_id( trim( $catName ) );
|
||||||
|
if( 0 !== $id )
|
||||||
|
$catFilter[] = $id;
|
||||||
|
}
|
||||||
|
|
||||||
|
$pubs_per_page = apply_filters( 'wpa-pubs_per_page', 10 );
|
||||||
|
|
||||||
|
if(isset($_GET['wpa-paged'])) {
|
||||||
|
$paged = (int)$_GET['wpa-paged'];
|
||||||
|
$offset = $pubs_per_page * ($paged - 1);
|
||||||
|
} else {
|
||||||
|
$paged = 1;
|
||||||
|
$offset = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
$list = '<div class="publication-archive">';
|
||||||
|
|
||||||
|
// Get publications
|
||||||
|
$args = array(
|
||||||
|
'offset' => $offset,
|
||||||
|
'numberposts' => $pubs_per_page,
|
||||||
|
'post_type' => 'publication',
|
||||||
|
'orderby' => 'post_date',
|
||||||
|
'order' => 'DESC',
|
||||||
|
'post_status' => 'publish',
|
||||||
|
'category__in' => $catFilter
|
||||||
|
);
|
||||||
|
|
||||||
|
if('' != $author) {
|
||||||
|
$args['tax_query'] = array(array(
|
||||||
|
'taxonomy' => 'publication-author',
|
||||||
|
'field' => 'slug',
|
||||||
|
'terms' => $author
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
|
$publications = get_posts( $args );
|
||||||
|
|
||||||
|
$args['numberposts'] = -1;
|
||||||
|
$total_pubs = count( get_posts( $args ) );
|
||||||
|
|
||||||
|
$cadenas_sobrantes_title = array('<span class="title">', '</span>');
|
||||||
|
// $cadenas_sobrantes_title = array('<div class="publication_title">', '</div>');
|
||||||
|
$mime = new mimetype();
|
||||||
|
|
||||||
|
// Create publication list
|
||||||
|
foreach( $publications as $publication ) {
|
||||||
|
|
||||||
|
$pub = new WP_Publication_Archive_Item( $publication->ID, $publication->post_title, $publication->post_date );
|
||||||
|
|
||||||
|
$list .= '<div class="single-publication">';
|
||||||
|
|
||||||
|
$cadena = '<span class="title">';
|
||||||
|
$cadena .= '<a href="'. $pub->get_the_link() .'">';
|
||||||
|
$cadena .= '<img height="16" width="16" alt="download" src="' . WP_Publication_Archive::get_image( $mime->getType( $pub->uri ) ) . '" />';
|
||||||
|
$cadena .= $pub->title;
|
||||||
|
if (strlen($pub->authors) > 0)
|
||||||
|
$cadena .= ' (' . $pub->authors . ')';
|
||||||
|
$cadena .= '</a><br/>';
|
||||||
|
$list .= $cadena;
|
||||||
|
|
||||||
|
$cadena = '<span class="date">('. date( 'd/m/Y', strtotime( $pub->date ) ) .')</span>';
|
||||||
|
$list .= $cadena;
|
||||||
|
|
||||||
|
$list .= "</div><hr>";
|
||||||
|
}
|
||||||
|
|
||||||
|
$list .= '</div>';
|
||||||
|
|
||||||
|
if( $total_pubs > $pubs_per_page ) {
|
||||||
|
$list .= '<div id="navigation">';
|
||||||
|
|
||||||
|
$next = add_query_arg( 'wpa-paged', $paged + 1, get_permalink($post->ID) );
|
||||||
|
$prev = add_query_arg( 'wpa-paged', $paged - 1, get_permalink($post->ID) );
|
||||||
|
|
||||||
|
if($offset > 0) {
|
||||||
|
$list .= '<div class="nav-previous">';
|
||||||
|
$list .= '<a href="' . $prev . '">';
|
||||||
|
$list .= '« Previous';
|
||||||
|
$list .= '</a>';
|
||||||
|
$list .= '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
|
if($offset + $pubs_per_page < $total_pubs ) {
|
||||||
|
$list .= '<div class="nav-next">';
|
||||||
|
$list .= '<a href="' . $next . '">';
|
||||||
|
$list .= 'Next »';
|
||||||
|
$list .= '</a>';
|
||||||
|
$list .= '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$list .= '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
|
return $list;
|
||||||
|
|
||||||
|
|
||||||
|
//return '<p>¡Gracias por leer mi blog!, si te gustó suscríbete al feed RSS</p>';
|
||||||
|
}
|
||||||
|
add_shortcode('wp-documentos-rodax', 'shortcode_handler_rodax');
|
||||||
|
|
||||||
|
function allow_more_pubs( $limit ) {
|
||||||
|
return 40;
|
||||||
|
}
|
||||||
|
add_filter( 'wpa-pubs_per_page', 'allow_more_pubs' );
|
||||||
|
add_filter( 'wppa_mask_url', '__return_false' );
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
88
src/functions.php_
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Goodlayers Function File
|
||||||
|
* ---------------------------------------------------------------------
|
||||||
|
* This file include all of important function and features of the theme
|
||||||
|
* to make it available for later use.
|
||||||
|
* ---------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
|
// constants
|
||||||
|
define('THEME_SHORT_NAME','grc');
|
||||||
|
define('THEME_FULL_NAME','Grand College');
|
||||||
|
define('GOODLAYERS_PATH', get_template_directory_uri());
|
||||||
|
define('FONT_SAMPLE_TEXT', 'Sample Font'); // sample font text of the goodlayers backoffice panel
|
||||||
|
|
||||||
|
$gdl_icon_type = get_option(THEME_SHORT_NAME.'_icon_type','dark');
|
||||||
|
$gdl_footer_icon_type = get_option(THEME_SHORT_NAME.'_footer_icon_type','dark');
|
||||||
|
|
||||||
|
$gdl_admin_translator = get_option(THEME_SHORT_NAME.'_enable_admin_translator','enable');
|
||||||
|
//$gdl_is_responsive = get_option(THEME_SHORT_NAME.'_enable_responsive','disable');
|
||||||
|
//$gdl_is_responsive = ($gdl_is_responsive == 'enable')? true: false;
|
||||||
|
$gdl_is_responsive = false;
|
||||||
|
|
||||||
|
$default_post_sidebar = get_option(THEME_SHORT_NAME.'_default_post_sidebar','post-no-sidebar');
|
||||||
|
$default_post_sidebar = str_replace('post-', '', $default_post_sidebar);
|
||||||
|
$default_post_left_sidebar = get_option(THEME_SHORT_NAME.'_default_post_left_sidebar','');
|
||||||
|
$default_post_right_sidebar = get_option(THEME_SHORT_NAME.'_default_post_right_sidebar','');
|
||||||
|
|
||||||
|
include_once('search-custom.php');
|
||||||
|
|
||||||
|
include_once('include/include-script.php'); // include all javascript and style in to the theme
|
||||||
|
include_once('include/plugin/utility.php'); // utility function
|
||||||
|
include_once('include/function-regist.php'); // registered wordpress function
|
||||||
|
include_once('include/goodlayers-option.php'); // goodlayers panel
|
||||||
|
include_once('include/plugin/fontloader.php'); // load necessary font
|
||||||
|
include_once('include/plugin/shortcode-generator.php'); // shortcode
|
||||||
|
include_once('include/plugin/twitter-shortcode.php'); // twitter shortcode
|
||||||
|
|
||||||
|
// dashboard option
|
||||||
|
include_once('include/meta-template.php'); // template for post portfolio and gallery
|
||||||
|
include_once('include/post-option.php'); // meta of post post_type
|
||||||
|
include_once('include/page-option.php'); // meta of page post_type
|
||||||
|
include_once('include/portfolio-option.php'); // meta of portfolio post_type
|
||||||
|
include_once('include/testimonial-option.php'); // meta of portfolio post_type
|
||||||
|
include_once('include/course-option.php'); // meta of course post_type
|
||||||
|
include_once('include/price-table-option.php'); // meta of portfolio post_type
|
||||||
|
include_once('include/gallery-option.php'); // meta of portfolio post_type
|
||||||
|
include_once('include/personnal-option.php'); // meta of portfolio post_type
|
||||||
|
|
||||||
|
// exterior plugins
|
||||||
|
include_once('include/plugin/really-simple-captcha/really-simple-captcha.php'); // capcha comment plugin class
|
||||||
|
include_once('include/plugin/filosofo-image/filosofo-custom-image-sizes.php'); // Custom image size plugin
|
||||||
|
include_once('include/plugin/dropdown-menus.php'); // Custom dropdown menu
|
||||||
|
|
||||||
|
if(!is_admin()){
|
||||||
|
include_once('include/plugin/misc.php'); // misc function to use at font-end
|
||||||
|
include_once('include/plugin/page-item.php'); // organize page item element
|
||||||
|
include_once('include/plugin/blog-item.php'); // organize page item element
|
||||||
|
include_once('include/plugin/comment.php'); // function to get list of comment
|
||||||
|
include_once('include/plugin/pagination/pagination.php'); // page divider plugin
|
||||||
|
include_once('include/plugin/social-shares.php'); // page divider plugin
|
||||||
|
|
||||||
|
include_once('include/plugin/really-simple-captcha/cbnet-really-simple-captcha-comments.php'); // capcha comment plugin
|
||||||
|
}
|
||||||
|
|
||||||
|
// include custom widget
|
||||||
|
include_once('include/plugin/custom-widget/custom-blog-widget.php');
|
||||||
|
include_once('include/plugin/custom-widget/custom-port-widget.php');
|
||||||
|
include_once('include/plugin/custom-widget/custom-port-widget-2.php');
|
||||||
|
include_once('include/plugin/custom-widget/popular-post-widget.php');
|
||||||
|
include_once('include/plugin/custom-widget/contact-widget.php');
|
||||||
|
include_once('include/plugin/custom-widget/flickr-widget.php');
|
||||||
|
include_once('include/plugin/custom-widget/twitter-widget.php');
|
||||||
|
include_once('include/plugin/custom-widget/personnal-widget.php');
|
||||||
|
|
||||||
|
// Add Another theme support
|
||||||
|
if ( ! isset( $content_width ) ) $content_width = 980;
|
||||||
|
|
||||||
|
add_theme_support( 'automatic-feed-links' );
|
||||||
|
|
||||||
|
// remove admin bar
|
||||||
|
// add_filter('show_admin_bar', '__return_false');
|
||||||
|
|
||||||
|
|
||||||
|
add_filter( 'the_excerpt', 'shortcode_unautop');
|
||||||
|
add_filter( 'the_excerpt', 'do_shortcode');
|
||||||
|
?>
|
||||||
@ -1,8 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<!--[if lt IE 7 ]><html class="ie ie6" lang="es"> <![endif]-->
|
<html <?php language_attributes(); ?>>
|
||||||
<!--[if IE 7 ]><html class="ie ie7" lang="es"> <![endif]-->
|
|
||||||
<!--[if IE 8 ]><html class="ie ie8" lang="es"> <![endif]-->
|
|
||||||
<!--[if (gte IE 9)|!(IE)]><!--><html <?php language_attributes(); ?>> <!--<![endif]-->
|
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
<!-- Basic Page Needs
|
<!-- Basic Page Needs
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 755 B |
BIN
src/images/icon/light/social/facebook_2.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 760 B |
BIN
src/images/icon/light/social/twitter_2.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
@ -94,8 +94,8 @@
|
|||||||
global $gdl_admin_translator;
|
global $gdl_admin_translator;
|
||||||
|
|
||||||
if( $gdl_admin_translator == 'disable' ){
|
if( $gdl_admin_translator == 'disable' ){
|
||||||
|
load_theme_textdomain( 'gdl_back_office', TEMPLATEPATH . '/include/languages/' );
|
||||||
load_theme_textdomain( 'gdl_front_end', TEMPLATEPATH . '/include/languages/' );
|
load_theme_textdomain( 'gdl_front_end', TEMPLATEPATH . '/include/languages/' );
|
||||||
load_theme_textdomain( 'gdl_back_office', TEMPLATEPATH . '/include/languages/' );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -89,11 +89,11 @@ msgstr ""
|
|||||||
#: search.php:117
|
#: search.php:117
|
||||||
#: searchform.php:10
|
#: searchform.php:10
|
||||||
msgid "Search"
|
msgid "Search"
|
||||||
msgstr ""
|
msgstr "Buscar"
|
||||||
|
|
||||||
#: searchform.php:4
|
#: searchform.php:4
|
||||||
msgid "Type your keywords..."
|
msgid "Type your keywords..."
|
||||||
msgstr ""
|
msgstr "aaa"
|
||||||
|
|
||||||
#: single-course.php:20
|
#: single-course.php:20
|
||||||
msgid "Client"
|
msgid "Client"
|
||||||
|
|||||||
@ -711,12 +711,6 @@
|
|||||||
'options'=> array('Yes', 'No'),
|
'options'=> array('Yes', 'No'),
|
||||||
'title'=> __('SHOW PAGE CONTENT', 'gdl_back_office'),
|
'title'=> __('SHOW PAGE CONTENT', 'gdl_back_office'),
|
||||||
),
|
),
|
||||||
"Social Sharing" => array(
|
|
||||||
'title'=> __('SOCIAL NETWORK SHARING', 'gdl_back_office'),
|
|
||||||
'name'=>'page-option-social-enabled',
|
|
||||||
'type'=>'combobox',
|
|
||||||
'options'=>array('0'=>'Yes','1'=>'No'),
|
|
||||||
'description'=>'Show the social network sharing in the page.'),
|
|
||||||
|
|
||||||
"Top Slider Type" => array(
|
"Top Slider Type" => array(
|
||||||
'title'=> __('TOP SLIDER TYPE', 'gdl_back_office'),
|
'title'=> __('TOP SLIDER TYPE', 'gdl_back_office'),
|
||||||
|
|||||||
@ -1,401 +1,819 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
* Goodlayers Blog Item File
|
* Goodlayers Blog Item File
|
||||||
|
|
||||||
* ---------------------------------------------------------------------
|
* ---------------------------------------------------------------------
|
||||||
|
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
|
|
||||||
* @author Goodlayers
|
* @author Goodlayers
|
||||||
|
|
||||||
* @link http://goodlayers.com
|
* @link http://goodlayers.com
|
||||||
|
|
||||||
* @copyright Copyright (c) Goodlayers
|
* @copyright Copyright (c) Goodlayers
|
||||||
|
|
||||||
* ---------------------------------------------------------------------
|
* ---------------------------------------------------------------------
|
||||||
|
|
||||||
* This file contains the function that can print each blog item due to
|
* This file contains the function that can print each blog item due to
|
||||||
|
|
||||||
* different conditions.
|
* different conditions.
|
||||||
|
|
||||||
* ---------------------------------------------------------------------
|
* ---------------------------------------------------------------------
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// size is when no sidebar, side2 is use when 1 sidebar, side 3 is use when 3 sidebar
|
// size is when no sidebar, side2 is use when 1 sidebar, side 3 is use when 3 sidebar
|
||||||
|
|
||||||
if( $gdl_is_responsive ){
|
if( $gdl_is_responsive ){
|
||||||
|
|
||||||
$blog_div_size_num_class = array(
|
$blog_div_size_num_class = array(
|
||||||
|
|
||||||
"Widget Style" => array("index"=>"0" ,"class"=>"", "size"=>"60x60", "size2"=>"60x60", "size3"=>"60x60"),
|
"Widget Style" => array("index"=>"0" ,"class"=>"", "size"=>"60x60", "size2"=>"60x60", "size3"=>"60x60"),
|
||||||
|
|
||||||
"1/1 Medium Thumbnail" => array("index"=>"1", "class"=>"sixteen columns", "size"=>"460x180", "size2"=>"390x250", "size3"=>"450x150"),
|
"1/1 Medium Thumbnail" => array("index"=>"1", "class"=>"sixteen columns", "size"=>"460x180", "size2"=>"390x250", "size3"=>"450x150"),
|
||||||
|
|
||||||
"1/1 Full Thumbnail" => array("index"=>"2", "class"=>"sixteen columns", "size"=>"930x300", "size2"=>"630x200", "size3"=>"450x150"));
|
"1/1 Full Thumbnail" => array("index"=>"2", "class"=>"sixteen columns", "size"=>"930x300", "size2"=>"630x200", "size3"=>"450x150"));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
$blog_div_size_num_class = array(
|
$blog_div_size_num_class = array(
|
||||||
|
|
||||||
"Widget Style" => array("index"=>"0" ,"class"=>"", "size"=>"60x60", "size2"=>"60x60", "size3"=>"60x60"),
|
"Widget Style" => array("index"=>"0" ,"class"=>"", "size"=>"60x60", "size2"=>"60x60", "size3"=>"60x60"),
|
||||||
|
|
||||||
"1/1 Medium Thumbnail" => array("index"=>"1", "class"=>"sixteen columns", "size"=>"460x180", "size2"=>"210x135", "size3"=>"450x150"),
|
"1/1 Medium Thumbnail" => array("index"=>"1", "class"=>"sixteen columns", "size"=>"460x180", "size2"=>"210x135", "size3"=>"450x150"),
|
||||||
|
|
||||||
"1/1 Full Thumbnail" => array("index"=>"2", "class"=>"sixteen columns", "size"=>"870x270", "size2"=>"570x230", "size3"=>"460x175"));
|
"1/1 Full Thumbnail" => array("index"=>"2", "class"=>"sixteen columns", "size"=>"870x270", "size2"=>"570x230", "size3"=>"460x175"));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Print blog
|
// Print blog
|
||||||
|
|
||||||
function print_blog_item($item_xml){
|
function print_blog_item($item_xml){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
wp_reset_query();
|
wp_reset_query();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
global $paged;
|
global $paged;
|
||||||
|
|
||||||
global $sidebar;
|
global $sidebar;
|
||||||
|
|
||||||
global $blog_div_size_num_class;
|
global $blog_div_size_num_class;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(empty($paged)){
|
if(empty($paged)){
|
||||||
|
|
||||||
$paged = (get_query_var('page')) ? get_query_var('page') : 1;
|
$paged = (get_query_var('page')) ? get_query_var('page') : 1;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// get the blog meta value
|
// get the blog meta value
|
||||||
|
|
||||||
$header = find_xml_value($item_xml, 'header');
|
$header = find_xml_value($item_xml, 'header');
|
||||||
|
|
||||||
$num_fetch = find_xml_value($item_xml, 'num-fetch');
|
$num_fetch = find_xml_value($item_xml, 'num-fetch');
|
||||||
|
|
||||||
$num_excerpt = find_xml_value($item_xml, 'num-excerpt');
|
$num_excerpt = find_xml_value($item_xml, 'num-excerpt');
|
||||||
|
|
||||||
$item_type = find_xml_value($item_xml, 'item-size');
|
$item_type = find_xml_value($item_xml, 'item-size');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$category = find_xml_value($item_xml, 'category');
|
$category = find_xml_value($item_xml, 'category');
|
||||||
|
|
||||||
$category = ( $category == 'All' )? '': $category;
|
$category = ( $category == 'All' )? '': $category;
|
||||||
|
|
||||||
if( !empty($category) ){
|
if( !empty($category) ){
|
||||||
|
|
||||||
$category_term = get_term_by( 'name', $category , 'category');
|
$category_term = get_term_by( 'name', $category , 'category');
|
||||||
|
|
||||||
$category = $category_term->slug;
|
$category = $category_term->slug;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// get the item class and size from array
|
// get the item class and size from array
|
||||||
|
|
||||||
$item_class = $blog_div_size_num_class[$item_type]['class'];
|
$item_class = $blog_div_size_num_class[$item_type]['class'];
|
||||||
|
|
||||||
$item_index = $blog_div_size_num_class[$item_type]['index'];
|
$item_index = $blog_div_size_num_class[$item_type]['index'];
|
||||||
|
|
||||||
if( $sidebar == "no-sidebar" ){
|
if( $sidebar == "no-sidebar" ){
|
||||||
|
|
||||||
$item_size = $blog_div_size_num_class[$item_type]['size'];
|
$item_size = $blog_div_size_num_class[$item_type]['size'];
|
||||||
|
|
||||||
}else if ( $sidebar == "left-sidebar" || $sidebar == "right-sidebar" ){
|
}else if ( $sidebar == "left-sidebar" || $sidebar == "right-sidebar" ){
|
||||||
|
|
||||||
$item_size = $blog_div_size_num_class[$item_type]['size2'];
|
$item_size = $blog_div_size_num_class[$item_type]['size2'];
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
$item_size = $blog_div_size_num_class[$item_type]['size3'];
|
$item_size = $blog_div_size_num_class[$item_type]['size3'];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Print Header
|
// Print Header
|
||||||
|
|
||||||
if(!empty($header)){
|
if(!empty($header)){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$dropcap_image = wp_get_attachment_image_src( find_xml_value($item_xml, 'header-icon') , 'full' );
|
$dropcap_image = wp_get_attachment_image_src( find_xml_value($item_xml, 'header-icon') , 'full' );
|
||||||
|
|
||||||
if( !empty( $dropcap_image ) ){
|
if( !empty( $dropcap_image ) ){
|
||||||
|
|
||||||
echo '<div class="gdl-header-dropcap ml10">';
|
echo '<div class="gdl-header-dropcap ml10">';
|
||||||
|
|
||||||
echo '<div class="gdl-header-dropcap-center">';
|
echo '<div class="gdl-header-dropcap-center">';
|
||||||
|
|
||||||
echo '<img src="' . $dropcap_image[0] . '" class="no-preload" alt="" />';
|
echo '<img src="' . $dropcap_image[0] . '" class="no-preload" alt="" />';
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<h3 class="blog-header-title title-color gdl-title">' . $header . '</h3>';
|
echo '<h3 class="blog-header-title title-color gdl-title">' . $header . '</h3>';
|
||||||
|
|
||||||
echo '<div class="clear"></div>';
|
echo '<div class="clear"></div>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
query_posts(array('post_type'=>'post', 'paged'=>$paged,
|
query_posts(array('post_type'=>'post', 'paged'=>$paged,
|
||||||
|
|
||||||
'category_name'=>$category, 'posts_per_page'=>$num_fetch ));
|
'category_name'=>$category, 'posts_per_page'=>$num_fetch ));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Start printing blog
|
// Start printing blog
|
||||||
|
|
||||||
echo '<div id="blog-item-holder" class="blog-item-holder">';
|
echo '<div id="blog-item-holder" class="blog-item-holder">';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if( $item_type == '1/1 Full Thumbnail' ){
|
if( $item_type == '1/1 Full Thumbnail' ){
|
||||||
|
|
||||||
gdl_print_blog_full( $item_class, $item_size, $item_index, $num_excerpt );
|
gdl_print_blog_full( $item_class, $item_size, $item_index, $num_excerpt );
|
||||||
|
|
||||||
}else if( $item_type == 'Widget Style' ){
|
}else if( $item_type == 'Widget Style' ){
|
||||||
|
|
||||||
gdl_print_blog_widget( $item_class, $item_size, $item_index, $num_excerpt );
|
gdl_print_blog_widget( $item_class, $item_size, $item_index, $num_excerpt );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '<div class="clear"></div>';
|
echo '<div class="clear"></div>';
|
||||||
|
|
||||||
echo '</div>'; // blog-item holder
|
echo '</div>'; // blog-item holder
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Pagination
|
// Pagination
|
||||||
|
|
||||||
if( find_xml_value($item_xml, "pagination") == "Yes" ){
|
if( find_xml_value($item_xml, "pagination") == "Yes" ){
|
||||||
|
|
||||||
pagination();
|
pagination();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function gdl_print_blog_thumbnail( $post_id, $size ){
|
function gdl_print_blog_thumbnail( $post_id, $size ){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$thumbnail_types = get_post_meta( $post_id, 'post-option-thumbnail-types', true);
|
$thumbnail_types = get_post_meta( $post_id, 'post-option-thumbnail-types', true);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if( $thumbnail_types == "Image" || empty($thumbnail_types) ){
|
if( $thumbnail_types == "Image" || empty($thumbnail_types) ){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$thumbnail_id = get_post_thumbnail_id( $post_id );
|
$thumbnail_id = get_post_thumbnail_id( $post_id );
|
||||||
|
|
||||||
$thumbnail = wp_get_attachment_image_src( $thumbnail_id , $size );
|
$thumbnail = wp_get_attachment_image_src( $thumbnail_id , $size );
|
||||||
|
|
||||||
$alt_text = get_post_meta($thumbnail_id , '_wp_attachment_image_alt', true);
|
$alt_text = get_post_meta($thumbnail_id , '_wp_attachment_image_alt', true);
|
||||||
|
|
||||||
if( !empty($thumbnail) ){
|
if( !empty($thumbnail) ){
|
||||||
|
|
||||||
echo '<div class="blog-thumbnail-image">';
|
echo '<div class="blog-thumbnail-image">';
|
||||||
|
|
||||||
echo '<a href="' . get_permalink() . '"><img src="' . $thumbnail[0] .'" alt="'. $alt_text .'"/></a></div>';
|
echo '<a href="' . get_permalink() . '"><img src="' . $thumbnail[0] .'" alt="'. $alt_text .'"/></a></div>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}else if( $thumbnail_types == "Video" ){
|
}else if( $thumbnail_types == "Video" ){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$video_link = get_post_meta( $post_id, 'post-option-thumbnail-video', true);
|
$video_link = get_post_meta( $post_id, 'post-option-thumbnail-video', true);
|
||||||
|
|
||||||
echo '<div class="blog-thumbnail-video">';
|
echo '<div class="blog-thumbnail-video">';
|
||||||
|
|
||||||
echo get_video($video_link, gdl_get_width($size), gdl_get_height($size));
|
echo get_video($video_link, gdl_get_width($size), gdl_get_height($size));
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}else if ( $thumbnail_types == "Slider" ){
|
}else if ( $thumbnail_types == "Slider" ){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$slider_xml = get_post_meta( $post_id, 'post-option-thumbnail-xml', true);
|
$slider_xml = get_post_meta( $post_id, 'post-option-thumbnail-xml', true);
|
||||||
|
|
||||||
$slider_xml_dom = new DOMDocument();
|
$slider_xml_dom = new DOMDocument();
|
||||||
|
|
||||||
$slider_xml_dom->loadXML($slider_xml);
|
$slider_xml_dom->loadXML($slider_xml);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '<div class="blog-thumbnail-slider">';
|
echo '<div class="blog-thumbnail-slider">';
|
||||||
|
|
||||||
echo print_flex_slider($slider_xml_dom->documentElement, $size);
|
echo print_flex_slider($slider_xml_dom->documentElement, $size);
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function gdl_print_single_thumbnail($post_id, $size){
|
function gdl_print_single_thumbnail($post_id, $size){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$thumbnail_types = get_post_meta( $post_id, 'post-option-inside-thumbnail-types', true);
|
$thumbnail_types = get_post_meta( $post_id, 'post-option-inside-thumbnail-types', true);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if( $thumbnail_types == "Image" ){
|
if( $thumbnail_types == "Image" ){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$thumbnail_id = get_post_meta($post_id,'post-option-inside-thumbnial-image', true);
|
$thumbnail_id = get_post_meta($post_id,'post-option-inside-thumbnial-image', true);
|
||||||
|
|
||||||
$thumbnail = wp_get_attachment_image_src( $thumbnail_id , $size );
|
$thumbnail = wp_get_attachment_image_src( $thumbnail_id , $size );
|
||||||
|
|
||||||
$thumbnail_full = wp_get_attachment_image_src( $thumbnail_id , 'full' );
|
$thumbnail_full = wp_get_attachment_image_src( $thumbnail_id , 'full' );
|
||||||
|
|
||||||
$alt_text = get_post_meta($thumbnail_id , '_wp_attachment_image_alt', true);
|
$alt_text = get_post_meta($thumbnail_id , '_wp_attachment_image_alt', true);
|
||||||
|
|
||||||
if( !empty($thumbnail) ){
|
if( !empty($thumbnail) ){
|
||||||
|
|
||||||
echo '<div class="blog-thumbnail-image">';
|
echo '<div class="blog-thumbnail-image">';
|
||||||
|
|
||||||
echo '<a data-rel="prettyPhoto" href="' . $thumbnail_full[0] . '"><img src="' . $thumbnail[0] .'" alt="'. $alt_text .'"/></a></div>';
|
echo '<a data-rel="prettyPhoto" href="' . $thumbnail_full[0] . '"><img src="' . $thumbnail[0] .'" alt="'. $alt_text .'"/></a></div>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}else if( $thumbnail_types == "Video" ){
|
}else if( $thumbnail_types == "Video" ){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$video_link = get_post_meta( $post_id, 'post-option-inside-thumbnail-video', true);
|
$video_link = get_post_meta( $post_id, 'post-option-inside-thumbnail-video', true);
|
||||||
|
|
||||||
echo '<div class="blog-thumbnail-video">';
|
echo '<div class="blog-thumbnail-video">';
|
||||||
|
|
||||||
echo get_video($video_link, gdl_get_width($size), gdl_get_height($size));
|
echo get_video($video_link, gdl_get_width($size), gdl_get_height($size));
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}else if ( $thumbnail_types == "Slider" ){
|
}else if ( $thumbnail_types == "Slider" ){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$slider_xml = get_post_meta( $post_id, 'post-option-inside-thumbnail-xml', true);
|
$slider_xml = get_post_meta( $post_id, 'post-option-inside-thumbnail-xml', true);
|
||||||
|
|
||||||
$slider_xml_dom = new DOMDocument();
|
$slider_xml_dom = new DOMDocument();
|
||||||
|
|
||||||
$slider_xml_dom->loadXML($slider_xml);
|
$slider_xml_dom->loadXML($slider_xml);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '<div class="blog-thumbnail-slider">';
|
echo '<div class="blog-thumbnail-slider">';
|
||||||
|
|
||||||
echo print_flex_slider($slider_xml_dom->documentElement, $size);
|
echo print_flex_slider($slider_xml_dom->documentElement, $size);
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function gdl_print_blog_full( $item_class, $item_size, $item_index, $num_excerpt ){
|
function gdl_print_blog_full( $item_class, $item_size, $item_index, $num_excerpt ){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
global $post, $sidebar;
|
global $post, $sidebar;
|
||||||
|
|
||||||
global $gdl_admin_translator;
|
global $gdl_admin_translator;
|
||||||
|
|
||||||
if( $gdl_admin_translator == 'enable' ){
|
if( $gdl_admin_translator == 'enable' ){
|
||||||
|
|
||||||
$translator_continue_reading = get_option(THEME_SHORT_NAME.'_translator_continue_reading', 'Continue Reading →');
|
$translator_continue_reading = get_option(THEME_SHORT_NAME.'_translator_continue_reading', 'Continue Reading →');
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
$translator_continue_reading = __('Continue Reading →','gdl_front_end');
|
$translator_continue_reading = __('Continue Reading →','gdl_front_end');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
while( have_posts() ){
|
while( have_posts() ){
|
||||||
|
|
||||||
the_post();
|
the_post();
|
||||||
|
|
||||||
//if( $post->post_type == 'course' ){ continue; }
|
//if( $post->post_type == 'course' ){ continue; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '<div class="blog-item' . $item_index . ' gdl-divider ' . $item_class . '">';
|
echo '<div class="blog-item' . $item_index . ' gdl-divider ' . $item_class . '">';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if( $sidebar != 'both-sidebar' ){
|
if( $sidebar != 'both-sidebar' ){
|
||||||
|
|
||||||
echo '<div class="blog-date-wrapper">';
|
echo '<div class="blog-date-wrapper">';
|
||||||
|
|
||||||
echo '<div class="blog-date-value">' . get_the_time('d') . '</div>';
|
echo '<div class="blog-date-value">' . get_the_time('d') . '</div>';
|
||||||
|
|
||||||
echo '<div class="blog-month-value">' . strtoupper(get_the_time('M')) . '</div>';
|
echo '<div class="blog-month-value">' . strtoupper(get_the_time('M')) . '</div>';
|
||||||
|
|
||||||
echo '<div class="blog-year-value">' . get_the_time('Y') . '</div>';
|
echo '<div class="blog-year-value">' . get_the_time('Y') . '</div>';
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '<div class="blog-item-inside">';
|
echo '<div class="blog-item-inside">';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
gdl_print_blog_thumbnail( $post->ID, $item_size );
|
gdl_print_blog_thumbnail( $post->ID, $item_size );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '<h2 class="blog-thumbnail-title post-title-color gdl-title"><a href="' . get_permalink() . '">' . get_the_title() . '</a></h2>';
|
echo '<h2 class="blog-thumbnail-title post-title-color gdl-title"><a href="' . get_permalink() . '">' . get_the_title() . '</a></h2>';
|
||||||
|
|
||||||
echo '<div class="blog-thumbnail-info post-info-color gdl-divider">';
|
echo '<div class="blog-thumbnail-info post-info-color gdl-divider">';
|
||||||
if( $sidebar == 'both-sidebar' ){
|
|
||||||
|
/* if( $sidebar == 'both-sidebar' ){
|
||||||
|
|
||||||
echo '<div class="blog-thumbnail-date">' . get_the_time('M d, Y') . '</div>';
|
echo '<div class="blog-thumbnail-date">' . get_the_time('M d, Y') . '</div>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<div class="blog-thumbnail-author"> ' . __('by','gdl_front_end') . ' ' . get_the_author_link() . '</div>';
|
echo '<div class="blog-thumbnail-author"> ' . __('by','gdl_front_end') . ' ' . get_the_author_link() . '</div>';
|
||||||
|
|
||||||
the_tags('<div class="blog-thumbnail-tag">', ', ' , '</div>');
|
the_tags('<div class="blog-thumbnail-tag">', ', ' , '</div>');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '<div class="blog-thumbnail-comment">';
|
echo '<div class="blog-thumbnail-comment">';
|
||||||
|
|
||||||
comments_popup_link( __('0 Comment','gdl_front_end'),
|
comments_popup_link( __('0 Comment','gdl_front_end'),
|
||||||
|
|
||||||
__('1 Comment','gdl_front_end'),
|
__('1 Comment','gdl_front_end'),
|
||||||
|
|
||||||
__('% Comments','gdl_front_end'), '',
|
__('% Comments','gdl_front_end'), '',
|
||||||
|
|
||||||
__('Comments are off','gdl_front_end') );
|
__('Comments are off','gdl_front_end') );
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
echo '<div class="clear"></div>';
|
echo '<div class="clear"></div>';
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '<div class="blog-thumbnail-context">';
|
echo '<div class="blog-thumbnail-context">';
|
||||||
|
|
||||||
echo '<div class="blog-thumbnail-content">' . mb_substr( get_the_excerpt(), 0, $num_excerpt ) . '</div>';
|
echo '<div class="blog-thumbnail-content">' . mb_substr( get_the_excerpt(), 0, $num_excerpt ) . '</div>';
|
||||||
|
|
||||||
echo '<a class="blog-continue-reading" href="' . get_permalink() . '"><em>' . $translator_continue_reading . '</em></a>';
|
echo '<a class="blog-continue-reading" href="' . get_permalink() . '"><em>' . $translator_continue_reading . '</em></a>';
|
||||||
|
|
||||||
echo '</div>'; // blog-thumbnail-context
|
echo '</div>'; // blog-thumbnail-context
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '</div>'; // blog-item-inside
|
echo '</div>'; // blog-item-inside
|
||||||
|
|
||||||
echo '<div class="clear"></div>';
|
echo '<div class="clear"></div>';
|
||||||
|
|
||||||
echo '</div>'; // blog-item
|
echo '</div>'; // blog-item
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function gdl_print_blog_widget( $item_class, $item_size, $item_index, $num_excerpt ){
|
function gdl_print_blog_widget( $item_class, $item_size, $item_index, $num_excerpt ){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
global $post;
|
global $post;
|
||||||
|
|
||||||
global $gdl_admin_translator;
|
global $gdl_admin_translator;
|
||||||
|
|
||||||
if( $gdl_admin_translator == 'enable' ){
|
if( $gdl_admin_translator == 'enable' ){
|
||||||
|
|
||||||
$translator_posted_on = get_option(THEME_SHORT_NAME.'_translator_posted_on', 'Posted on');
|
$translator_posted_on = get_option(THEME_SHORT_NAME.'_translator_posted_on', 'Posted on');
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
$translator_posted_on = __('Posted on','gdl_front_end');
|
$translator_posted_on = __('Posted on','gdl_front_end');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
while( have_posts() ){
|
while( have_posts() ){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
the_post();
|
the_post();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '<div class="blog-item' . $item_index . ' gdl-divider ' . $item_class . ' mb15">';
|
echo '<div class="blog-item' . $item_index . ' gdl-divider ' . $item_class . ' mb15">';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
gdl_print_blog_thumbnail( $post->ID, $item_size );
|
gdl_print_blog_thumbnail( $post->ID, $item_size );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '<div class="blog-thumbnail-inside">';
|
echo '<div class="blog-thumbnail-inside">';
|
||||||
|
|
||||||
echo '<h2 class="blog-thumbnail-title post-widget-title-color gdl-title"><a href="' . get_permalink() . '">' . get_the_title() . '</a></h2>';
|
echo '<h2 class="blog-thumbnail-title post-widget-title-color gdl-title"><a href="' . get_permalink() . '">' . get_the_title() . '</a></h2>';
|
||||||
|
|
||||||
echo '<div class="blog-thumbnail-info post-widget-info-color gdl-divider">';
|
echo '<div class="blog-thumbnail-info post-widget-info-color gdl-divider">';
|
||||||
echo '<div class="blog-thumbnail-date">' . $translator_posted_on . ' ' . get_the_time('d M Y') . '</div>';
|
|
||||||
echo '<div class="clear"></div>';
|
/* echo '<div class="blog-thumbnail-date">' . $translator_posted_on . ' ' . get_the_time('d M Y') . '</div>';
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
echo '<div class="clear"></div>';
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '<div class="blog-thumbnail-context">';
|
echo '<div class="blog-thumbnail-context">';
|
||||||
|
|
||||||
echo '<div class="blog-thumbnail-content">' . mb_substr( get_the_excerpt(), 0, $num_excerpt ) . '</div>';
|
echo '<div class="blog-thumbnail-content">' . mb_substr( get_the_excerpt(), 0, $num_excerpt ) . '</div>';
|
||||||
|
|
||||||
echo '</div>'; // blog-thumbnail-context
|
echo '</div>'; // blog-thumbnail-context
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '<div class="clear"></div>';
|
echo '<div class="clear"></div>';
|
||||||
|
|
||||||
echo '</div>'; // blog-thumbnail-inside
|
echo '</div>'; // blog-thumbnail-inside
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '</div>'; // blog-item
|
echo '</div>'; // blog-item
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$personnal_div_size_num_class = array(
|
$personnal_div_size_num_class = array(
|
||||||
|
|
||||||
"1/4" => array("class"=>"four columns", "size"=>"220x121", "size2"=>"145x85", "size3"=>"220x135"),
|
"1/4" => array("class"=>"four columns", "size"=>"220x121", "size2"=>"145x85", "size3"=>"220x135"),
|
||||||
|
|
||||||
"1/3" => array("class"=>"one-third column", "size"=>"300x180", "size2"=>"200x116", "size3"=>"220x135"),
|
"1/3" => array("class"=>"one-third column", "size"=>"300x180", "size2"=>"200x116", "size3"=>"220x135"),
|
||||||
|
|
||||||
"1/2" => array("class"=>"eight columns", "size"=>"460x290", "size2"=>"310x190", "size3"=>"220x135"),
|
"1/2" => array("class"=>"eight columns", "size"=>"460x290", "size2"=>"310x190", "size3"=>"220x135"),
|
||||||
|
|
||||||
"1/1 Full Width" => array("class"=>"sixteen columns", "size"=>"180x180", "size2"=>"180x180", "size3"=>"180x180"));
|
"1/1 Full Width" => array("class"=>"sixteen columns", "size"=>"180x180", "size2"=>"180x180", "size3"=>"180x180"));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function print_personnal_item($item_xml){
|
function print_personnal_item($item_xml){
|
||||||
|
|
||||||
global $personnal_div_size_num_class, $sidebar;
|
global $personnal_div_size_num_class, $sidebar;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
wp_reset_query();
|
wp_reset_query();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$header = find_xml_value($item_xml, 'header');
|
$header = find_xml_value($item_xml, 'header');
|
||||||
|
|
||||||
$num_fetch = find_xml_value($item_xml, 'num-fetch');
|
$num_fetch = find_xml_value($item_xml, 'num-fetch');
|
||||||
|
|
||||||
$item_size = find_xml_value($item_xml, 'item-size');
|
$item_size = find_xml_value($item_xml, 'item-size');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$category = find_xml_value($item_xml, 'category');
|
$category = find_xml_value($item_xml, 'category');
|
||||||
|
|
||||||
$category_val = ( $category == 'All' )? '': $category;
|
$category_val = ( $category == 'All' )? '': $category;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if( $sidebar == "no-sidebar" ){
|
if( $sidebar == "no-sidebar" ){
|
||||||
|
|
||||||
$sidebar_size = "size";
|
$sidebar_size = "size";
|
||||||
|
|
||||||
}else if ( $sidebar == "left-sidebar" || $sidebar == "right-sidebar" ){
|
}else if ( $sidebar == "left-sidebar" || $sidebar == "right-sidebar" ){
|
||||||
|
|
||||||
$sidebar_size = "size2";
|
$sidebar_size = "size2";
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
$sidebar_size = "size3";
|
$sidebar_size = "size3";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(!empty($header)){
|
if(!empty($header)){
|
||||||
|
|
||||||
$dropcap_image = wp_get_attachment_image_src( find_xml_value($item_xml, 'header-icon') , 'full' );
|
$dropcap_image = wp_get_attachment_image_src( find_xml_value($item_xml, 'header-icon') , 'full' );
|
||||||
|
|
||||||
if( !empty( $dropcap_image ) ){
|
if( !empty( $dropcap_image ) ){
|
||||||
|
|
||||||
echo '<div class="gdl-header-dropcap ml10">';
|
echo '<div class="gdl-header-dropcap ml10">';
|
||||||
|
|
||||||
echo '<div class="gdl-header-dropcap-center">';
|
echo '<div class="gdl-header-dropcap-center">';
|
||||||
|
|
||||||
echo '<img src="' . $dropcap_image[0] . '" class="no-preload" alt="" />';
|
echo '<img src="' . $dropcap_image[0] . '" class="no-preload" alt="" />';
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<h3 class="personnal-header-title title-color gdl-title">' . $header . '</h3>';
|
echo '<h3 class="personnal-header-title title-color gdl-title">' . $header . '</h3>';
|
||||||
|
|
||||||
echo '<div class="clear"></div>';
|
echo '<div class="clear"></div>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
query_posts(array('post_type'=>'personnal', 'personnal-category'=>$category_val, 'posts_per_page'=>$num_fetch));
|
query_posts(array('post_type'=>'personnal', 'personnal-category'=>$category_val, 'posts_per_page'=>$num_fetch));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '<div class="personal-item-holder">';
|
echo '<div class="personal-item-holder">';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$item_attr = $personnal_div_size_num_class[$item_size];
|
$item_attr = $personnal_div_size_num_class[$item_size];
|
||||||
|
|
||||||
if( find_xml_value($item_xml, 'item-size') == '1/1 Full Width' ){
|
if( find_xml_value($item_xml, 'item-size') == '1/1 Full Width' ){
|
||||||
|
|
||||||
print_personnal_full( $item_attr, $sidebar_size );
|
print_personnal_full( $item_attr, $sidebar_size );
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
print_personnal_small( $item_attr, $sidebar_size, $item_xml );
|
print_personnal_small( $item_attr, $sidebar_size, $item_xml );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function print_personnal_small($item_attr, $sidebar_size, $item_xml){
|
function print_personnal_small($item_attr, $sidebar_size, $item_xml){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
global $class_to_num;
|
global $class_to_num;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$inner_size = $class_to_num[find_xml_value($item_xml, 'item-size')];
|
$inner_size = $class_to_num[find_xml_value($item_xml, 'item-size')];
|
||||||
|
|
||||||
$outer_size = $class_to_num[find_xml_value($item_xml, 'size')];
|
$outer_size = $class_to_num[find_xml_value($item_xml, 'size')];
|
||||||
|
|
||||||
$mod_num = (int) ($outer_size / $inner_size);
|
$mod_num = (int) ($outer_size / $inner_size);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$count = 1;
|
$count = 1;
|
||||||
|
|
||||||
echo '<div class="personnal-small">';
|
echo '<div class="personnal-small">';
|
||||||
|
|
||||||
while(have_posts()){
|
while(have_posts()){
|
||||||
|
|
||||||
the_post();
|
the_post();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$thumbnail_id = get_post_thumbnail_id();
|
$thumbnail_id = get_post_thumbnail_id();
|
||||||
|
|
||||||
if( !empty($thumbnail_id) ){
|
if( !empty($thumbnail_id) ){
|
||||||
|
|
||||||
$thumbnail = wp_get_attachment_image_src( $thumbnail_id , $item_attr[$sidebar_size] );
|
$thumbnail = wp_get_attachment_image_src( $thumbnail_id , $item_attr[$sidebar_size] );
|
||||||
|
|
||||||
$thumbnail_full = wp_get_attachment_image_src( $thumbnail_id, 'full' );
|
$thumbnail_full = wp_get_attachment_image_src( $thumbnail_id, 'full' );
|
||||||
|
|
||||||
$alt_text = get_post_meta($thumbnail_id , '_wp_attachment_image_alt', true);
|
$alt_text = get_post_meta($thumbnail_id , '_wp_attachment_image_alt', true);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '<div class="personnal-item ' . $item_attr['class'] . '" >';
|
echo '<div class="personnal-item ' . $item_attr['class'] . '" >';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '<div class="personnal-thumbnail-image">';
|
echo '<div class="personnal-thumbnail-image">';
|
||||||
|
|
||||||
echo '<a href="' . $thumbnail_full[0] . '" data-rel="prettyPhoto" title="' . get_the_title() . '">';
|
echo '<a href="' . $thumbnail_full[0] . '" data-rel="prettyPhoto" title="' . get_the_title() . '">';
|
||||||
|
|
||||||
echo '<img src="' . $thumbnail[0] . '" alt="' . $alt_text . '">';
|
echo '<img src="' . $thumbnail[0] . '" alt="' . $alt_text . '">';
|
||||||
|
|
||||||
echo '</a>';
|
echo '</a>';
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '<div class="personnal-title gdl-title">';
|
echo '<div class="personnal-title gdl-title">';
|
||||||
|
|
||||||
the_title();
|
the_title();
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '</div>'; // personnal item
|
echo '</div>'; // personnal item
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if( ($count % $mod_num) == 0 ) echo '<div class="clear"></div>';
|
if( ($count % $mod_num) == 0 ) echo '<div class="clear"></div>';
|
||||||
|
|
||||||
$count++;
|
$count++;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<div class="clear"></div>';
|
echo '<div class="clear"></div>';
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function print_personnal_full( $item_attr, $sidebar_size ){
|
function print_personnal_full( $item_attr, $sidebar_size ){
|
||||||
|
|
||||||
echo '<div class="personnal-full">';
|
echo '<div class="personnal-full">';
|
||||||
|
|
||||||
while(have_posts()){
|
while(have_posts()){
|
||||||
|
|
||||||
the_post();
|
the_post();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '<div class="personnal-item ' . $item_attr['class'] . ' mb20" >';
|
echo '<div class="personnal-item ' . $item_attr['class'] . ' mb20" >';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$thumbnail_id = get_post_thumbnail_id();
|
$thumbnail_id = get_post_thumbnail_id();
|
||||||
|
|
||||||
if( !empty($thumbnail_id) ){
|
if( !empty($thumbnail_id) ){
|
||||||
$thumbnail = wp_get_attachment_image_src( $thumbnail_id , $item_attr[$sidebar_size] );
|
|
||||||
|
$thumbnail = wp_get_attachment_image_src( $thumbnail_id , '120x165'); //$item_attr[$sidebar_size] );
|
||||||
|
|
||||||
$thumbnail_full = wp_get_attachment_image_src( $thumbnail_id, 'full' );
|
$thumbnail_full = wp_get_attachment_image_src( $thumbnail_id, 'full' );
|
||||||
|
|
||||||
$alt_text = get_post_meta($thumbnail_id , '_wp_attachment_image_alt', true);
|
$alt_text = get_post_meta($thumbnail_id , '_wp_attachment_image_alt', true);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '<div class="personnal-thumbnail-image">';
|
echo '<div class="personnal-thumbnail-image">';
|
||||||
echo '<a href="' . $thumbnail_full[0] . '" data-rel="prettyPhoto" title="' . get_the_title() . '">';
|
|
||||||
|
echo '<a href="' . get_permalink() . '" title="' . get_the_title() . '">';
|
||||||
|
|
||||||
echo '<img src="' . $thumbnail[0] . '" alt="' . $alt_text . '">';
|
echo '<img src="' . $thumbnail[0] . '" alt="' . $alt_text . '">';
|
||||||
|
|
||||||
echo '</a>';
|
echo '</a>';
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '<div class="personnal-content-wrapper">';
|
echo '<div class="personnal-content-wrapper">';
|
||||||
|
|
||||||
echo '<div class="personnal-title gdl-title">';
|
echo '<div class="personnal-title gdl-title">';
|
||||||
|
|
||||||
|
echo '<a href="' . get_permalink() . '">';
|
||||||
|
|
||||||
the_title();
|
the_title();
|
||||||
|
|
||||||
|
echo '</a>';
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
echo '<div class="personnal-content">';
|
echo '<div class="personnal-content">';
|
||||||
the_content();
|
|
||||||
|
the_excerpt(); //the_content();
|
||||||
|
|
||||||
|
echo '<a href="' . get_permalink() . '">';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$boton = '[button color="#5d7731" background="#a1cc59" size="small" src="' . get_permalink() . '"]Ver su currículum[/button]';
|
||||||
|
|
||||||
|
echo do_shortcode($boton);
|
||||||
|
|
||||||
|
echo '</a>';
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
echo '</div>'; // personnal-content-wrapper
|
echo '</div>'; // personnal-content-wrapper
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo '<div class="clear"></div>';
|
echo '<div class="clear"></div>';
|
||||||
|
|
||||||
echo '</div>'; // personnal item
|
echo '</div>'; // personnal item
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
1192
src/include/plugin/custom-widget/twitteroauth.php
Normal file
@ -234,7 +234,7 @@
|
|||||||
|
|
||||||
}else if($font['type'] == 'Google Font'){
|
}else if($font['type'] == 'Google Font'){
|
||||||
|
|
||||||
$google_font_family = $google_font_family . str_replace(' ', '+' , $font_name);// . ':n,i,b,bi|';
|
$google_font_family = $google_font_family . str_replace(' ', '+' , $font_name) . ':n,i,b,bi|';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -926,7 +926,8 @@
|
|||||||
|
|
||||||
// portfolio excerpt
|
// portfolio excerpt
|
||||||
if( find_xml_value($item_xml, "show-excerpt") == "Yes" ){
|
if( find_xml_value($item_xml, "show-excerpt") == "Yes" ){
|
||||||
echo '<div class="portfolio-thumbnail-content">' . mb_substr( get_the_excerpt(), 0, $num_excerpt ) . '</div>';
|
$excerpt = do_shortcode(get_the_excerpt());
|
||||||
|
echo '<div class="portfolio-thumbnail-content">' . mb_substr( $excerpt, 0, $num_excerpt ) . '</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// read more button
|
// read more button
|
||||||
|
|||||||
@ -0,0 +1 @@
|
|||||||
|
<?php $captcha = "JW4V6"; ?>
|
||||||
BIN
src/include/plugin/really-simple-captcha/tmp/1249609055.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
@ -0,0 +1 @@
|
|||||||
|
<?php $captcha = "79KPU"; ?>
|
||||||
BIN
src/include/plugin/really-simple-captcha/tmp/1417491781.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
@ -0,0 +1 @@
|
|||||||
|
<?php $captcha = "USTQZ"; ?>
|
||||||
BIN
src/include/plugin/really-simple-captcha/tmp/1439211113.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
@ -0,0 +1 @@
|
|||||||
|
<?php $captcha = "PS4P6"; ?>
|
||||||
BIN
src/include/plugin/really-simple-captcha/tmp/1937636973.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
@ -0,0 +1 @@
|
|||||||
|
<?php $captcha = "CXKF4"; ?>
|
||||||
BIN
src/include/plugin/really-simple-captcha/tmp/1990569825.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
@ -0,0 +1 @@
|
|||||||
|
<?php $captcha = "4AGYM"; ?>
|
||||||
BIN
src/include/plugin/really-simple-captcha/tmp/458598530.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
@ -0,0 +1 @@
|
|||||||
|
<?php $captcha = "3V5P2"; ?>
|
||||||
BIN
src/include/plugin/really-simple-captcha/tmp/474877035.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
@ -0,0 +1 @@
|
|||||||
|
<?php $captcha = "2JBP3"; ?>
|
||||||
BIN
src/include/plugin/really-simple-captcha/tmp/563394836.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
@ -0,0 +1 @@
|
|||||||
|
<?php $captcha = "6FE5J"; ?>
|
||||||
BIN
src/include/plugin/really-simple-captcha/tmp/78538711.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
@ -0,0 +1 @@
|
|||||||
|
<?php $captcha = "TNFY9"; ?>
|
||||||
BIN
src/include/plugin/really-simple-captcha/tmp/855910214.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
@ -0,0 +1 @@
|
|||||||
|
<?php $captcha = "FKJAQ"; ?>
|
||||||
BIN
src/include/plugin/really-simple-captcha/tmp/957012264.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
@ -257,16 +257,16 @@
|
|||||||
|
|
||||||
$receiver = $_POST['receiver'];
|
$receiver = $_POST['receiver'];
|
||||||
|
|
||||||
$messages = "You have received a new contact form message. \n";
|
$messages = "Ha recibido un nuevo mensaje del formulario de contacto de su pagina web. \n";
|
||||||
$messages = $messages . 'Name : ' . $name . " \n";
|
$messages = $messages . 'Nombre : ' . $name . " \n";
|
||||||
$messages = $messages . 'Email : ' . $email . " \n";
|
$messages = $messages . 'Email : ' . $email . " \n";
|
||||||
$messages = $messages . 'Message : ' . $message;
|
$messages = $messages . 'Mensaje : ' . $message;
|
||||||
|
|
||||||
$header = "From: " . $name . "<" . $email . "> \r\n";
|
$header = "From: " . $name . "<" . $email . "> \r\n";
|
||||||
$header = $header . "To: " . $receiver . " \r\n";
|
$header = $header . "To: " . $receiver . " \r\n";
|
||||||
$header = $header . 'Content-Type: text/plain; charset=UTF-8 ' . " \r\n";
|
$header = $header . 'Content-Type: text/plain; charset=UTF-8 ' . " \r\n";
|
||||||
|
|
||||||
if( @mail($receiver, 'New contact form received', $messages, $header) ){
|
if( @mail($receiver, 'Nuevo contacto desde formulario pagina web', $messages, $header) ){
|
||||||
$return_data['success'] = '1';
|
$return_data['success'] = '1';
|
||||||
$return_data['value'] = $gdl_send_complete;
|
$return_data['value'] = $gdl_send_complete;
|
||||||
die( json_encode($return_data) );
|
die( json_encode($return_data) );
|
||||||
|
|||||||
@ -1,198 +1,396 @@
|
|||||||
jQuery(document).ready(function(){
|
jQuery(document).ready(function(){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Menu Navigation
|
// Menu Navigation
|
||||||
|
|
||||||
jQuery('#main-superfish-wrapper ul.sf-menu').supersubs({
|
jQuery('#main-superfish-wrapper ul.sf-menu').supersubs({
|
||||||
|
|
||||||
minWidth: 14.5,
|
minWidth: 14.5,
|
||||||
|
|
||||||
maxWidth: 27,
|
maxWidth: 27,
|
||||||
|
|
||||||
extraWidth: 1
|
extraWidth: 1
|
||||||
|
|
||||||
}).superfish({
|
}).superfish({
|
||||||
|
|
||||||
delay: 100,
|
delay: 100,
|
||||||
|
|
||||||
speed: 'fast',
|
speed: 'fast',
|
||||||
|
|
||||||
animation: {opacity:'show',height:'show'}
|
animation: {opacity:'show',height:'show'}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Accordion
|
// Accordion
|
||||||
|
|
||||||
jQuery("ul.gdl-accordion li").each(function(){
|
jQuery("ul.gdl-accordion li").each(function(){
|
||||||
|
|
||||||
if(jQuery(this).index() > 0){
|
if(jQuery(this).index() > 0){
|
||||||
|
|
||||||
jQuery(this).children(".accordion-content").css('display','none');
|
jQuery(this).children(".accordion-content").css('display','none');
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
jQuery(this).find(".accordion-head-image").addClass('active');
|
jQuery(this).find(".accordion-head-image").addClass('active');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
jQuery(this).children(".accordion-head").bind("click", function(){
|
jQuery(this).children(".accordion-head").bind("click", function(){
|
||||||
|
|
||||||
jQuery(this).children().addClass(function(){
|
jQuery(this).children().addClass(function(){
|
||||||
|
|
||||||
if(jQuery(this).hasClass("active")) return "";
|
if(jQuery(this).hasClass("active")) return "";
|
||||||
|
|
||||||
return "active";
|
return "active";
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
jQuery(this).siblings(".accordion-content").slideDown();
|
jQuery(this).siblings(".accordion-content").slideDown();
|
||||||
|
|
||||||
jQuery(this).parent().siblings("li").children(".accordion-content").slideUp();
|
jQuery(this).parent().siblings("li").children(".accordion-content").slideUp();
|
||||||
|
|
||||||
jQuery(this).parent().siblings("li").find(".active").removeClass("active");
|
jQuery(this).parent().siblings("li").find(".active").removeClass("active");
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Toggle Box
|
// Toggle Box
|
||||||
|
|
||||||
jQuery("ul.gdl-toggle-box li").each(function(){
|
jQuery("ul.gdl-toggle-box li").each(function(){
|
||||||
|
|
||||||
jQuery(this).children(".toggle-box-content").not(".active").css('display','none');
|
jQuery(this).children(".toggle-box-content").not(".active").css('display','none');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
jQuery(this).children(".toggle-box-head").bind("click", function(){
|
jQuery(this).children(".toggle-box-head").bind("click", function(){
|
||||||
|
|
||||||
jQuery(this).children().addClass(function(){
|
jQuery(this).children().addClass(function(){
|
||||||
|
|
||||||
if(jQuery(this).hasClass("active")){
|
if(jQuery(this).hasClass("active")){
|
||||||
|
|
||||||
jQuery(this).removeClass("active");
|
jQuery(this).removeClass("active");
|
||||||
|
|
||||||
return "";
|
return "";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return "active";
|
return "active";
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
jQuery(this).siblings(".toggle-box-content").slideToggle();
|
jQuery(this).siblings(".toggle-box-content").slideToggle();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Social Hover
|
// Social Hover
|
||||||
|
|
||||||
jQuery(".social-icon").hover(function(){
|
jQuery(".social-icon").hover(function(){
|
||||||
|
|
||||||
jQuery(this).animate({ opacity: 1 }, 150);
|
jQuery(this).animate({ opacity: 1 }, 150);
|
||||||
|
|
||||||
}, function(){
|
}, function(){
|
||||||
jQuery(this).animate({ opacity: 0.55 }, 150);
|
|
||||||
|
jQuery(this).animate({ opacity: 1 }, 150);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Scroll Top
|
// Scroll Top
|
||||||
|
|
||||||
jQuery('div.scroll-top').click(function() {
|
jQuery('div.scroll-top').click(function() {
|
||||||
|
|
||||||
jQuery('html, body').animate({ scrollTop:0 }, '1000');
|
jQuery('html, body').animate({ scrollTop:0 }, '1000');
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Blog Hover
|
// Blog Hover
|
||||||
|
|
||||||
jQuery(".blog-thumbnail-image img").hover(function(){
|
jQuery(".blog-thumbnail-image img").hover(function(){
|
||||||
|
|
||||||
jQuery(this).animate({ opacity: 0.55 }, 150);
|
jQuery(this).animate({ opacity: 0.55 }, 150);
|
||||||
|
|
||||||
}, function(){
|
}, function(){
|
||||||
|
|
||||||
jQuery(this).animate({ opacity: 1 }, 150);
|
jQuery(this).animate({ opacity: 1 }, 150);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Gallery Hover
|
// Gallery Hover
|
||||||
|
|
||||||
jQuery(".gallery-thumbnail-image img, .slideshow-image img").hover(function(){
|
jQuery(".gallery-thumbnail-image img, .slideshow-image img").hover(function(){
|
||||||
|
|
||||||
jQuery(this).animate({ opacity: 0.55 }, 150);
|
jQuery(this).animate({ opacity: 0.55 }, 150);
|
||||||
|
|
||||||
}, function(){
|
}, function(){
|
||||||
|
|
||||||
jQuery(this).animate({ opacity: 1 }, 150);
|
jQuery(this).animate({ opacity: 1 }, 150);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
jQuery(".gdl-hover").hover(function(){
|
jQuery(".gdl-hover").hover(function(){
|
||||||
|
|
||||||
jQuery(this).animate({ opacity: 1 }, 100);
|
jQuery(this).animate({ opacity: 1 }, 100);
|
||||||
|
|
||||||
}, function(){
|
}, function(){
|
||||||
|
|
||||||
jQuery(this).animate({ opacity: 0.8 }, 100);
|
jQuery(this).animate({ opacity: 0.8 }, 100);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Port Hover
|
// Port Hover
|
||||||
|
|
||||||
jQuery("#portfolio-item-holder .portfolio-thumbnail-image-hover").hover(function(){
|
jQuery("#portfolio-item-holder .portfolio-thumbnail-image-hover").hover(function(){
|
||||||
|
|
||||||
jQuery(this).animate({ opacity: 0.55 }, 400, 'easeOutExpo');
|
jQuery(this).animate({ opacity: 0.55 }, 400, 'easeOutExpo');
|
||||||
|
|
||||||
jQuery(this).find('span').animate({ left: '50%'}, 300, 'easeOutExpo');
|
jQuery(this).find('span').animate({ left: '50%'}, 300, 'easeOutExpo');
|
||||||
|
|
||||||
}, function(){
|
}, function(){
|
||||||
|
|
||||||
jQuery(this).find('span').animate({ left: '150%'}, 300, 'easeInExpo', function(){
|
jQuery(this).find('span').animate({ left: '150%'}, 300, 'easeInExpo', function(){
|
||||||
|
|
||||||
jQuery(this).css('left','-50%');
|
jQuery(this).css('left','-50%');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
jQuery(this).animate({ opacity: 0 }, 400, 'easeInExpo');
|
jQuery(this).animate({ opacity: 0 }, 400, 'easeInExpo');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Price Table
|
// Price Table
|
||||||
|
|
||||||
jQuery(".gdl-price-item").each(function(){
|
jQuery(".gdl-price-item").each(function(){
|
||||||
|
|
||||||
var max_height = 0;
|
var max_height = 0;
|
||||||
|
|
||||||
jQuery(this).find('.price-item').each(function(){
|
jQuery(this).find('.price-item').each(function(){
|
||||||
|
|
||||||
if( max_height < jQuery(this).height()){
|
if( max_height < jQuery(this).height()){
|
||||||
|
|
||||||
max_height = jQuery(this).height();
|
max_height = jQuery(this).height();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
jQuery(this).find('.price-item').height(max_height);
|
jQuery(this).find('.price-item').height(max_height);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
jQuery('#search-text input, #search-course-text input').setBlankText();
|
jQuery('#search-text input, #search-course-text input').setBlankText();
|
||||||
|
|
||||||
jQuery('#searchsubmit, #search-course-submit').click(function(){
|
jQuery('#searchsubmit, #search-course-submit').click(function(){
|
||||||
|
|
||||||
var search_value = jQuery(this).siblings('#search-text, #search-course-text').find('input[type="text"]');
|
var search_value = jQuery(this).siblings('#search-text, #search-course-text').find('input[type="text"]');
|
||||||
|
|
||||||
if( search_value.val() == search_value.attr('data-default') ){
|
if( search_value.val() == search_value.attr('data-default') ){
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Change the style of <select>
|
// Change the style of <select>
|
||||||
|
|
||||||
if (!jQuery.browser.opera) {
|
if (!jQuery.browser.opera) {
|
||||||
|
|
||||||
jQuery('.gdl-combobox select').each(function(){
|
jQuery('.gdl-combobox select').each(function(){
|
||||||
|
|
||||||
var title = jQuery(this).attr('title');
|
var title = jQuery(this).attr('title');
|
||||||
|
|
||||||
if( jQuery('option:selected', this).val() != '' ) title = jQuery('option:selected',this).text();
|
if( jQuery('option:selected', this).val() != '' ) title = jQuery('option:selected',this).text();
|
||||||
|
|
||||||
jQuery(this)
|
jQuery(this)
|
||||||
|
|
||||||
.css({'z-index':10,'-khtml-appearance':'none'})
|
.css({'z-index':10,'-khtml-appearance':'none'})
|
||||||
|
|
||||||
.after(function(){
|
.after(function(){
|
||||||
|
|
||||||
val = jQuery('option:selected',this).text();
|
val = jQuery('option:selected',this).text();
|
||||||
|
|
||||||
jQuery(this).next().html(val + '<div class="gdl-combobox-button"></div>');
|
jQuery(this).next().html(val + '<div class="gdl-combobox-button"></div>');
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
.change(function(){
|
.change(function(){
|
||||||
|
|
||||||
val = jQuery('option:selected',this).text();
|
val = jQuery('option:selected',this).text();
|
||||||
|
|
||||||
jQuery(this).next().html(val + '<div class="gdl-combobox-button"></div>');
|
jQuery(this).next().html(val + '<div class="gdl-combobox-button"></div>');
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
jQuery(window).load(function(){
|
jQuery(window).load(function(){
|
||||||
|
|
||||||
// Set Portfolio Max Height
|
// Set Portfolio Max Height
|
||||||
|
|
||||||
var port_item_holder = jQuery('div#portfolio-item-holder');
|
var port_item_holder = jQuery('div#portfolio-item-holder');
|
||||||
|
|
||||||
port_item_holder.equalHeights();
|
port_item_holder.equalHeights();
|
||||||
|
|
||||||
jQuery(window).resize(function(){
|
jQuery(window).resize(function(){
|
||||||
|
|
||||||
port_item_holder.children().css('min-height','0');
|
port_item_holder.children().css('min-height','0');
|
||||||
|
|
||||||
port_item_holder.equalHeights();
|
port_item_holder.equalHeights();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Tabs Activiation
|
/* Tabs Activiation
|
||||||
|
|
||||||
================================================== */
|
================================================== */
|
||||||
|
|
||||||
jQuery(document).ready(function() {
|
jQuery(document).ready(function() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var tabs = jQuery('ul.tabs');
|
var tabs = jQuery('ul.tabs');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
tabs.each(function(i) {
|
tabs.each(function(i) {
|
||||||
|
|
||||||
//Get all tabs
|
//Get all tabs
|
||||||
|
|
||||||
var tab = jQuery(this).find('> li > a');
|
var tab = jQuery(this).find('> li > a');
|
||||||
|
|
||||||
var tab_content = jQuery(this).next('ul.tabs-content')
|
var tab_content = jQuery(this).next('ul.tabs-content')
|
||||||
|
|
||||||
tab.click(function(e) {
|
tab.click(function(e) {
|
||||||
|
|
||||||
//Get Location of tab's content
|
//Get Location of tab's content
|
||||||
|
|
||||||
var contentLocation = jQuery(this).attr('data-href');
|
var contentLocation = jQuery(this).attr('data-href');
|
||||||
|
|
||||||
//Let go if not a hashed one
|
//Let go if not a hashed one
|
||||||
|
|
||||||
if(contentLocation.charAt(0)=="#") {
|
if(contentLocation.charAt(0)=="#") {
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
//Make Tab Active
|
//Make Tab Active
|
||||||
|
|
||||||
tab.removeClass('active');
|
tab.removeClass('active');
|
||||||
|
|
||||||
jQuery(this).addClass('active');
|
jQuery(this).addClass('active');
|
||||||
|
|
||||||
//Show Tab Content & add active class
|
//Show Tab Content & add active class
|
||||||
|
|
||||||
tab_content.children(contentLocation).show().addClass('active').siblings().hide().removeClass('active');
|
tab_content.children(contentLocation).show().addClass('active').siblings().hide().removeClass('active');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Equal Height Function
|
/* Equal Height Function
|
||||||
|
|
||||||
================================================== */
|
================================================== */
|
||||||
|
|
||||||
(function($) {
|
(function($) {
|
||||||
|
|
||||||
$.fn.equalHeights = function(px) {
|
$.fn.equalHeights = function(px) {
|
||||||
|
|
||||||
$(this).each(function(){
|
$(this).each(function(){
|
||||||
|
|
||||||
var currentTallest = 0;
|
var currentTallest = 0;
|
||||||
|
|
||||||
$(this).children().each(function(i){
|
$(this).children().each(function(i){
|
||||||
|
|
||||||
if ($(this).height() > currentTallest) { currentTallest = $(this).height(); }
|
if ($(this).height() > currentTallest) { currentTallest = $(this).height(); }
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$(this).children().css({'min-height': currentTallest});
|
$(this).children().css({'min-height': currentTallest});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$.fn.setBlankText = function(){
|
$.fn.setBlankText = function(){
|
||||||
|
|
||||||
this.live("blur", function(){
|
this.live("blur", function(){
|
||||||
|
|
||||||
var default_value = $(this).attr("data-default");
|
var default_value = $(this).attr("data-default");
|
||||||
|
|
||||||
if ($(this).val() == ""){
|
if ($(this).val() == ""){
|
||||||
|
|
||||||
$(this).val(default_value);
|
$(this).val(default_value);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}).live("focus", function(){
|
}).live("focus", function(){
|
||||||
|
|
||||||
var default_value = $(this).attr("data-default");
|
var default_value = $(this).attr("data-default");
|
||||||
|
|
||||||
if ($(this).val() == default_value){
|
if ($(this).val() == default_value){
|
||||||
|
|
||||||
$(this).val("");
|
$(this).val("");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
20
src/page.php
@ -9,12 +9,6 @@
|
|||||||
$sidebar_class = "both-sidebar-included";
|
$sidebar_class = "both-sidebar-included";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Translator words
|
|
||||||
if( $gdl_admin_translator == 'enable' ){
|
|
||||||
$translator_social_share = get_option(THEME_SHORT_NAME.'_translator_social_shares', 'Social Share');
|
|
||||||
}else{
|
|
||||||
$translator_social_share = __('Social Share','gdl_front_end');
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
<div class="content-wrapper <?php echo $sidebar_class; ?>">
|
<div class="content-wrapper <?php echo $sidebar_class; ?>">
|
||||||
|
|
||||||
@ -91,16 +85,6 @@
|
|||||||
if( !empty($content) && $gdl_show_content != 'No' ){
|
if( !empty($content) && $gdl_show_content != 'No' ){
|
||||||
echo '<div class="gdl-page-content">';
|
echo '<div class="gdl-page-content">';
|
||||||
the_content();
|
the_content();
|
||||||
|
|
||||||
// Include Social Shares
|
|
||||||
if(get_post_meta($post->ID, 'page-option-social-enabled', true) == "Yes"){
|
|
||||||
echo "<div class='social-share-title gdl-link-title gdl-title'>";
|
|
||||||
echo $translator_social_share;
|
|
||||||
echo "</div>";
|
|
||||||
include_social_shares();
|
|
||||||
echo "<div class='clear'></div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
}
|
}
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
@ -201,10 +185,6 @@
|
|||||||
echo "</div>";
|
echo "</div>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo "</div>"; // end of gdl-page-item
|
echo "</div>"; // end of gdl-page-item
|
||||||
|
|
||||||
get_sidebar('left');
|
get_sidebar('left');
|
||||||
|
|||||||
10
src/pagina_privada.php
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Template name: Página privada
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (!is_user_logged_in()) auth_redirect();
|
||||||
|
|
||||||
|
require('page.php');
|
||||||
|
|
||||||
|
?>
|
||||||
@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
$search_custom_meta = array(
|
$search_custom_meta = array(
|
||||||
/*"course-id" => array(
|
"course-id" => array(
|
||||||
'title'=> __('COURSE ID', 'gdl_back_office'),
|
'title'=> __('COURSE ID', 'gdl_back_office'),
|
||||||
'title_show'=> __('Course ID', 'gdl_front_end'),
|
'title_show'=> __('Course ID', 'gdl_front_end'),
|
||||||
'name'=>'course-option-id',
|
'name'=>'course-option-id',
|
||||||
'show-on-table'=> 'Yes'),*/
|
'show-on-table'=> 'Yes'),
|
||||||
"course-name" => array(
|
"course-name" => array(
|
||||||
'title'=> __('COURSE NAME', 'gdl_back_office'),
|
'title'=> __('COURSE NAME', 'gdl_back_office'),
|
||||||
'title_show'=> __('Course Name', 'gdl_front_end'),
|
'title_show'=> __('Course Name', 'gdl_front_end'),
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
<form method="get" id="searchform" action="<?php echo home_url(); ?>/">
|
<form method="get" id="searchform" action="<?php echo home_url(); ?>/">
|
||||||
<div id="search-text">
|
<div id="search-text">
|
||||||
<?php
|
<?php
|
||||||
$default_value = __("Type your keywords...", "gdl_front_end");
|
$default_value = __("Buscar...", "gdl_front_end");
|
||||||
$search_value = get_search_query();
|
$search_value = get_search_query();
|
||||||
$search_value = (empty($search_value))? $default_value: $search_value;
|
$search_value = (empty($search_value))? $default_value: $search_value;
|
||||||
?>
|
?>
|
||||||
<input type="text" value="<?php echo $search_value; ?>" name="s" id="s" autocomplete="off" data-default="<?php echo $default_value; ?>" />
|
<input type="text" value="<?php echo $search_value; ?>" name="s" id="s" autocomplete="off" data-default="<?php echo $default_value; ?>" />
|
||||||
</div>
|
</div>
|
||||||
<input type="submit" id="searchsubmit" value="<?php _e("Search","gdl_front_end"); ?>"/>
|
<input type="submit" id="searchsubmit" value="<?php _e("Buscar","gdl_front_end"); ?>"/>
|
||||||
<br class="clear">
|
<br class="clear">
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@ -73,7 +73,7 @@
|
|||||||
echo "<div class='clear'></div>";
|
echo "<div class='clear'></div>";
|
||||||
|
|
||||||
// Print Course Table
|
// Print Course Table
|
||||||
global $search_custom_meta;
|
/*global $search_custom_meta;
|
||||||
echo "<table class='course-table'>";
|
echo "<table class='course-table'>";
|
||||||
echo "<tr class='header'>";
|
echo "<tr class='header'>";
|
||||||
foreach ( $search_custom_meta as $custom_meta ){
|
foreach ( $search_custom_meta as $custom_meta ){
|
||||||
@ -98,7 +98,7 @@
|
|||||||
echo "</td>";
|
echo "</td>";
|
||||||
}
|
}
|
||||||
echo "</tr>";
|
echo "</tr>";
|
||||||
echo "</table>";
|
echo "</table>";*/
|
||||||
|
|
||||||
// Single content
|
// Single content
|
||||||
echo "<div class='single-course-content'>";
|
echo "<div class='single-course-content'>";
|
||||||
|
|||||||
246
src/single-personnal.php
Normal file
@ -0,0 +1,246 @@
|
|||||||
|
<?php get_header(); ?>
|
||||||
|
<?php
|
||||||
|
// Check and get Sidebar Class
|
||||||
|
$sidebar = get_post_meta($post->ID,'post-option-sidebar-template',true);
|
||||||
|
$sidebar_class = '';
|
||||||
|
if( $sidebar == "left-sidebar" || $sidebar == "right-sidebar"){
|
||||||
|
$sidebar_class = "sidebar-included " . $sidebar;
|
||||||
|
}else if( $sidebar == "both-sidebar" ){
|
||||||
|
$sidebar_class = "both-sidebar-included";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Translator words
|
||||||
|
global $gdl_admin_translator;
|
||||||
|
if( $gdl_admin_translator == 'enable' ){
|
||||||
|
$translator_client = get_option(THEME_SHORT_NAME.'_translator_client', 'Client');
|
||||||
|
$translator_visit_website = get_option(THEME_SHORT_NAME.'_translator_visit_website', 'Visit Website');
|
||||||
|
$translator_about_author = get_option(THEME_SHORT_NAME.'_translator_about_author', 'About the Author');
|
||||||
|
$translator_social_share = get_option(THEME_SHORT_NAME.'_translator_social_shares', 'Social Share');
|
||||||
|
}else{
|
||||||
|
$translator_client = __('Client','gdl_front_end');
|
||||||
|
$translator_visit_website = __('Visit Website','gdl_front_end');
|
||||||
|
$translator_about_author = __('About the Author','gdl_front_end');
|
||||||
|
$translator_social_share = __('Social Share','gdl_front_end');
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<div class="content-wrapper <?php echo $sidebar_class; ?>">
|
||||||
|
<div class="clear"></div>
|
||||||
|
<?php
|
||||||
|
$left_sidebar = get_post_meta( $post->ID , "post-option-choose-left-sidebar", true);
|
||||||
|
$right_sidebar = get_post_meta( $post->ID , "post-option-choose-right-sidebar", true);
|
||||||
|
|
||||||
|
echo "<div class='gdl-page-float-left'>";
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class='gdl-page-item'>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if ( have_posts() ){
|
||||||
|
while (have_posts()){
|
||||||
|
the_post();
|
||||||
|
|
||||||
|
if( get_option(THEME_SHORT_NAME.'_use_portfolio_as') == 'portfolio style' ){
|
||||||
|
echo '<div class="sixteen columns">';
|
||||||
|
|
||||||
|
echo '<div class="single-port-nav">';
|
||||||
|
previous_post_link('<div class="single-port-prev-nav"><div class="left-arrow"></div>%link</div>');
|
||||||
|
next_post_link('<div class="single-port-next-nav">%link<div class="right-arrow"></div></div>');
|
||||||
|
echo '</div>';
|
||||||
|
echo '<div class="clear"></div>';
|
||||||
|
|
||||||
|
// Inside Thumbnail
|
||||||
|
if( $sidebar == "left-sidebar" || $sidebar == "right-sidebar" ){
|
||||||
|
$item_size = "640x250";
|
||||||
|
}else if( $sidebar == "both-sidebar" ){
|
||||||
|
$item_size = "460x180";
|
||||||
|
}else{
|
||||||
|
$item_size = "940x375";
|
||||||
|
}
|
||||||
|
|
||||||
|
$inside_thumbnail_type = get_post_meta($post->ID, 'post-option-inside-thumbnail-types', true);
|
||||||
|
|
||||||
|
switch($inside_thumbnail_type){
|
||||||
|
|
||||||
|
case "Image" :
|
||||||
|
|
||||||
|
$thumbnail_id = get_post_meta($post->ID,'post-option-inside-thumbnial-image', true);
|
||||||
|
$thumbnail = wp_get_attachment_image_src( $thumbnail_id , $item_size );
|
||||||
|
$thumbnail_full = wp_get_attachment_image_src( $thumbnail_id , 'full' );
|
||||||
|
$alt_text = get_post_meta($thumbnail_id , '_wp_attachment_image_alt', true);
|
||||||
|
|
||||||
|
if( !empty($thumbnail) ){
|
||||||
|
echo '<div class="single-port-thumbnail-image">';
|
||||||
|
echo '<a href="' . $thumbnail_full[0] . '" data-rel="prettyPhoto" title="' . get_the_title() . '" ><img src="' . $thumbnail[0] .'" alt="'. $alt_text .'"/></a>';
|
||||||
|
echo '</div>';
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "Video" :
|
||||||
|
|
||||||
|
$video_link = get_post_meta($post->ID,'post-option-inside-thumbnail-video', true);
|
||||||
|
echo '<div class="single-port-thumbnail-video">';
|
||||||
|
echo get_video($video_link, gdl_get_width($item_size), gdl_get_height($item_size));
|
||||||
|
echo '</div>';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "Slider" :
|
||||||
|
|
||||||
|
$slider_xml = get_post_meta( $post->ID, 'post-option-inside-thumbnail-xml', true);
|
||||||
|
$slider_xml_dom = new DOMDocument();
|
||||||
|
$slider_xml_dom->loadXML($slider_xml);
|
||||||
|
|
||||||
|
echo '<div class="single-port-thumbnail-slider">';
|
||||||
|
echo print_flex_slider($slider_xml_dom->documentElement, $item_size);
|
||||||
|
echo '</div>';
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "<div class='clear'></div>";
|
||||||
|
|
||||||
|
echo "</div>"; // sixteen-columns
|
||||||
|
|
||||||
|
// Portfolio Information
|
||||||
|
/* echo '<div class="four columns mt0">';
|
||||||
|
echo '<div class="single-port-info">';
|
||||||
|
|
||||||
|
$client_name = get_post_meta($post->ID, 'post-option-clients-name', true);
|
||||||
|
if(!empty($client_name)){
|
||||||
|
$client_head = $translator_client;
|
||||||
|
echo '<div class="single-port-client"><span class="head">' . $client_head . ':</span>' . $client_name . '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
|
echo '<div class="single-port-date"><span class="head">' . __('Date:','gdl_front_end') . '</span>';
|
||||||
|
echo get_the_time('F d, Y') . '</div>';
|
||||||
|
|
||||||
|
$portfolio_tag = get_the_term_list( $post->ID, 'portfolio-tag', '', ', ' , '' );
|
||||||
|
if(!empty($portfolio_tag)){
|
||||||
|
echo '<div class="single-port-tag"><span class="head">Tag:</span>';
|
||||||
|
echo $portfolio_tag;
|
||||||
|
echo '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$website_link = get_post_meta( $post->ID, 'post-option-website-url', true);
|
||||||
|
if(!empty($website_link)){
|
||||||
|
$visit_site_head = $translator_visit_website;
|
||||||
|
echo '<div class="single-port-visit-website"><a href="' . $website_link . '">' . $visit_site_head . '</a></div>';
|
||||||
|
}
|
||||||
|
|
||||||
|
echo '</div>';
|
||||||
|
echo '</div>';
|
||||||
|
*/
|
||||||
|
// Single header
|
||||||
|
echo '<div class="twelve columns mt0">';
|
||||||
|
echo '<h1 class="single-port-title post-title-color gdl-title gdl-divider">';
|
||||||
|
echo '<a href="' . get_permalink() . '">' . get_the_title() . '</a></h1>';
|
||||||
|
echo "<div class='single-port-content'>";
|
||||||
|
echo the_content();
|
||||||
|
echo "</div>";
|
||||||
|
|
||||||
|
// Include Social Shares
|
||||||
|
if(get_post_meta($post->ID, 'post-option-social-enabled', true) == "Yes"){
|
||||||
|
echo "<div class='social-share-title gdl-link-title gdl-title'>";
|
||||||
|
echo $translator_social_share;
|
||||||
|
echo "</div>";
|
||||||
|
include_social_shares();
|
||||||
|
echo "<div class='clear'></div>";
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "<div class='mt30'></div>";
|
||||||
|
echo "</div>";
|
||||||
|
|
||||||
|
}else{
|
||||||
|
|
||||||
|
if( $sidebar == "left-sidebar" || $sidebar == "right-sidebar" ){
|
||||||
|
$item_size = "580x180";
|
||||||
|
}else if( $sidebar == "both-sidebar" ){
|
||||||
|
$item_size = "400x125";
|
||||||
|
}else{
|
||||||
|
$item_size = "880x270";
|
||||||
|
}
|
||||||
|
echo "<div class='blog-item-holder'>";
|
||||||
|
|
||||||
|
echo '<div class="sixteen columns blog-item2 gdl-divider">';
|
||||||
|
|
||||||
|
echo '<div class="blog-date-wrapper">';
|
||||||
|
echo '<div class="blog-date-value">' . get_the_time('d') . '</div>';
|
||||||
|
echo '<div class="blog-month-value">' . strtoupper(get_the_time('M')) . '</div>';
|
||||||
|
echo '<div class="blog-year-value">' . get_the_time('Y') . '</div>';
|
||||||
|
echo '</div>';
|
||||||
|
|
||||||
|
echo '<div class="blog-item-inside">';
|
||||||
|
|
||||||
|
gdl_print_blog_thumbnail( $post->ID, $item_size );
|
||||||
|
|
||||||
|
echo '<h2 class="blog-thumbnail-title post-title-color gdl-title"><a href="' . get_permalink() . '">' . get_the_title() . '</a></h2>';
|
||||||
|
echo '<div class="blog-thumbnail-info post-info-color gdl-divider">';
|
||||||
|
echo '<div class="blog-thumbnail-author"> ' . __('by','gdl_front_end') . ' ' . get_the_author_link() . '</div>';
|
||||||
|
the_tags('<div class="blog-thumbnail-tag">', ', ' , '</div>');
|
||||||
|
|
||||||
|
echo '<div class="blog-thumbnail-comment">';
|
||||||
|
comments_popup_link( __('0 Comment','gdl_front_end'),
|
||||||
|
__('1 Comment','gdl_front_end'),
|
||||||
|
__('% Comments','gdl_front_end'), '',
|
||||||
|
__('Comments are off','gdl_front_end') );
|
||||||
|
echo '</div>';
|
||||||
|
echo '<div class="clear"></div>';
|
||||||
|
echo '</div>';
|
||||||
|
|
||||||
|
echo '<div class="blog-thumbnail-context">';
|
||||||
|
the_content();
|
||||||
|
echo '</div>'; // blog-thumbnail-context
|
||||||
|
|
||||||
|
echo '<div class="clear"></div>';
|
||||||
|
|
||||||
|
// About Author
|
||||||
|
if(get_post_meta($post->ID, 'post-option-author-info-enabled', true) == "Yes"){
|
||||||
|
echo "<div class='about-author-wrapper'>";
|
||||||
|
echo "<div class='about-author-avartar'>" . get_avatar( get_the_author_meta('ID'), 90 ) . "</div>";
|
||||||
|
echo "<div class='about-author-info'>";
|
||||||
|
echo "<div class='about-author-title gdl-link-title gdl-title'>" . $translator_about_author . "</div>";
|
||||||
|
echo get_the_author_meta('description');
|
||||||
|
echo "</div>";
|
||||||
|
echo "<div class='clear'></div>";
|
||||||
|
echo "</div>";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Include Social Shares
|
||||||
|
if(get_post_meta($post->ID, 'post-option-social-enabled', true) == "Yes"){
|
||||||
|
echo "<div class='social-share-title gdl-link-title gdl-title'>";
|
||||||
|
echo $translator_social_share;
|
||||||
|
echo "</div>";
|
||||||
|
include_social_shares();
|
||||||
|
echo "<div class='clear'></div>";
|
||||||
|
}
|
||||||
|
|
||||||
|
echo '<div class="comment-wrapper">';
|
||||||
|
comments_template();
|
||||||
|
echo '</div>';
|
||||||
|
|
||||||
|
echo '</div>'; // blog-item-inside
|
||||||
|
echo "</div>"; // sixteen-columns
|
||||||
|
|
||||||
|
echo "</div>"; // blog-item-holder
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
</div> <!-- gdl-page-item -->
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
get_sidebar('left');
|
||||||
|
|
||||||
|
echo "</div>"; // gdl-page-float-left
|
||||||
|
|
||||||
|
get_sidebar('right');
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="clear"></div>
|
||||||
|
|
||||||
|
</div> <!-- content-wrapper -->
|
||||||
|
|
||||||
|
<?php get_footer(); ?>
|
||||||
@ -67,7 +67,7 @@
|
|||||||
|
|
||||||
echo '<h2 class="blog-thumbnail-title post-title-color gdl-title"><a href="' . get_permalink() . '">' . get_the_title() . '</a></h2>';
|
echo '<h2 class="blog-thumbnail-title post-title-color gdl-title"><a href="' . get_permalink() . '">' . get_the_title() . '</a></h2>';
|
||||||
echo '<div class="blog-thumbnail-info post-info-color gdl-divider">';
|
echo '<div class="blog-thumbnail-info post-info-color gdl-divider">';
|
||||||
if( $sidebar == 'both-sidebar' ){
|
/* if( $sidebar == 'both-sidebar' ){
|
||||||
echo '<div class="blog-thumbnail-date">' . get_the_time('M d, Y') . '</div>';
|
echo '<div class="blog-thumbnail-date">' . get_the_time('M d, Y') . '</div>';
|
||||||
}
|
}
|
||||||
echo '<div class="blog-thumbnail-author"> ' . __('by','gdl_front_end') . ' ' . get_the_author_link() . '</div>';
|
echo '<div class="blog-thumbnail-author"> ' . __('by','gdl_front_end') . ' ' . get_the_author_link() . '</div>';
|
||||||
@ -79,8 +79,9 @@
|
|||||||
__('% Comments','gdl_front_end'), '',
|
__('% Comments','gdl_front_end'), '',
|
||||||
__('Comments are off','gdl_front_end') );
|
__('Comments are off','gdl_front_end') );
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
*/
|
||||||
echo '<div class="clear"></div>';
|
echo '<div class="clear"></div>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
echo '<div class="blog-thumbnail-context">';
|
echo '<div class="blog-thumbnail-context">';
|
||||||
the_content();
|
the_content();
|
||||||
|
|||||||
2381
src/style.css
43
src/woocommerce.php
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
<?php get_header(); ?>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$sidebar = 'right-sidebar';
|
||||||
|
$sidebar_class = '';
|
||||||
|
if( $sidebar == "left-sidebar" || $sidebar == "right-sidebar"){
|
||||||
|
$sidebar_class = "sidebar-included " . $sidebar;
|
||||||
|
}else if( $sidebar == "both-sidebar" ){
|
||||||
|
$sidebar_class = "both-sidebar-included";
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<div class="content-wrapper <?php echo $sidebar_class; ?>">
|
||||||
|
|
||||||
|
<div class="page-wrapper">
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$left_sidebar = 'woo-left-sidebar';
|
||||||
|
$right_sidebar = 'woo-right-sidebar';
|
||||||
|
|
||||||
|
echo "<div class='gdl-page-float-left'>";
|
||||||
|
echo "<div class='gdl-page-item'>";
|
||||||
|
|
||||||
|
echo '<div class="woo-breadcrumbs-wrapper">';
|
||||||
|
woocommerce_breadcrumb();
|
||||||
|
echo '</div>';
|
||||||
|
|
||||||
|
echo '<div class="woo-commerce-content-wrapper">';
|
||||||
|
woocommerce_content();
|
||||||
|
echo "</div>"; // woo commerce content wrpaper
|
||||||
|
|
||||||
|
echo "</div>"; // end of gdl-page-item
|
||||||
|
get_sidebar('left');
|
||||||
|
|
||||||
|
echo "</div>"; // gdl-page-float-left
|
||||||
|
get_sidebar('right');
|
||||||
|
|
||||||
|
?>
|
||||||
|
<div class="clear"></div>
|
||||||
|
</div>
|
||||||
|
</div> <!-- content-wrapper -->
|
||||||
|
|
||||||
|
<?php get_footer(); ?>
|
||||||