Actualiza la estructura de archivos

Reorganiza el árbol de directorios y ficheros del proyecto de acuerdo a la
estructura original del sitio.
This commit is contained in:
Manuel Cillero 2019-12-18 00:22:52 +01:00
parent 4f0f2e39ba
commit abe4e79dbc
25 changed files with 1663 additions and 0 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,51 +0,0 @@
<?php
/**
* Flexible Posts Widget: Old Default widget template
*
* @since 1.0.0
*
* This is the ORIGINAL default template used by the plugin.
* There is a new default template (default.php) that will be
* used by default if no template was specified in a widget.
*/
// Block direct requests
if ( !defined('ABSPATH') )
die('-1');
echo $before_widget;
if ( !empty($title) )
echo $before_title . $title . $after_title;
if( $flexible_posts->have_posts() ):
?>
<ul class="dpe-flexible-posts list-blogroll">
<?php while( $flexible_posts->have_posts() ) : $flexible_posts->the_post(); global $post; ?>
<li id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<a href="<?php echo the_permalink(); ?>">
<?php
if( $thumbnail == true ) {
// If the post has a feature image, show it
if( has_post_thumbnail() ) {
the_post_thumbnail( $thumbsize );
// Else if the post has a mime type that starts with "image/" then show the image directly.
} elseif( 'image/' == substr( $post->post_mime_type, 0, 6 ) ) {
echo wp_get_attachment_image( $post->ID, $thumbsize );
}
}
?>
<h4 class="title"><?php the_title(); ?></h4>
<p class="meta"><?php echo 'desde '; the_time('F \d\e Y'); ?></p>
</a>
</li>
<?php endwhile; ?>
</ul><!-- .dpe-flexible-posts -->
<?php else: // We have no posts ?>
<div class="dpe-flexible-posts no-posts">
<p><?php _e( 'No post found', 'flexible-posts-widget' ); ?></p>
</div>
<?php
endif; // End have_posts()
echo $after_widget;

View file

@ -1,54 +0,0 @@
<?php
/**
* Flexible Posts Widget: Old Default widget template
*
* @since 1.0.0
*
* This is the ORIGINAL default template used by the plugin.
* There is a new default template (default.php) that will be
* used by default if no template was specified in a widget.
*/
// Block direct requests
if ( !defined('ABSPATH') )
die('-1');
echo $before_widget;
if ( !empty($title) )
echo $before_title . $title . $after_title;
if( $flexible_posts->have_posts() ):
?>
<ul class="dpe-flexible-posts">
<?php while( $flexible_posts->have_posts() ) : $flexible_posts->the_post(); global $post; ?>
<li id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
global $wp;
$permalink = get_permalink();
$current_url = home_url( add_query_arg( array(), $wp->request ) );
echo '<a href="' . $permalink . ( trim( $permalink, '/' ) == $current_url ? '" class="active">' : '">' );
if( $thumbnail == true ) {
// If the post has a feature image, show it
if( has_post_thumbnail() ) {
the_post_thumbnail( $thumbsize );
// Else if the post has a mime type that starts with "image/" then show the image directly.
} elseif( 'image/' == substr( $post->post_mime_type, 0, 6 ) ) {
echo wp_get_attachment_image( $post->ID, $thumbsize );
}
}
?>
<h4 class="title"><?php the_title(); ?></h4>
<p class="meta"><?php the_time('\d\e\l d \d\e F \d\e Y'); ?></p>
</a>
</li>
<?php endwhile; ?>
</ul><!-- .dpe-flexible-posts -->
<?php else: // We have no posts ?>
<div class="dpe-flexible-posts no-posts">
<p><?php _e( 'No post found', 'flexible-posts-widget' ); ?></p>
</div>
<?php
endif; // End have_posts()
echo $after_widget;

View file

