- Cambios

git-svn-id: https://192.168.0.254/svn/Proyectos.FundacionLQDVI_Web/trunk@24 77ab8c26-3d69-2c4d-86f2-786f4ba54905
This commit is contained in:
David Arranz 2011-07-04 11:21:06 +00:00
parent c4c95b0f2b
commit dd05893422
21 changed files with 299 additions and 608 deletions

File diff suppressed because one or more lines are too long

BIN
información/login-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -0,0 +1,150 @@
<?php
/*
Plugin Name: Login Logo
Description: Drop a PNG file named <code>login-logo.png</code> into your <code>wp-content</code> directory. This simple plugin takes care of the rest, with zero configuration. Transparent backgrounds work best. Keep the width below 326 pixels.
Version: 0.4
License: GPL
Author: Mark Jaquith
Author URI: http://coveredwebservices.com/
*/
class CWS_Login_Logo_Plugin {
static $instance;
const cutoff = 326;
var $logo_locations;
var $logo_location;
var $width = 0;
var $height = 0;
var $original_height;
var $logo_size;
var $logo_file_exists;
public function __construct() {
self::$instance = $this;
add_action( 'login_head', array( $this, 'login_head' ) );
}
public function init() {
$this->logo_locations = array();
if ( is_multisite() && function_exists( 'get_current_site' ) ) {
$site = get_current_site(); // Site = Network? Ugh.
if ( $site && isset( $site->id ) ) {
$this->logo_locations['network'] = array(
'path' => WP_CONTENT_DIR . '/login-logo-network-' . $site->id . '.png',
'url' => $this->maybe_ssl( WP_CONTENT_URL . '/login-logo-network-' . $site->id . '.png' )
);
}
}
$this->logo_locations['global'] = array(
'path' => WP_CONTENT_DIR . '/login-logo.png',
'url' => $this->maybe_ssl( WP_CONTENT_URL . '/login-logo.png' )
);
}
private function maybe_ssl( $url ) {
if ( is_ssl() )
$url = preg_replace( '#^http://#', 'https://', $url );
return $url;
}
private function logo_file_exists() {
if ( ! isset( $this->logo_file_exists ) ) {
foreach ( $this->logo_locations as $location ) {
if ( file_exists( $location['path'] ) ) {
$this->logo_file_exists = true;
$this->logo_location = $location;
break;
} else {
$this->logo_file_exists = false;
}
}
}
return !! $this->logo_file_exists;
}
private function get_location( $what = '' ) {
if ( $this->logo_file_exists() ) {
if ( 'path' == $what || 'url' == $what )
return $this->logo_location[$what];
else
return $this->logo_location;
}
return false;
}
private function get_width() {
$this->get_logo_size();
return absint( $this->width );
}
private function get_height() {
$this->get_logo_size();
return absint( $this->height );
}
private function get_original_height() {
$this->get_logo_size();
return absint( $this->original_height );
}
private function get_logo_size() {
if ( !$this->logo_file_exists() )
return false;
if ( !$this->logo_size ) {
if ( $sizes = getimagesize( $this->get_location( 'path' ) ) ) {
$this->logo_size = $sizes;
$this->width = $sizes[0];
$this->height = $sizes[1];
$this->original_height = $this->height;
if ( $this->width > self::cutoff ) {
// Use CSS 3 scaling
$ratio = $this->height / $this->width;
$this->height = ceil( $ratio * self::cutoff );
$this->width = self::cutoff;
}
} else {
$this->logo_file_exists = false;
}
}
return array( $this->width, $this->height );
}
private function css3( $rule, $value ) {
foreach ( array( '', '-o-', '-webkit-', '-khtml-', '-moz-', '-ms-' ) as $prefix ) {
echo $prefix . $rule . ': ' . $value . '; ';
}
}
public function login_headerurl() {
return trailingslashit( get_bloginfo( 'url' ) );
}
public function login_head() {
$this->init();
if ( !$this->logo_file_exists() )
return;
add_filter( 'login_headerurl', array( $this, 'login_headerurl' ) );
?>
<!-- Login Logo plugin for WordPress: http://txfx.net/wordpress-plugins/login-logo/ -->
<style type="text/css">
h1 a {
background: url(<?php echo esc_url_raw( $this->get_location( 'url' ) ); ?>) no-repeat top center;
width: <?php echo self::cutoff; ?>px;
height: <?php echo $this->get_height() + 3; ?>px;
<?php if ( self::cutoff < $this->get_width() ) $this->css3( 'background-size', 'contain' ); ?>
}
</style>
<?php if ( self::cutoff < $this->get_width() ) { ?>
<!--[if lt IE 9]>
<style type="text/css">
height: <?php echo $this->get_original_height() + 3; ?>px;
</style>
<![endif]-->
<?php
}
}
}
// Bootstrap
new CWS_Login_Logo_Plugin;

