Arteleku Update 2017

This commit is contained in:
root 2017-12-15 01:09:28 +01:00
commit 56634817a8
64 changed files with 3204 additions and 0 deletions

85
CHANGELOG.txt Normal file
View File

@ -0,0 +1,85 @@
Title 7.x-1.x, xxxx-xx-xx
-------------------------
#1708046 by plach | steinmb: Fixed Term description is overwritten.
#1709938 by Amitaibu: Prevented notice in title_field_attach_create_bundle().
#1541414 by peximo, plach | int_ua: Added No 'Link this field to the original
piece of content' option in Views UI for fields replaced with Title module.
#1704536 by RoySegall, Amitaibu, plach: Attach title field automatically when a
new entity bundle is created.
#1699092 by plach: Fixed Notices when submitting an empty taxonomy term
description.
#1665006 by mikey_p: Fixed Doesn't work when legacy title field is NULL.
#1613514 by steven.wichers, Amitaibu: Fixed Importing nodes in bulk fail to
create titles for all nodes after the first one.
#1644736 by plach: Fixed When initializing replaced fields all bundles are
processed.
#1631958 by plach | Goekmen: Fixed Undefined index: base path in
EntityTranslationDefaultHandler.
#1635006 by nikosnikos: Fixed Description summary desappear in taxonomy term.
#1528590 by torrance123, JonMcL: Fixed Reference to $form_state['values'] is
altering Views Bulk Operations modify action form submit.
#1445848 by danielnolde: Added Retain the original legacy field value to entity
in sync.
#1620986 by plach: Perform reverse synchronization more reliably.
#1519930 by plach, steinmb: Use the upcoming entity_language() function to
determine the entity language.
#1586002 by plach, Pisco: (follow-up) Fixed notices when changing node language.
Title 7.x-1.0-alpha3, 2012-06-05
--------------------------------
#1586002 by plach, Pisco | liquidcms: Fixed Entity language handling broken.
#1608980 by helior: Fixed Possible undefined indexes in
title_field_replacement_info().
#1362790 by colan, amateescu: Fixed Undefined property: stdClass::$title in
title_entity_update().
#1433060 by plach: Added Allow to use entity label fields in the entity content
area.
#1367118 by plach | BrightBold: Fixed Wrong menu item declaration for the field
replacement callback.
#1357220 by colan: Fixed Module should be listed in the Fields package.
#1323288 by das-peter: Fixed entitycache integration.
Title 7.x-1.0-alpha2, 2011-09-09
--------------------------------
#1229892 by plach | chrisdolby: Fixed Strict warning: Only variables should be
assigned by reference in title_field_attach_submit() - line 482 of
title.module.
#1219860 by plach, claudiu.cristea: Fixed Undefined index 'format'.
#1210670 by claudiu.cristea, das-peter | vasike: Fixed Entity translation errors
for Taxonomies entities.
Title 7.x-1.0-alpha1, 2011-09-07
--------------------------------
#1200320 by das-peter: Fixed Call field_attach_presave() before
field_attach_update() in field replacement batch.
#1155128 by das-peter | Dave Reid, plach: Enhanced support for tokens.
#1169394 by plach: Synchronized code after core fixes.
#1146724 by plach | das-peter, joostvdl: Fixed Replacing field values are not
initialized.
#1157438 by das-peter: Fixed Reset sync cache on entitycache reset.
#1116586 by plach | tte: Fixed Exception when a node's title is not converted
immediately.
#1138646 by plach | joostvdl, sun: Fixed Notice: Undefined index: label in
entity_get_info().
#1141674 by plach | manveru: Fixed Notices about missing $description.
#924968 by plach: Updated the change log.
#924968 by plach: Improved comments/PHP docs.
#924968 by plach: Introduced tests for field replacement UI.
#924968 by plach: Fixed field replacement checkbox broken.
#924968 by plach: Polished API as title_field_replacement_toggle does not belong
to title.admin.inc.
#924968 by plach: Fixed comments/PHP docs.
#924968 by plach: Disabled entity_label() support until #1096446 is fixed.
#924968 by plach: Introduced tests for field replacement workflow.
#924968 by plach: Moved administration code into title.admin.inc.
#924968 by plach: Added entity_label() support.
#924968 by plach: Fixed resave needed if field values altered before save.
#924968 by plach: Fixed entity forms to support nested subforms.
#924968 by plach: Added PHP docs.
#924968 by plach, das-peter, sun, fago, klonos: Introduced field replacement API
and UI.
by sun: Initial baseline of module files.

339
LICENSE.txt Normal file
View File

@ -0,0 +1,339 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.

37
README.txt Normal file
View File

@ -0,0 +1,37 @@
-- SUMMARY --
Title module allows entity titles/labels to be fully translatable.
For a full description of the module, visit the project page:
http://drupal.org/project/title
To submit bug reports and feature suggestions, or to track changes:
http://drupal.org/project/issues/title
-- REQUIREMENTS --
* @todo
-- INSTALLATION --
* Install as usual, see http://drupal.org/node/70151 for further information.
-- CONFIGURATION --
* @todo
-- USAGE --
* @todo
-- CONTACT --
Current maintainers:
* Francesco Placella (plach) - http://drupal.org/user/183211
* Daniel F. Kudwien (sun) - http://drupal.org/user/54136

4
arteleku.info Normal file
View File

@ -0,0 +1,4 @@
name = Arteleku
description = Modulo que amplia las funcionalidades de Drupal con elementos específicos para la web de Arteleku.
core = 7.x

7
arteleku.install Normal file
View File

@ -0,0 +1,7 @@
<?php
/**
* @file
* Installation functions for the Title module.
*/

482
arteleku.module Normal file
View File

@ -0,0 +1,482 @@
<?php
/**
* Implements hook_ctools_plugin_directory().
*/
function arteleku_ctools_plugin_directory($module, $plugin) {
if ($module == 'panels' && $plugin == 'layouts') {
return 'plugins/layouts';
}
if ($module == 'panels' && $plugin == 'styles') {
return 'plugins/styles';
}
}
/**
* Define information about image effects provided by a module.
*
* This hook enables modules to define image manipulation effects for use with
* an image style.
*
* @return
* An array of image effects. This array is keyed on the machine-readable
* effect name. Each effect is defined as an associative array containing the
* following items:
* - "label": The human-readable name of the effect.
* - "effect callback": The function to call to perform this image effect.
* - "dimensions passthrough": (optional) Set this item if the effect doesn't
* change the dimensions of the image.
* - "dimensions callback": (optional) The function to call to transform
* dimensions for this effect.
* - "help": (optional) A brief description of the effect that will be shown
* when adding or configuring this image effect.
* - "form callback": (optional) The name of a function that will return a
* $form array providing a configuration form for this image effect.
* - "summary theme": (optional) The name of a theme function that will output
* a summary of this image effect's configuration.
*
* @see hook_image_effect_info_alter()
*/
function arteleku_image_effect_info() {
$effects = array();
$effects['arteleku'] = array(
'label' => t('Arteleku'),
'help' => t('Cambia la saturación, el contraste y la opacidad.'),
'dimensions passthrough' => TRUE,
'effect callback' => 'arteleku_special_effect'
);
return $effects;
}
function arteleku_special_effect($image, $data = array()){
return image_toolkit_invoke('arteleku', $image, array($data));
}
function image_gd_arteleku($image, $data = array()){
// imagefilter($image->resource, IMG_FILTER_CONTRAST, 30);
//imagefilter($image->resource, IMG_FILTER_BRIGHTNESS, 75);
imagefilter($image->resource, IMG_FILTER_GRAYSCALE);
return TRUE;
}
function arteleku_views_slideshow_widget_pager_info($view) {
return array(
'arteleku_simple_pager' => array(
'name' => t('Simple counter'),
),
);
}
/**
* Implements hook_theme().
*/
function arteleku_theme($existing, $type, $theme, $path) {
return array(
'arteleku_simple_pager' => array(
'variables' => array('vss_id' => NULL, 'view' => NULL, 'settings' => array(), 'location' => NULL, 'attributes' => array()),
'template' => 'theme/views-slideshow-pager-fields',
'path' => drupal_get_path('module', 'views_slideshow'),
),
);
}
/**
* Template preprocess function for Views Slideshow simple pager.
*/
function template_preprocess_arteleku_simple_pager(&$vars) {
// Call the fields pager preprocess function.
_views_slideshow_preprocess_views_slideshow_pager_fields($vars);
// Override the (empty) rendered field items with our simple pager.
$vars['rendered_field_items'] = '';
foreach ($vars['view']->result as $count => $node) {
$vars['rendered_field_items'] .= theme('views_slideshow_pager_field_item', array('vss_id' => $vars['vss_id'], 'item' => "<span class='pager'> </span>", 'count' => $count, 'location' => $vars['location']));
}
// Clone the pager fields JavaScript object and methods.
drupal_add_js('Drupal.artelekuSimplePager = Drupal.viewsSlideshowPagerFields || {};', 'inline');
drupal_add_css(drupal_get_path('module', 'arteleku') . '/css/slideshow_pager.css');
// var_dump($vars);
}
/**
* Implements hook_block_info().
*/
function arteleku_block_info() {
$blocks = array();
$blocks['historico'] = array(
'info' => t('Histórico de años'),
'cache' => DRUPAL_CACHE_GLOBAL,
);
$blocks['alfabeto'] = array(
'info' => t('Alfabeto'),
'cache' => DRUPAL_CACHE_GLOBAL,
);
return $blocks;
}
/**
* Implements hook_block_configure().
*/
function arteleku_block_configure($delta='') {
$form = array();
switch($delta) {
case 'historico' :
// Text field form element
$form['inicio'] = array(
'#type' => 'textfield',
'#title' => t('Fecha de inicio del listado histórico'),
'#size' => 60,
'#maxlength' => 128,
'#default_value' => variable_get('arteleku_historico_inicio', '2000'),
);
$form['vista'] = array(
'#type' => 'textfield',
'#title' => t('path de la vista'),
'#size' => 60,
'#maxlength' => 128,
'#default_value' => variable_get('arteleku_historico_vista', 'historico'),
);
break;
}
return $form;
}
/**
* Implements hook_block_save().
*/
function arteleku_block_save($delta = '', $edit = array()) {
switch($delta) {
case 'historico' :
variable_set('arteleku_historico_inicio', $edit['inicio']);
variable_set('arteleku_historico_vista', $edit['vista']);
break;
}
}
/**
* Implements hook_block_view().
*/
function arteleku_block_view($delta='') {
$block = array();
switch($delta) {
case 'historico' :
$block['content'] = _arteleku_historico_view();
break;
case 'alfabeto':
$block['content'] = _arteleku_alfabeto_view();
break;
}
return $block;
}
/**
* Implements hook_field_formatter_info().
*/
function arteleku_field_formatter_info() {
return array(
'arteleku_mime' => array(
'label' => t('Tipo de archivo'),
'field types' => array('file')
),
'arteleku_registration' => array(
'label' => t('Registration Arteleku Type'),
'field types' => array('registration')
),
'arteleku_file_tarjeta' => array(
'label' => t('Tarjeta'),
'field types' => array('file')
),
'arteleku_document' => array(
'label' => t('Link to Document'),
'field types' => array('file')
)
);
}
function arteleku_file_formatter_info(){
$formatters['arteleku_hover_image'] = array(
'label' => t('Hover'),
'file types' => array('video', 'image'),
'default settings' => array(
'image_style_back' => '',
'image_style_front' => ''
),
'view callback' => 'arteleku_hover_image_formatter_image_view',
'settings callback' => 'arteleku_hover_image_formatter_image_settings',
);
return $formatters;
}
function arteleku_hover_image_formatter_image_view($file, $display, $langcode){
$scheme = file_uri_scheme($file->uri);
$tipo = $file->type;
$current_node = arg(1);
$image_style = $display['settings']['image_style_back'];
$image_style_front = $display['settings']['image_style_front'];
$link_to_node = $display['settings']['link_to_reference'];
$valid_image_styles = image_style_options(FALSE);
$referencing_node = $file->referencing_entity->nid;
$nodeurl = '';
if ($referencing_node != $current_node){
$nodeurl = url('node/'. $referencing_node);
//Load the entity
$entity = entity_load('node', array($referencing_node));
//Get the entity type
if($entity){
$ent = $entity[$referencing_node];
$e_type = $ent->type;
$langcode_s = entity_language('node', $ent);
if ($e_type == "enlace"){
//Aquí es donde tenemos que cambiar el enlace del nodo!!!
if (isset($ent->field_enlace[$langcode][0])){
$nodeurl = url($ent->field_enlace[$langcode][0]['url']);
}elseif (isset($ent->field_enlace[$langcode_s][0])) {
$nodeurl = url($ent->field_enlace[$langcode_s][0]['url']);
}
}
}
}
$fondo="";
$frente="";
if($type = 'image'){
$alt = "";
if( isset($file->field_file_image_alt_text['und'][0]['value']) ){
$alt = $file->field_file_image_alt_text['und'][0]['value'];
}
$fondo = theme('image_style', array('path' => $file->uri, 'style_name' => $image_style, 'alt' => $alt));
$frente = theme('image_style', array('path' => $file->uri, 'style_name' => $image_style_front, 'title' => $alt));
}else{
if ($scheme == 'vimeo') {
$wrapper = file_stream_wrapper_get_instance_by_uri($file->uri);
$fondo = theme('image_style', array('path' => $wrapper->getLocalThumbnailPath(), 'style_name' => $image_style, 'title' => $file->alt));
$frente = theme('image_style', array('path' => $wrapper->getLocalThumbnailPath(), 'style_name' => $image_style_front, 'title' => $file->alt));
}
}
$marcado = "";
if($fondo != '' && $frente != ""){
$marcado = "<div class='hover-fondo-normal'>$fondo</div><div class='hover-fondo-hover'>";
if($nodeurl != ''){
$marcado .= "<a href='$nodeurl'>$frente</a></div>";
}else{
$marcado .= "$frente</div>";
}
}
$element[] = array(
'#markup' => $marcado
);
return $element;
}
function arteleku_hover_image_formatter_image_settings($form, &$form_state, $settings){
$element = array();
$element['image_style_back'] = array(
'#title' => t('Image style Back'),
'#type' => 'select',
'#options' => image_style_options(FALSE),
'#default_value' => $settings['image_style_back'],
'#empty_option' => t('None (original image)'),
);
$element['image_style_front'] = array(
'#title' => t('Image style Front'),
'#type' => 'select',
'#options' => image_style_options(FALSE),
'#default_value' => $settings['image_style_front'],
'#empty_option' => t('None (original image)'),
);
return $element;
}
/**
* Implements hook_field_formatter_view().
*/
function arteleku_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
$element = array(); // Initialize the var
switch ($display['type']) {
case 'arteleku_mime':
foreach ($items as $item) {
$mime = ucwords($item['type']);
$element[] = array(
'#markup' => "<div class='mime-info'>$mime</div>"
);
}
break;
case 'arteleku_file_tarjeta':
foreach ($items as $item) {
$mime = file_get_mimetype($item['uri']);
$mime = explode('/',$mime);
$mime = ucwords(array_pop($mime));
$title = field_get_items($entity_type, $entity,'title_field');
$uri = file_create_url($item['uri']);
$link = l($title[0]['value'], $uri);
if ($mime == "Vimeo"){
$uri = entity_uri($entity_type, $entity);
$link = l($title[0]['value'], $uri['path']);
}
$element[] = array(
'#markup' => "<div class='tarjeta'><div class='inside'><div class='field'><h3>$link</h3></div><div class='mini-tarjeta-abajo field'><div class='mime-info'>$mime</div></div></div></div>"
);
}
break;
case 'arteleku_registration';
list($entity_id) = entity_extract_ids($entity_type, $entity);
$settings = registration_entity_settings($entity_type, $entity_id);
//dpm($settings);
/*Fechas:
OPEN: $settings[open];
CLOSE: $settings[close];
*/
// Enable registration link if accessible.
$mostrar = FALSE;
$espacio = registration_has_room($entity_type, $entity_id);
$estado = $settings['status'];
$texto = "";
$registro = FALSE;
if (!$estado){
break;
}
if($settings['close'] && $settings['open']){
$format = "Y-m-d H:i:s";
$open = DateTime::createFromFormat($format, $settings['open']);
$close = DateTime::createFromFormat($format, $settings['close']);
$now = new DateTime();
if(($open <= $now) && ($now<=$close) && $espacio){
$mostrar = TRUE;
$formato = variable_get('date_format_corto_sin_hora', 'm/d/Y');
$desde = $open->format($formato);
$hasta = $close->format($formato);
//$texto = '<p>' . t('Abierta hasta el') . ' <span class="register-date">' . $hasta . '</span></p>';
$texto = '<p>' . t("Open until !fecha", array('!fecha' => '<span class="register-date">' . $hasta . '</span>')) .'</p>';
$registro = TRUE;
}elseif (($open <= $now) && ($now<=$close) && !$espacio){
$texto = '<p>' . t('Full event') . '</p>';
$registro = FALSE;
}else{
$texto = '<p>' . t('Closed') . '</p>';
$registro = FALSE;
}
}
if (registration_register_page_access($entity_type, $entity) && $registro) {
$uri = entity_uri($entity_type, $entity);
$element[0] = array(
'#markup' => $texto . theme('registration_link',
array(
'label' => t('Register'),
'path' => $uri['path'] . '/register',
)
)
);
}elseif($registro && !user_is_logged_in()){
$texto .= '<p>' . t('You need to be logged in for register.') . '</p>';
$current = current_path();
$element[0] = array('#markup' => $texto . l(t('Register'), "user", array( 'query'=>array('current'=>$current), 'html' => TRUE, 'attributes' => array('class'=>'register-link'))));
}elseif (!$registro){
$element[0] = array('#markup' => $texto);
}else{
$texto = '<p>' . t('You are already registered.') . '</p>';
$element[0] = array('#markup' => $texto);
}
break;
case 'arteleku_document':
//var_dump($items);
foreach ($items as $item) {
$uri = file_create_url($item['uri']);
$texto = t('Download');
$element[] = array(
'#markup' => "<a href='$uri'>$texto</a>"
);
}
break;
default:
# code...
break;
}
return $element;
}
function arteleku_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == "registration_entity_settings_form"){
$form['scheduling']['open']['#type'] = 'date_popup';
$form['scheduling']['open']['#date_format'] = 'Y-m-d';
$form['scheduling']['close']['#type'] = 'date_popup';
$form['scheduling']['close']['#date_format'] = 'Y-m-d';
$form['reminder']['reminder_settings']['reminder_date']['#type'] = 'date_popup';
$form['reminder']['reminder_settings']['reminder_date']['#date_format'] = 'Y-m-d';
}elseif ($form_id =="galleria_form_optionset_edit") {
$estilos = file_entity_view_mode_labels();
$form['image_styles']['thumb']['#options'] = $estilos;
$form['image_styles']['normal']['#options'] = $estilos;
$form['image_styles']['big']['#options'] = $estilos;
}
}
/**
* Custom function to assemble renderable array for block content.
* Returns a renderable array with the block content.
* @return
* returns a renderable array of block content.
*/
function _arteleku_historico_view() {
$block = '<ul>';
$actual = arg(1);
$inicio = variable_get('arteleku_historico_inicio', '2000');
$vista = variable_get('arteleku_historico_vista', 'historico');
$years = range(date("Y"), $inicio);
if ($actual != ''){
$actual = intval($actual);
}
foreach ($years as $key => $year) {
if ($year == $actual){
$block .= '<li class="selected-year">' . l($year, $vista . '/' . $year) . '</li>';
}else{
$block .= '<li>' . l($year, $vista . '/' . $year) . '</li>';
}
}
$block .= '</ul>';
return $block;
}
function _arteleku_alfabeto_view() {
$block = '<div class="isotope-options isotope-block"><ul class="isotope-filters option-set clearfix" data-option-key="filter">';
$block .= '<li><a href="#filter" data-option-value="*" class="selected">' . t("Todo") . '</a></li>';
$letters = range('a', 'z');
foreach ($letters as $key => $letter) {
$uc = strtoupper($letter);
$block .= "<li><a class='filterbutton' data-option-value='.$letter' href='#filter'>$uc</a></li>";
}
$block .= '</ul></div>';
return $block;
}

