JavaScript en las plantillas
Está disponible jQuery en modo compatibilidad (empezando por jQuery() en lugar de $().
Estilos del tema base
El ficheros portadas.css debe cumplir algunas normas para su correcto funcionamiento.
- Contendrá sólo estilos de clases. (No se podrán incluir por tag o por identificador)
- Los elementos tendrán un nivel
- Los estilos por defecto no se pueden borrar
Existen elementos base por defecto como son .page_widget, .page_column, .page_layer y page_page.
Tipos de widget:
- General
- Section
- Article
- Author (list, item)
- Image (list, author, item)
- Álbum
- Poll (list, vote, result)
- Contact
- Tag (list, item)
- Estatica
- Agenda (list, item)
Tamaños de widget:
- Front - Pensado para un tercio de pantalla
- Full Pensado para dos o tres tercios de pantalla en escritorio
- Mobile - Pensado para contenido de movil
Estado de propiedades de widget :
- dynamic
- fixed - Esta propiedad no es editable
Widget column, section, tag y author
Tipo: General
Tamaño: Front
Nombre: column, section, tag y author
Descripción:
Estilo por defecto: front_widget
Plantilla:
Propiedades:
Campo
|
Descripción
|
Valor por defecto
|
Estado
|
header_style
|
|
front_header
|
|
title_style
|
|
front_title
|
|
summary_style
|
|
front_summary
|
|
section_style
|
|
front_section
|
|
comments_style
|
|
front_comments
|
|
photo_style
|
|
|
|
header_display
|
|
|
|
title_display
|
|
1
|
|
summary_display
|
|
1
|
|
antetitle_display
|
|
|
|
section_display
|
|
|
|
comments_display
|
|
1
|
|
photo_position
|
|
left
|
|
template_file
|
|
column_view.tpl
|
|
Otras propiedades:
Widget columnistas
Tipo: General
Tamaño: Front
Nombre: columnists
Descripción:
Plantilla:
Propiedades:
Campo
|
Descripción
|
Valor por defecto
|
Estado
|
header_style
|
|
columnists_header
|
|
title_style
|
|
columnists_title
|
|
summary_style
|
|
columnists_summary
|
|
antetitle_style
|
|
|
|
section_style
|
|
columnists_section
|
|
photo_style
|
|
columnists_photo
|
|
header_display
|
|
|
|
title_display
|
|
1
|
|
summary_display
|
|
1
|
|
antetitle_display
|
|
|
|
section_display
|
|
|
|
header_text
|
|
Firmas de opinión
|
|
section_id
|
|
|
dynamic
|
template_file
|
|
columnists_view.tpl
|
|
Widget header
Tipo: General
Tamaño: Front
Nombre: header
Descripción:
Plantilla:
Propiedades:
Campo
|
Descripción
|
Valor por defecto
|
Estado
|
title_display
|
|
1
|
|
title_style
|
|
header_title
|
fixed
|
subtitle_style
|
|
header_subtitle
|
fixed
|
subtitle_display
|
|
1
|
|
image_id
|
|
|
|
image_display
|
|
0
|
|
image_style
|
|
header_logo
|
fixed
|
date_style
|
|
header_date
|
fixed
|
date_display
|
|
1
|
|
Widget menu
Tipo: General
Tamaño: Front
Nombre: menu
Descripción:
Plantilla:
Campo
|
Descripción
|
Valor por defecto
|
Estado
|
menu_list_style
|
|
menu_list
|
fixed
|
menu_item_style
|
|
menu_item
|
fixed
|
menu_current_style
|
|
menu_current
|
fixed
|
submenu_list_style
|
|
submenu_list
|
fixed
|
submenu_item_style
|
|
submenu_item
|
fixed
|
submenu_current_style
|
|
submenu_current
|
fixed
|
Widget populares
Tipo: General
Tamaño: Front
Nombre: popular
Descripción:
Plantilla:
Campo
|
Descripción
|
Valor por defecto
|
Estado
|
header_style
|
|
popular_header
|
|
title_style
|
|
popular_title
|
|
header_text
|
|
Populares
|
|
header_display
|
|
1
|
|
count
|
|
5
|
|
Widget RSS
Tipo: General
Tamaño: Front
Nombre: rss
Descripción:
Plantilla:
Widget Twitter oficial
Tipo: General
Tamaño: Front
Nombre: twitterofficial
Descripción:
Plantilla:
Propiedades:
Campo
|
Descripción
|
Valor por defecto
|
Estado
|
type
|
|
search
|
|
search
|
Búsqueda a mostrar
|
pymes
|
|
interval
|
|
5000
|
|
title
|
|
Twitter #pyme
|
|
height
|
|
250
|
|
shell_background
|
|
#336699
|
|
shell_color
|
|
#ffffff
|
|
tweets_backgroud
|
|
#ffffff
|
|
tweets_color
|
|
#333333
|
|
tweets_links
|
|
#336699
|
|
Widget Twitter
Tipo: General
Tamaño: Front
Nombre: twitter
Descripción:
Plantilla:
Campo
|
Descripción
|
Valor por defecto
|
Estado
|
type
|
|
search
|
|
search
|
Búsqueda a mostrar
|
bigpress
|
|
interval
|
|
5000
|
|
title
|
|
|
|
height
|
|
250
|
|
shell_background
|
|
|
|
shell_color
|
|
|
|
tweets_backgroud
|
|
|
|
tweets_color
|
|
|
|
tweets_links
|
|
|
|
Widget Weather
Tipo: General
Tamaño: Front
Nombre: weather
Descripción:
Plantilla:
Campo
|
Descripción
|
Valor por defecto
|
Estado
|
city
|
|
madrid
|
|
country
|
|
ES
|
|
Widget Facebook Activity
Tipo: General
Tamaño: Front
Nombre: facebookactivity
Descripción:
Plantilla:
Propiedades:
Campo
|
Descripción
|
Valor por defecto
|
Estado
|
site
|
|
bigpress.net
|
dynamic
|
width
|
|
300
|
|
height
|
|
300
|
|
header
|
|
true
|
|
recommendations
|
|
false
|
|
Widget Facebook Like
Tipo: General
Tamaño: Front
Nombre: facebooklike
Descripción:
Plantilla:
Propiedades:
Widget DFP
Tipo: General
Tamaño: Front
Nombre: dfp
Descripción:
Plantilla:
Propiedades:
Campo
|
Descripción
|
Valor por defecto
|
Estado
|
width
|
|
300
|
|
height
|
|
250
|
|
adunit_id
|
|
|
|
dfp_account_id
|
|
|
|
Duda: Añadir campo estilo a la tabla?
Widget Adsense
Tipo: General
Tamaño: Front
Nombre: adsense
Descripción:
Plantilla:
Propiedades:
Campo
|
Descripción
|
Valor por defecto
|
Estado
|
width
|
|
300
|
|
height
|
|
250
|
|
adunit_code
|
|
|
|
client_id
|
|
|
|
Widget OpenX
Tipo: General
Tamaño: Front
Nombre: openx
Descripción:
Plantilla:
Propiedades:
Campo
|
Descripción
|
Valor por defecto
|
Estado
|
location
|
|
adserver.bigpress.net
|
|
zoneid
|
|
1
|
|
width
|
|
|
|
height
|
|
|
|
Otros estilos:
Widget Followme
Tipo: General
Tamaño: Front
Nombre: followme
Descripción:
Plantilla:
Propiedades:
Campo
|
Descripción
|
Valor por defecto
|
Estado
|
rss
|
Mostrar RSS
|
1
|
|
twitter
|
Mostrar Twitter
|
bigpress
|
|
Widget Carrusel
Tipo: General
Tamaño: Front
Nombre: carousel
Descripción:
Plantilla:
Propiedades:
Campo
|
Descripción
|
Valor por defecto
|
Estado
|
speed
|
|
6000
|
|
height
|
|
200
|
|
title_style
|
|
carousel-title
|
fixed
|
summary_style
|
|
carousel-summary
|
fixed
|
Estilos:
- carousel-title
- carousel-summary
Widget Agenda
Listado de eventos de la agenda
Tipo: General
Tamaño: Front
Nombre: agendalist
Descripción:
Plantilla: No disponible
Propiedades:
Campo
|
Descripción
|
Valor por defecto
|
Estado
|
header
|
Texto de la cabecera
|
|
new
|
header_display
|
Determina si se muestra la cabecera
|
|
new
|
summary_display
|
Determina si se muestra el resumen
|
|
new
|
count
|
Número de elementos
|
5
|
new
|
Estilos:
- agendalist_header - Cabecera del widget
- agendalist_title - Titulo del evento
- agendalist_date - Fecha del evento
- agendalist_summary - Resumen del evento
Widget Agenda Calendar
Calendario con agenda
Si hay un sólo evento ese día te llevará a este directamente. Si hay varios te llevará a todos los del día.
Tipo: General
Tamaño: Front
Nombre: agendacalendar
Plantilla: No disponible
Propiedades:
Campo
|
Descripción
|
Valor por defecto
|
Estado
|
header
|
Texto de la cabecera
|
|
new
|
header_display
|
Determina si se muestra la cabecera
|
|
new
|
Estilos:
- agendacalendar_header - Cabecera del widget
- agendacalendar_month - Nombre del mes
- agendacalendar_active - Estilo de fecha del mes activa (tiene eventos)
- agendacalendar_inactive - Estilo de fecha del mes no activa
- agendacalendar_prev - Estilo de enlace a mes anterior (No se usa)
- agendacalendar_next - Estilo de enlace a mes posterior (No se usa)
Widget Agenda main
Ficha de evento de la agenda
(En realidad de momento es una página, no un widget)
Tamaño: Full
Nombre: agendamain
Plantilla: agenda_main.tpl
Variables
- event - Objeto tipo event
Estilos
- agendamain_title
- agendamain_date
- agendamain_summary
- agendamain_location
- agendamain_address
- agendamain_map
Widget agenda list
Listado de eventos de la agenda
(En realidad de momento es una página, no un widget)
Tamaño: Full
Nombre: agendalist
Plantilla: agenda_list.tpl
Variables
- event - Lista de objetos tipo event
Estilos:
- agendalist_title
- agendalist_date
- agendalist_summary
Widget Álbumes
Tipo: General
Tamaño: Front
Nombre: albums
Descripción:
Plantilla:
Propiedades:
Campo
|
Descripción
|
Valor por defecto
|
Estado
|
header_style
|
|
front_header
|
|
title_style
|
|
front_title
|
|
photo_style
|
|
|
|
count
|
|
5
|
|
Otras propiedades:
Widget noticia_main
Tipo: Article
Tamaño: Front
Nombre: article_content
Descripción:
Plantilla: noticia_main.tpl
Otros estilos:
Propiedades:
Campo
|
Descripción
|
Valor por defecto
|
Estado
|
tags_style
|
|
article_tags
|
fixed
|
content_style
|
|
article_content
|
fixed
|
title_style
|
|
article_title
|
fixed
|
kicker_style
|
antetitulo
|
article_kicker
|
fixed
|
author_style
|
|
article_author
|
fixed
|
author_photo_style
|
|
article_author_photo
|
fixed
|
author_twitter_style
|
|
article_author_twitter
|
fixed
|
author_name_style
|
%antes article_author
|
article_author_name
|
fixed
|
date_style
|
|
article_date
|
fixed
|
kicker_style
|
|
article_kicker
|
fixed
|
Widget noticia_related
Tipo: Article
Tamaño: Front
Nombre: article_related
Descripción:
Plantilla:
Propiedades:
Campo
|
Descripción
|
Valor por defecto
|
Estado
|
related_title
|
|
|
|
related_summary
|
|
|
|
Widget article_share
Tipo: Article
Tamaño: Front
Nombre: article_social
Descripción:
Plantilla:
Widget comment
Tipo: Article
Tamaño: Front
Nombre: article_comments
Descripción:
Plantilla:
En realidad deberia aplicarse a mas tipos de pagina pero empezarmeos por los articulos
Luego servira para encuestas, imágenes, etc.
Propiedades:
Campo
|
Descripción
|
Valor por defecto
|
Estado
|
comment_header
|
texto que pone comentarios "Comentarios"
|
|
|
comment_photo
|
|
|
|
comment_author
|
|
|
|
comment_content
|
|
|
|
comment_submit
|
|
|
|
Widget albums_main
Tipo: Galería
Tamaño: Front
Nombre: gallery_main
Descripción:
Plantilla: albums_main_view.tpl
Widget encuesta_last
Tipo: Encuestas
Tamaño: Front
Nombre: poll_main
Descripción:
Plantilla:
Vision general así como comentarios
poll_title
poll_results
poll_option
poll_header
Widget poll_main
Tipo: Encuestas
Tamaño: Front
Nombre: poll_main
Descripción:
Plantilla:
Vision general así como comentarios
poll_title
Widget encuesta_list
Tipo: encuesta
Tamaño: Front
Nombre: poll_list
Descripción:
Plantilla:
Listado de últimas encuestas
Widget photo_main
Tipo: Photo
Tamaño: Front
Nombre: photo_main
Descripción:
Plantilla: cartoons_item
Propiedades:
Campo
|
Descripción
|
Valor por defecto
|
Estado
|
cartoons_author_name
|
|
|
|
cartoons_author_blog
|
|
|
|
cartoons_date
|
|
|
|
cartoons_photo
|
|
|
|
cartoons_title
|
|
|
|
Widget author_profile
Tipo: Author
Tamaño: Full
Nombre: author_profile
Descripción:
Plantilla:
Propiedades:
Campo
|
Descripción
|
Valor por defecto
|
Estado
|
profile_article_title
|
|
|
|
profile_article_antetile
|
|
|
|
profile_article_date
|
|
|
|
profile_name
|
|
|
|
profile_blog
|
|
|
|
profile_photo
|
|
|
|
profile_bio
|
|
|
|
Muestra la foto del perfil de un autor
Widget author_articles
Tipo: Author
Tamaño: Full
Nombre: author_articles
Descripción:
Plantilla:
Ultimos articulos de un autor
Widget estatica_main
Tipo: General
Tamaño: Front
Nombre: estatica_main
Descripción:
Plantilla:
Propiedades:
Campo
|
Descripción
|
Valor por defecto
|
Estado
|
estatica_title
|
|
|
|
estatica_content
|
|
|
|
Widget tags_main
Tipo: General
Tamaño: Front
Nombre: tags_main
Descripción:
Plantilla:
Widget contact
Tipo: General
Tamaño: Full
Nombre: contact
Descripción:
Plantilla: