EstudioJuridicoAlmagro_Web/www/wpv_theme/metaboxes/general.php
david f72df580c3 - Importación inicial
- Ticket 1166 -> Orden de los idiomas ES FR EN RU

git-svn-id: https://192.168.0.254/svn/Proyectos.EstudioJuridicoAlmagro_Web/trunk@2 c22fe52d-42d7-ba4f-95f7-33effcf65713
2013-02-27 15:39:05 +00:00

247 lines
6.2 KiB
PHP

<?php
global $wpv_slider_effects, $post;
return array(
array(
'name' => __('Use global options', 'wpv'),
'desc' => __('If this option is enabled, some of the local options which have global equivalents will not be taken into account. Hence, if this option is disabled, these local options will overwrite the global settings for this post', 'wpv'),
'id' => 'use-global-options',
'type' => 'toggle',
'default' => true,
),
array(
'name' => __('General', 'wpv'),
'type' => 'separator'
),
array(
'name' => __('Description', 'wpv'),
'id' => 'description',
'type' => 'textarea',
'only' => 'page',
'default' => '',
),
array(
'name' => __('Feature in header slider', 'wpv'),
'desc' => __("You must set a featured image, except when you use this option with video post format. The slide's caption will be set to this post's title.", 'wpv'),
'id' => 'featured',
'only' => 'post,portfolio',
'type' => 'toggle',
'default' => false,
),
array(
'name' => __('Layout and styles', 'wpv'),
'type' => 'separator'
),
array(
'name' => __('Layout type', 'wpv'),
'id' => 'layout-type',
'type' => 'body-layout',
'only' => 'page,post,portfolio',
'default' => wpv_get_option('default-body-layout'),
),
array(
'name' => __('Left sidebar', 'wpv'),
'id' => 'left_sidebar_type',
'type' => 'select',
'prompt' => __('Default'),
'target' => 'sidebars',
'default' => false,
),
array(
'name' => __('Right sidebar', 'wpv'),
'id' => 'right_sidebar_type',
'type' => 'select',
'prompt' => __('Default'),
'target' => 'sidebars',
'default' => false,
),
array(
'name' => __('Show header widget areas', 'wpv'),
'desc' => __('These can be configured from "Vamtam" -> "Theme options" -> "Header"', 'wpv'),
'image' => WPV_ADMIN_ASSETS_URI.'images/header-sidebars-1.png',
'id' => 'show_header_sidebars',
'type' => 'toggle',
'default' => wpv_get_option('has-header-sidebars'),
),
array(
'name' => __('Show page title header', 'wpv'),
'id' => 'show_page_header',
'only' => 'page',
'type' => 'toggle',
'default' => wpv_get_option('has-page-header'),
),
array(
'name' => __('Custom background color', 'wpv'),
'desc' => __('Leave blank to use default setting', 'wpv'),
'id' => 'background_color',
'type' => 'color',
'default' => '',
),
array(
'name' => __('Custom background image url', 'wpv'),
'desc' => __('Leave blank to use default setting', 'wpv'),
'id' => 'background_image',
'type' => 'upload',
'default' => '',
),
array(
'name' => __('Custom background image repeat', 'wpv'),
'id' => 'background_repeat',
'type' => 'select',
'options' => array(
'' => 'Use default',
'no-repeat' => 'No repeat',
'repeat-x' => 'Repeat horizontally',
'repeat-y' => 'Repeat vertically',
'repeat' => 'Repeat both',
)
),
array(
'name' => __('Featured image position', 'wpv'),
'id' => 'img_style',
'only' => 'post',
'type' => 'select',
'default' => wpv_get_option('single-featured-image-position'),
'options' => array(
'fullimage' => __('Full width', 'wpv'),
'sideimage' => __('Left', 'wpv'),
'right sideimage' => __('Right', 'wpv'),
)
),
array(
'name' => __('Slider', 'wpv'),
'type' => 'separator'
),
array(
'name' => __('Show slider in header', 'wpv'),
'id' => 'show_header_slider',
'type' => 'toggle',
'default' => wpv_get_option('has-header-slider'),
),
array(
'name' => __('Slider style', 'wpv'),
'id' => 'slider-effect',
'type' => 'select',
'default' => wpv_get_option('header-slider-effect'),
'options' => $wpv_slider_effects,
),
array(
'name' => __('Show full width slider', 'wpv'),
'id' => 'slider-fullwidth',
'type' => 'toggle',
'default' => wpv_get_option('has-fullwidth-slider'),
),
array(
'name' => __('Show slides only from these categories', 'wpv'),
'id' => 'slider_categories',
'type' => 'multiselect',
'default' => '',
'options' => array(),
'target' => 'slideshow_category',
),
array(
'name' => __('Post format settings', 'wpv'),
'only' => 'post',
'type' => 'separator',
),
array(
'name' => __('Link', 'wpv'),
'desc' => __('Used in the "quote", "link", "audio" and "video" formats', 'wpv'),
'id' => 'post-link',
'only' => 'post',
'type' => 'text',
'default' => '',
),
array(
'name' => __('Quote author', 'wpv'),
'desc' => __('Used in the "quote" format', 'wpv'),
'id' => 'quote-author',
'only' => 'post',
'type' => 'text',
'default' => '',
),
array(
'name' => __('Portfolio', 'wpv'),
'only' => 'portfolio',
'type' => 'separator',
),
array(
'name' => __('Portfolio data type', 'wpv'),
'desc' => __('Image - uses the featured image (default)<br />
Gallery - use the featured image as a title image, but add more image via the form below
Video/Link - uses the "portfolio data url" setting<br />
Document - acts like a normal post
', 'wpv'),
'id' => 'portfolio_type',
'only' => 'portfolio',
'type' => 'select',
'options' => array(
'image' => 'Image',
'gallery' => 'Gallery',
'video' => 'Video',
'link' => 'Link',
'document' => 'Document',
),
'default' => 'image',
),
array(
'name' => __('Portfolio data url', 'wpv'),
'id' => 'portfolio_data_url',
'type' => 'text',
'only' => 'portfolio',
'default' => '',
),
array(
'name' => __('Portfolio video width', 'wpv'),
'desc' => __('Only applicable if the Portfolio data type is "Video"', 'wpv'),
'id' => 'portfolio_video_width',
'type' => 'range',
'min' => 0,
'max' => 1200,
'only' => 'portfolio',
'default' => 640,
),
array(
'name' => __('Portfolio video height', 'wpv'),
'desc' => __('Only applicable if the Portfolio data type is "Video"', 'wpv'),
'id' => 'portfolio_video_height',
'type' => 'range',
'min' => 0,
'max' => 1200,
'only' => 'portfolio',
'default' => 360,
),
array(
'name' => __('Portfolio link target', 'wpv'),
'desc' => __('Only applicable if the Portfolio data type is "Link"', 'wpv'),
'id' => 'portfolio_link_target',
'type' => 'select',
'options' => array(
'_self' => 'Same window',
'_blank' => 'New window',
),
'only' => 'portfolio',
),
array(
'name' => __('Portfolio gallery', 'wpv'),
'id' => 'gallery_ids',
'type' => 'portfolio_gallery',
'only' => 'portfolio'
),
);