13
css/slideshow_pager.css Normal file
View File

@ -0,0 +1,13 @@
.pager{
display: block;
background-image: url("../img/pager_dis.png");
width: 16px;
height: 16px;
float: left;
cursor:pointer;
margin: 11px 4px 11px 4px;
}
.views_slideshow_pager_field_item.active .pager{
background-image: url("../img/pager_en.png");
}

BIN
img/pager_dis.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
img/pager_en.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

13
js/historico.js Normal file
View File

@ -0,0 +1,13 @@
// Using the closure to map jQuery to $.
(function ($) {
// Store our function as a property of Drupal.behaviors.
Drupal.behaviors.arteleku_historico = {
attach: function (context, settings) {
console.log(context);
console.log(settings);
}
};
}(jQuery));

View File

@ -0,0 +1,61 @@
div.agrupado{
position: relative;
width: 100%;
height: 360px;
}
div.agrupado .agrupado-fondo{
top:0px;
}
div.agrupado .agrupado-fondo .agrupado-fondo-normal{
opacity: 0.6;
}
div.agrupado .agrupado-fondo .agrupado-fondo-hover{
opacity:0;
}
div.agrupado.hover:hover .agrupado-fondo .agrupado-fondo-normal{
opacity: 0;
}
div.agrupado.hover:hover .agrupado-fondo .agrupado-fondo-hover{
opacity: 1.0;
}
div.agrupado > div{
position: absolute;
}
div.agrupado .agrupado-fondo>div{
position: absolute;
}
div.agrupado .agrupado-superior{
top: 0px;
margin: 0;
padding: 0 10px
}
div.agrupado .agrupado-inferior{
bottom: 0px;
margin: 0;
padding: 0 10px;
}
div.agrupado .agrupado-header{
border: 0;
}
div.agrupado .panel-pane{
margin: 0;
}
div.agrupado:hover .agrupado-inferior,
div.agrupado:hover .agrupado-superior{
opacity: 0;
display: none;
}
div.agrupado .field-name-field-tipo{
margin-left: 0;
}
div.agrupado .pane-content{
margin-top: 0;
}

View File

@ -0,0 +1,14 @@
<?php
$plugin = array(
'title' => t('Layout agrupado'),
'icon' => 'agrupado.png',
'theme' => 'arteleku_agrupado',
'css' => 'agrupado.css',
'regions' => array(
'fondo' => t('Fondo'),
'frontup' => t('Frontal superior'),
'frontdown' => t('Frontal Inferior'),
'hover' => t('Frontal Hover')
),
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 B

View File

@ -0,0 +1,25 @@
<?php
$hover ='';
if ($content['hover']!=NULL){
$hover = 'hover';
}
?>
<div class = "agrupado <?php print $hover; ?>">
<div class="agrupado-fondo">
<div class="agrupado-fondo-normal">
<?php print $content['fondo']; ?>
</div>
<div class="agrupado-fondo-hover">
<?php print $content['hover']; ?>
</div>
</div>
<div class="agrupado-superior">
<div class="inside"><?php print $content['frontup']; ?></div>
</div>
<div class="agrupado-inferior">
<div class="inside"><?php print $content['frontdown']; ?></div>
</div>
</div>

View File

@ -0,0 +1,13 @@
<div class = "agrupado hover">
<div class="slide-back">
<div class="inside"><?php print $content['fondo']; ?></div>
</div>
<div class="slide-front-up">
<div class="inside"><?php print $content['frontup']; ?></div>
</div>
<div class="slide-front-down">
<div class="inside"><?php print $content['frontdown']; ?></div>
</div>
</div>

View File

@ -0,0 +1,19 @@
<div class="panel-display clearfix cuatro-columnas-adaptativo " <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>>
<div id = "destacado-adaptativo" class="floating-panel">
<div class="inside"><?php print $content['destacado']; ?></div>
</div>
<div id = "primera-adaptativo" class="floating-panel">
<div class="inside"><?php print $content['primera']; ?></div>
</div>
<div id="sub-columna" class="floating-panel">
<div id = "segunda-adaptativo" >
<div class="inside"><?php print $content['segunda']; ?></div>
</div>
<div id = "tercera-adaptativo" >
<div class="inside"><?php print $content['tercera']; ?></div>
</div>
</div>
</div>

View File

@ -0,0 +1,127 @@
.cuatro-columnas-adaptativo{
position: relative;
}
#destacado-adaptativo{
width: 570px;
top: 0;
/* height: 400px; */
float: left;
margin-right: 30px;
border-top: 2px solid #000;
/*margin-bottom: 40px;*/
}
#destacado-adaptativo .panel-pane{
border: 0;
}
#destacado-adaptativo .pane-title{
border: 0;
}
#primera-adaptativo{
width: 570px;
float: left;
margin-right: 30px;
margin-top: 25px;
}
#primera-adaptativo .panel-pane{
padding: 0 10px;
}
#sub-columna .pane-content{
margin-top: 19px;
}
#sub-columna{
position: absolute;
float: right;
width: 170px;
left: 600px
}
#segunda-adaptativo{
width: 170px;
float: left;
margin-right: 30px;
margin-top: 0px;
}
#tercera-adaptativo{
width: 170px;
float: left;
margin-right: 0px;
margin-top: 0px;
}
#page-manager-edit #sub-columna{
position: static;
}
#page-manager-edit #destacado-adaptativo{
height: auto;
}
#sub-columna div.panel-no-margin>div.pane-content{
margin-top: 0;
}
@media (min-width: 1200px) {
#sub-columna{
position: absolute;
width: 370px;
top: 0px;
left:600px;
}
#segunda-adaptativo{
margin-right: 30px;
}
}
@media only screen and (min-width: 770px) and (max-width: 991px) {
#primera-adaptativo{
width: 370px;
float: left;
margin-right: 30px;
}
#sub-columna{
position: static;
width: 170px;
margin-top: 20px;
}
}
@media only screen and (max-width: 569px) {
#destacado-adaptativo{
width: 270px;
}
#primera-adaptativo{
width: 270px;
float: left;
margin-right: 30px;
}
#sub-columna{
position: static;
width: 270px;
}
}
@media only screen and (min-width: 570px) and (max-width: 769px) {
#destacado-adaptativo{
width: 370px;
}
#primera-adaptativo{
width: 370px;
float: left;
margin-right: 30px;
}
#sub-columna{
position: static;
width: 370px;
}
}