View File

@ -0,0 +1,67 @@
=== Login Logo ===
Contributors: markjaquith
Donate link: http://txfx.net/wordpress-plugins/donate
Tags: customize, login, login screen, logo, custom logo
Requires at least: 3.0
Tested up to: 3.1
Stable tag: 0.4
Customize the logo on the WP login screen by simply dropping a file named login-logo.png into your WP content directory. CSS is automatic!
== Description ==
This plugin allows you to customize the logo on the WordPress login screen. There is zero configuration. You just drop the logo file into your WordPress content directory, named `login-logo.png` and this plugin takes over.
Note that you should use a transparent background on the PNG image and keep the width below 326 pixels for best results. Larger images will be downsized in modern browsers, but it isn't recommended to rely on that.
This plugin also works in the `mu-plugins` directory.
== Installation ==
1. [Click here](http://coveredwebservices.com/wp-plugin-install/?plugin=login-logo) to install and activate.
2. Create a PNG image of less than 326 pixels wide, with a transparent background.
3. Upload the PNG image to your WordPress content directory (`/wp-content/`, by default), and name the file `login-logo.png`.
4. If you have a multisite install with more than one network, you can also use `login-logo-network-{NETWORK ID}.png` to assign a different login logo to each network.
5. Done! The login screen will now use your logo.
== Screenshots ==
1. A login screen with a custom logo
2. A source image
== Frequently Asked Questions ==
= Why does my image look strange in IE or an outdated browser? =
Your image is probably too wide. Wide images are scaled down in IE 9 or other modern browsers, but not in older browsers. Use an image that is no more than 326 pixels wide.
== Changelog ==
= 0.4 =
* Use HTTPS if `is_ssl()` on the login page.
= 0.3 =
* The login logo now links to your site, instead of WordPress.org
* If you don't have a custom login logo, the plugin does nothing.
* You can provide `login-logo-network-{NETWORK ID}.png` to have a different logo per multisite network.
= 0.2 =
* Do not use `background-size` unless the image is more than 326 pixels
= 0.1 =
* Original version
== Upgrade Notice ==
= 0.4 =
Adds support for SSL
= 0.3 =
Makes the logo link to your site instead of WordPress.org! Support for per-network logos.
= 0.2 =
Upgrade now to avoid stretching small images.

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -7,7 +7,7 @@
$post_type = get_post_type();
if($post_type == 'portfolios')
if($post_type == 'proyectos')
{
$pp_portfolio_style = get_option('pp_portfolio_style');

View File

@ -1,362 +0,0 @@
pre, code, tt {font:13px 'andale mono', 'lucida console', monospace;line-height:1.5;padding: 20px;background: #222}
#footer
{
background: #000;
}
#header_wrapper
{
background: #000;
}
#top_bar
{
background: #000;
}
#menu_wrapper .nav ul li a, #menu_wrapper .menu-main-menu-container .nav li a
{
color: #ccc;
text-shadow: 0 1px 1px #000;
}
#menu_wrapper .nav ul li ul, #menu_wrapper .menu-main-menu-container .nav li ul
{
background: #000;
border-top: 1px solid #000;
border-bottom: 1px solid #000;
-moz-box-shadow: 0 1px 5px #000;
-webkit-box-shadow: 0 1px 5px #000;
box-shadow: 0px 1px 5px #000;
}
#menu_wrapper .menu-main-menu-container .nav li ul li a, #menu_wrapper .menu-main-menu-container .nav li.current-menu-item ul li a, #menu_wrapper .menu-main-menu-container .nav li ul li.current-menu-item a
{
color: #ccc;
}
#menu_wrapper .menu-main-menu-container .nav li ul li a.hover
{
background: transparent url('../images/menu_hover_dark.png') top repeat-x;
color: #fff;
}
#content_wrapper
{
background: #000;
-moz-box-shadow: 0 1px 3px #000;
-webkit-box-shadow: 0 1px 3px #000;
box-shadow: 0px 1px 3px #000;
color: #ccc;
text-shadow: 0 1px 1px #000;
}
h1, h2, h3, h4, h5, .sidebar_content h1, .sidebar_content h2, .sidebar_content h3, .sidebar_content h4, .sidebar_content h5, .sidebar_content h6
{
color: #fff;
}
#content_wrapper .inner .inner_wrapper .sidebar_wrapper
{
border-left: 1px solid #444;
}
#anything_slider .arrow.forward
{
background: transparent url('../images/right_slide_nav_dark.png') no-repeat;
}
#anything_slider .arrow.back
{
background: transparent url('../images/left_slide_nav_dark.png') no-repeat;
}
.nivo-prevNav {
background: transparent url('../images/left_slide_nav_dark.png') no-repeat;
}
.nivo-nextNav {
background: transparent url('../images/right_slide_nav_dark.png') no-repeat;
}
.roundabout-moveable-item {
background: #000;
border: 1px solid #444;
-webkit-box-shadow: 1px 1px 5px #000;
-moz-box-shadow: 1px 1px 5px #000;
box-shadow: 1px 1px 5px #000;
}
img.frame
{
border: 1px solid #444;
}
.frame_left
{
border: 1px solid #444;
}
.frame_left .caption, .frame_right .caption, .frame_center .caption
{
color: #ccc;
}
.frame_right
{
border: 1px solid #444;
}
.frame_center
{
border: 1px solid #444;
}
#content_wrapper .sidebar .content .posts.blog li img, #content_wrapper .posts.blog li img
{
border: 1px solid #444;
}
input[type=text], input[type=password], select
{
border: 1px solid #444;
}
input[type=text].blur
{
color: #666;
}
textarea
{
color: #ccc;
border: 1px solid #444;
}
input[type=text]:hover, input[type=password]:hover, textarea:hover
{
border: 1px solid #999;
-moz-box-shadow: 0 1px 3px #000;
-webkit-box-shadow: 0 1px 3px #000;
box-shadow: 0px 1px 3px #000;
}
.pricing_box
{
border: 1px solid #444;
}
.pricing_box .header
{
color: #fff;
text-shadow: 0 1px 1px #000;
border-bottom: 1px solid #444;
background: #333 url('../images/caption_bg_dark.png') bottom repeat-x;
}
.pricing_box.large
{
background: transparent;
-moz-box-shadow: 0 1px 10px #000;
-webkit-box-shadow: 0 1px 10px #000;
box-shadow: 0px 1px 10px #000;
}
#searchform label
{
color: #fff;
}
.page_caption
{
background: transparent url('../images/caption_bg_dark.png') center repeat-x;
}
.post_header .post_detail, .recent_post_detail
{
border-top: 1px solid #444;
border-bottom: 1px solid #444;
}
.post_header a
{
color: #fff;
}
.post_header h3 a
{
color: #fff;
}
.post_header a:hover
{
color: #fff;
}
.post_img img
{
border: 1px solid #444;
}
.post_img_date
{
background: #000;
color: #fff;
text-shadow: 0 0 0 #000;
}
#respond
{
border-bottom: 1px solid #444;
}
#about_the_author
{
border-bottom: 1px solid #444;
}
.related_posts
{
border-bottom: 1px solid #444;
}
#about_the_author .thumb img
{
border: 1px solid #444;
}
.comment .left img.avatar
{
border: 1px solid #444;
background: #000;
}
.portfolio1_hover, .portfolio2_hover, .portfolio3_hover, .portfolio4_hover
{
background: #000
}
#content_wrapper table
{
border: 1px solid #444;
-moz-box-shadow: 0 1px 3px #000;
-webkit-box-shadow: 0 1px 3px #000;
box-shadow: 0px 1px 3px #000;
}
#content_wrapper table tr
{
background: #000;
}
#content_wrapper table tr td, #content_wrapper table tr th
{
border-bottom: 1px solid #444;
}
#content_wrapper table tr th
{
font-weight: bold;
background: #444 url('../images/caption_bg_dark.png') bottom repeat-x;
text-align: left;
text-shadow: 0 1px 1px #000;
color: #fff;
}
.pagination a {
background: #222;
border: 1px solid #444;
color: #ccc;
text-shadow: 0 1px 1px #000;
}
.pagination a:hover {
-moz-box-shadow: 0 1px 3px #000;
-webkit-box-shadow: 0 1px 3px #000;
box-shadow: 0px 1px 3px #000;
border: 1px solid #444;
background: #444 url('../images/caption_bg_dark.png') bottom repeat-x;
}
.pagination a:active, .pagination a.active {
color: #fff;
-moz-box-shadow: 0 1px 3px #000;
-webkit-box-shadow: 0 1px 3px #000;
box-shadow: 0px 1px 3px #000;
border: 1px solid #444;
background: #444 url('../images/caption_bg_dark.png') bottom repeat-x;
}
.accordion
{
border: 1px solid #444;
-moz-box-shadow: 0 1px 3px #000;
-webkit-box-shadow: 0 1px 3px #000;
box-shadow: 0px 1px 3px #000;
}
.ui-accordion .ui-accordion-header
{
background: #333 url('../images/caption_bg_dark.png') center repeat-x;
}
.ui-accordion .ui-accordion-header a
{
color: #fff;
}
.accordion div
{
border-top: 1px solid #444;
}
.ui-widget-header
{
border-bottom: 1px solid #444;
}
.tabs .ui-state-default a
{
color: #ccc;
}
.tabs .ui-state-active, .tabs .ui-state-default
{
background: #000;
text-shadow: 0 1px 1px #000;
border: 1px solid #444;
}
.tabs .ui-tabs-panel
{
border: 1px solid #444;
-moz-box-shadow: 0 1px 3px #000;
-webkit-box-shadow: 0 1px 3px #000;
box-shadow: 0px 1px 3px #000;
background: #000 url('../images/caption_bg_dark.png') center repeat-x;
}
.tabs .ui-state-active a
{
color: #fff;
}
hr
{
border-top: 1px solid #444;
}
.line_shadow
{
height: 1px;
}
#content_wrapper .sidebar .content .sidebar_widget li ul.flickr li img, #footer .sidebar_widget li ul.flickr li img
{
border: 1px solid #444;
}
#footer .posts.blog li img
{
border: 1px solid #444;
}

View File

@ -1 +0,0 @@
body { }

View File

@ -1,25 +0,0 @@
a
{
color: #6abc01;
text-decoration: none;
}
a:hover
{
color: #487f02;
}
#menu_wrapper .nav ul li a.hover, #menu_wrapper .nav ul li a:hover, #menu_wrapper .menu-main-menu-container .nav li a.hover, #menu_wrapper .menu-main-menu-container .nav li a:hover
{
color: #6abc01;
}
#menu_wrapper .menu-main-menu-container .nav li.current-menu-item a
{
color: #6abc01;
}
input[type=submit], input[type=button], a.button, a.button:hover, a.button:active
{
background: transparent url('../../images/skins/green_button_bg.png') no-repeat;
}

View File

@ -1,25 +0,0 @@
a
{
color: #8803a9;
text-decoration: none;
}
a:hover
{
color: #487f02;
}
#menu_wrapper .nav ul li a.hover, #menu_wrapper .nav ul li a:hover, #menu_wrapper .menu-main-menu-container .nav li a.hover, #menu_wrapper .menu-main-menu-container .nav li a:hover
{
color: #8803a9;
}
#menu_wrapper .menu-main-menu-container .nav li.current-menu-item a
{
color: #8803a9;
}
input[type=submit], input[type=button], a.button, a.button:hover, a.button:active
{
background: transparent url('../../images/skins/purple_button_bg.png') no-repeat;
}

View File

@ -1,25 +0,0 @@
a
{
color: #C90000;
text-decoration: none;
}
a:hover
{
color: #8D0000;
}
#menu_wrapper .nav ul li a.hover, #menu_wrapper .nav ul li a:hover, #menu_wrapper .menu-main-menu-container .nav li a.hover, #menu_wrapper .menu-main-menu-container .nav li a:hover
{
color: #C90000;
}
#menu_wrapper .menu-main-menu-container .nav li.current-menu-item a
{
color: #C90000;
}
input[type=submit], input[type=button], a.button, a.button:hover, a.button:active
{
background: transparent url('../../images/skins/red_button_bg.png') no-repeat;
}

View File

@ -2,16 +2,16 @@
function post_type_slides() {
$labels = array(
'name' => _x('Slides', 'post type general name'),
'singular_name' => _x('Slide', 'post type singular name'),
'add_new' => _x('Add New Slide', 'book'),
'add_new_item' => __('Add New Slide'),
'edit_item' => __('Edit Slide'),
'new_item' => __('New Slide'),
'view_item' => __('View Slide'),
'search_items' => __('Search Slides'),
'not_found' => __('No slide found'),
'not_found_in_trash' => __('No slides found in Trash'),
'name' => _x('Capturas', 'post type general name'),
'singular_name' => _x('Captura', 'post type singular name'),
'add_new' => _x('A&ntilde;adir nueva captura', 'book'),
'add_new_item' => __('A&ntilde;adir nueva captura'),
'edit_item' => __('Editar captura'),
'new_item' => __('Nueva captura'),
'view_item' => __('Ver captura'),
'search_items' => __('Buscar captura'),
'not_found' => __('Captura no encontrada'),
'not_found_in_trash' => __('Ninguna captura encontrada en la papelera'),
'parent_item_colon' => ''
);
$args = array(
@ -33,18 +33,18 @@ function post_type_slides() {
add_action('init', 'post_type_slides');
function post_type_portfolios() {
function post_type_proyectos() {
$labels = array(
'name' => _x('Portfolios', 'post type general name'),
'singular_name' => _x('Portfolio', 'post type singular name'),
'add_new' => _x('Add New Portfolio', 'book'),
'add_new_item' => __('Add New Portfolio'),
'edit_item' => __('Edit Portfolio'),
'new_item' => __('New Portfolio'),
'view_item' => __('View Portfolio'),
'search_items' => __('Search Portfolios'),
'not_found' => __('No Portfolio found'),
'not_found_in_trash' => __('No Portfolios found in Trash'),
'name' => _x('Proyectos', 'post type general name'),
'singular_name' => _x('Proyecto', 'post type singular name'),
'add_new' => _x('A&ntilde;adir nuevo proyecto', 'book'),
'add_new_item' => __('A&ntilde;adir nuevo proyecto'),
'edit_item' => __('Editar proyecto'),
'new_item' => __('Nuevo proyecto'),
'view_item' => __('Ver proyecto'),
'search_items' => __('Buscar proyectos'),
'not_found' => __('Proyecto no encontrado'),
'not_found_in_trash' => __('Ning&uacute;n proyecto encontrado en la papelera'),
'parent_item_colon' => ''
);
$args = array(
@ -61,7 +61,7 @@ function post_type_portfolios() {
'menu_icon' => get_bloginfo( 'stylesheet_directory' ).'/functions/images/sign.png'
);
register_post_type( 'portfolios', $args );
register_post_type( 'proyectos', $args );
$labels = array(
'name' => _x( 'Sets', 'taxonomy general name' ),
@ -77,20 +77,20 @@ function post_type_portfolios() {
);
register_taxonomy(
'portfoliosets',
'portfolios',
'proyectosets',
'proyectos',
array(
'public'=>true,
'hierarchical' => true,
'labels'=> $labels,
'query_var' => 'portfoliosets',
'query_var' => 'proyectosets',
'show_ui' => true,
'rewrite' => array( 'slug' => 'portfoliosets', 'with_front' => false ),
'rewrite' => array( 'slug' => 'proyectosets', 'with_front' => false ),
)
);
}
add_action('init', 'post_type_portfolios');
add_action('init', 'post_type_proyectos');
add_filter( 'manage_posts_columns', 'rt_add_gravatar_col');
function rt_add_gravatar_col($cols) {
@ -125,7 +125,7 @@ $postmetas =
*/
),
'portfolios' => array(
'proyectos' => array(
array("section" => "Featured Items", "id" => "ft_portfolio", "type" => "select", "title" => "Is this a featured items?", "items" => array('', "Yes", "No")),
),
);

View File

@ -105,13 +105,13 @@ register_widget('LQDVI_Popular_Posts');
**/
/**
* Begin Portfolios Custom Widgets
* Begin Proyectos Custom Widgets
**/
class LQDVI_Portfolios extends WP_Widget {
function LQDVI_Portfolios() {
$widget_ops = array('classname' => 'LQDVI_Portfolios', 'description' => 'Portfolio items widget' );
$this->WP_Widget('LQDVI_Portfolios', 'LQDVI Portfolios', $widget_ops);
class LQDVI_Proyectos extends WP_Widget {
function LQDVI_Proyectos() {
$widget_ops = array('classname' => 'LQDVI_Proyectos', 'description' => 'Project items widget' );
$this->WP_Widget('LQDVI_Proyectos', 'LQDVI Proyectos', $widget_ops);
}
function widget($args, $instance) {
@ -133,7 +133,7 @@ class LQDVI_Portfolios extends WP_Widget {
$pp_portfolio_sort = 'ASC';
}
$portfolio_items = get_posts('numberposts='.$items.'&order='.$pp_portfolio_sort.'&orderby=date&post_type=portfolios');
$portfolio_items = get_posts('numberposts='.$items.'&order='.$pp_portfolio_sort.'&orderby=date&post_type=proyectos');
if(isset($portfolio_items) && !empty($portfolio_items))
{
@ -209,10 +209,10 @@ class LQDVI_Portfolios extends WP_Widget {
}
}
register_widget('LQDVI_Portfolios');
register_widget('LQDVI_Proyectos');
/**
* End Portfolios Posts Custom Widgets
* End Proyectos Posts Custom Widgets
**/
/**

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 KiB

View File

@ -8,7 +8,7 @@
get_header();
if($post->post_type == 'portfolios')
if($post->post_type == 'proyectos')
{
include (TEMPLATEPATH . "/templates/template-portfolio-single.php");
exit;

View File

@ -147,12 +147,12 @@ else
'numberposts' => $portfolio_items,
'order' => $portfolio_sort,
'orderby' => 'date',
'post_type' => array('portfolios'),
'post_type' => array('proyectos'),
'offset' => $offset,
);
if(!empty($term))
{
$args['portfoliosets'].= $term;
$args['proyectosets'].= $term;
}
$page_photo_arr = get_posts($args);
@ -164,11 +164,11 @@ else
'numberposts' => -1,
'order' => $portfolio_sort,
'orderby' => 'date',
'post_type' => array('portfolios'),
'post_type' => array('proyectos'),
);
if(!empty($term))
{
$args['portfoliosets'].= $term;
$args['proyectosets'].= $term;
}
$all_photo_arr = get_posts($args);

View File

@ -153,12 +153,12 @@ else
'numberposts' => $portfolio_items,
'order' => $portfolio_sort,
'orderby' => 'date',
'post_type' => array('portfolios'),
'post_type' => array('proyectos'),
'offset' => $offset,
);
if(!empty($term))
{
$args['portfoliosets'].= $term;
$args['proyectosets'].= $term;
}
$page_photo_arr = get_posts($args);
@ -170,11 +170,11 @@ else
'numberposts' => -1,
'order' => $portfolio_sort,
'orderby' => 'date',
'post_type' => array('portfolios'),
'post_type' => array('proyectos'),
);
if(!empty($term))
{
$args['portfoliosets'].= $term;
$args['proyectosets'].= $term;
}
$all_photo_arr = get_posts($args);

View File

@ -17,7 +17,7 @@ if(!empty($term))
{
$portfolio_sets_query.= $term;
$obj_term = get_term_by('slug', $term, 'portfoliosets');
$obj_term = get_term_by('slug', $term, 'proyectosets');
$custom_title = $obj_term->name;
}
@ -148,12 +148,12 @@ else
'numberposts' => $portfolio_items,
'order' => $portfolio_sort,
'orderby' => 'date',
'post_type' => array('portfolios'),
'post_type' => array('proyectos'),
'offset' => $offset,
);
if(!empty($term))
{
$args['portfoliosets'].= $term;
$args['proyectosets'].= $term;
}
$page_photo_arr = get_posts($args);
@ -165,11 +165,11 @@ else
'numberposts' => -1,
'order' => $portfolio_sort,
'orderby' => 'date',
'post_type' => array('portfolios'),
'post_type' => array('proyectos'),
);
if(!empty($term))
{
$args['portfoliosets'].= $term;
$args['proyectosets'].= $term;
}
$all_photo_arr = get_posts($args);

View File

@ -6,7 +6,7 @@
$pp_portfolio_slider_sort = 'DESC';
}
$slider_arr = get_posts('numberposts=6&order='.$pp_slider_sort.'&orderby=date&post_type=portfolios&meta_key=ft_portfolio&meta_value=Yes');
$slider_arr = get_posts('numberposts=6&order='.$pp_slider_sort.'&orderby=date&post_type=proyectos&meta_key=ft_portfolio&meta_value=Yes');
if(!empty($slider_arr))
{