deleted inigui, created features
This commit is contained in:
+60
@@ -0,0 +1,60 @@
|
||||
<?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 if (!$label_hidden): ?>
|
||||
<div class="field-label"<?php print $title_attributes; ?>><?php print $label ?>: </div>
|
||||
<?php endif; ?>
|
||||
<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>
|
||||
</section>
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Default theme implementation to display the basic html structure of a single
|
||||
* Drupal page.
|
||||
*
|
||||
* Variables:
|
||||
* - $css: An array of CSS files for the current page.
|
||||
* - $language: (object) The language the site is being displayed in.
|
||||
* $language->language contains its textual representation.
|
||||
* $language->dir contains the language direction. It will either be 'ltr' or 'rtl'.
|
||||
* - $rdf_namespaces: All the RDF namespace prefixes used in the HTML document.
|
||||
* - $grddl_profile: A GRDDL profile allowing agents to extract the RDF data.
|
||||
* - $head_title: A modified version of the page title, for use in the TITLE
|
||||
* tag.
|
||||
* - $head_title_array: (array) An associative array containing the string parts
|
||||
* that were used to generate the $head_title variable, already prepared to be
|
||||
* output as TITLE tag. The key/value pairs may contain one or more of the
|
||||
* following, depending on conditions:
|
||||
* - title: The title of the current page, if any.
|
||||
* - name: The name of the site.
|
||||
* - slogan: The slogan of the site, if any, and if there is no title.
|
||||
* - $head: Markup for the HEAD section (including meta tags, keyword tags, and
|
||||
* so on).
|
||||
* - $styles: Style tags necessary to import all CSS files for the page.
|
||||
* - $scripts: Script tags necessary to load the JavaScript files and settings
|
||||
* for the page.
|
||||
* - $page_top: Initial markup from any modules that have altered the
|
||||
* page. This variable should always be output first, before all other dynamic
|
||||
* content.
|
||||
* - $page: The rendered page content.
|
||||
* - $page_bottom: Final closing markup from any modules that have altered the
|
||||
* page. This variable should always be output last, after all other dynamic
|
||||
* content.
|
||||
* - $classes String of classes that can be used to style contextually through
|
||||
* CSS.
|
||||
*
|
||||
* @see template_preprocess()
|
||||
* @see template_preprocess_html()
|
||||
* @see template_process()
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php print $doctype; ?>
|
||||
|
||||
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
|
||||
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>" <?php print $rdf_namespaces; ?>> <![endif]-->
|
||||
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>" <?php print $rdf_namespaces; ?>> <![endif]-->
|
||||
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>" <?php print $rdf_namespaces; ?>> <![endif]-->
|
||||
<!-- Consider adding an manifest.appcache: h5bp.com/d/Offline -->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>" <?php print $rdf_namespaces; ?>> <!--<![endif]-->
|
||||
|
||||
|
||||
<head<?php print $rdf_profile; ?>>
|
||||
<!-- remove the no-js as fast as possible -->
|
||||
<script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
|
||||
|
||||
<!-- 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" />
|
||||
|
||||
<?php print $head; ?>
|
||||
|
||||
<title><?php print $head_title; ?></title>
|
||||
<?php print $styles; ?>
|
||||
|
||||
|
||||
<!-- All JavaScript at the bottom, except for Modernizr / Respond.
|
||||
Modernizr enables HTML5 elements & feature detects; Respond is a polyfill for min/max-width CSS3 Media Queries
|
||||
For optimal performance, use a custom Modernizr build: www.modernizr.com/download/ -->
|
||||
<script src="<?php print $theme_path ?>/bower_components/modernizr/modernizr.js" type="text/javascript"></script>
|
||||
|
||||
|
||||
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
</head>
|
||||
|
||||
<body class="<?php print $classes; ?>"<?php print $attributes; ?>>
|
||||
<div id="skip-link">
|
||||
<a href="#main-content" class="element-invisible element-focusable"><?php print t('Skip to main content'); ?></a>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="root">
|
||||
<?php print $page_top; ?>
|
||||
<?php print $page; ?>
|
||||
<?php print $page_bottom; ?>
|
||||
</div>
|
||||
|
||||
<!-- Javascript at the bottom for fast page loading -->
|
||||
<?php print $scripts; ?>
|
||||
|
||||
|
||||
<!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
|
||||
chromium.org/developers/how-tos/chrome-frame-getting-started -->
|
||||
<!--[if lt IE 7 ]>
|
||||
<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
|
||||
<script>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
|
||||
<![endif]-->
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,112 @@
|
||||
<?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; ?> clearfix"<?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); ?>
|
||||
|
||||
<?php if ($display_submitted): ?>
|
||||
<div class="submitted">
|
||||
<?php print $submitted; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="content"<?php print $content_attributes; ?>>
|
||||
<?php
|
||||
// We hide the comments and links now so that we can render them later.
|
||||
hide($content['comments']);
|
||||
hide($content['links']);
|
||||
print render($content);
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php print render($content['links']); ?>
|
||||
|
||||
<?php print render($content['comments']); ?>
|
||||
|
||||
</div>
|
||||
+140
@@ -0,0 +1,140 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Default theme implementation to display a single Drupal page.
|
||||
*
|
||||
* Available variables:
|
||||
*
|
||||
* General utility variables:
|
||||
* - $base_path: The base URL path of the Drupal installation. At the very
|
||||
* least, this will always default to /.
|
||||
* - $directory: The directory the template is located in, e.g. modules/system
|
||||
* or themes/bartik.
|
||||
* - $is_front: TRUE if the current page is the front page.
|
||||
* - $logged_in: TRUE if the user is registered and signed in.
|
||||
* - $is_admin: TRUE if the user has permission to access administration pages.
|
||||
*
|
||||
* Site identity:
|
||||
* - $front_page: The URL of the front page. Use this instead of $base_path,
|
||||
* when linking to the front page. This includes the language domain or
|
||||
* prefix.
|
||||
* - $logo: The path to the logo image, as defined in theme configuration.
|
||||
* - $site_name: The name of the site, empty when display has been disabled
|
||||
* in theme settings.
|
||||
* - $site_slogan: The slogan of the site, empty when display has been disabled
|
||||
* in theme settings.
|
||||
*
|
||||
* Navigation:
|
||||
* - $main_menu (array): An array containing the Main menu links for the
|
||||
* site, if they have been configured.
|
||||
* - $secondary_menu (array): An array containing the Secondary menu links for
|
||||
* the site, if they have been configured.
|
||||
* - $breadcrumb: The breadcrumb trail for the current page.
|
||||
*
|
||||
* Page content (in order of occurrence in the default page.tpl.php):
|
||||
* - $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: The page title, for use in the actual HTML content.
|
||||
* - $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.
|
||||
* - $messages: HTML for status and error messages. Should be displayed
|
||||
* prominently.
|
||||
* - $tabs (array): Tabs linking to any sub-pages beneath the current page
|
||||
* (e.g., the view and edit tabs when displaying a node).
|
||||
* - $action_links (array): Actions local to the page, such as 'Add menu' on the
|
||||
* menu administration interface.
|
||||
* - $feed_icons: A string of all feed icons for the current page.
|
||||
* - $node: The node object, if there is an automatically-loaded node
|
||||
* associated with the page, and the node ID is the second argument
|
||||
* in the page's path (e.g. node/12345 and node/12345/revisions, but not
|
||||
* comment/reply/12345).
|
||||
*
|
||||
* Regions:
|
||||
* - $page['help']: Dynamic help text, mostly for admin pages.
|
||||
* - $page['highlighted']: Items for the highlighted content region.
|
||||
* - $page['content']: The main content of the current page.
|
||||
* - $page['sidebar_first']: Items for the first sidebar.
|
||||
* - $page['sidebar_second']: Items for the second sidebar.
|
||||
* - $page['header']: Items for the header region.
|
||||
* - $page['footer']: Items for the footer region.
|
||||
*
|
||||
* @see template_preprocess()
|
||||
* @see template_preprocess_page()
|
||||
* @see template_process()
|
||||
*/
|
||||
?>
|
||||
|
||||
|
||||
<header
|
||||
id="header"
|
||||
class="">
|
||||
<?php print $site_title;?>
|
||||
<?php print $site_slogan;?>
|
||||
<?php //print render($page['header']); ?>
|
||||
</header>
|
||||
<!-- /header -->
|
||||
|
||||
<?php if($page['top']): ?>
|
||||
<div id="top" class="row">
|
||||
<div class="columns large-12">
|
||||
<?php print render($page['top']); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<!-- // top -->
|
||||
|
||||
<div id="center" class="row push">
|
||||
|
||||
<div id="leftsidebar" class="columns large-3">
|
||||
<?php print render($page['sidebar_first']); ?>
|
||||
</div>
|
||||
|
||||
<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 endif; ?>
|
||||
|
||||
<?php if ($show_messages && $messages): print $messages; endif; ?>
|
||||
|
||||
|
||||
<?php print render($page['help']); ?>
|
||||
|
||||
<div class="row">
|
||||
<section id="content" class="columns large-9" >
|
||||
<?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 print render($page['content_bottom']); ?>
|
||||
|
||||
</section>
|
||||
|
||||
<section
|
||||
id="rightsidebar" class="columns large-3">
|
||||
<?php print render($page['sidebar_second']) ?>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</main><!-- /main -->
|
||||
</div><!-- /center -->
|
||||
|
||||
<footer id="footer" class="push">
|
||||
<div class="row">
|
||||
<?php print render($page['footer']); ?>
|
||||
</div>
|
||||
</footer><!-- /footer -->
|
||||
Binary file not shown.
Reference in New Issue
Block a user