- 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
This commit is contained in:
David Arranz 2013-09-30 16:48:37 +00:00
parent f4ea8dba82
commit 88f4d244c1
56 changed files with 5774 additions and 397 deletions

Binary file not shown.

View 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
View 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(); ?>

View File

@ -82,4 +82,130 @@
// remove admin bar
// 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 .= '&nbsp;(' . $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 .= '&laquo; Previous';
$list .= '</a>';
$list .= '</div>';
}
if($offset + $pubs_per_page < $total_pubs ) {
$list .= '<div class="nav-next">';
$list .= '<a href="' . $next . '">';
$list .= 'Next &raquo;';
$list .= '</a>';
$list .= '</div>';
}
$list .= '</div>';
}
return $list;
//return '&lt;p&gt;¡Gracias por leer mi blog!, si te gustó suscríbete al feed RSS&lt;/p&gt;';
}
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
View 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');
?>

View File

@ -1,8 +1,5 @@
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="es"> <![endif]-->
<!--[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]-->
<html <?php language_attributes(); ?>>
<head>
<!-- Basic Page Needs

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 755 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 760 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -94,8 +94,8 @@
global $gdl_admin_translator;
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_back_office', TEMPLATEPATH . '/include/languages/' );
}
}

View File

@ -89,11 +89,11 @@ msgstr ""
#: search.php:117
#: searchform.php:10
msgid "Search"
msgstr ""
msgstr "Buscar"
#: searchform.php:4
msgid "Type your keywords..."
msgstr ""
msgstr "aaa"
#: single-course.php:20
msgid "Client"

View File

@ -711,12 +711,6 @@
'options'=> array('Yes', 'No'),
'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(
'title'=> __('TOP SLIDER TYPE', 'gdl_back_office'),

View File

@ -1,401 +1,819 @@
<?php
/*
* Goodlayers Blog Item File
* ---------------------------------------------------------------------
* @version 1.0
* @author Goodlayers
* @link http://goodlayers.com
* @copyright Copyright (c) Goodlayers
* ---------------------------------------------------------------------
* This file contains the function that can print each blog item due to
* different conditions.
* ---------------------------------------------------------------------
*/
// size is when no sidebar, side2 is use when 1 sidebar, side 3 is use when 3 sidebar
if( $gdl_is_responsive ){
$blog_div_size_num_class = array(
"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 Full Thumbnail" => array("index"=>"2", "class"=>"sixteen columns", "size"=>"930x300", "size2"=>"630x200", "size3"=>"450x150"));
}else{
$blog_div_size_num_class = array(
"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 Full Thumbnail" => array("index"=>"2", "class"=>"sixteen columns", "size"=>"870x270", "size2"=>"570x230", "size3"=>"460x175"));
}
// Print blog
function print_blog_item($item_xml){
wp_reset_query();
global $paged;
global $sidebar;
global $blog_div_size_num_class;
if(empty($paged)){
$paged = (get_query_var('page')) ? get_query_var('page') : 1;
}
// get the blog meta value
$header = find_xml_value($item_xml, 'header');
$num_fetch = find_xml_value($item_xml, 'num-fetch');
$num_excerpt = find_xml_value($item_xml, 'num-excerpt');
$item_type = find_xml_value($item_xml, 'item-size');
$category = find_xml_value($item_xml, 'category');
$category = ( $category == 'All' )? '': $category;
if( !empty($category) ){
$category_term = get_term_by( 'name', $category , 'category');
$category = $category_term->slug;
}
// get the item class and size from array
$item_class = $blog_div_size_num_class[$item_type]['class'];
$item_index = $blog_div_size_num_class[$item_type]['index'];
if( $sidebar == "no-sidebar" ){
$item_size = $blog_div_size_num_class[$item_type]['size'];
}else if ( $sidebar == "left-sidebar" || $sidebar == "right-sidebar" ){
$item_size = $blog_div_size_num_class[$item_type]['size2'];
}else{
$item_size = $blog_div_size_num_class[$item_type]['size3'];
}
// Print Header
if(!empty($header)){
$dropcap_image = wp_get_attachment_image_src( find_xml_value($item_xml, 'header-icon') , 'full' );
if( !empty( $dropcap_image ) ){
echo '<div class="gdl-header-dropcap ml10">';
echo '<div class="gdl-header-dropcap-center">';
echo '<img src="' . $dropcap_image[0] . '" class="no-preload" alt="" />';
echo '</div>';
echo '</div>';
}
echo '<h3 class="blog-header-title title-color gdl-title">' . $header . '</h3>';
echo '<div class="clear"></div>';
}
query_posts(array('post_type'=>'post', 'paged'=>$paged,
'category_name'=>$category, 'posts_per_page'=>$num_fetch ));
// Start printing blog
echo '<div id="blog-item-holder" class="blog-item-holder">';
if( $item_type == '1/1 Full Thumbnail' ){
gdl_print_blog_full( $item_class, $item_size, $item_index, $num_excerpt );
}else if( $item_type == 'Widget Style' ){
gdl_print_blog_widget( $item_class, $item_size, $item_index, $num_excerpt );
}
echo '<div class="clear"></div>';
echo '</div>'; // blog-item holder
// Pagination
if( find_xml_value($item_xml, "pagination") == "Yes" ){
pagination();
}
}
function gdl_print_blog_thumbnail( $post_id, $size ){
$thumbnail_types = get_post_meta( $post_id, 'post-option-thumbnail-types', true);
if( $thumbnail_types == "Image" || empty($thumbnail_types) ){
$thumbnail_id = get_post_thumbnail_id( $post_id );
$thumbnail = wp_get_attachment_image_src( $thumbnail_id , $size );
$alt_text = get_post_meta($thumbnail_id , '_wp_attachment_image_alt', true);
if( !empty($thumbnail) ){
echo '<div class="blog-thumbnail-image">';
echo '<a href="' . get_permalink() . '"><img src="' . $thumbnail[0] .'" alt="'. $alt_text .'"/></a></div>';
}
}else if( $thumbnail_types == "Video" ){
$video_link = get_post_meta( $post_id, 'post-option-thumbnail-video', true);
echo '<div class="blog-thumbnail-video">';
echo get_video($video_link, gdl_get_width($size), gdl_get_height($size));
echo '</div>';
}else if ( $thumbnail_types == "Slider" ){
$slider_xml = get_post_meta( $post_id, 'post-option-thumbnail-xml', true);
$slider_xml_dom = new DOMDocument();
$slider_xml_dom->loadXML($slider_xml);
echo '<div class="blog-thumbnail-slider">';
echo print_flex_slider($slider_xml_dom->documentElement, $size);
echo '</div>';
}
}
function gdl_print_single_thumbnail($post_id, $size){
$thumbnail_types = get_post_meta( $post_id, 'post-option-inside-thumbnail-types', true);
if( $thumbnail_types == "Image" ){
$thumbnail_id = get_post_meta($post_id,'post-option-inside-thumbnial-image', true);
$thumbnail = wp_get_attachment_image_src( $thumbnail_id , $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="blog-thumbnail-image">';
echo '<a data-rel="prettyPhoto" href="' . $thumbnail_full[0] . '"><img src="' . $thumbnail[0] .'" alt="'. $alt_text .'"/></a></div>';
}
}else if( $thumbnail_types == "Video" ){
$video_link = get_post_meta( $post_id, 'post-option-inside-thumbnail-video', true);
echo '<div class="blog-thumbnail-video">';
echo get_video($video_link, gdl_get_width($size), gdl_get_height($size));
echo '</div>';
}else if ( $thumbnail_types == "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="blog-thumbnail-slider">';
echo print_flex_slider($slider_xml_dom->documentElement, $size);
echo '</div>';
}
}
function gdl_print_blog_full( $item_class, $item_size, $item_index, $num_excerpt ){
global $post, $sidebar;
global $gdl_admin_translator;
if( $gdl_admin_translator == 'enable' ){
$translator_continue_reading = get_option(THEME_SHORT_NAME.'_translator_continue_reading', 'Continue Reading →');
}else{
$translator_continue_reading = __('Continue Reading →','gdl_front_end');
}
while( have_posts() ){
the_post();
//if( $post->post_type == 'course' ){ continue; }
echo '<div class="blog-item' . $item_index . ' gdl-divider ' . $item_class . '">';
if( $sidebar != 'both-sidebar' ){
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">';
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-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">';
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 '</div>'; // blog-thumbnail-context
echo '</div>'; // blog-item-inside
echo '<div class="clear"></div>';
echo '</div>'; // blog-item
}
}
function gdl_print_blog_widget( $item_class, $item_size, $item_index, $num_excerpt ){
global $post;
global $gdl_admin_translator;
if( $gdl_admin_translator == 'enable' ){
$translator_posted_on = get_option(THEME_SHORT_NAME.'_translator_posted_on', 'Posted on');
}else{
$translator_posted_on = __('Posted on','gdl_front_end');
}
while( have_posts() ){
the_post();
echo '<div class="blog-item' . $item_index . ' gdl-divider ' . $item_class . ' mb15">';
gdl_print_blog_thumbnail( $post->ID, $item_size );
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 '<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 class="blog-thumbnail-context">';
echo '<div class="blog-thumbnail-content">' . mb_substr( get_the_excerpt(), 0, $num_excerpt ) . '</div>';
echo '</div>'; // blog-thumbnail-context
echo '<div class="clear"></div>';
echo '</div>'; // blog-thumbnail-inside
echo '</div>'; // blog-item
}
}
$personnal_div_size_num_class = array(
"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/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"));
function print_personnal_item($item_xml){
global $personnal_div_size_num_class, $sidebar;
wp_reset_query();
$header = find_xml_value($item_xml, 'header');
$num_fetch = find_xml_value($item_xml, 'num-fetch');
$item_size = find_xml_value($item_xml, 'item-size');
$category = find_xml_value($item_xml, 'category');
$category_val = ( $category == 'All' )? '': $category;
if( $sidebar == "no-sidebar" ){
$sidebar_size = "size";
}else if ( $sidebar == "left-sidebar" || $sidebar == "right-sidebar" ){
$sidebar_size = "size2";
}else{
$sidebar_size = "size3";
}
if(!empty($header)){
$dropcap_image = wp_get_attachment_image_src( find_xml_value($item_xml, 'header-icon') , 'full' );
if( !empty( $dropcap_image ) ){
echo '<div class="gdl-header-dropcap ml10">';
echo '<div class="gdl-header-dropcap-center">';
echo '<img src="' . $dropcap_image[0] . '" class="no-preload" alt="" />';
echo '</div>';
echo '</div>';
}
echo '<h3 class="personnal-header-title title-color gdl-title">' . $header . '</h3>';
echo '<div class="clear"></div>';
}
query_posts(array('post_type'=>'personnal', 'personnal-category'=>$category_val, 'posts_per_page'=>$num_fetch));
echo '<div class="personal-item-holder">';
$item_attr = $personnal_div_size_num_class[$item_size];
if( find_xml_value($item_xml, 'item-size') == '1/1 Full Width' ){
print_personnal_full( $item_attr, $sidebar_size );
}else{
print_personnal_small( $item_attr, $sidebar_size, $item_xml );
}
if(!empty($header)){
$dropcap_image = wp_get_attachment_image_src( find_xml_value($item_xml, 'header-icon') , 'full' );
if( !empty( $dropcap_image ) ){
echo '<div class="gdl-header-dropcap ml10">';
echo '<div class="gdl-header-dropcap-center">';
echo '<img src="' . $dropcap_image[0] . '" class="no-preload" alt="" />';
echo '</div>';
echo '</div>';
}
echo '<h3 class="personnal-header-title title-color gdl-title">' . $header . '</h3>';
echo '<div class="clear"></div>';
}
query_posts(array('post_type'=>'personnal', 'personnal-category'=>$category_val, 'posts_per_page'=>$num_fetch));
echo '<div class="personal-item-holder">';
$item_attr = $personnal_div_size_num_class[$item_size];
if( find_xml_value($item_xml, 'item-size') == '1/1 Full Width' ){
print_personnal_full( $item_attr, $sidebar_size );
}else{
print_personnal_small( $item_attr, $sidebar_size, $item_xml );
}
echo '</div>';
}
function print_personnal_small($item_attr, $sidebar_size, $item_xml){
global $class_to_num;
$inner_size = $class_to_num[find_xml_value($item_xml, 'item-size')];
$outer_size = $class_to_num[find_xml_value($item_xml, 'size')];
$mod_num = (int) ($outer_size / $inner_size);
$count = 1;
echo '<div class="personnal-small">';
while(have_posts()){
the_post();
$thumbnail_id = get_post_thumbnail_id();
if( !empty($thumbnail_id) ){
$thumbnail = wp_get_attachment_image_src( $thumbnail_id , $item_attr[$sidebar_size] );
$thumbnail_full = wp_get_attachment_image_src( $thumbnail_id, 'full' );
$alt_text = get_post_meta($thumbnail_id , '_wp_attachment_image_alt', true);
echo '<div class="personnal-item ' . $item_attr['class'] . '" >';
echo '<div class="personnal-thumbnail-image">';
echo '<a href="' . $thumbnail_full[0] . '" data-rel="prettyPhoto" title="' . get_the_title() . '">';
echo '<img src="' . $thumbnail[0] . '" alt="' . $alt_text . '">';
echo '</a>';
echo '</div>';
}
echo '<div class="personnal-title gdl-title">';
the_title();
echo '</div>';
echo '</div>'; // personnal item
if( ($count % $mod_num) == 0 ) echo '<div class="clear"></div>';
$count++;
}
echo '<div class="clear"></div>';
echo '</div>';
}
function print_personnal_full( $item_attr, $sidebar_size ){
echo '<div class="personnal-full">';
while(have_posts()){
the_post();
echo '<div class="personnal-item ' . $item_attr['class'] . ' mb20" >';
$thumbnail_id = get_post_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' );
$alt_text = get_post_meta($thumbnail_id , '_wp_attachment_image_alt', true);
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 '</a>';
echo '</div>';
}
echo '<div class="personnal-content-wrapper">';
echo '<div class="personnal-title gdl-title">';
echo '<a href="' . get_permalink() . '">';
the_title();
echo '</a>';
echo '</div>';
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>'; // personnal-content-wrapper
echo '<div class="clear"></div>';
echo '</div>'; // personnal item
}
echo '</div>';
}
?>