@ -1,54 +0,0 @@
<?php
/**
* Flexible Posts Widget: Old Default widget template
*
* @since 1.0.0
*
* This is the ORIGINAL default template used by the plugin.
* There is a new default template (default.php) that will be
* used by default if no template was specified in a widget.
*/
// Block direct requests
if ( !defined('ABSPATH') )
die('-1');
echo $before_widget;
if ( !empty($title) )
echo $before_title . $title . $after_title;
if( $flexible_posts->have_posts() ):
?>
<ul class="dpe-flexible-posts list-notes">
<?php while( $flexible_posts->have_posts() ) : $flexible_posts->the_post(); global $post; ?>
<li id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
global $wp;
$permalink = get_permalink();
$current_url = home_url( add_query_arg( array(), $wp->request ) );
echo '<a href="' . $permalink . ( trim( $permalink, '/' ) == $current_url ? '" class="active">' : '">' );
if( $thumbnail == true ) {
// If the post has a feature image, show it
if( has_post_thumbnail() ) {
the_post_thumbnail( $thumbsize );
// Else if the post has a mime type that starts with "image/" then show the image directly.
} elseif( 'image/' == substr( $post->post_mime_type, 0, 6 ) ) {
echo wp_get_attachment_image( $post->ID, $thumbsize );
}
}
?>
<h4 class="title"><?php the_title(); ?></h4>
<p class="meta"><?php the_time('\d\e\l d \d\e F \d\e Y'); ?></p>
</a>
</li>
<?php endwhile; ?>
</ul><!-- .dpe-flexible-posts -->
<?php else: // We have no posts ?>
<div class="dpe-flexible-posts no-posts">
<p><?php _e( 'No post found', 'flexible-posts-widget' ); ?></p>
</div>
<?php
endif; // End have_posts()
echo $after_widget;

View file

@ -1,46 +0,0 @@
<?php
/**
* Flexible Posts Widget: Old Default widget template
*
* @since 1.0.0
*
* This is the ORIGINAL default template used by the plugin.
* There is a new default template (default.php) that will be
* used by default if no template was specified in a widget.
*/
// Block direct requests
if ( !defined('ABSPATH') )
die('-1');
echo $before_widget;
if ( !empty($title) )
echo $before_title . $title . $after_title;
if( $flexible_posts->have_posts() ):
?>
<a class="dpe-flexible-photos-link" href="/photoblog" title="Fotoblog"></a>
<ul class="dpe-flexible-photos-footer">
<?php while( $flexible_posts->have_posts() ) : $flexible_posts->the_post(); global $post; ?>
<li id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<a href="<?php echo the_permalink(); ?>" title="<?php echo the_title(); ?>">
<?php
if( $thumbnail == true ) {
// If the post has a feature image, show it
if( has_post_thumbnail() ) {
the_post_thumbnail( $thumbsize );
// Else if the post has a mime type that starts with "image/" then show the image directly.
} elseif( 'image/' == substr( $post->post_mime_type, 0, 6 ) ) {
echo wp_get_attachment_image( $post->ID, $thumbsize );
}
}
?>
</a>
</li>
<?php endwhile; ?>
</ul><!-- .dpe-flexible-posts -->
<?php
endif; // End have_posts()
echo $after_widget;

View file

@ -1,49 +0,0 @@
<?php
/**
* Flexible Posts Widget: Old Default widget template
*
* @since 1.0.0
*
* This is the ORIGINAL default template used by the plugin.
* There is a new default template (default.php) that will be
* used by default if no template was specified in a widget.
*/
// Block direct requests
if ( !defined('ABSPATH') )
die('-1');
echo $before_widget;
if ( !empty($title) )
echo $before_title . $title . $after_title;
if( $flexible_posts->have_posts() ):
?>
<ul class="dpe-flexible-photos">
<?php while( $flexible_posts->have_posts() ) : $flexible_posts->the_post(); global $post; ?>
<li id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<a href="<?php echo the_permalink(); ?>" title="<?php echo the_title(); ?>">
<?php
if( $thumbnail == true ) {
// If the post has a feature image, show it
if( has_post_thumbnail() ) {
the_post_thumbnail( $thumbsize );
// Else if the post has a mime type that starts with "image/" then show the image directly.
} elseif( 'image/' == substr( $post->post_mime_type, 0, 6 ) ) {
echo wp_get_attachment_image( $post->ID, $thumbsize );
}
}
?>
</a>
</li>
<?php endwhile; ?>
</ul><!-- .dpe-flexible-posts -->
<?php else: // We have no posts ?>
<div class="dpe-flexible-posts no-posts">
<p><?php _e( 'No post found', 'flexible-posts-widget' ); ?></p>
</div>
<?php
endif; // End have_posts()
echo $after_widget;

View file