View File

@ -0,0 +1,14 @@
<?php
$plugin = array(
'title' => t('Layout para a cuatro columnas adaptativo'),
'icon' => 'cuatro_columnas.png',
'theme' => 'arteleku_cuatro_columnas_adaptativo',
'css' => 'cuatro-columnas.css',
'regions' => array(
'destacado' => t('Destacado'),
'primera' => t('Primera Columna'),
'segunda' => t('Segunda Columna'),
'tercera' => t('Tercera Columna')
),
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 B

View File

@ -0,0 +1,10 @@
<div class="panel-display clearfix dos-columnas-adaptativo no-footer-flow " <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>>
<div id = "izquierda-adaptativo" class="floating-panel">
<div class="inside"><?php print $content['izquierda']; ?></div>
</div>
<div id = "derecha-adaptativo" class="floating-panel">
<div class="inside"><?php print $content['derecha']; ?></div>
</div>
<div class="clearfix"></div>
</div>

View File

@ -0,0 +1,98 @@
.dos-columnas-adaptativo{
position: relative;
}
#izquierda-adaptativo{
width: 570px;
top: 0;
/* height: 400px; */
float: left;
margin-right: 30px;
border-top: 2px solid #000;
/*margin-bottom: 40px;*/
}
#izquierda-adaptativo .panel-pane{
border: 0;
}
#izquierda-adaptativo .pane-title{
border: 0;
}
#derecha-adaptativo .pane-content{
margin-top: 20px;
}
#derecha-adaptativo{
float: right;
width: 170px;
left: 600px
}
#page-manager-edit #sub-columna{
position: static;
}
#page-manager-edit #destacado-adaptativo{
height: auto;
}
#derecha-adaptativo div.panel-no-margin>div.pane-content{
margin-top: 0;
}
@media (min-width: 1200px) {
#izquierda-adaptativo{
width: 770px;
top: 0px;
}
#derecha-adaptativo{
left:800px;
}
}
@media only screen and (min-width: 770px) and (max-width: 991px) {
#izquierda-adaptativo{
width: 370px;
float: left;
margin-right: 30px;
}
#derecha-adaptativo{
position: static;
width: 170px;
}
}
@media only screen and (max-width: 569px) {
#izquierda-adaptativo{
width: 270px;
float: left;
margin-right: 0px;
}
#derecha-adaptativo{
position: static;
width: 270px;
}
}
@media only screen and (min-width: 570px) and (max-width: 769px) {
#izquierda-adaptativo{
width: 370px;
float: left;
margin-right: 0px;
}
#derecha-adaptativo{
position: static;
width: 370px;
}
}

View File

@ -0,0 +1,12 @@
<?php
$plugin = array(
'title' => t('Layout a dos columnas extendido adaptativo'),
'icon' => 'dos_columnas.png',
'theme' => 'arteleku_dos_columnas_adaptativo',
'css' => 'dos-columnas.css',
'regions' => array(
'izquierda' => t('Izquierda'),
'derecha' => t('Derecha')
),
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 B

View File

@ -0,0 +1,9 @@
<div class="panel-display clearfix dos-columnas-normal-adaptativo no-footer-flow " <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>>
<div id = "izquierda-normal-adaptativo" class="floating-panel">
<div class="inside"><?php print $content['izquierda']; ?></div>
</div>
<div id = "derecha-normal-adaptativo" class="floating-panel">
<div class="inside"><?php print $content['derecha']; ?></div>
</div>
</div>

View File

@ -0,0 +1,85 @@
.dos-columnas-normal-adaptativo{
position: relative;
}
#izquierda-normal-adaptativo{
width: 570px;
top: 0;
/* height: 400px; */
float: left;
margin-right: 30px;
border-top: 2px solid #000;
/*margin-bottom: 40px;*/
}
#izquierda-normal-adaptativo .panel-pane{
border: 0;
}
#izquierda-normal-adaptativo .pane-title{
border: 0;
}
#derecha-normal-adaptativo .pane-content{
margin-top: 20px;
}
#derecha-normal-adaptativo{
float: left;
width: 170px;
left: 600px
}
#page-manager-edit #sub-columna{
position: static;
}
#derecha-normal-adaptativo div.panel-no-margin>div.pane-content{
margin-top: 0;
}
#page-manager-edit #destacado-adaptativo{
height: auto;
}
.lateral-padding{
padding: 0 10px;
}
@media (min-width: 1200px) {
#derecha-normal-adaptativo{
width: 370px
}
}
@media only screen and (min-width: 770px) and (max-width: 991px) {
#izquierda-normal-adaptativo{
width: 370px;
}
}
@media only screen and (max-width: 569px) {
#izquierda-normal-adaptativo{
width: 270px;
margin-right: 0;
}
#derecha-normal-adaptativo{
width: 270px;
}
}
@media only screen and (min-width: 570px) and (max-width: 769px) {
#izquierda-normal-adaptativo{
width: 370px;
margin-right: 0;
}
#derecha-normal-adaptativo{
width: 370px;
}
}

View File

@ -0,0 +1,12 @@
<?php
$plugin = array(
'title' => t('Layout a dos columnas adaptativo'),
'icon' => 'dos_columnas_normal.png',
'theme' => 'arteleku_dos_columnas_normal',
'css' => 'dos-columnas_normal.css',
'regions' => array(
'izquierda' => t('Izquierda'),
'derecha' => t('Derecha')
),
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 B

View File

@ -0,0 +1,23 @@
<div class="panel-display clearfix" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>>
<div id = "featured" class="floating-panel">
<div class="inside"><?php print $content['featured']; ?></div>
</div>
<div id = "panel-info" class="floating-panel">
<div class="inside"><?php print $content['info']; ?></div>
</div>
<div id = "panel-news" class="floating-panel">
<div class="inside"><?php print $content['news']; ?></div>
</div>
<div id = "panel-first" class="floating-panel">
<div class="inside"><?php print $content['first']; ?></div>
</div>
<div id = "panel-second" class="floating-panel">
<div class="inside"><?php print $content['second']; ?></div>
</div>
</div>

View File

View File

@ -0,0 +1,15 @@
<?php
$plugin = array(
'title' => t('Layout para la portada'),
'icon' => 'frontpage.png',
'theme' => 'arteleku_frontpage',
'css' => 'frontpage.css',
'regions' => array(
'featured' => t('Featured'),
'info' => t('Info'),
'news' => t('News'),
'first' => t('First Column'),
'second' => t('Second Column')
),
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 B

View File

@ -0,0 +1,20 @@
<?php
$class="hover-full";
if ($content['fondo'] == ""){
$class ="hover-empty";
}
?>
<div class = "hover <?php print $class; ?>">
<div class="hover-fondo">
<?php print $content['fondo']; ?>
</div>
<div class="hover-superior">
<div class="inside"><?php print $content['frontup']; ?></div>
</div>
<div class="hover-inferior">
<div class="inside"><?php print $content['frontdown']; ?></div>
</div>
</div>

View File

@ -0,0 +1,114 @@
div.hover{
position: relative;
width: 570px;
height: 360px;
}
div.hover.hover-empty{
position: relative;
width: 570px;
height: auto;
}
div.hover.hover-full .hover-fondo{
top:0px;
}
div.hover .tipo-de-contenido-wrapper,
div.hover .field-name-field-tipo .field-item{
color: black;
}
div.hover.hover-full .hover-fondo .hover-fondo-normal{
opacity: 0.6;
top: 0;
position: absolute;
}
div.hover.hover-full .hover-fondo .hover-fondo-hover{
opacity:0;
top: 0;
position: absolute;
}
div.hover.hover-full:hover .hover-fondo .hover-fondo-normal{
opacity: 0;
}
div.hover.hover-full:hover .hover-fondo .hover-fondo-hover{
opacity: 1.0;
}
div.hover.hover-full.hover-empty .hover-fondo{
display: none;
}
div.hover.hover-full > div{
position: absolute;
}
div.hover.hover-empty > div{
position: static;
}
div.hover.hover-full .hover-fondo>div{
position: absolute;
}
div.hover.hover-full .hover-superior{
top: 0px;
margin: 0;
padding: 0 10px
}
div.hover.hover-full .hover-inferior{
bottom: 15px;
margin: 0;
padding: 0 10px;
}
div.hover .hover-header{
border: 0;
}
div.hover .panel-pane{
margin: 0;
}
div.hover.hover-full:hover .hover-inferior,
div.hover.hover-full:hover .hover-superior{
opacity: 0;
display: none;
}
div.hover .field-name-field-tipo{
margin-left: 0;
margin-top: 9px;
}
div.hover .field-name-title-field{
margin-top: 24px;
padding-right: 60px;
}
div.hover .pane-content{
margin-top: 0;
}
/* Tablet Layout: 770px.
Gutters: 24px.
Outer margins: 28px.
Inherits styles from: Default Layout.
-----------------------------------------------------------------
cols 1 2 3 4 5 6 7 8
px 68 160 252 344 436 528 620 712 */
@media only screen and (min-width: 770px) and (max-width: 991px) {
}
@media only screen and (min-width: 570px) and (max-width: 769px) {
div.hover{
whidth:370px;
height:240px;
}
}

View File

@ -0,0 +1,165 @@
div.hover{
position: relative;
width: 570px;
height: 360px;
}
div.hover.hover-empty{
position: relative;
width: 570px;
height: auto;
}
div.hover.hover-full .hover-fondo{
top:0px;
}
div.hover .tipo-de-contenido-wrapper,
div.hover .field-name-field-tipo .field-item{
color: black;
}
div.hover.hover-full .hover-fondo .hover-fondo-normal{
opacity: 1;
background-color: rgb(247,247,231);
top: 0;
position: absolute;
}
div.hover.hover-full .hover-fondo .hover-fondo-normal img{
opacity: 0.2;
}
div.hover.hover-full .hover-fondo .hover-fondo-hover{
opacity:0;
top: 0;
position: absolute;
}
div.hover.hover-full:hover .hover-fondo .hover-fondo-normal{
opacity: 0;
}
div.hover.hover-full:hover .hover-fondo .hover-fondo-hover{
opacity: 1.0;
}
div.hover.hover-full.hover-empty .hover-fondo{
display: none;
}
div.hover.hover-full > div{
position: absolute;
}
div.hover.hover-empty > div{
position: static;
}
div.hover.hover-full .hover-fondo>div{
position: absolute;
}
div.hover.hover-full .hover-superior{
top: 0px;
margin: 0;
padding: 0 10px
}
div.hover.hover-full .hover-inferior{
bottom: 15px;
margin: 0;
padding: 0 10px;
}
div.hover .hover-header{
border: 0;
}
div.hover .panel-pane{
margin: 0;
}
div.hover.hover-full:hover .hover-inferior,
div.hover.hover-full:hover .hover-superior{
opacity: 0;
display: none;
}
div.hover .field-name-field-tipo{
margin-left: 0;
margin-top: 9px;
}
div.hover .field-name-title-field{
margin-top: 24px;
padding-right: 60px;
}
div.hover .pane-content{
margin-top: 0;
}
div.hover.hover-empty .hover-inferior,
div.hover.hover-empty .hover-superior{
padding: 0 10px;
}
/* Tablet Layout: 770px.
Gutters: 24px.
Outer margins: 28px.
Inherits styles from: Default Layout.
-----------------------------------------------------------------
cols 1 2 3 4 5 6 7 8
px 68 160 252 344 436 528 620 712 */
@media only screen and (min-width: 770px) and (max-width: 991px) {
}
@media only screen and (max-width: 569px) {
div.hover{
width:270px;
height:auto;
position: static;
}
div.hover img{
width:270px;
height:180px;
}
div.hover .field-name-title-field{
margin-top: 11px;
padding-right: 10px;
}
div.hover.hover-full .hover-fondo .hover-fondo-normal{
display: none;
}
div.hover.hover-full .hover-fondo .hover-fondo-hover{
position: static;
opacity: 1;
}
div.hover.hover-full .hover-fondo>div{
position: static;
}
div.hover.hover-full > div{
position: static;
}
div.hover.hover-full .hover-superior{
margin-top: 24px;
}
div.hover.hover-full:hover .hover-inferior,
div.hover.hover-full:hover .hover-superior{
opacity: 1;
display: block;
}
}
@media only screen and (min-width: 570px) and (max-width: 769px) {
div.hover{
width:370px;
height:240px;
}
div.hover img{
width:370px;
height:240px;
}
}

View File

@ -0,0 +1,13 @@
<?php
$plugin = array(
'title' => t('Layout hover'),
'icon' => 'hover.png',
'theme' => 'arteleku_hover',
'css' => 'hover.css',
'regions' => array(
'fondo' => t('Fondo'),
'frontup' => t('Frontal superior'),
'frontdown' => t('Frontal Inferior'),
),
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 B

View File

@ -0,0 +1,20 @@
<?php
$class="hover-full";
if ($content['fondo'] == ""){
$class ="hover-empty";
}
?>
<div class = "hover <?php print $class; ?>">
<div class="hover-fondo">
<?php print $content['fondo']; ?>
</div>
<div class="hover-superior">
<div class="inside"><?php print $content['frontup']; ?></div>
</div>
<div class="hover-inferior">
<div class="inside"><?php print $content['frontdown']; ?></div>
</div>
</div>

View File

@ -0,0 +1,236 @@
div.hover{
position: relative;
width: 570px;
height: 360px;
}
div.hover.hover-empty{
position: relative;
width: 570px;
height: auto;
}
div.hover.hover-full .hover-fondo{
top:0px;
}
div.hover .tipo-de-contenido-wrapper,
div.hover .field-name-field-tipo .field-item{
color: black;
}
div.hover.hover-full .hover-fondo .hover-fondo-normal{
opacity: 1;
background-color: rgb(247,247,231);
top: 0;
position: absolute;
}
div.hover.hover-full .hover-fondo .hover-fondo-normal img{
opacity: 0.2;
}
div.hover.hover-full .hover-fondo .hover-fondo-hover{
opacity:0;
top: 0;
position: absolute;
}
div.hover.hover-full:hover .hover-fondo .hover-fondo-normal{
opacity: 0;
}
div.hover.hover-full:hover .hover-fondo .hover-fondo-hover{
opacity: 1.0;
}
div.hover.hover-full.hover-empty .hover-fondo{
display: none;
}
div.hover.hover-full > div{
position: absolute;
}
div.hover.hover-empty > div{
position: static;
}
div.hover.hover-full .hover-fondo>div{
position: absolute;
}
div.hover.hover-full .hover-superior{
top: 0px;
margin: 0;
padding: 0 10px
}
div.hover.hover-full .hover-inferior{
bottom: 15px;
margin: 0;
padding: 0 10px;
}
div.hover .hover-header{
border: 0;
}
div.hover .panel-pane{
margin: 0;
}
div.hover.hover-full:hover .hover-inferior,
div.hover.hover-full:hover .hover-superior{
opacity: 0;
display: none;
}
div.hover .field-name-field-tipo{
margin-left: 0;
margin-top: 9px;
}
div.hover .field-name-title-field{
margin-top: 24px;
padding-right: 60px;
}
div.hover .pane-content{
margin-top: 0;
}
div.hover.hover-empty .hover-inferior,
div.hover.hover-empty .hover-superior{
padding: 0 10px;
}
/* Tablet Layout: 770px.
Gutters: 24px.
Outer margins: 28px.
Inherits styles from: Default Layout.
-----------------------------------------------------------------
cols 1 2 3 4 5 6 7 8
px 68 160 252 344 436 528 620 712 */
@media only screen and (min-width: 770px) and (max-width: 991px) {
div.hover{
width:370px;
height:auto;
}
div.hover img{
width:370px;
height:240px;
}
div.hover .field-name-title-field{
margin-top: 11px;
padding-right: 10px;
}
div.hover.hover-full{
height: auto;
}
div.hover.hover-full .hover-fondo{
position: static;
height: 240px;
}
div.hover.hover-full .hover-fondo .hover-fondo-normal{
height: 240px;
}
div.hover.hover-full .hover-superior{
margin-top: 0px;
}
div.hover.hover-full .hover-inferior{
position: static;
padding-top: 25px;
}
div.hover.hover-full:hover .hover-inferior,
div.hover.hover-full:hover .hover-superior{
opacity: 1;
display: block;
}
}
@media only screen and (max-width: 569px) {
div.hover{
width:270px;
height:auto;
position: static;
}
div.hover img{
width:270px;
height:180px;
}
div.hover .hover-fondo{
display: none;
}
div.hover .field-name-title-field{
margin-top: 11px;
padding-right: 10px;
}
div.hover.hover-full .hover-fondo .hover-fondo-normal{
display: none;
}
div.hover.hover-full .hover-fondo .hover-fondo-hover{
position: static;
opacity: 1;
}
div.hover.hover-full .hover-fondo>div{
position: static;
}
div.hover.hover-full > div{
position: static;
}
div.hover.hover-full .hover-superior{
margin-top: 24px;
}
div.hover.hover-full:hover .hover-inferior,
div.hover.hover-full:hover .hover-superior{
opacity: 1;
display: block;
}
.listado-margen{
border-top: 1px solid black;
}
}
@media only screen and (min-width: 570px) and (max-width: 769px) {
div.hover{
width:370px;
height:auto;
}
div.hover img{
width:370px;
height:240px;
}
div.hover .hover-fondo{
display: none;
}
div.hover .field-name-title-field{
margin-top: 11px;
padding-right: 10px;
}
div.hover.hover-full{
height: auto;
}
div.hover.hover-full .hover-fondo{
position: static;
height: 240px;
}
div.hover.hover-full .hover-fondo .hover-fondo-normal{
height: 240px;
}
div.hover.hover-full .hover-superior{
margin-top: 0px;
position: static;
}
div.hover.hover-full .hover-inferior{
position: static;
padding-top: 25px;
}
.listado-margen{
border-top: 1px solid black;
}
div.hover.hover-full:hover .hover-inferior,
div.hover.hover-full:hover .hover-superior{
opacity: 1;
display: block;
}
}

View File

@ -0,0 +1,13 @@
<?php
$plugin = array(
'title' => t('Layout hover extendido'),
'icon' => 'hover_extendido.png',
'theme' => 'arteleku_hover_extendido',
'css' => 'hover_extendido.css',
'regions' => array(
'fondo' => t('Fondo'),
'frontup' => t('Frontal superior'),
'frontdown' => t('Frontal Inferior'),
),
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 B

View File

@ -0,0 +1,12 @@
<?php if (!empty($content['content'])): ?>
<div class="panel-display" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>>
<div id = "info-panel">
<?php print $content['content']; ?>
</div>
</div>
<?php endif;

View File

@ -0,0 +1,64 @@
/* INFO PANEL */
div#info-panel{
line-height: 15px;
margin-top: 8px;
}
div#info-panel h3{
line-height: 15px;
}
div#info-panel .view h3{
}
div#info-panel .views-row-last{
margin-bottom: 15px;
}
div#info-panel .header{
margin-bottom:20px;
border-top: 2px solid black;
}
div#info-panel .pane-content{
margin:0 10px;
}
div#info-panel .field-type-datetime{
margin: 0;
font-weight: normal;
color: black;
}
div#info-panel>div{
font-size: 12px;
font-family: 'Droid Sans', sans-serif;
border: 0;
line-height: 15px;
margin-bottom:15px;
}
div#info-panel .panel-pane .views-row{
padding:0;
}
div#info-panel .views-label{
font-weight: bold;
}
div#info-panel .panel-pane .pane-title{
border: 0;
margin: 0;
}
div#info-panel>div.panel-pane>div.pane-content{
margin-top: 0px !important;
}
div#info-panel .panel-pane .pane-title h3{
text-transform: none;
font-family: 'Droid Sans', sans-serif;
font-size: 12px;
font-weight: bold;
margin: 0 0 0 10px;
letter-spacing: 0px;
}
div#info-panel .info-panel-last{
margin-bottom: 0px;
}
div#info-panel a{
color: red;
}

View File

@ -0,0 +1,11 @@
<?php
$plugin = array(
'title' => t('Layout para bloque de informacion'),
'icon' => 'informacion.png',
'theme' => 'arteleku_informacion',
'css' => 'informacion.css',
'regions' => array(
'content' => t('Contenido')
),
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 B

View File

@ -0,0 +1,17 @@
<div class = "proyecto">
<div class="proyecto-wrapper">
<div class="proyecto-fondo">
<?php print $content['fondo']; ?>
</div>
<div class="proyecto-superior">
<div class="inside"><?php print $content['frontup']; ?></div>
</div>
<div class="proyecto-inferior">
<div class="inside"><?php print $content['frontdown']; ?></div>
</div>
</div>
<div class="proyecto-debajo">
<div class="inside"><?php print $content['down']; ?></div>
</div>
</div>

View File

@ -0,0 +1,127 @@
div.proyecto{
position: relative;
width: 370px;
height: auto;
margin-top: 20px;
}
div.proyecto .proyecto-fondo{
top:0px;
}
div.proyecto .proyecto-wrapper{
height: 240px;
}
div.proyecto .proyecto-fondo .hover-fondo-normal,
div.proyecto .proyecto-fondo .hover-fondo-hover{
opacity: 0.6;
top: 0;
position: absolute;
width: 370px;
height: 240px;
}
div.proyecto .proyecto-fondo img{
width: 100%;
height:100%;
}
div.proyecto .proyecto-fondo .hover-fondo-hover{
opacity:0;
top: 0;
position: absolute;
}
div.proyecto:hover .proyecto-fondo .hover-fondo-normal{
opacity: 0;
}
div.proyecto:hover .proyecto-fondo .hover-fondo-hover{
opacity: 1.0;
}
div.proyecto .proyecto-wrapper > div{
position: absolute;
}
div.proyecto .proyecto-fondo>div{
position: absolute;
}
div.proyecto .proyecto-superior{
top: 0px;
margin: 0;
padding: 0 10px
}
div.proyecto .proyecto-inferior{
bottom: 0px;
margin: 0;
padding: 0 10px;
}
div.proyecto .proyecto-header{
border: 0;
}
div.proyecto .panel-pane{
margin: 0;
}
div.proyecto:hover .proyecto-inferior,
div.proyecto:hover .proyecto-superior{
opacity: 0;
display: none;
}
div.proyecto .field-name-field-tipo{
margin-left: 0;
}
div.proyecto .pane-content{
margin-top: 0;
}
div.proyecto .proyecto-debajo{
position: static;
margin-top: 20px;
}
div.proyecto .proyecto-debajo p{
margin-bottom: 0px;
}
.node-proyecto h3{
text-transform: none;
font-size: 16px;
line-height: 20px;
}
.node-proyecto p{
font-size: 12px;
line-height: 15px;
}
.panel-pane .views-row{
padding: 0;
}
div.proyecto .tipo-de-contenido-wrapper,
div.proyecto .field-name-field-tipo .field-item{
color: black;
}
/* Tablet Layout: 770px.
Gutters: 24px.
Outer margins: 28px.
Inherits styles from: Default Layout.
-----------------------------------------------------------------
cols 1 2 3 4 5 6 7 8
px 68 160 252 344 436 528 620 712 */
@media only screen and (min-width: 770px) and (max-width: 991px) {
}
@media only screen and (min-width: 570px) and (max-width: 769px) {
div.proyecto{
whidth:370px;
height:240px;
}
}

View File

@ -0,0 +1,145 @@
div.proyecto{
position: relative;
width: 370px;
height: auto;
margin-top: 19px;
}
div.proyecto .proyecto-fondo{
top:0px;
}
div.proyecto .proyecto-wrapper{
height: 240px;
}
div.proyecto .proyecto-fondo .hover-fondo-normal,
div.proyecto .proyecto-fondo .hover-fondo-hover{
opacity: 0.6;
top: 0;
position: absolute;
width: 370px;
height: 240px;
}
div.proyecto .element-invisible{
display: none;
}
div.proyecto .proyecto-fondo .hover-fondo-normal{
opacity: 1;
background-color: rgb(247,247,231);
top: 0;
position: absolute;
}
div.proyecto .proyecto-fondo .hover-fondo-normal img{
opacity: 0.2;
}
div.proyecto .proyecto-fondo img{
width: 100%;
height:100%;
}
div.proyecto .proyecto-fondo .hover-fondo-hover{
opacity:0;
top: 0;
position: absolute;
}
div.proyecto:hover .proyecto-fondo .hover-fondo-normal{
opacity: 0;
}
div.proyecto:hover .proyecto-fondo .hover-fondo-hover{
opacity: 1.0;
}
div.proyecto .proyecto-wrapper > div{
position: absolute;
}
div.proyecto .proyecto-fondo>div{
position: absolute;
}
div.proyecto .proyecto-superior{
top: 0px;
margin: 0;
padding: 0 10px
}
div.proyecto .proyecto-inferior{
bottom: 0px;
margin: 0;
padding: 0 10px;
}
div.proyecto .proyecto-header{
border: 0;
}
div.proyecto .panel-pane{
margin: 0;
}
div.proyecto:hover .proyecto-inferior,
div.proyecto:hover .proyecto-superior{
opacity: 0;
display: none;
}
div.proyecto .field-name-field-tipo{
margin-left: 0;
}
div.proyecto .pane-content{
margin-top: 0;
}
div.proyecto .proyecto-debajo{
position: static;
margin-top: 25px;
margin-bottom: 15px;
}
div.proyecto .proyecto-debajo p{
margin-bottom: 0px;
}
.node-proyecto h3{
text-transform: none;
font-size: 16px;
line-height: 20px;
margin-top: 21px;
}
.node-proyecto p{
font-size: 12px;
line-height: 15px;
margin-top: 24px;
margin-bottom: 16px;
}
.panel-pane .views-row{
padding: 0;
}
div.proyecto .tipo-de-contenido-wrapper,
div.proyecto .field-name-field-tipo .field-item{
color: black;
}
/* Tablet Layout: 770px.
Gutters: 24px.
Outer margins: 28px.
Inherits styles from: Default Layout.
-----------------------------------------------------------------
cols 1 2 3 4 5 6 7 8
px 68 160 252 344 436 528 620 712 */
@media only screen and (min-width: 770px) and (max-width: 991px) {
}
@media only screen and (min-width: 570px) and (max-width: 769px) {
div.proyecto{
whidth:370px;
height:240px;
}
}

View File

@ -0,0 +1,14 @@
<?php
$plugin = array(
'title' => t('Layout proyecto'),
'icon' => 'proyecto.png',
'theme' => 'arteleku_proyecto',
'css' => 'proyecto.css',
'regions' => array(
'fondo' => t('Imagen en fondo'),
'frontup' => t('Sobre la imagen superior'),
'frontdown' => t('Sobre la imagen inferior'),
'down' => t('Debajo de la imagen')
),
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 B

View File

@ -0,0 +1,13 @@
<div class = "slide-page">
<div class="slide-back">
<div class="inside"><?php print $content['fondo']; ?></div>
</div>
<div class="slide-front-up">
<div class="inside"><?php print $content['frontup']; ?></div>
</div>
<div class="slide-front-down">
<div class="inside"><?php print $content['frontdown']; ?></div>
</div>
</div>

View File

@ -0,0 +1,141 @@
.panel-pane .views_slideshow_cycle_slide .views-row{
padding: 0;
}
.slide-page{
height:360px;
position: relative;
width: 570px;
}
.slide-back{
position: absolute;
top: 0px;
left: 0;
}
.slide-back img{
position: absolute;
top:0;
}
.slide-back .slide-back-black img{
opacity: 0.6;
}
.slide-back .slide-back-color img{
opacity:0;
}
.slide-page:hover .slide-back-black img{
opacity: 0;
}
.slide-page:hover .slide-back-color img{
opacity: 1.0;
}
.slide-front-up{
position: absolute;
top: 0px;
width:570px;
}
.slide-front-down{
position: absolute;
bottom: 0;
width:570px;
}
.slide-header{
top: 0px;
position: absolute;
width:570px;
}
.slide-header .inside{
margin-left: 10px;
margin-bottom: 8px;
margin-top: 8px;
font-size: 12px;
line-height: 20px;
font-family: 'Droid Sans Mono', sans-serif;
text-transform: uppercase;
font-weight: normal;
letter-spacing: 1px;
}
.slide-front-up .inside{
padding: 0 10px;
}
.slide-front-up .inside div{
margin-left: 0;
}
.slide-front-down .inside{
padding: 10px 10px 20px 10px
}
.slide-front-down .inside div{
margin-left: 0;
margin-bottom: 0;
margin-top: 20px;
}
#slider-panel .pane-title{
display: none;
}
.slide-page:hover .slide-front-up,
.slide-page:hover .slide-front-down{
opacity: 0;
display: none;
}
/* Tablet Layout: 770px.
Gutters: 24px.
Outer margins: 28px.
Inherits styles from: Default Layout.
-----------------------------------------------------------------
cols 1 2 3 4 5 6 7 8
px 68 160 252 344 436 528 620 712 */
@media only screen and (min-width: 770px) and (max-width: 991px) {
.slide-front-up{
position: absolute;
top: 0px;
width:570px;
}
.slide-front-down{
position: absolute;
bottom: 0;
width:570px;
}
.slide-header{
top: 0px;
position: absolute;
width:570px;
}
.slide-page{
height:360px;
position: relative;
width: 570px;
}
}
@media only screen and (min-width: 570px) and (max-width: 769px) {
.slide-front-up{
position: absolute;
top: 0px;
width:370px;
}
.slide-front-down{
position: absolute;
bottom: 0;
width:370px;
}
.slide-header{
top: 0px;
position: absolute;
width:370px;
}
.slide-page{
height:240px;
position: relative;
width: 370px;
}
}

View File

@ -0,0 +1,141 @@
.panel-pane .views_slideshow_cycle_slide .views-row{
padding: 0;
}
.slide-page{
height:360px;
position: relative;
width: 570px;
}
.slide-back{
position: absolute;
top: 0px;
left: 0;
}
.slide-back img{
position: absolute;
top:0;
}
.slide-back .slide-back-black img{
opacity: 0.6;
}
.slide-back .slide-back-color img{
opacity:0;
}
.slide-page:hover .slide-back-black img{
opacity: 0;
}
.slide-page:hover .slide-back-color img{
opacity: 1.0;
}
.slide-front-up{
position: absolute;
top: 0px;
width:570px;
}
.slide-front-down{
position: absolute;
bottom: 0;
width:570px;
}
.slide-header{
top: 0px;
position: absolute;
width:570px;
}
.slide-header .inside{
margin-left: 10px;
margin-bottom: 8px;
margin-top: 8px;
font-size: 12px;
line-height: 20px;
font-family: 'Droid Sans Mono', sans-serif;
text-transform: uppercase;
font-weight: normal;
letter-spacing: 1px;
}
.slide-front-up .inside{
padding: 0 10px;
}
.slide-front-up .inside div{
margin-left: 0;
}
.slide-front-down .inside{
padding: 10px 10px 20px 10px
}
.slide-front-down .inside div{
margin-left: 0;
margin-bottom: 0;
margin-top: 20px;
}
#slider-panel .pane-title{
display: none;
}
.slide-page:hover .slide-front-up,
.slide-page:hover .slide-front-down{
opacity: 0;
display: none;
}
/* Tablet Layout: 770px.
Gutters: 24px.
Outer margins: 28px.
Inherits styles from: Default Layout.
-----------------------------------------------------------------
cols 1 2 3 4 5 6 7 8
px 68 160 252 344 436 528 620 712 */
@media only screen and (min-width: 770px) and (max-width: 991px) {
.slide-front-up{
position: absolute;
top: 0px;
width:570px;
}
.slide-front-down{
position: absolute;
bottom: 0;
width:570px;
}
.slide-header{
top: 0px;
position: absolute;
width:570px;
}
.slide-page{
height:360px;
position: relative;
width: 570px;
}
}
@media only screen and (min-width: 570px) and (max-width: 769px) {
.slide-front-up{
position: absolute;
top: 0px;
width:370px;
}
.slide-front-down{
position: absolute;
bottom: 0;
width:370px;
}
.slide-header{
top: 0px;
position: absolute;
width:370px;
}
.slide-page{
height:240px;
position: relative;
width: 370px;
}
}