File diff suppressed because it is too large Load Diff

View File

@ -1,249 +1,249 @@
<?php
/*
Plugin Name: Dropdown Menus
Plugin URI: http://interconnectit.com/?p=2190
Description: Outputs WordPress Menus as a dropdown. Use the widget or the function <code>dropdown_menu();</code> with the same arguments as <code>wp_nav_menu();</code>.
Author: Robert O'Rourke @ interconnect/it
Version: 0.5
Author URI: http://interconnectit.com
*/
/*
Changelog:
0.5:
improved backwards compat with getElementsByClassName. Works back to IE 5.5. Thanks to Rob Nyman http://code.google.com/p/getelementsbyclassname/
0.4:
added the use of the menu name as the blank item text
fixed it for when the menu object wasn't present if called via theme_location
changed white space to reflect coding guidelines
0.3:
added an argument to alter the blanking text, empty to not have it all together, and an improved filter that passes $args
changed widget class name
*/
// pretty useless without this
if ( ! function_exists( 'wp_nav_menu' ) )
return false;
/**
* Tack on the blank option for urls not in the menu
*/
add_filter( 'wp_nav_menu_items', 'dropdown_add_blank_item', 10, 2 );
function dropdown_add_blank_item( $items, $args ) {
if ( isset( $args->walker ) && is_object( $args->walker ) && method_exists( $args->walker, 'is_dropdown' ) ) {
if ( ( ! isset( $args->menu ) || empty( $args->menu ) ) && isset( $args->theme_location ) ) {
$theme_locations = get_nav_menu_locations();
$args->menu = wp_get_nav_menu_object( $theme_locations[ $args->theme_location ] );
}
$title = isset( $args->dropdown_title ) ? wptexturize( $args->dropdown_title ) : '&mdash; ' . $args->menu->name . ' &mdash;';
if ( ! empty( $title ) )
$items = '<option value="" class="blank">' . apply_filters( 'dropdown_blank_item_text', $title, $args ) . '</option>' . $items;
}
return $items;
}
/**
* Remove empty options created in the sub levels output
*/
add_filter( 'wp_nav_menu_items', 'dropdown_remove_empty_items', 10, 2 );
function dropdown_remove_empty_items( $items, $args ) {
if ( isset( $args->walker ) && is_object( $args->walker ) && method_exists( $args->walker, 'is_dropdown' ) )
$items = str_replace( "<option></option>", "", $items );
return $items;
}
/**
* Script to make it go (no jquery! (for once))
*/
add_action( 'wp_footer', 'dropdown_javascript' );
function dropdown_javascript() {
if ( is_admin() ) return; ?>
<script>
var getElementsByClassName=function(a,b,c){if(document.getElementsByClassName){getElementsByClassName=function(a,b,c){c=c||document;var d=c.getElementsByClassName(a),e=b?new RegExp("\\b"+b+"\\b","i"):null,f=[],g;for(var h=0,i=d.length;h<i;h+=1){g=d[h];if(!e||e.test(g.nodeName)){f.push(g)}}return f}}else if(document.evaluate){getElementsByClassName=function(a,b,c){b=b||"*";c=c||document;var d=a.split(" "),e="",f="http://www.w3.org/1999/xhtml",g=document.documentElement.namespaceURI===f?f:null,h=[],i,j;for(var k=0,l=d.length;k<l;k+=1){e+="[contains(concat(' ', @class, ' '), ' "+d[k]+" ')]"}try{i=document.evaluate(".//"+b+e,c,g,0,null)}catch(m){i=document.evaluate(".//"+b+e,c,null,0,null)}while(j=i.iterateNext()){h.push(j)}return h}}else{getElementsByClassName=function(a,b,c){b=b||"*";c=c||document;var d=a.split(" "),e=[],f=b==="*"&&c.all?c.all:c.getElementsByTagName(b),g,h=[],i;for(var j=0,k=d.length;j<k;j+=1){e.push(new RegExp("(^|\\s)"+d[j]+"(\\s|$)"))}for(var l=0,m=f.length;l<m;l+=1){g=f[l];i=false;for(var n=0,o=e.length;n<o;n+=1){i=e[n].test(g.className);if(!i){break}}if(i){h.push(g)}}return h}}return getElementsByClassName(a,b,c)},
dropdowns = getElementsByClassName( 'dropdown-menu' );
for ( i=0; i<dropdowns.length; i++ )
dropdowns[i].onchange = function(){ if ( this.value != '' ) window.location.href = this.value; }
</script>
<?php
}
/**
* Overrides the walker argument and container argument then calls wp_nav_menu
*/
function dropdown_menu( $args ) {
// enforce these arguments so it actually works
$args[ 'walker' ] = new DropDown_Nav_Menu();
$args[ 'items_wrap' ] = '<select id="%1$s" class="%2$s dropdown-menu">%3$s</select>';
// custom args for controlling indentation of sub menu items
$args[ 'indent_string' ] = isset( $args[ 'indent_string' ] ) ? $args[ 'indent_string' ] : '&ndash;&nbsp;';
$args[ 'indent_after' ] = isset( $args[ 'indent_after' ] ) ? $args[ 'indent_after' ] : '';
wp_nav_menu( $args );
}
class DropDown_Nav_Menu extends Walker_Nav_Menu {
// easy way to check it's this walker we're using to mod the output
function is_dropdown() {
return true;
}
/**
* @see Walker::start_lvl()
* @since 3.0.0
*
* @param string $output Passed by reference. Used to append additional content.
* @param int $depth Depth of page. Used for padding.
*/
function start_lvl( &$output, $depth ) {
$output .= "</option>";
}
/**
* @see Walker::end_lvl()
* @since 3.0.0
*
* @param string $output Passed by reference. Used to append additional content.
* @param int $depth Depth of page. Used for padding.
*/
function end_lvl( &$output, $depth ) {
$output .= "<option>";
}
/**
* @see Walker::start_el()
* @since 3.0.0
*
* @param string $output Passed by reference. Used to append additional content.
* @param object $item Menu item data object.
* @param int $depth Depth of menu item. Used for padding.
* @param int $current_page Menu item ID.
* @param object $args
*/
function start_el( &$output, $item, $depth, $args ) {
global $wp_query;
$indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
$class_names = $value = '';
$classes = empty( $item->classes ) ? array() : (array) $item->classes;
$classes[] = 'menu-item-' . $item->ID;
$classes[] = 'menu-item-depth-' . $depth;
$class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_unique( array_filter( $classes ) ), $item, $args ) );
$class_names = ' class="' . esc_attr( $class_names ) . '"';
// select current item
$selected = in_array( 'current-menu-item', $classes ) ? ' selected="selected"' : '';
$output .= $indent . '<option' . $class_names .' value="'. $item->url .'"'. $selected .'>';
// push sub-menu items in as we can't nest optgroups
$indent_string = str_repeat( apply_filters( 'dropdown_menus_indent_string', $args->indent_string, $item, $depth, $args ), ( $depth ) ? $depth : 0 );
$indent_string .= !empty( $indent_string ) ? apply_filters( 'dropdown_menus_indent_after', $args->indent_after, $item, $depth, $args ) : '';
$item_output = $args->before . $indent_string;
$item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
$item_output .= $args->after;
$output .= apply_filters( 'walker_nav_menu_dropdown_start_el', $item_output, $item, $depth, $args );
}
/**
* @see Walker::end_el()
* @since 3.0.0
*
* @param string $output Passed by reference. Used to append additional content.
* @param object $item Page data object. Not used.
* @param int $depth Depth of page. Not Used.
*/
function end_el( &$output, $item, $depth ) {
$output .= apply_filters( 'walker_nav_menu_dropdown_end_el', "</option>\n", $item, $depth);
}
}
/**
* Navigation DropDown Menu widget class
*/
class DropDown_Menu_Widget extends WP_Widget {
function __construct() {
$widget_ops = array( 'classname' => 'dropdown-menu-widget', 'description' => __( 'Use this widget to add one of your custom menus as a dropdown.' ) );
parent::__construct( 'dropdown_menu', __('Dropdown Menu'), $widget_ops );
}
function widget( $args, $instance ) {
// Get menu
$nav_menu = wp_get_nav_menu_object( $instance[ 'nav_menu' ] );
if ( ! $nav_menu )
return;
$instance[ 'title' ] = apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base );
echo $args[ 'before_widget' ];
if ( ! empty( $instance[ 'title' ] ) )
echo $args[ 'before_title' ] . $instance[ 'title' ] . $args[ 'after_title' ];
dropdown_menu( array( 'fallback_cb' => '', 'menu' => $nav_menu ) );
echo $args[ 'after_widget' ];
}
function update( $new_instance, $old_instance ) {
$instance[ 'title' ] = strip_tags( stripslashes( $new_instance[ 'title' ] ) );
$instance[ 'nav_menu' ] = (int) $new_instance[ 'nav_menu' ];
return $instance;
}
function form( $instance ) {
$title = isset( $instance[ 'title' ] ) ? $instance[ 'title' ] : '';
$nav_menu = isset( $instance[ 'nav_menu' ] ) ? $instance[ 'nav_menu' ] : '';
// Get menus
$menus = get_terms( 'nav_menu', array( 'hide_empty' => false ) );
// If no menus exists, direct the user to go and create some.
if ( ! $menus ) {
echo '<p>'. sprintf( __( 'No menus have been created yet. <a href="%s">Create some</a>.' ), admin_url( 'nav-menus.php' ) ) .'</p>';
return;
}
?>
<p>
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ) ?></label>
<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $title; ?>" />
</p>
<p>
<label for="<?php echo $this->get_field_id( 'nav_menu' ); ?>"><?php _e( 'Select Menu:' ); ?></label>
<select id="<?php echo $this->get_field_id( 'nav_menu' ); ?>" name="<?php echo $this->get_field_name( 'nav_menu' ); ?>">
<?php
foreach ( $menus as $menu ) {
$selected = $nav_menu == $menu->term_id ? ' selected="selected"' : '';
echo '<option'. $selected .' value="'. $menu->term_id .'">'. $menu->name .'</option>';
}
?>
</select>
</p>
<?php
}
function init() {
register_widget( __CLASS__ );
}
}
// add widget
// add_action( 'widgets_init', array( 'DropDown_Menu_Widget', 'init' ) );
?>
<?php
/*
Plugin Name: Dropdown Menus
Plugin URI: http://interconnectit.com/?p=2190
Description: Outputs WordPress Menus as a dropdown. Use the widget or the function <code>dropdown_menu();</code> with the same arguments as <code>wp_nav_menu();</code>.
Author: Robert O'Rourke @ interconnect/it
Version: 0.5
Author URI: http://interconnectit.com
*/
/*
Changelog:
0.5:
improved backwards compat with getElementsByClassName. Works back to IE 5.5. Thanks to Rob Nyman http://code.google.com/p/getelementsbyclassname/
0.4:
added the use of the menu name as the blank item text
fixed it for when the menu object wasn't present if called via theme_location
changed white space to reflect coding guidelines
0.3:
added an argument to alter the blanking text, empty to not have it all together, and an improved filter that passes $args
changed widget class name
*/
// pretty useless without this
if ( ! function_exists( 'wp_nav_menu' ) )
return false;
/**
* Tack on the blank option for urls not in the menu
*/
add_filter( 'wp_nav_menu_items', 'dropdown_add_blank_item', 10, 2 );
function dropdown_add_blank_item( $items, $args ) {
if ( isset( $args->walker ) && is_object( $args->walker ) && method_exists( $args->walker, 'is_dropdown' ) ) {
if ( ( ! isset( $args->menu ) || empty( $args->menu ) ) && isset( $args->theme_location ) ) {
$theme_locations = get_nav_menu_locations();
$args->menu = wp_get_nav_menu_object( $theme_locations[ $args->theme_location ] );
}
$title = isset( $args->dropdown_title ) ? wptexturize( $args->dropdown_title ) : '&mdash; ' . $args->menu->name . ' &mdash;';
if ( ! empty( $title ) )
$items = '<option value="" class="blank">' . apply_filters( 'dropdown_blank_item_text', $title, $args ) . '</option>' . $items;
}
return $items;
}
/**
* Remove empty options created in the sub levels output
*/
add_filter( 'wp_nav_menu_items', 'dropdown_remove_empty_items', 10, 2 );
function dropdown_remove_empty_items( $items, $args ) {
if ( isset( $args->walker ) && is_object( $args->walker ) && method_exists( $args->walker, 'is_dropdown' ) )
$items = str_replace( "<option></option>", "", $items );
return $items;
}
/**
* Script to make it go (no jquery! (for once))
*/
add_action( 'wp_footer', 'dropdown_javascript' );
function dropdown_javascript() {
if ( is_admin() ) return; ?>
<script>
var getElementsByClassName=function(a,b,c){if(document.getElementsByClassName){getElementsByClassName=function(a,b,c){c=c||document;var d=c.getElementsByClassName(a),e=b?new RegExp("\\b"+b+"\\b","i"):null,f=[],g;for(var h=0,i=d.length;h<i;h+=1){g=d[h];if(!e||e.test(g.nodeName)){f.push(g)}}return f}}else if(document.evaluate){getElementsByClassName=function(a,b,c){b=b||"*";c=c||document;var d=a.split(" "),e="",f="http://www.w3.org/1999/xhtml",g=document.documentElement.namespaceURI===f?f:null,h=[],i,j;for(var k=0,l=d.length;k<l;k+=1){e+="[contains(concat(' ', @class, ' '), ' "+d[k]+" ')]"}try{i=document.evaluate(".//"+b+e,c,g,0,null)}catch(m){i=document.evaluate(".//"+b+e,c,null,0,null)}while(j=i.iterateNext()){h.push(j)}return h}}else{getElementsByClassName=function(a,b,c){b=b||"*";c=c||document;var d=a.split(" "),e=[],f=b==="*"&&c.all?c.all:c.getElementsByTagName(b),g,h=[],i;for(var j=0,k=d.length;j<k;j+=1){e.push(new RegExp("(^|\\s)"+d[j]+"(\\s|$)"))}for(var l=0,m=f.length;l<m;l+=1){g=f[l];i=false;for(var n=0,o=e.length;n<o;n+=1){i=e[n].test(g.className);if(!i){break}}if(i){h.push(g)}}return h}}return getElementsByClassName(a,b,c)},
dropdowns = getElementsByClassName( 'dropdown-menu' );
for ( i=0; i<dropdowns.length; i++ )
dropdowns[i].onchange = function(){ if ( this.value != '' ) window.location.href = this.value; }
</script>
<?php
}
/**
* Overrides the walker argument and container argument then calls wp_nav_menu
*/
function dropdown_menu( $args ) {
// enforce these arguments so it actually works
$args[ 'walker' ] = new DropDown_Nav_Menu();
$args[ 'items_wrap' ] = '<select id="%1$s" class="%2$s dropdown-menu">%3$s</select>';
// custom args for controlling indentation of sub menu items
$args[ 'indent_string' ] = isset( $args[ 'indent_string' ] ) ? $args[ 'indent_string' ] : '&ndash;&nbsp;';
$args[ 'indent_after' ] = isset( $args[ 'indent_after' ] ) ? $args[ 'indent_after' ] : '';
wp_nav_menu( $args );
}
class DropDown_Nav_Menu extends Walker_Nav_Menu {
// easy way to check it's this walker we're using to mod the output
function is_dropdown() {
return true;
}
/**
* @see Walker::start_lvl()
* @since 3.0.0
*
* @param string $output Passed by reference. Used to append additional content.
* @param int $depth Depth of page. Used for padding.
*/
function start_lvl( &$output, $depth ) {
$output .= "</option>";
}
/**
* @see Walker::end_lvl()
* @since 3.0.0
*
* @param string $output Passed by reference. Used to append additional content.
* @param int $depth Depth of page. Used for padding.
*/
function end_lvl( &$output, $depth ) {
$output .= "<option>";
}
/**
* @see Walker::start_el()
* @since 3.0.0
*
* @param string $output Passed by reference. Used to append additional content.
* @param object $item Menu item data object.
* @param int $depth Depth of menu item. Used for padding.
* @param int $current_page Menu item ID.
* @param object $args
*/
function start_el( &$output, $item, $depth, $args ) {
global $wp_query;
$indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
$class_names = $value = '';
$classes = empty( $item->classes ) ? array() : (array) $item->classes;
$classes[] = 'menu-item-' . $item->ID;
$classes[] = 'menu-item-depth-' . $depth;
$class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_unique( array_filter( $classes ) ), $item, $args ) );
$class_names = ' class="' . esc_attr( $class_names ) . '"';
// select current item
$selected = in_array( 'current-menu-item', $classes ) ? ' selected="selected"' : '';
$output .= $indent . '<option' . $class_names .' value="'. $item->url .'"'. $selected .'>';
// push sub-menu items in as we can't nest optgroups
$indent_string = str_repeat( apply_filters( 'dropdown_menus_indent_string', $args->indent_string, $item, $depth, $args ), ( $depth ) ? $depth : 0 );
$indent_string .= !empty( $indent_string ) ? apply_filters( 'dropdown_menus_indent_after', $args->indent_after, $item, $depth, $args ) : '';
$item_output = $args->before . $indent_string;
$item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
$item_output .= $args->after;
$output .= apply_filters( 'walker_nav_menu_dropdown_start_el', $item_output, $item, $depth, $args );
}
/**
* @see Walker::end_el()
* @since 3.0.0
*
* @param string $output Passed by reference. Used to append additional content.
* @param object $item Page data object. Not used.
* @param int $depth Depth of page. Not Used.
*/
function end_el( &$output, $item, $depth ) {
$output .= apply_filters( 'walker_nav_menu_dropdown_end_el', "</option>\n", $item, $depth);
}
}
/**
* Navigation DropDown Menu widget class
*/
class DropDown_Menu_Widget extends WP_Widget {
function __construct() {
$widget_ops = array( 'classname' => 'dropdown-menu-widget', 'description' => __( 'Use this widget to add one of your custom menus as a dropdown.' ) );
parent::__construct( 'dropdown_menu', __('Dropdown Menu'), $widget_ops );
}
function widget( $args, $instance ) {
// Get menu
$nav_menu = wp_get_nav_menu_object( $instance[ 'nav_menu' ] );
if ( ! $nav_menu )
return;
$instance[ 'title' ] = apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base );
echo $args[ 'before_widget' ];
if ( ! empty( $instance[ 'title' ] ) )
echo $args[ 'before_title' ] . $instance[ 'title' ] . $args[ 'after_title' ];
dropdown_menu( array( 'fallback_cb' => '', 'menu' => $nav_menu ) );
echo $args[ 'after_widget' ];
}
function update( $new_instance, $old_instance ) {
$instance[ 'title' ] = strip_tags( stripslashes( $new_instance[ 'title' ] ) );
$instance[ 'nav_menu' ] = (int) $new_instance[ 'nav_menu' ];
return $instance;
}
function form( $instance ) {
$title = isset( $instance[ 'title' ] ) ? $instance[ 'title' ] : '';
$nav_menu = isset( $instance[ 'nav_menu' ] ) ? $instance[ 'nav_menu' ] : '';
// Get menus
$menus = get_terms( 'nav_menu', array( 'hide_empty' => false ) );
// If no menus exists, direct the user to go and create some.
if ( ! $menus ) {
echo '<p>'. sprintf( __( 'No menus have been created yet. <a href="%s">Create some</a>.' ), admin_url( 'nav-menus.php' ) ) .'</p>';
return;
}
?>
<p>
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ) ?></label>
<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $title; ?>" />
</p>
<p>
<label for="<?php echo $this->get_field_id( 'nav_menu' ); ?>"><?php _e( 'Select Menu:' ); ?></label>
<select id="<?php echo $this->get_field_id( 'nav_menu' ); ?>" name="<?php echo $this->get_field_name( 'nav_menu' ); ?>">
<?php
foreach ( $menus as $menu ) {
$selected = $nav_menu == $menu->term_id ? ' selected="selected"' : '';
echo '<option'. $selected .' value="'. $menu->term_id .'">'. $menu->name .'</option>';
}
?>
</select>
</p>
<?php
}
function init() {
register_widget( __CLASS__ );
}
}
// add widget
// add_action( 'widgets_init', array( 'DropDown_Menu_Widget', 'init' ) );
?>