@ -1,63 +0,0 @@
<?php
/**
* Flexible Posts Widget: Old Default widget template
*
* @since 1.0.0
*
* This is the ORIGINAL default template used by the plugin.
* There is a new default template (default.php) that will be
* used by default if no template was specified in a widget.
*/
// Block direct requests
if ( !defined('ABSPATH') )
die('-1');
echo $before_widget;
if ( !empty($title) )
echo $before_title . $title . $after_title;
if( $flexible_posts->have_posts() ):
?>
<ul class="dpe-flexible-posts list-recents">
<?php while( $flexible_posts->have_posts() ) : $flexible_posts->the_post(); global $post; ?>
<li id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
global $wp;
$permalink = get_permalink();
$current_url = home_url( add_query_arg( array(), $wp->request ) );
echo '<a href="' . $permalink . ( trim( $permalink, '/' ) == $current_url ? '" class="active">' : '">' );
if( $thumbnail == true ) {
// If the post has a feature image, show it
if( has_post_thumbnail() ) {
the_post_thumbnail( $thumbsize );
// Else if the post has a mime type that starts with "image/" then show the image directly.
} elseif( 'image/' == substr( $post->post_mime_type, 0, 6 ) ) {
echo wp_get_attachment_image( $post->ID, $thumbsize );
}
}
?>
<h4 class="title"><?php the_title(); ?></h4>
<p class="meta"><?php
if ($post->post_type == 'post') {
$categories = get_the_category();
$type = $categories[0]->name;
} else {
static $types = array("page" => "Página", "quote" => "Cita");
$type = $types[get_post_type()];
}
echo !empty($type) ? $type . ', el ' : 'El '; the_modified_time('d \d\e F \d\e Y');
?></p>
</a>
</li>
<?php endwhile; ?>
</ul><!-- .dpe-flexible-posts -->
<?php else: // We have no posts ?>
<div class="dpe-flexible-posts no-posts">
<p><?php _e( 'No post found', 'flexible-posts-widget' ); ?></p>
</div>
<?php
endif; // End have_posts()
echo $after_widget;

View file

@ -1,60 +0,0 @@
<?php
/**
* Flexible Posts Widget: Old Default widget template
*
* @since 1.0.0
*
* This is the ORIGINAL default template used by the plugin.
* There is a new default template (default.php) that will be
* used by default if no template was specified in a widget.
*/
// Block direct requests
if ( !defined('ABSPATH') )
die('-1');
echo $before_widget;
if ( !empty($title) )
echo $before_title . $title . $after_title;
if( $flexible_posts->have_posts() ):
?>
<ul class="dpe-flexible-posts">
<?php while( $flexible_posts->have_posts() ) : $flexible_posts->the_post(); global $post; ?>
<li id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
if ($post->post_type == 'quote') {
$quote_text = get_the_content();
$author = wp_get_post_terms($post->ID, 'quote_author_tag', array("fields" => "all"));
$quote_author = '<p>— <a href="/quotes/author/' . $author[0]->slug . '">' . $author[0]->name . '</a></p>';
} else {
$quote_text = get_the_content();
$quote_author = get_the_title();
$provider = wp_get_post_terms($post->ID, 'quote_provider_tag', array("fields" => "all"));
switch ($provider[0]->name) {
case 'Proverbia.net':
$quote_text = mb_convert_encoding($quote_text, 'ISO-8859-15', 'UTF-8');
$quote_author = mb_convert_encoding(substr($quote_author, 0, strpos($quote_author, ' &#8211; ')), 'ISO-8859-15', 'UTF-8');
$quote_provider = '<a href="http://es.proverbia.net" target="_blank">' . $provider[0]->name . '</a>';
break;
case 'BrainyQuote':
$quote_provider = '<a href="http://www.brainyquote.com" target="_blank">' . $provider[0]->name . '</a>';
break;
case 'The Quotations Page':
$quote_provider = '<a href="http://www.quotationspage.com" target="_blank">' . $provider[0]->name . '</a>';
}
$quote_text = '<p>' . trim($quote_text, '"') . '</p>';
$quote_author = '<p>— ' . $quote_author . ' (' . $quote_provider . ')</p>';
}
echo '<div class="quote-text">' . $quote_text . '</div>';
echo '<div class="quote-author">' . $quote_author . '</div>';
?>
</li>
<?php endwhile; ?>
</ul><!-- .dpe-flexible-posts -->
<?php
endif; // End have_posts()
echo $after_widget;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 896 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 379 KiB