View File

@ -0,0 +1,13 @@
<?php
$plugin = array(
'title' => t('Layout para slide'),
'icon' => 'slide.png',
'theme' => 'arteleku_slide',
'css' => 'slide.css',
'regions' => array(
'fondo' => t('Fondo'),
'frontup' => t('Frontal superior'),
'frontdown' => t('Frontal Inferior')
),
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 B

View File

@ -0,0 +1,8 @@
<div class="<?php print $classes;?>">
<div class = "tarjeta">
<div class="inside">
<?php print $content['contenido']; ?>
</div>
</div>
</div>

View File

View File

@ -0,0 +1,11 @@
<?php
$plugin = array(
'title' => t('Layout tarjeta'),
'icon' => 'tarjeta.png',
'theme' => 'arteleku_tarjeta',
'css' => 'tarjeta.css',
'regions' => array(
'contenido' => t('Contenido'),
),
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 B

View File

@ -0,0 +1,61 @@
div.agrupado{
position: relative;
width: 100%;
height: 400px;
}
div.agrupado .agrupado-fondo{
top:37px;
}
div.agrupado .agrupado-fondo .agrupado-fondo-byn{
opacity: 0.6;
}
div.agrupado .agrupado-fondo .agrupado-fondo-color{
opacity:0;
}
div.agrupado.hover:hover .agrupado-fondo .agrupado-fondo-byn{
opacity: 0;
}
div.agrupado.hover:hover .agrupado-fondo .agrupado-fondo-color{
opacity: 1.0;
}
div.agrupado > div{
position: absolute;
}
div.agrupado .agrupado-fondo .panel-pane{
position: absolute;
}
div.agrupado .agrupado-superior{
top: 37px;
margin: 0;
padding: 0 10px
}
div.agrupado .agrupado-inferior{
bottom: 0px;
margin: 0;
padding: 0 10px;
}
div.agrupado .agrupado-header{
border: 0;
}
div.agrupado .panel-pane{
margin: 0;
}
div.agrupado:hover .agrupado-inferior,
div.agrupado:hover .agrupado-superior{
opacity: 0;
display: none;
}
div.agrupado .field-name-field-tipo{
margin-left: 0;
}
div.agrupado .pane-content{
margin-top: 0;
}

137
plugins/styles/agrupado.inc Normal file
View File

@ -0,0 +1,137 @@
<?php
/**
* @file
* Definition of the 'slide' panel style.
*/
// Plugin definition
$plugin = array(
'title' => t('Agrupado'),
'description' => t('Agrupa os campos del panel para mostrar como foto destacada.'),
'render region' => 'panels_agrupado_style_render_region',
);
function theme_panels_agrupado_style_render_region($vars) {
$display = $vars['display'];
$region_id = $vars['region_id'];
$panes = $vars['panes'];
$settings = $vars['settings'];
$items = array();
$output = '';
$fondo='';
$frontal_superior = '';
$frontal_inferior ='';
drupal_add_css(drupal_get_path('module', 'arteleku') . '/plugins/styles/agrupado.css');
$bloques = array(
'header' => array(),
'fondo' => array(),
'frontal_superior' => array(),
'frontal_inferior' => array()
);
$bloq = 'fondo';
foreach ($display->content as $pane_id => $pane) {
if(($pane->panel == $region_id) && ($pane->shown == TRUE)){
$tipo = $pane->subtype;
switch ($tipo) {
case 'agrupado_header':
$bloques['header'][] = $panes[$pane_id];
case 'agrupado_fondo':
$bloq = 'fondo';
break;
case 'agrupado_superior':
$bloq = 'frontal_superior';
break;
case 'agrupado_inferior':
$bloq = 'frontal_inferior';
break;
default:
if(isset($panes[$pane_id])){
$bloques[$bloq][] = $panes[$pane_id];
}
break;
}
}
}
if (count($bloques['fondo'])==2){
$output = '<div class="agrupado hover">';
}else{
$output = '<div class="agrupado">';
}
$output .='<div class="agrupado-header pane-title"><h3>';
foreach ($bloques['header'] as $pane) {
$output .= $pane;//theme('panels_slide_style_render_pane');
}
$output .= '</h3></div>';
if (count($bloques['fondo'])==2){
$output .='<div class="agrupado-fondo">';
$color = TRUE;
foreach ($bloques['fondo'] as $pane) {
if ($color){
$output .='<div class="agrupado-fondo-color">';
$output .= $pane;//theme('panels_slide_style_render_pane');
$output .='</div>';
$color = FALSE;
}else{
$output .='<div class="agrupado-fondo-byn">';
$output .= $pane;//theme('panels_slide_style_render_pane');
$output .='</div>';
$color = FALSE;
}
}
}else{
$output .='<div class="agrupado-fondo">';
foreach ($bloques['fondo'] as $pane) {
$output .= $pane;//theme('panels_slide_style_render_pane');
}
}
$output .= '</div>';
$output .='<div class="agrupado-superior">';
foreach ($bloques['frontal_superior'] as $pane) {
$output .= $pane;//theme('panels_slide_style_render_pane');
}
$output .= '</div>';
$output .='<div class="agrupado-inferior">';
foreach ($bloques['frontal_inferior'] as $pane) {
$output .= $pane;//theme('panels_slide_style_render_pane');
}
$output .= '</div>';
$output .='</div>';
return $output;
}
/**
* Settings form callback.
*/
/*function panels_list_style_settings_form($style_settings) {
$form['list_type'] = array(
'#type' => 'select',
'#title' => t('List type'),
'#options' => array(
'ul' => t('Unordered'),
'ol' => t('Ordered'),
),
'#default_value' => (isset($style_settings['list_type'])) ? $style_settings['list_type'] : 'ul',
);
return $form;
}*/

View File

@ -0,0 +1,53 @@
<?php
/**
* @file
* Definition of the 'slide' panel style.
*/
// Plugin definition
$plugin = array(
'title' => t('Etiquetas'),
'description' => t('Listado de etiquetas.'),
'render pane' => 'panels_etiquetas_style_render_pane'
);
function theme_panels_etiquetas_style_render_pane($vars){
$content = $vars['content'];
$pane = $vars['pane'];
$display = $vars['display'];
if (empty($content->content)) {
return;
}
$content->css_class ='grid-box';
$output = theme('panels_pane', array('content' => $content, 'pane' => $pane, 'display' => $display));
$output .='<div class="clear"></div>';
return $output;
}
/*
function arteleku_preprocess_panels_pane(&$vars){
dpm($vars);
}
/**
* Settings form callback.
*/
/*function panels_list_style_settings_form($style_settings) {
$form['list_type'] = array(
'#type' => 'select',
'#title' => t('List type'),
'#options' => array(
'ul' => t('Unordered'),
'ol' => t('Ordered'),
),
'#default_value' => (isset($style_settings['list_type'])) ? $style_settings['list_type'] : 'ul',
);
return $form;
}*/

View File

@ -0,0 +1,33 @@
<?php
/**
* @file
* Definition of the 'slide' panel style.
*/
// Plugin definition
$plugin = array(
'title' => t('Información'),
'description' => t('Listado de etiquetas.'),
'render region' => 'panels_informacion_style_render_region'
);
function theme_panels_informacion_style_render_region($vars){
$display = $vars['display'];
$region_id = $vars['region_id'];
$panes = $vars['panes'];
$settings = $vars['settings'];
$items = array();
$output = '';
$output = '<div class="info-panel">';
foreach ($panes as $pane_id => $pane) {
$output .= $pane;
}
$output .= '</div>';
return $output;
}

88
plugins/styles/slide.inc Normal file
View File

@ -0,0 +1,88 @@
<?php
/**
* @file
* Definition of the 'slide' panel style.
*/
// Plugin definition
$plugin = array(
'title' => t('Slider'),
'description' => t('Presents the panes in the form of slider.'),
'render region' => 'panels_slide_style_render_region',
);
function theme_panels_slide_style_render_region($vars) {
$display = $vars['display'];
$region_id = $vars['region_id'];
$panes = $vars['panes'];
$settings = $vars['settings'];
$items = array();
if (module_exists('libraries')) {
// Load jQuery Cycle
if ($cycle_path = _slide_cycle_library_path()) {
drupal_add_js($cycle_path);
drupal_add_js(drupal_get_path('module', 'arteleku') . '/plugins/styles/slide.js');
}
}
$output = '';
$output = '<div id="slider-panel">';
foreach ($panes as $pane_id => $pane) {
$output .= $pane;//theme('panels_slide_style_render_pane');
}
$output .= '</div><div class=clearfix"></div>';
return $output;
}
function _slide_cycle_library_path() {
$cycle_path = libraries_get_path('jquery.cycle');
if (!empty($cycle_path)) {
// Attempt to use minified version of jQuery cycle plugin.
if (file_exists($cycle_path . '/jquery.cycle.all.min.js')) {
$cycle_path .= '/jquery.cycle.all.min.js';
}
// Otherwise use non-minified version if available.
elseif (file_exists($cycle_path . '/jquery.cycle.all.js')) {
$cycle_path .= '/jquery.cycle.all.js';
}
else {
$cycle_path = FALSE;
}
}
else {
$cycle_path = FALSE;
}
return $cycle_path;
}
/**
* Settings form callback.
*/
/*function panels_list_style_settings_form($style_settings) {
$form['list_type'] = array(
'#type' => 'select',
'#title' => t('List type'),
'#options' => array(
'ul' => t('Unordered'),
'ol' => t('Ordered'),
),
'#default_value' => (isset($style_settings['list_type'])) ? $style_settings['list_type'] : 'ul',
);
return $form;
}*/

17
plugins/styles/slide.js Normal file
View File

@ -0,0 +1,17 @@
(function ($) {
Drupal.behaviors.arteleku_slide = {
attach: function (context, settings) {
$("#slider-panel .slide-slide>.view-content").cycle({
fx: 'scrollLeft',
timeout: 5000,
speed: 500,
pause: true,
prev:"#slide-navigator #left-arrow",
next: "#slide-navigator #right-arrow",
width:570
});
}
};
})(jQuery);