View File

@ -234,7 +234,7 @@
}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|';
}

View File

@ -925,8 +925,9 @@
}
// portfolio excerpt
if( find_xml_value($item_xml, "show-excerpt") == "Yes" ){
echo '<div class="portfolio-thumbnail-content">' . mb_substr( get_the_excerpt(), 0, $num_excerpt ) . '</div>';
if( find_xml_value($item_xml, "show-excerpt") == "Yes" ){
$excerpt = do_shortcode(get_the_excerpt());
echo '<div class="portfolio-thumbnail-content">' . mb_substr( $excerpt, 0, $num_excerpt ) . '</div>';
}
// read more button

View File

@ -0,0 +1 @@
<?php $captcha = "JW4V6"; ?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -0,0 +1 @@
<?php $captcha = "79KPU"; ?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -0,0 +1 @@
<?php $captcha = "USTQZ"; ?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -0,0 +1 @@
<?php $captcha = "PS4P6"; ?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -0,0 +1 @@
<?php $captcha = "CXKF4"; ?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -0,0 +1 @@
<?php $captcha = "4AGYM"; ?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -0,0 +1 @@
<?php $captcha = "3V5P2"; ?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -0,0 +1 @@
<?php $captcha = "2JBP3"; ?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -0,0 +1 @@
<?php $captcha = "6FE5J"; ?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1 @@
<?php $captcha = "TNFY9"; ?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -0,0 +1 @@
<?php $captcha = "FKJAQ"; ?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -1,3 +1,3 @@
<?php
// Silence is golden.
<?php
// Silence is golden.
?>

View File

@ -257,16 +257,16 @@
$receiver = $_POST['receiver'];
$messages = "You have received a new contact form message. \n";
$messages = $messages . 'Name : ' . $name . " \n";
$messages = "Ha recibido un nuevo mensaje del formulario de contacto de su pagina web. \n";
$messages = $messages . 'Nombre : ' . $name . " \n";
$messages = $messages . 'Email : ' . $email . " \n";
$messages = $messages . 'Message : ' . $message;
$messages = $messages . 'Mensaje : ' . $message;
$header = "From: " . $name . "<" . $email . "> \r\n";
$header = $header . "To: " . $receiver . " \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['value'] = $gdl_send_complete;
die( json_encode($return_data) );

View File

@ -1,198 +1,396 @@
jQuery(document).ready(function(){
// Menu Navigation
jQuery('#main-superfish-wrapper ul.sf-menu').supersubs({
minWidth: 14.5,
maxWidth: 27,
extraWidth: 1
}).superfish({
delay: 100,
speed: 'fast',
animation: {opacity:'show',height:'show'}
});
// Accordion
jQuery("ul.gdl-accordion li").each(function(){
if(jQuery(this).index() > 0){
jQuery(this).children(".accordion-content").css('display','none');
}else{
jQuery(this).find(".accordion-head-image").addClass('active');
}
jQuery(this).children(".accordion-head").bind("click", function(){
jQuery(this).children().addClass(function(){
if(jQuery(this).hasClass("active")) return "";
return "active";
});
jQuery(this).siblings(".accordion-content").slideDown();
jQuery(this).parent().siblings("li").children(".accordion-content").slideUp();
jQuery(this).parent().siblings("li").find(".active").removeClass("active");
});
});
// Toggle Box
jQuery("ul.gdl-toggle-box li").each(function(){
jQuery(this).children(".toggle-box-content").not(".active").css('display','none');
jQuery(this).children(".toggle-box-head").bind("click", function(){
jQuery(this).children().addClass(function(){
if(jQuery(this).hasClass("active")){
jQuery(this).removeClass("active");
return "";
}
return "active";
});
jQuery(this).siblings(".toggle-box-content").slideToggle();
});
});
// Social Hover
jQuery(".social-icon").hover(function(){
jQuery(this).animate({ opacity: 1 }, 150);
}, function(){
jQuery(this).animate({ opacity: 0.55 }, 150);
jQuery(this).animate({ opacity: 1 }, 150);
});
// Scroll Top
jQuery('div.scroll-top').click(function() {
jQuery('html, body').animate({ scrollTop:0 }, '1000');
return false;
});
// Blog Hover
jQuery(".blog-thumbnail-image img").hover(function(){
jQuery(this).animate({ opacity: 0.55 }, 150);
}, function(){
jQuery(this).animate({ opacity: 1 }, 150);
});
// Gallery Hover
jQuery(".gallery-thumbnail-image img, .slideshow-image img").hover(function(){
jQuery(this).animate({ opacity: 0.55 }, 150);
}, function(){
jQuery(this).animate({ opacity: 1 }, 150);
});
jQuery(".gdl-hover").hover(function(){
jQuery(this).animate({ opacity: 1 }, 100);
}, function(){
jQuery(this).animate({ opacity: 0.8 }, 100);
});
// Port Hover
jQuery("#portfolio-item-holder .portfolio-thumbnail-image-hover").hover(function(){
jQuery(this).animate({ opacity: 0.55 }, 400, 'easeOutExpo');
jQuery(this).find('span').animate({ left: '50%'}, 300, 'easeOutExpo');
}, function(){
jQuery(this).find('span').animate({ left: '150%'}, 300, 'easeInExpo', function(){
jQuery(this).css('left','-50%');
});
jQuery(this).animate({ opacity: 0 }, 400, 'easeInExpo');
});
// Price Table
jQuery(".gdl-price-item").each(function(){
var max_height = 0;
jQuery(this).find('.price-item').each(function(){
if( max_height < jQuery(this).height()){
max_height = jQuery(this).height();
}
});
jQuery(this).find('.price-item').height(max_height);
});
jQuery('#search-text input, #search-course-text input').setBlankText();
jQuery('#searchsubmit, #search-course-submit').click(function(){
var search_value = jQuery(this).siblings('#search-text, #search-course-text').find('input[type="text"]');
if( search_value.val() == search_value.attr('data-default') ){
return false;
}
});
// Change the style of <select>
if (!jQuery.browser.opera) {
jQuery('.gdl-combobox select').each(function(){
var title = jQuery(this).attr('title');
if( jQuery('option:selected', this).val() != '' ) title = jQuery('option:selected',this).text();
jQuery(this)
.css({'z-index':10,'-khtml-appearance':'none'})
.after(function(){
val = jQuery('option:selected',this).text();
jQuery(this).next().html(val + '<div class="gdl-combobox-button"></div>');
})
.change(function(){
val = jQuery('option:selected',this).text();
jQuery(this).next().html(val + '<div class="gdl-combobox-button"></div>');
})
});
};
});
jQuery(window).load(function(){
// Set Portfolio Max Height
var port_item_holder = jQuery('div#portfolio-item-holder');
port_item_holder.equalHeights();
jQuery(window).resize(function(){
port_item_holder.children().css('min-height','0');
port_item_holder.equalHeights();
});
});
/* Tabs Activiation
================================================== */
jQuery(document).ready(function() {
var tabs = jQuery('ul.tabs');
tabs.each(function(i) {
//Get all tabs
var tab = jQuery(this).find('> li > a');
var tab_content = jQuery(this).next('ul.tabs-content')
tab.click(function(e) {
//Get Location of tab's content
var contentLocation = jQuery(this).attr('data-href');
//Let go if not a hashed one
if(contentLocation.charAt(0)=="#") {
e.preventDefault();
//Make Tab Active
tab.removeClass('active');
jQuery(this).addClass('active');
//Show Tab Content & add active class
tab_content.children(contentLocation).show().addClass('active').siblings().hide().removeClass('active');
}
});
});
});
/* Equal Height Function
================================================== */
(function($) {
$.fn.equalHeights = function(px) {
$(this).each(function(){
var currentTallest = 0;
$(this).children().each(function(i){
if ($(this).height() > currentTallest) { currentTallest = $(this).height(); }
});
$(this).children().css({'min-height': currentTallest});
});
return this;
};
$.fn.setBlankText = function(){
this.live("blur", function(){
var default_value = $(this).attr("data-default");
if ($(this).val() == ""){
$(this).val(default_value);
}
}).live("focus", function(){
var default_value = $(this).attr("data-default");
if ($(this).val() == default_value){
$(this).val("");
}
});
}
})(jQuery);

View File

@ -8,13 +8,7 @@
}else if( $sidebar == "both-sidebar" ){
$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; ?>">
@ -91,16 +85,6 @@
if( !empty($content) && $gdl_show_content != 'No' ){
echo '<div class="gdl-page-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>';
@ -197,14 +181,10 @@
default:
print_item_size(find_xml_value($item_xml, 'size'));
break;
}
}
echo "</div>";
}
}
echo "</div>"; // end of gdl-page-item
get_sidebar('left');

