BIG BIG BIG update
V0 of first interface going to refactor JS
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file field.tpl.php
|
||||
* Default template implementation to display the value of a field.
|
||||
*
|
||||
* This file is not used and is here as a starting point for customization only.
|
||||
* @see theme_field()
|
||||
*
|
||||
* Available variables:
|
||||
* - $items: An array of field values. Use render() to output them.
|
||||
* - $label: The item label.
|
||||
* - $label_hidden: Whether the label display is set to 'hidden'.
|
||||
* - $classes: String of classes that can be used to style contextually through
|
||||
* CSS. It can be manipulated through the variable $classes_array from
|
||||
* preprocess functions. The default values can be one or more of the
|
||||
* following:
|
||||
* - field: The current template type, i.e., "theming hook".
|
||||
* - field-name-[field_name]: The current field name. For example, if the
|
||||
* field name is "field_description" it would result in
|
||||
* "field-name-field-description".
|
||||
* - field-type-[field_type]: The current field type. For example, if the
|
||||
* field type is "text" it would result in "field-type-text".
|
||||
* - field-label-[label_display]: The current label position. For example, if
|
||||
* the label position is "above" it would result in "field-label-above".
|
||||
*
|
||||
* Other variables:
|
||||
* - $element['#object']: The entity to which the field is attached.
|
||||
* - $element['#view_mode']: View mode, e.g. 'full', 'teaser'...
|
||||
* - $element['#field_name']: The field name.
|
||||
* - $element['#field_type']: The field type.
|
||||
* - $element['#field_language']: The field language.
|
||||
* - $element['#field_translatable']: Whether the field is translatable or not.
|
||||
* - $element['#label_display']: Position of label display, inline, above, or
|
||||
* hidden.
|
||||
* - $field_name_css: The css-compatible field name.
|
||||
* - $field_type_css: The css-compatible field type.
|
||||
* - $classes_array: Array of html class attribute values. It is flattened
|
||||
* into a string within the variable $classes.
|
||||
*
|
||||
* @see template_preprocess_field()
|
||||
* @see theme_field()
|
||||
*/
|
||||
?>
|
||||
<!--
|
||||
THIS FILE IS NOT USED AND IS HERE AS A STARTING POINT FOR CUSTOMIZATION ONLY.
|
||||
See http://api.drupal.org/api/function/theme_field/7 for details.
|
||||
After copying this file to your theme's folder and customizing it, remove this
|
||||
HTML comment.
|
||||
-->
|
||||
<!-- <section class="<?php print $classes; ?>"<?php print $attributes; ?>> -->
|
||||
<?php foreach ($items as $delta => $item): ?>
|
||||
<div class="<?php print $classes; ?> field-item <?php print $delta % 2 ? 'odd' : 'even'; ?>"<?php print $item_attributes[$delta]; ?>><?php print render($item); ?></div>
|
||||
<?php endforeach; ?>
|
||||
<!-- </section> -->
|
||||
|
||||
@@ -52,9 +52,13 @@ HTML comment.
|
||||
<?php if (!$label_hidden): ?>
|
||||
<div class="field-label"<?php print $title_attributes; ?>><?php print $label ?>: </div>
|
||||
<?php endif; ?>
|
||||
<?php if(count($items) > 1): ?>
|
||||
<div class="field-items"<?php print $content_attributes; ?>>
|
||||
<?php foreach ($items as $delta => $item): ?>
|
||||
<div class="field-item <?php print $delta % 2 ? 'odd' : 'even'; ?>"<?php print $item_attributes[$delta]; ?>><?php print render($item); ?></div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<?php print render($items[0]); ?>
|
||||
<?php endif; ?>
|
||||
</section>
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Default theme implementation for field collection items.
|
||||
*
|
||||
* Available variables:
|
||||
* - $content: An array of comment items. Use render($content) to print them all, or
|
||||
* print a subset such as render($content['field_example']). Use
|
||||
* hide($content['field_example']) to temporarily suppress the printing of a
|
||||
* given element.
|
||||
* - $title: The (sanitized) field collection item label.
|
||||
* - $url: Direct url of the current entity if specified.
|
||||
* - $page: Flag for the full page state.
|
||||
* - $classes: String of classes that can be used to style contextually through
|
||||
* CSS. It can be manipulated through the variable $classes_array from
|
||||
* preprocess functions. By default the following classes are available, where
|
||||
* the parts enclosed by {} are replaced by the appropriate values:
|
||||
* - entity-field-collection-item
|
||||
* - field-collection-item-{field_name}
|
||||
*
|
||||
* Other variables:
|
||||
* - $classes_array: Array of html class attribute values. It is flattened
|
||||
* into a string within the variable $classes.
|
||||
*
|
||||
* @see template_preprocess()
|
||||
* @see template_preprocess_entity()
|
||||
* @see template_process()
|
||||
*/
|
||||
?>
|
||||
<?php print render($content); ?>
|
||||
@@ -58,7 +58,7 @@
|
||||
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
|
||||
Remove this if you use the .htaccess -->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<?php print $head; ?>
|
||||
|
||||
<title><?php print $head_title; ?></title>
|
||||
|
||||
@@ -0,0 +1,102 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Default theme implementation to display a node.
|
||||
*
|
||||
* Available variables:
|
||||
* - $title: the (sanitized) title of the node.
|
||||
* - $content: An array of node items. Use render($content) to print them all,
|
||||
* or print a subset such as render($content['field_example']). Use
|
||||
* hide($content['field_example']) to temporarily suppress the printing of a
|
||||
* given element.
|
||||
* - $user_picture: The node author's picture from user-picture.tpl.php.
|
||||
* - $date: Formatted creation date. Preprocess functions can reformat it by
|
||||
* calling format_date() with the desired parameters on the $created variable.
|
||||
* - $name: Themed username of node author output from theme_username().
|
||||
* - $node_url: Direct URL of the current node.
|
||||
* - $display_submitted: Whether submission information should be displayed.
|
||||
* - $submitted: Submission information created from $name and $date during
|
||||
* template_preprocess_node().
|
||||
* - $classes: String of classes that can be used to style contextually through
|
||||
* CSS. It can be manipulated through the variable $classes_array from
|
||||
* preprocess functions. The default values can be one or more of the
|
||||
* following:
|
||||
* - node: The current template type; for example, "theming hook".
|
||||
* - node-[type]: The current node type. For example, if the node is a
|
||||
* "Blog entry" it would result in "node-blog". Note that the machine
|
||||
* name will often be in a short form of the human readable label.
|
||||
* - node-teaser: Nodes in teaser form.
|
||||
* - node-preview: Nodes in preview mode.
|
||||
* The following are controlled through the node publishing options.
|
||||
* - node-promoted: Nodes promoted to the front page.
|
||||
* - node-sticky: Nodes ordered above other non-sticky nodes in teaser
|
||||
* listings.
|
||||
* - node-unpublished: Unpublished nodes visible only to administrators.
|
||||
* - $title_prefix (array): An array containing additional output populated by
|
||||
* modules, intended to be displayed in front of the main title tag that
|
||||
* appears in the template.
|
||||
* - $title_suffix (array): An array containing additional output populated by
|
||||
* modules, intended to be displayed after the main title tag that appears in
|
||||
* the template.
|
||||
*
|
||||
* Other variables:
|
||||
* - $node: Full node object. Contains data that may not be safe.
|
||||
* - $type: Node type; for example, story, page, blog, etc.
|
||||
* - $comment_count: Number of comments attached to the node.
|
||||
* - $uid: User ID of the node author.
|
||||
* - $created: Time the node was published formatted in Unix timestamp.
|
||||
* - $classes_array: Array of html class attribute values. It is flattened
|
||||
* into a string within the variable $classes.
|
||||
* - $zebra: Outputs either "even" or "odd". Useful for zebra striping in
|
||||
* teaser listings.
|
||||
* - $id: Position of the node. Increments each time it's output.
|
||||
*
|
||||
* Node status variables:
|
||||
* - $view_mode: View mode; for example, "full", "teaser".
|
||||
* - $teaser: Flag for the teaser state (shortcut for $view_mode == 'teaser').
|
||||
* - $page: Flag for the full page state.
|
||||
* - $promote: Flag for front page promotion state.
|
||||
* - $sticky: Flags for sticky post setting.
|
||||
* - $status: Flag for published status.
|
||||
* - $comment: State of comment settings for the node.
|
||||
* - $readmore: Flags true if the teaser content of the node cannot hold the
|
||||
* main body content.
|
||||
* - $is_front: Flags true when presented in the front page.
|
||||
* - $logged_in: Flags true when the current user is a logged-in member.
|
||||
* - $is_admin: Flags true when the current user is an administrator.
|
||||
*
|
||||
* Field variables: for each field instance attached to the node a corresponding
|
||||
* variable is defined; for example, $node->body becomes $body. When needing to
|
||||
* access a field's raw values, developers/themers are strongly encouraged to
|
||||
* use these variables. Otherwise they will have to explicitly specify the
|
||||
* desired field language; for example, $node->body['en'], thus overriding any
|
||||
* language negotiation rule that was previously applied.
|
||||
*
|
||||
* @see template_preprocess()
|
||||
* @see template_preprocess_node()
|
||||
* @see template_process()
|
||||
*
|
||||
* @ingroup themeable
|
||||
*/
|
||||
?>
|
||||
<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>>
|
||||
|
||||
<?php print $user_picture; ?>
|
||||
|
||||
<?php print render($title_prefix); ?>
|
||||
<?php if (!$page): ?>
|
||||
<h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
print render($title_suffix);
|
||||
|
||||
// We hide the comments and links now so that we can render them later.
|
||||
hide($content['comments']);
|
||||
hide($content['links']);
|
||||
print render($content);
|
||||
|
||||
print render($content['links']);
|
||||
?>
|
||||
|
||||
</div>
|
||||
@@ -86,52 +86,47 @@
|
||||
<?php endif; ?>
|
||||
<!-- // top -->
|
||||
|
||||
<div id="center" class="row push">
|
||||
|
||||
<div id="leftsidebar" class="columns large-3">
|
||||
<?php if($page['sidebar_first']): ?>
|
||||
<div id="leftsidebar" class="">
|
||||
<?php print render($page['sidebar_first']); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<main id="main" class="columns large-9">
|
||||
|
||||
<?php if ($primary_local_tasks || $secondary_local_tasks || $action_links): ?>
|
||||
<div id="tasks">
|
||||
<?php if ($primary_local_tasks): ?>
|
||||
<ul class="tabs primary"><?php print render($primary_local_tasks); ?></ul>
|
||||
<?php endif; ?>
|
||||
<?php if ($secondary_local_tasks): ?>
|
||||
<ul class="tabs secondary"><?php print render($secondary_local_tasks); ?></ul>
|
||||
<?php endif; ?>
|
||||
<?php if ($action_links = render($action_links)): ?>
|
||||
<ul class="action-links"><?php print $action_links; ?></ul>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php if ($primary_local_tasks || $secondary_local_tasks || $action_links): ?>
|
||||
<div id="tasks">
|
||||
<?php if ($primary_local_tasks): ?>
|
||||
<ul class="tabs primary"><?php print render($primary_local_tasks); ?></ul>
|
||||
<?php endif; ?>
|
||||
<?php if ($secondary_local_tasks): ?>
|
||||
<ul class="tabs secondary"><?php print render($secondary_local_tasks); ?></ul>
|
||||
<?php endif; ?>
|
||||
<?php if ($action_links = render($action_links)): ?>
|
||||
<ul class="action-links"><?php print $action_links; ?></ul>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($show_messages && $messages): print $messages; endif; ?>
|
||||
<?php if ($show_messages && $messages): print $messages; endif; ?>
|
||||
|
||||
<?php print render($page['help']); ?>
|
||||
|
||||
<?php print render($page['help']); ?>
|
||||
<main id="main" class="">
|
||||
|
||||
<div class="row">
|
||||
<section id="content" class="columns large-9" >
|
||||
<?php print render($page['content_top']); ?>
|
||||
<?php print render($page['content_top']); ?>
|
||||
|
||||
<?php if($title): ?><h2 class="page-title"><?php print $title ?></h2><?php endif; ?>
|
||||
<?php print render($page['content']); ?>
|
||||
<?php if($title): ?><h2 class="page-title"><?php print $title ?></h2><?php endif; ?>
|
||||
<?php print render($page['content']); ?>
|
||||
|
||||
<?php print render($page['content_bottom']); ?>
|
||||
<?php print render($page['content_bottom']); ?>
|
||||
|
||||
</section>
|
||||
</main><!-- /main -->
|
||||
|
||||
<section
|
||||
id="rightsidebar" class="columns large-3">
|
||||
<?php print render($page['sidebar_second']) ?>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</main><!-- /main -->
|
||||
</div><!-- /center -->
|
||||
<?php if($page['sidebar_second']): ?>
|
||||
<section
|
||||
id="rightsidebar" class="columns large-3">
|
||||
<?php print render($page['sidebar_second']) ?>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<footer id="footer" class="push">
|
||||
<div class="row">
|
||||
|
||||
Reference in New Issue
Block a user