View file

@ -1,111 +0,0 @@
<?php
if ( !defined('ABSPATH') ){ die(); }
global $avia_config;
##############################################################################
# Display the sidebar
##############################################################################
$default_sidebar = true;
$sidebar_pos = avia_layout_class('main', false);
$sidebar_smartphone = avia_get_option('smartphones_sidebar') == 'smartphones_sidebar' ? 'smartphones_sidebar_active' : "";
$sidebar = "";
if(strpos($sidebar_pos, 'sidebar_left') !== false) $sidebar = 'left';
if(strpos($sidebar_pos, 'sidebar_right') !== false) $sidebar = 'right';
//filter the sidebar position (eg woocommerce single product pages always want the same sidebar pos)
$sidebar = apply_filters('avf_sidebar_position', $sidebar);
//if the layout hasnt the sidebar keyword defined we dont need to display one
if(empty($sidebar)) return;
if(!empty($avia_config['overload_sidebar'])) $avia_config['currently_viewing'] = $avia_config['overload_sidebar'];
//get text alignment for left sidebar
$sidebar_text_alignment = '';
if ($sidebar == 'left'){
$sidebar_left_textalign = avia_get_option('sidebar_left_textalign');
$sidebar_text_alignment = $sidebar_left_textalign !== '' ? 'sidebar_'.$sidebar_left_textalign : '';
}
echo "<aside class='sidebar sidebar_".$sidebar." ".$sidebar_text_alignment." ".$sidebar_smartphone." ".avia_layout_class( 'sidebar', false )." units' ".avia_markup_helper(array('context' => 'sidebar', 'echo' => false)).">";
echo "<div class='inner_sidebar extralight-border'>";
//Display a subnavigation for pages that is automatically generated, so the users do not need to work with widgets
$av_sidebar_menu = avia_sidebar_menu(false);
if($av_sidebar_menu)
{
echo $av_sidebar_menu;
$default_sidebar = false;
}
$the_id = @get_the_ID();
$custom_sidebar = "";
if(!empty($the_id) && is_singular())
{
$custom_sidebar = get_post_meta($the_id, 'sidebar', true);
}
$custom_sidebar = apply_filters('avf_custom_sidebar', $custom_sidebar);
if($custom_sidebar)
{
dynamic_sidebar($custom_sidebar);
$default_sidebar = false;
}
else
{
if(empty($avia_config['currently_viewing'])) $avia_config['currently_viewing'] = 'page';
// general shop sidebars
if ($avia_config['currently_viewing'] == 'shop' && dynamic_sidebar('Shop Overview Page') ) : $default_sidebar = false; endif;
// single shop sidebars
if ($avia_config['currently_viewing'] == 'shop_single') $default_sidebar = false;
if ($avia_config['currently_viewing'] == 'shop_single' && dynamic_sidebar('Single Product Pages') ) : $default_sidebar = false; endif;
// general blog sidebars
if ($avia_config['currently_viewing'] == 'blog' && dynamic_sidebar('Sidebar Blog') ) : $default_sidebar = false; endif;
// general archive sidebars
if (avia_get_option('archive_sidebar') == 'archive_sidebar_separate') {
if ($avia_config['currently_viewing'] == 'archive' && dynamic_sidebar('Sidebar Archives') ) : $default_sidebar = false; endif;
}
// general pages sidebars
if ($avia_config['currently_viewing'] == 'page' && dynamic_sidebar('Sidebar Pages') ) : $default_sidebar = false; endif;
// forum pages sidebars
if ($avia_config['currently_viewing'] == 'forum' && dynamic_sidebar('Forum') ) : $default_sidebar = false; endif;
}
//global sidebar
if (dynamic_sidebar('Displayed Everywhere')) : $default_sidebar = false; endif;
//default dummy sidebar
if (apply_filters('avf_show_default_sidebars', $default_sidebar))
{
if(apply_filters('avf_show_default_sidebar_pages', true)) {avia_dummy_widget(2);}
if(apply_filters('avf_show_default_sidebar_categories', true)) {avia_dummy_widget(3);}
if(apply_filters('avf_show_default_sidebar_archiv', true)) {avia_dummy_widget(4);}
// customize default sidebar and add your sidebars
do_action ('ava_add_custom_default_sidebars');
}
echo "</div>";
echo "</aside>";