10
src/pagina_privada.php Normal file
View File

@ -0,0 +1,10 @@
<?php
/**
* Template name: Página privada
*/
if (!is_user_logged_in()) auth_redirect();
require('page.php');
?>

View File

@ -1,11 +1,11 @@
<?php
$search_custom_meta = array(
/*"course-id" => array(
"course-id" => array(
'title'=> __('COURSE ID', 'gdl_back_office'),
'title_show'=> __('Course ID', 'gdl_front_end'),
'name'=>'course-option-id',
'show-on-table'=> 'Yes'),*/
'show-on-table'=> 'Yes'),
"course-name" => array(
'title'=> __('COURSE NAME', 'gdl_back_office'),
'title_show'=> __('Course Name', 'gdl_front_end'),

View File

@ -1,12 +1,12 @@
<form method="get" id="searchform" action="<?php echo home_url(); ?>/">
<div id="search-text">
<?php
$default_value = __("Type your keywords...", "gdl_front_end");
$default_value = __("Buscar...", "gdl_front_end");
$search_value = get_search_query();
$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; ?>" />
</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">
</form>

View File

@ -73,7 +73,7 @@
echo "<div class='clear'></div>";
// Print Course Table
global $search_custom_meta;
/*global $search_custom_meta;
echo "<table class='course-table'>";
echo "<tr class='header'>";
foreach ( $search_custom_meta as $custom_meta ){
@ -98,7 +98,7 @@
echo "</td>";
}
echo "</tr>";
echo "</table>";
echo "</table>";*/
// Single content
echo "<div class='single-course-content'>";

246
src/single-personnal.php Normal file
View 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(); ?>

View File

@ -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 '<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-author"> ' . __('by','gdl_front_end') . ' ' . get_the_author_link() . '</div>';
@ -79,8 +79,9 @@
__('% Comments','gdl_front_end'), '',
__('Comments are off','gdl_front_end') );
echo '</div>';
*/
echo '<div class="clear"></div>';
echo '</div>';
echo '</div>';
echo '<div class="blog-thumbnail-context">';
the_content();

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,19 +1,19 @@
<?php
/*
This file is a wrapper, for use in PHP environments, which serves PIE.htc using the
correct content-type, so that IE will recognize it as a behavior. Simply specify the
behavior property to fetch this .php file instead of the .htc directly:
.myElement {
[ ...css3 properties... ]
behavior: url(PIE.php);
}
This is only necessary when the web server is not configured to serve .htc files with
the text/x-component content-type, and cannot easily be configured to do so (as is the
case with some shared hosting providers).
*/
header( 'Content-type: text/x-component' );
include( 'PIE.htc' );
<?php
/*
This file is a wrapper, for use in PHP environments, which serves PIE.htc using the
correct content-type, so that IE will recognize it as a behavior. Simply specify the
behavior property to fetch this .php file instead of the .htc directly:
.myElement {
[ ...css3 properties... ]
behavior: url(PIE.php);
}
This is only necessary when the web server is not configured to serve .htc files with
the text/x-component content-type, and cannot easily be configured to do so (as is the
case with some shared hosting providers).
*/
header( 'Content-type: text/x-component' );
include( 'PIE.htc' );
?>

43
src/woocommerce.php Normal file
View 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(); ?>