View file

@ -1,111 +0,0 @@
<?php
if ( !defined('ABSPATH') ){ die(); }
global $avia_config;
##############################################################################
# Display the sidebar
##############################################################################
$default_sidebar = true;
$sidebar_pos = avia_layout_class('main', false);
$sidebar_smartphone = avia_get_option('smartphones_sidebar') == 'smartphones_sidebar' ? 'smartphones_sidebar_active' : "";
$sidebar = "";
if(strpos($sidebar_pos, 'sidebar_left') !== false) $sidebar = 'left';
if(strpos($sidebar_pos, 'sidebar_right') !== false) $sidebar = 'right';
//filter the sidebar position (eg woocommerce single product pages always want the same sidebar pos)
$sidebar = apply_filters('avf_sidebar_position', $sidebar);
//if the layout hasnt the sidebar keyword defined we dont need to display one
if(empty($sidebar)) return;
if(!empty($avia_config['overload_sidebar'])) $avia_config['currently_viewing'] = $avia_config['overload_sidebar'];
//get text alignment for left sidebar
$sidebar_text_alignment = '';
if ($sidebar == 'left'){
$sidebar_left_textalign = avia_get_option('sidebar_left_textalign');
$sidebar_text_alignment = $sidebar_left_textalign !== '' ? 'sidebar_'.$sidebar_left_textalign : '';
}
echo "<aside class='sidebar sidebar_".$sidebar." ".$sidebar_text_alignment." ".$sidebar_smartphone." ".avia_layout_class( 'sidebar', false )." units' ".avia_markup_helper(array('context' => 'sidebar', 'echo' => false)).">";
echo "<div class='inner_sidebar extralight-border'>";
//global sidebar
if (dynamic_sidebar('Displayed Everywhere')) : $default_sidebar = false; endif;
//Display a subnavigation for pages that is automatically generated, so the users do not need to work with widgets
$av_sidebar_menu = avia_sidebar_menu(false);
if($av_sidebar_menu)
{
echo $av_sidebar_menu;
$default_sidebar = false;
}
$the_id = @get_the_ID();
$custom_sidebar = "";
if(!empty($the_id) && is_singular())
{
$custom_sidebar = get_post_meta($the_id, 'sidebar', true);
}
$custom_sidebar = apply_filters('avf_custom_sidebar', $custom_sidebar);
if($custom_sidebar)
{
dynamic_sidebar($custom_sidebar);
$default_sidebar = false;
}
else
{
if(empty($avia_config['currently_viewing'])) $avia_config['currently_viewing'] = 'page';
// general shop sidebars
if ($avia_config['currently_viewing'] == 'shop' && dynamic_sidebar('Shop Overview Page') ) : $default_sidebar = false; endif;
// single shop sidebars
if ($avia_config['currently_viewing'] == 'shop_single') $default_sidebar = false;
if ($avia_config['currently_viewing'] == 'shop_single' && dynamic_sidebar('Single Product Pages') ) : $default_sidebar = false; endif;
// general blog sidebars
if ($avia_config['currently_viewing'] == 'blog' && dynamic_sidebar('Sidebar Blog') ) : $default_sidebar = false; endif;
// general archive sidebars
if (avia_get_option('archive_sidebar') == 'archive_sidebar_separate') {
if ($avia_config['currently_viewing'] == 'archive' && dynamic_sidebar('Sidebar Archives') ) : $default_sidebar = false; endif;
}
// general pages sidebars
if ($avia_config['currently_viewing'] == 'page' && dynamic_sidebar('Sidebar Pages') ) : $default_sidebar = false; endif;
// forum pages sidebars
if ($avia_config['currently_viewing'] == 'forum' && dynamic_sidebar('Forum') ) : $default_sidebar = false; endif;
}
//default dummy sidebar
if (apply_filters('avf_show_default_sidebars', $default_sidebar))
{
if(apply_filters('avf_show_default_sidebar_pages', true)) {avia_dummy_widget(2);}
if(apply_filters('avf_show_default_sidebar_categories', true)) {avia_dummy_widget(3);}
if(apply_filters('avf_show_default_sidebar_archiv', true)) {avia_dummy_widget(4);}
// customize default sidebar and add your sidebars
do_action ('ava_add_custom_default_sidebars');
}
echo "</div>";
echo "</aside>";