Main theme for SuiteDesk

This commit is contained in:
Manuel Cillero 2017-07-25 13:57:02 +02:00
parent 8cf3c56044
commit 42540d1310
185 changed files with 17597 additions and 0 deletions

View file

@ -0,0 +1,74 @@
<?php
/**
* @file
* Theme implementation to display a block.
*
* Available variables:
* - $title: Block title.
* - $content: Block content.
* - $block->module: Module that generated the block.
* - $block->delta: An ID for the block, unique within each module.
* - $block->region: The block region embedding the current block.
* - $edit_links: A list of contextual links for the block. It can be
* manipulated through the variable $edit_links_array from preprocess
* functions.
* - $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:
* - block: The current template type, i.e., "theming hook".
* - block-[module]: The module generating the block. For example, the user
* module is responsible for handling the default user navigation block. In
* that case the class would be "block-user".
* - first: The first block in the region.
* - last: The last block in the region.
* - region-count-[x]: The position of the block in the list of blocks in the
* current region.
* - region-odd: An odd-numbered block of the list of blocks in the current
* region.
* - region-even: An even-numbered block of the list of blocks in the current
* region.
* - count-[x]: The position of the block in the list of blocks on the current
* page.
* - odd: An odd-numbered block of the list of blocks on the current page.
* - even: An even-numbered block of the list of blocks on the current page.
*
* Helper variables:
* - $classes_array: Array of html class attribute values. It is flattened
* into a string within the variable $classes.
* - $edit_links_array: An array of contextual links for the block.
* - $block_zebra: Outputs 'odd' and 'even' dependent on each block region.
* - $zebra: Same output as $block_zebra but independent of any block region.
* - $block_id: Counter dependent on each block region.
* - $id: Same output as $block_id but independent of any block region.
* - $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.
* - $block_html_id: A valid HTML ID and guaranteed unique.
*
* @see template_preprocess()
* @see zen_preprocess()
* @see template_preprocess_block()
* @see zen_preprocess_block()
* @see zen_process()
*/
?>
<div id="<?php print $block_html_id; ?>" class="<?php print $classes; ?>">
<?php
if ($title) {
if (arg(0) == 'node' && is_numeric(arg(1))) {
$node = node_load(arg(1));
if ($node->type == 'stormproject') {
$title = $node->title;
}
}
print '<h2 class="title">' . $title . '</h2>';
}
?>
<div class="content">
<?php print $content; ?>
</div>
<?php print $edit_links; ?>
</div><!-- /.block -->

View file

@ -0,0 +1,66 @@
<?php
/**
* @file
* Theme implementation to display a block.
*
* Available variables:
* - $title: Block title.
* - $content: Block content.
* - $block->module: Module that generated the block.
* - $block->delta: An ID for the block, unique within each module.
* - $block->region: The block region embedding the current block.
* - $edit_links: A list of contextual links for the block. It can be
* manipulated through the variable $edit_links_array from preprocess
* functions.
* - $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:
* - block: The current template type, i.e., "theming hook".
* - block-[module]: The module generating the block. For example, the user
* module is responsible for handling the default user navigation block. In
* that case the class would be "block-user".
* - first: The first block in the region.
* - last: The last block in the region.
* - region-count-[x]: The position of the block in the list of blocks in the
* current region.
* - region-odd: An odd-numbered block of the list of blocks in the current
* region.
* - region-even: An even-numbered block of the list of blocks in the current
* region.
* - count-[x]: The position of the block in the list of blocks on the current
* page.
* - odd: An odd-numbered block of the list of blocks on the current page.
* - even: An even-numbered block of the list of blocks on the current page.
*
* Helper variables:
* - $classes_array: Array of html class attribute values. It is flattened
* into a string within the variable $classes.
* - $edit_links_array: An array of contextual links for the block.
* - $block_zebra: Outputs 'odd' and 'even' dependent on each block region.
* - $zebra: Same output as $block_zebra but independent of any block region.
* - $block_id: Counter dependent on each block region.
* - $id: Same output as $block_id but independent of any block region.
* - $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.
* - $block_html_id: A valid HTML ID and guaranteed unique.
*
* @see template_preprocess()
* @see zen_preprocess()
* @see template_preprocess_block()
* @see zen_preprocess_block()
* @see zen_process()
*/
?>
<div id="<?php print $block_html_id; ?>" class="<?php print $classes; ?>">
<?php if ($title): ?>
<h2 class="title"><?php print $title; ?></h2>
<?php endif; ?>
<div class="content">
<?php print $content; ?>
</div>
<?php print $edit_links; ?>
</div><!-- /.block -->

View file

@ -0,0 +1,134 @@
<?php
/**
* @file
* Template to display a view as a calendar day, grouped by time with overlapping items
*
* @see template_preprocess_calendar_day.
*
* $rows: The rendered data for this day.
* $rows['date'] - the date for this day, formatted as YYYY-MM-DD.
* $rows['datebox'] - the formatted datebox for this day.
* $rows['empty'] - empty text for this day, if no items were found.
* $rows['all_day'] - an array of formatted all day items.
* $rows['items'] - an array of timed items for the day.
* $rows['items'][$time_period]['hour'] - the formatted hour for a time period.
* $rows['items'][$time_period]['ampm'] - the formatted ampm value, if any for a time period.
* $rows['items'][$time_period][$column]['values'] - An array of formatted
* items for a time period and field column.
*
* $view: The view.
* $columns: an array of column names.
* $min_date_formatted: The minimum date for this calendar in the format YYYY-MM-DD HH:MM:SS.
* $max_date_formatted: The maximum date for this calendar in the format YYYY-MM-DD HH:MM:SS.
*
* The width of the columns is dynamically set using <col></col>
* based on the number of columns presented. The values passed in will
* work to set the 'hour' column to 10% and split the remaining columns
* evenly over the remaining 90% of the table.
*/
//dsm('Display: '. $display_type .': '. $min_date_formatted .' to '. $max_date_formatted);
?>
<div class="calendar-calendar"><div class="day-view">
<div id="multi-day-container">
<table class="full">
<tbody>
<tr class="holder">
<td class="calendar-time-holder"></td>
<td class="calendar-day-holder"></td>
</tr>
<tr>
<td class="<?php print $agenda_hour_class ?> first">
<span class="calendar-hour"><?php print date_t('All day', 'datetime') ?></span>
</td>
<td class="calendar-agenda-items multi-day last">
<?php foreach ($columns as $column): ?>
<div class="calendar">
<div class="inner">
<?php print isset($rows['all_day'][$column]) ? implode($rows['all_day'][$column]) : '&nbsp;';?>
</div>
</div>
<?php endforeach; ?>
</td>
</tr>
</tbody>
</table>
</div>
<div class="header-body-divider">&nbsp;</div>
<div id="single-day-container">
<script>
try {
// Hide container while it renders... Degrade w/o javascript support
$('#single-day-container').css('visibility','hidden');
}catch(e){
// swallow
}
</script>
<table class="full">
<tbody>
<tr class="holder">
<td class="calendar-time-holder"></td>
<td class="calendar-day-holder"></td>
</tr>
<tr>
<td class="first">
<?php $is_first = TRUE; ?>
<?php foreach ($rows['items'] as $time_cnt => $hour): ?>
<?php
if ($time_cnt == 0) {
$class = 'first ';
}
elseif ($time_cnt == count($start_times) - 1) {
$class = 'last ';
}
else {
$class = '';
} ?>
<div class="<?php print $class?>calendar-agenda-hour">
<span class="calendar-hour"><?php print $hour['hour']; ?></span>
<span class="calendar-ampm"><?php print $hour['ampm']; ?></span>
</div>
<?php endforeach; ?>
</td>
<td class="last">
<?php foreach ($rows['items'] as $time_cnt => $hour): ?>
<?php
if ($time_cnt == 0) {
$class = 'first ';
}
elseif ($time_cnt == count($start_times) - 1) {
$class = 'last ';
}
else {
$class = '';
} ?>
<div class="<?php print $class?>calendar-agenda-items single-day">
<div class="half-hour">&nbsp;</div>
<?php if ($is_first && isset($hour['values'][$column])) :?>
<div class="calendar item-wrapper first_item">
<?php $is_first = FALSE; ?>
<?php else : ?>
<div class="calendar item-wrapper">
<?php endif; ?>
<div class="inner">
<?php print isset($hour['values'][$column]) ? implode($hour['values'][$column]) : '&nbsp;'; ?>
</div>
</div>
</div>
<?php endforeach; ?>
</td>
</tr>
</tbody>
</table>
</div>
<div class="single-day-footer">&nbsp;</div>
</div></div>
<script>
try {
// Size and position the viewport inline so there are no delays
calendar_resizeViewport();
calendar_scrollToFirst();
$('#single-day-container').css('visibility','visible');
}catch(e){
// swallow
}
</script>

View file

@ -0,0 +1,56 @@
<?php
/**
* @file
* Template to display a view as a calendar month.
*
* @see template_preprocess_calendar_month.
*
* $day_names: An array of the day of week names for the table header.
* $rows: An array of data for each day of the week.
* $view: The view.
* $calendar_links: Array of formatted links to other calendar displays - year, month, week, day.
* $display_type: year, month, day, or week.
* $block: Whether or not this calendar is in a block.
* $min_date_formatted: The minimum date for this calendar in the format YYYY-MM-DD HH:MM:SS.
* $max_date_formatted: The maximum date for this calendar in the format YYYY-MM-DD HH:MM:SS.
* $date_id: a css id that is unique for this date,
* it is in the form: calendar-nid-field_name-delta
*
*/
//dsm('Display: '. $display_type .': '. $min_date_formatted .' to '. $max_date_formatted);
?>
<div class="calendar-calendar"><div class="table-responsive month-view">
<table class="table full">
<thead>
<tr>
<?php foreach ($day_names as $cell): ?>
<th class="<?php print $cell['class']; ?>">
<?php print $cell['data']; ?>
</th>
<?php endforeach; ?>
</tr>
</thead>
<tbody>
<?php
foreach ((array) $rows as $row) {
print $row['data'];
} ?>
</tbody>
</table>
</div></div>
<script>
try {
// ie hack to make the single day row expand to available space
if ($.browser.msie ) {
var multiday_height = $('tr.multi-day')[0].clientHeight; // Height of a multi-day row
$('tr[iehint]').each(function(index) {
var iehint = this.getAttribute('iehint');
// Add height of the multi day rows to the single day row - seems that 80% height works best
var height = this.clientHeight + (multiday_height * .8 * iehint);
this.style.height = height + 'px';
});
}
}catch(e){
// swallow
}
</script>

View file

@ -0,0 +1,124 @@
<?php
/**
* @file
* Template to display a view as a calendar week.
*
* @see template_preprocess_calendar_week.
*
* $day_names: An array of the day of week names for the table header.
* $rows: The rendered data for this week.
*
* For each day of the week, you have:
* $rows['date'] - the date for this day, formatted as YYYY-MM-DD.
* $rows['datebox'] - the formatted datebox for this day.
* $rows['empty'] - empty text for this day, if no items were found.
* $rows['all_day'] - an array of formatted all day items.
* $rows['items'] - an array of timed items for the day.
* $rows['items'][$time_period]['hour'] - the formatted hour for a time period.
* $rows['items'][$time_period]['ampm'] - the formatted ampm value, if any for a time period.
* $rows['items'][$time_period]['values'] - An array of formatted items for a time period.
*
* $view: The view.
* $min_date_formatted: The minimum date for this calendar in the format YYYY-MM-DD HH:MM:SS.
* $max_date_formatted: The maximum date for this calendar in the format YYYY-MM-DD HH:MM:SS.
*
*/
//dsm('Display: '. $display_type .': '. $min_date_formatted .' to '. $max_date_formatted);
//dsm($rows);
//dsm($items);
$index = 0;
$idate = 0;
?>
<div class="calendar-calendar"><div class="week-view">
<div class="table-responsive"><table class="table full">
<thead>
<tr>
<?php if($by_hour_count > 0 || !empty($start_times)) :?>
<th class="calendar-agenda-hour"><?php print t('Time')?></th>
<?php endif;?>
<?php foreach ($day_names as $cell): ?>
<th class="<?php print $cell['class']; ?>">
<?php print $cell['data'] . ' ' . date("j", strtotime($min_date_formatted . ' + ' . $idate++ . ' day')); ?>
</th>
<?php endforeach; ?>
</tr>
</thead>
<tbody>
<?php for ($i = 0; $i < $multiday_rows; $i++): ?>
<?php
$colpos = 0;
$rowclass = "all-day";
if( $i == 0) {
$rowclass .= " first";
}
if( $i == $multiday_rows - 1) {
$rowclass .= " last";
}
?>
<tr class="<?php print $rowclass?>">
<?php if($i == 0 && ($by_hour_count > 0 || !empty($start_times))) :?>
<td class="<?php print $agenda_hour_class ?>" rowspan="<?php print $multiday_rows?>">
<span class="calendar-hour"><?php print date_t('All day', 'datetime')?></span>
</td>
<?php endif; ?>
<?php for($j = 0; $j < 7; $j++): ?>
<?php $cell = (empty($all_day[$j][$i])) ? NULL : $all_day[$j][$i]; ?>
<?php if($cell != NULL && $cell['filled'] && $cell['wday'] == $j): ?>
<?php for($k = $colpos; $k < $cell['wday']; $k++) : ?>
<td class="multi-day no-entry"><div class="inner">&nbsp;</div></td>
<?php endfor;?>
<td colspan="<?php print $cell['colspan']?>" class="multi-day">
<div class="inner">
<?php print $cell['entry']?>
</div>
</td>
<?php $colpos = $cell['wday'] + $cell['colspan']; ?>
<?php endif; ?>
<?php endfor; ?>
<?php for($j = $colpos; $j < 7; $j++) : ?>
<td class="multi-day no-entry"><div class="inner">&nbsp;</div></td>
<?php endfor;?>
</tr>
<?php endfor; ?>
<?php foreach ($items as $time): ?>
<tr class="not-all-day">
<td class="calendar-agenda-hour">
<span class="calendar-hour"><?php print $time['hour']; ?></span>
<span class="calendar-ampm"><?php print $time['ampm']; ?></span>
</td>
<?php $curpos = 0; ?>
<?php foreach ($columns as $index => $column): ?>
<?php $colpos = (isset($time['values'][$column][0])) ? $time['values'][$column][0]['wday'] : $index; ?>
<?php for ($i = $curpos; $i < $colpos; $i++): ?>
<td class="calendar-agenda-items single-day">
<div class="calendar">
<div class="inner">&nbsp;</div>
</div>
</td>
<?php endfor; ?>
<?php $curpos = $colpos + 1;?>
<td class="calendar-agenda-items single-day">
<div class="calendar">
<div class="inner">
<?php if(!empty($time['values'][$column])) :?>
<?php foreach($time['values'][$column] as $item) :?>
<?php print $item['entry'] ?>
<?php endforeach; ?>
<?php endif; ?>
</div>
</div>
</td>
<?php endforeach; ?>
<?php for ($i = $curpos; $i < 7; $i++): ?>
<td class="calendar-agenda-items single-day">
<div class="calendar">
<div class="inner">&nbsp;</div>
</div>
</td>
<?php endfor; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table></div>
</div></div>

View file

@ -0,0 +1,192 @@
<?php
/**
* @file
* Template to display a view as a calendar week with overlapping items
*
* @see template_preprocess_calendar_week.
*
* $day_names: An array of the day of week names for the table header.
* $rows: The rendered data for this week.
*
* For each day of the week, you have:
* $rows['date'] - the date for this day, formatted as YYYY-MM-DD.
* $rows['datebox'] - the formatted datebox for this day.
* $rows['empty'] - empty text for this day, if no items were found.
* $rows['all_day'] - an array of formatted all day items.
* $rows['items'] - an array of timed items for the day.
* $rows['items'][$time_period]['hour'] - the formatted hour for a time period.
* $rows['items'][$time_period]['ampm'] - the formatted ampm value, if any for a time period.
* $rows['items'][$time_period]['values'] - An array of formatted items for a time period.
*
* $view: The view.
* $min_date_formatted: The minimum date for this calendar in the format YYYY-MM-DD HH:MM:SS.
* $max_date_formatted: The maximum date for this calendar in the format YYYY-MM-DD HH:MM:SS.
*
*/
//dsm('Display: '. $display_type .': '. $min_date_formatted .' to '. $max_date_formatted);
//dsm($rows);
//dsm($items);
?>
<div class="calendar-calendar"><div class="week-view">
<div id="header-container">
<table class="full">
<tbody>
<tr class="holder"><td class="calendar-time-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td></tr>
<tr>
<th class="calendar-agenda-hour">&nbsp;</th>
<?php
$idate = 0;
$today = date('Y-m-d', strtotime('now'));
foreach ($day_names as $cell) {
$weekday = strtotime($min_date_formatted . ' + ' . $idate++ . ' day');
print '<th class="' . $cell['class'] . (date('Y-m-d', $weekday) == $today ? ' today">' : '">');
print $cell['data'] . '<small>' . date("j", $weekday) . '</small>';
print '</th>';
}
?>
</tr>
</tbody>
</table>
</div>
<div id="multi-day-container">
<table class="full">
<tbody>
<tr class="holder"><td class="calendar-time-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td></tr>
<?php for ($i = 0; $i < $multiday_rows; $i++): ?>
<?php
$colpos = 0;
$rowclass = "all-day";
if( $i == 0) {
$rowclass .= " first";
}
if( $i == $multiday_rows - 1) {
$rowclass .= " last";
}
?>
<tr class="<?php print $rowclass?>">
<?php if($i == 0 && ($by_hour_count > 0 || !empty($start_times))) :?>
<td class="<?php print $agenda_hour_class ?>" rowspan="<?php print $multiday_rows?>">
<span class="calendar-hour"><?php print date_t('All day', 'datetime')?></span>
</td>
<?php endif; ?>
<?php for($j = 0; $j < 7; $j++): ?>
<?php $cell = (empty($all_day[$j][$i])) ? NULL : $all_day[$j][$i]; ?>
<?php if($cell != NULL && $cell['filled'] && $cell['wday'] == $j): ?>
<?php for($k = $colpos; $k < $cell['wday']; $k++) : ?>
<td class="calendar-agenda-items multi-day no-entry"><div class="inner">&nbsp;</div></td>
<?php endfor;?>
<td colspan="<?php print $cell['colspan']?>" class="calendar-agenda-items multi-day">
<div class="inner">
<?php print $cell['entry']?>
</div>
</td>
<?php $colpos = $cell['wday'] + $cell['colspan']; ?>
<?php endif; ?>
<?php endfor; ?>
<?php for($j = $colpos; $j < 7; $j++) : ?>
<td class="calendar-agenda-items multi-day no-entry"><div class="inner">&nbsp;</div></td>
<?php endfor;?>
</tr>
<?php endfor; ?>
<?php if ($multiday_rows == 0) :?>
<tr>
<td class="<?php print $agenda_hour_class ?>">
<span class="calendar-hour"><?php print date_t('All day', 'datetime')?></span>
</td>
<?php for($j = 0; $j < 7; $j++): ?>
<td class="calendar-agenda-items multi-day no-entry"><div class="inner">&nbsp;</div></td>
<?php endfor; ?>
</tr>
<?php endif; ?>
<tr class="expand">
<td class="<?php print $agenda_hour_class ?>">
<span class="calendar-hour">&nbsp;</span>
</td>
<?php for($j = 0; $j < 7; $j++): ?>
<td class="calendar-agenda-items multi-day no-entry"><div class="inner">&nbsp;</div></td>
<?php endfor; ?>
</tr>
</thead>
</table>
</div>
<div class="header-body-divider">&nbsp;</div>
<div id="single-day-container">
<script>
try {
// Hide container while it renders... Degrade w/o javascript support
$('#single-day-container').css('visibility','hidden');
}catch(e){
// swallow
}
</script>
<table class="full">
<tbody>
<tr class="holder"><td class="calendar-time-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td><td class="calendar-day-holder"></td></tr>
<tr>
<?php for ($index = 0; $index < 8; $index++): ?>
<?php if ($index == 0 ): ?>
<td class="first">
<?php elseif ($index == 7 ) : ?>
<td class="last">
<?php else : ?>
<td>
<?php endif; ?>
<?php foreach ($start_times as $time_cnt => $start_time): ?>
<?php
if ($time_cnt == 0) {
$class = 'first ';
}
elseif ($time_cnt == count($start_times) - 1) {
$class = 'last ';
}
else {
$class = '';
} ?>
<?php if( $index == 0 ): ?>
<?php $time = $items[$start_time];?>
<div class="<?php print $class?>calendar-agenda-hour">
<span class="calendar-hour"><?php print $time['hour']; ?></span>
<span class="calendar-ampm"><?php print $time['ampm']; ?></span>
</div>
<?php else: ?>
<div class="<?php print $class?>calendar-agenda-items single-day">
<div class="half-hour">&nbsp;</div>
<div class="calendar item-wrapper">
<div class="inner">
<?php if(!empty($items[$start_time]['values'][$index - 1])) :?>
<?php foreach($items[$start_time]['values'][$index - 1] as $item) :?>
<?php if (isset($item['is_first']) && $item['is_first']) :?>
<div class="item <?php print $item['class']?> first_item">
<?php else : ?>
<div class="item <?php print $item['class']?>">
<?php endif; ?>
<?php print $item['entry'] ?>
</div>
<?php endforeach; ?>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
<?php endforeach;?>
</td>
<?php endfor;?>
</tr>
</tbody>
</table>
</div>
<div class="single-day-footer">&nbsp;</div>
</div></div>
<script>
try {
// Size and position the viewport inline so there are no delays
calendar_resizeViewport();
calendar_scrollToFirst();
// Show it now that it is complete and positioned
$('#single-day-container').css('visibility','visible');
}catch(e){
// swallow
}
</script>

View file

@ -0,0 +1,26 @@
<?php
/**
* @file
* Template to display a view as a calendar year.
*
* @see template_preprocess_calendar_year.
*
* $view: The view.
* $months: An array with a formatted month calendar for each month of the year.
* $min_date_formatted: The minimum date for this calendar in the format YYYY-MM-DD HH:MM:SS.
* $max_date_formatted: The maximum date for this calendar in the format YYYY-MM-DD HH:MM:SS.
*
*/
//dsm('Display: '. $display_type .': '. $min_date_formatted .' to '. $max_date_formatted);
?>
<div class="calendar-calendar"><div class="table-responsive year-view">
<table class="<?php print $mini ? 'mini' : 'table'; ?>">
<tbody>
<tr><td><?php print $months[1] ?></td><td><?php print $months[2] ?></td><td><?php print $months[3] ?></td></tr>
<tr><td><?php print $months[4] ?></td><td><?php print $months[5] ?></td><td><?php print $months[6] ?></td></tr>
<tr><td><?php print $months[7] ?></td><td><?php print $months[8] ?></td><td><?php print $months[9] ?></td></tr>
<tr><td><?php print $months[10] ?></td><td><?php print $months[11] ?></td><td><?php print $months[12] ?></td></tr>
</tbody>
</table>
</div></div>

View file

@ -0,0 +1,79 @@
<div id="comment-<?php print $node->nid; ?>" class="comment tt-comment <?php print $zebra; ?> clearfix">
<h3 class="title"><?php print $comment_link; ?></h3>
<?php
if ($first_new) {
print $first_new;
}
if ($new_output) {
print $new_output;
}
$author_created = format_date($node->created, 'short');
$author_changed = format_date($node->changed, 'short');
$data = '<div class="tt-author">';
$data .= '<div class="tt-created">' . t('!created; !author', array(
'!created' => '<span class="tt-date">' . $author_created . '</span>',
'!author' => '<span class="tt-name">' . theme('username', $node) . '</span>')
) . '</div>';
if ($author_created != $author_changed) {
$data .= '<div class="tt-updated">' . t('!changed; updated', array(
'!changed' => '<span class="tt-date">' . $author_changed . '</span>')
) . '</div>';
}
$data .= '</div>';
print $data;
$changes = unserialize($node->field_stormtaskc_changes[0]['value']);
if (count($changes)) {
$data = '';
if (isset($changes['title_old'])) {
$data .= '<div class="tt-label">' . t('Title') . '</div>';
$data .= '<div class="tt-old">' . $changes['title_old'] . '</div>';
$data .= '<div class="tt-new">' . $node->field_stormtaskc_title[0]['value'] . '</div>';
}
if (isset($changes['category_old'])) {
$data .= '<div class="tt-label">' . t('Category') . '</div>';
$data .= '<div class="tt-old">' . t(storm_attribute_value('Task category', $changes['category_old'])) . '</div>';
$data .= '<div class="tt-new">' . t(storm_attribute_value('Task category', $node->field_stormtaskc_category[0]['value'])) . '</div>';
}
if (isset($changes['status_old'])) {
$data .= '<div class="tt-label">' . t('Status') . '</div>';
$data .= '<div class="tt-old">' . t(storm_attribute_value('Task status', $changes['status_old'])) . '</div>';
$data .= '<div class="tt-new">' . t(storm_attribute_value('Task status', $node->field_stormtaskc_status[0]['value'])) . '</div>';
}
if (isset($changes['priority_old'])) {
$data .= '<div class="tt-label">' . t('Priority') . '</div>';
$data .= '<div class="tt-old">' . t(storm_attribute_value('Task priority', $changes['priority_old'])) . '</div>';
$data .= '<div class="tt-new">' . t(storm_attribute_value('Task priority', $node->field_stormtaskc_priority[0]['value'])) . '</div>';
}
if (isset($changes['manager_old']) && isset($changes['manager_new'])) {
$data .= '<div class="tt-label">' . t('Task manager') . '</div>';
$data .= '<div class="tt-old">' . ($changes['manager_old'] == '&nbsp;' ? t('No manager') : $changes['manager_old']) . '</div>';
$data .= '<div class="tt-new">' . ($changes['manager_new'] == '&nbsp;' ? t('No manager') : $changes['manager_new']) . '</div>';
}
if (!empty($data)) {
print '<div class="tt-changed">' . $data . '</div>';
}
}
?>
<div class="content">
<?php print $content ?>
<?php if ($signature): ?>
<div class="user-signature clearfix">
<div></div>
<?php print $signature ?>
</div>
<?php endif; ?>
</div>
<?php if ($links): ?>
<div class="links"><?php print $links; ?></div>
<?php endif; ?>
</div><!-- /.comment -->

View file

@ -0,0 +1,79 @@
<div id="comment-<?php print $node->nid; ?>" class="comment tt-comment <?php print $zebra; ?> clearfix">
<h3 class="title"><?php print $comment_link; ?></h3>
<?php
if ($first_new) {
print $first_new;
}
if ($new_output) {
print $new_output;
}
$author_created = format_date($node->created, 'short');
$author_changed = format_date($node->changed, 'short');
$data = '<div class="tt-author">';
$data .= '<div class="tt-created">' . t('!created; !author', array(
'!created' => '<span class="tt-date">' . $author_created . '</span>',
'!author' => '<span class="tt-name">' . theme('username', $node) . '</span>')
) . '</div>';
if ($author_created != $author_changed) {
$data .= '<div class="tt-updated">' . t('!changed; updated', array(
'!changed' => '<span class="tt-date">' . $author_changed . '</span>')
) . '</div>';
}
$data .= '</div>';
print $data;
$changes = unserialize($node->field_stormticketc_changes[0]['value']);
if (count($changes)) {
$data = '';
if (isset($changes['title_old'])) {
$data .= '<div class="tt-label">' . t('Title') . '</div>';
$data .= '<div class="tt-old">' . $changes['title_old'] . '</div>';
$data .= '<div class="tt-new">' . $node->field_stormticketc_title[0]['value'] . '</div>';
}
if (isset($changes['category_old'])) {
$data .= '<div class="tt-label">' . t('Category') . '</div>';
$data .= '<div class="tt-old">' . t(storm_attribute_value('Ticket category', $changes['category_old'])) . '</div>';
$data .= '<div class="tt-new">' . t(storm_attribute_value('Ticket category', $node->field_stormticketc_category[0]['value'])) . '</div>';
}
if (isset($changes['status_old'])) {
$data .= '<div class="tt-label">' . t('Status') . '</div>';
$data .= '<div class="tt-old">' . t(storm_attribute_value('Ticket status', $changes['status_old'])) . '</div>';
$data .= '<div class="tt-new">' . t(storm_attribute_value('Ticket status', $node->field_stormticketc_status[0]['value'])) . '</div>';
}
if (isset($changes['priority_old'])) {
$data .= '<div class="tt-label">' . t('Priority') . '</div>';
$data .= '<div class="tt-old">' . t(storm_attribute_value('Ticket priority', $changes['priority_old'])) . '</div>';
$data .= '<div class="tt-new">' . t(storm_attribute_value('Ticket priority', $node->field_stormticketc_priority[0]['value'])) . '</div>';
}
if (isset($changes['assigned_old']) && isset($changes['assigned_new'])) {
$data .= '<div class="tt-label">' . t('Assigned') . '</div>';
$data .= '<div class="tt-old">' . ($changes['assigned_old'] == '&nbsp;' ? t('Not assigned') : $changes['assigned_old']) . '</div>';
$data .= '<div class="tt-new">' . ($changes['assigned_new'] == '&nbsp;' ? t('Not assigned') : $changes['assigned_new']) . '</div>';
}
if (!empty($data)) {
print '<div class="tt-changed">' . $data . '</div>';
}
}
?>
<div class="content">
<?php print $content ?>
<?php if ($signature): ?>
<div class="user-signature clearfix">
<div></div>
<?php print $signature ?>
</div>
<?php endif; ?>
</div>
<?php if ($links): ?>
<div class="links"><?php print $links; ?></div>
<?php endif; ?>
</div><!-- /.comment -->

View file

@ -0,0 +1,97 @@
<?php
/**
* @file
* Theme implementation to display a node.
*
* Available variables:
* - $title: the (sanitized) title of the node.
* - $content: Node body or teaser depending on $teaser flag.
* - $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.
* - $terms: the themed list of taxonomy term links output from theme_links().
* - $display_submitted: whether submission information should be displayed.
* - $submitted: Themed submission information output from
* theme_node_submitted().
* - $links: Themed links like "Read more", "Add new comment", etc. output
* from theme_links().
* - $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, i.e., "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.
* The following applies only to viewers who are registered users:
* - node-by-viewer: Node is authored by the user currently viewing the page.
*
* Other variables:
* - $node: Full node object. Contains data that may not be safe.
* - $type: Node type, i.e. 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:
* - $build_mode: Build mode, e.g. 'full', 'teaser'...
* - $teaser: Flag for the teaser state (shortcut for $build_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.
*
* The following variable is deprecated and will be removed in Drupal 7:
* - $picture: This variable has been renamed $user_picture in Drupal 7.
*
* @see template_preprocess()
* @see template_preprocess_node()
* @see zen_preprocess()
* @see zen_preprocess_node()
* @see zen_process()
*/
?>
<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix">
<?php print $user_picture; ?>
<?php if (!$page && $title): ?>
<h2 class="title"><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
<?php endif; ?>
<?php if ($unpublished): ?>
<div class="unpublished"><?php print t('Unpublished'); ?></div>
<?php endif; ?>
<div class="content">
<?php print $content; ?>
</div>
<?php if ($terms): ?>
<div class="terms meta"><?php print $terms; ?></div>
<?php endif; ?>
<?php if ($links): ?>
<div class="links meta"><?php print $links; ?></div>
<?php endif; ?>
</div><!-- /.node -->

View file

@ -0,0 +1,458 @@
<!DOCTYPE html>
<html <?php print $html_attributes; ?>>
<head>
<?php print $head; ?>
<title>manuel.cillero.es | SuiteDesk</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<?php
global $base_url;
print '<meta property="og:url" content="'. url(isset($_GET['q']) ? $_GET['q'] : '<front>', array('absolute' => TRUE)) ."\" />\n";
print '<meta property="og:title" content="'. ($title ? $title : $head_title) ."\" />\n";
$view_image = $node->field_imagen_adjunta[0]['view'];
if ($node && !empty($view_image)) {
$ini = strpos($view_image, '"') + 1;
$end = strpos($view_image, '"', $ini);
$og_image = substr($view_image, $ini, $end - $ini);
} else {
$og_image = $base_url . '/' . $directory . '/images/manuel.cillero.es.jpg';
}
print '<meta property="og:image" content="'. $og_image ."\" />\n";
if ($site_name) print '<meta property="og:site_name" content="'. $site_name ."\" />\n";
?>
<?php print $styles; ?>
<link type="text/css" rel="stylesheet" media="all" href="//fonts.googleapis.com/css?family=Lato:300,400,700" />
<?php if (user_is_anonymous()): ?>
<link type="text/css" rel="stylesheet" media="all" href="<?php print $base_path . $directory; ?>/css/frontpage.css" />
<link type="text/css" rel="stylesheet" media="all" href="<?php print $base_path . $directory; ?>/css/frontpage-responsive.css" />
<link type="text/css" rel="stylesheet" media="all" href="<?php print $base_path . $directory; ?>/css/frontpage-cslider.css" />
<link type="text/css" rel="stylesheet" media="all" href="<?php print $base_path . $directory; ?>/css/frontpage-bxslider.css" />
<link type="text/css" rel="stylesheet" media="all" href="<?php print $base_path . $directory; ?>/css/frontpage-animate.css" />
<?php endif; ?>
<?php print $scripts; ?>
<!--[if lt IE 9]>
<script src="<?php print $base_path . $directory; ?>/js/respond.min.js"></script>
<script src="<?php print $base_path . $directory; ?>/js/html5shiv.min.js"></script>
<![endif]-->
</head>
<body class="<?php print $classes; ?>">
<div id="skip-link"><a href="#main-content"><?php print t('Skip to main content'); ?></a></div>
<div id="page-wrapper">
<?php if ($primary_links || $navigation): ?>
<div id="navigation-top"><div class="section clearfix">
<ul class="social-menu">
<?php
$currenturl = drupal_get_path_alias($_GET['q']);
$ESlink = '<a href="/' . $currenturl . '" title="Español">ES</a>';
$ENlink = '<a href="/en/' . $currenturl . '" title="English">EN</a>';
if ($language->language != 'es') {
$ENlink = '<strong>' . $ENlink . '</strong>';
} else {
$ESlink = '<strong>' . $ESlink . '</strong>';
}
print '<li class="lang-item">' . $ESlink . '</li>';
print '<li class="lang-item">' . $ENlink . '</li>';
?>
<li class="social-link-rss"><a href="http://manuel.cillero.es/feed" title="Rss" class="icon-rss"><span class="element-invisible">RSS</span></a></li>
<li class="social-link-twitter"><a href="http://twitter.com/manuelcillero" title="Twitter" target="_blank" class="icon-twitter"><span class="element-invisible">Twitter</span></a></li>
<li class="social-link-facebook"><a href="http://facebook.com/manuelcillero" title="Facebook" target="_blank" class="icon-facebook"><span class="element-invisible">Facebook</span></a></li>
<li class="social-link-linkedin"><a href="http://es.linkedin.com/in/manuelcillero" title="Linkedin" target="_blank" class="icon-linkedin"><span class="element-invisible">LinkedIn</span></a></li>
<li class="social-link-mail"><a href="http://manuel.cillero.es/contact" title="Mail" target="_blank" class="icon-mail"><span class="element-invisible">Mail</span></a></li>
</ul>
</div></div><!-- /.section, /#navigation-top -->
<div id="navigation" class="navbar navbar-default"><div class="section clearfix">
<nav id="main-menu" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-main">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="<?php print $base_url . ($language->language != 'es' ? '/' . $language->language : '') . (user_is_logged_in() ? '/user' : ''); ?>" title="<?php print t('SuiteDesk homepage'); ?>" class="logo"><?php print '<img src="' . $base_path . $directory . '/images/suitedesk.png" alt="manuel.cillero.es" />'; ?></a>
</div>
<div id="navbar-main" class="collapse navbar-collapse">
<?php print $primary_links; ?>
</div><!-- /#navbar-main -->
</nav><!-- /#main-menu -->
<?php print $navigation; ?>
</div></div><!-- /.section, /#navigation -->
<?php endif; ?>
<?php if (user_is_anonymous()): ?>
<div id="frontpage">
<!-- Start home section -->
<div id="home">
<!-- Start cSlider -->
<div id="da-slider" class="da-slider">
<!-- All slides centred in container element -->
<div class="container">
<!-- Start slide 1 -->
<div class="da-slide">
<h2><?php print t('Welcome to SuiteDesk'); ?></h2>
<h4><?php print t('Collaboration & Planning Tool'); ?></h4>
<p><?php print t('!suitedesk is my own web based app for planning, knowledge sharing, clients support, collaboration and personal productivity, with both powerful and simplicity in mind.', array('!suitedesk' => '<strong>SuiteDesk</strong>')); ?></p>
<a href="/user" class="da-link button"><?php print t('Log in'); ?></a>
<div class="da-img">
<img src="<?php print $base_path . $directory; ?>/images/frontpage/Slider01.png" alt="<?php print t('Welcome to SuiteDesk'); ?>" width="320" />
</div>
</div>
<!-- End slide -->
<!-- Start slide 2 -->
<div class="da-slide">
<h2><?php print t('From Ideas To Code'); ?></h2>
<h4><?php print t('Solving Real-World Problems'); ?></h4>
<p><?php print t('I like to indulge in my own projects like !suitedesk and create something fun that adds to my daily life. I have a special appreciation for creative concepts and new technologies.', array('!suitedesk' => '<strong>SuiteDesk</strong>')); ?></p>
<a href="http://manuel.cillero.es/about" class="da-link button"><?php print t('More about me'); ?></a>
<div class="da-img">
<img src="<?php print $base_path . $directory; ?>/images/frontpage/Slider02.png" alt="<?php print t('Professional Programmer'); ?>" width="320" />
</div>
</div>
<!-- End slide -->
<!-- Start slide 3 -->
<div class="da-slide">
<h2><?php print t('Sharing Expertise'); ?></h2>
<h4><?php print t('Get in touch'); ?></h4>
<p><?php print t('Whether you\'re an individual, a corporation, a non-profit or an online retailer, I\'m all over the web. It\'s my job.'); ?></p>
<a href="http://manuel.cillero.es/contact" class="da-link button"><?php print t('Contact me'); ?></a>
<div class="da-img">
<img src="<?php print $base_path . $directory; ?>/images/frontpage/Slider03.png" width="320" alt="<?php print t('Want to Start a Project'); ?>" />
</div>
</div>
<!-- End slide -->
<!-- Start cSlide navigation arrows -->
<div class="da-arrows">
<span class="da-arrows-prev"></span>
<span class="da-arrows-next"></span>
</div>
<!-- End cSlide navigation arrows -->
</div>
</div>
</div>
<!-- End home section -->
<div class="page-section secondary-section" id="elegance">
<div class="container centered">
<p class="large-text"><?php print t('MY WAY TO GET WORK DONE') . ' &nbsp; ;&nbsp;)'; ?></p>
</div>
</div>
<!-- SuiteDesk section start -->
<div class="page-section secondary-section " id="suitedesk">
<div class="triangle"></div>
<div class="container">
<div class=" title">
<h1><?php print t('SuiteDesk Features'); ?></h1>
</div>
<!-- Start details for 1 -->
<div id="single-project">
<div id="slidingDiv" class="toggleDiv row-fluid single-project">
<div class="span6">
<img src="<?php print $base_path . $directory; ?>/images/frontpage/ProjectsAndTasks.png" alt="<?php print t('Projects & Tasks'); ?>" />
</div>
<div class="span6">
<div class="project-description">
<div class="project-title clearfix">
<h3><?php print t('Projects & Tasks'); ?></h3>
<span class="show_hide close"><i class="icon-cancel"></i></span>
</div>
<p><?php print t('Keep track of everything, with visual indicators and Gantt charts to monitorize tasks and subtasks in order to stay up to date with milestones, track of time, workflows and all that requires your attention.'); ?></p>
<div class="project-info">
<div><?php print t('<span>Simple</span> but powerful tool'); ?></div>
<div><?php print t('<span>Easy</span> online collaboration'); ?></div>
<div><?php print t('<span>Access</span> to project shared files'); ?></div>
<div><?php print t('<span>Agile</span> management with Kanban boards'); ?></div>
</div>
</div>
</div>
</div>
<!-- End details -->
<!-- Start details for 2 -->
<div id="slidingDiv1" class="toggleDiv row-fluid single-project">
<div class="span6">
<img src="<?php print $base_path . $directory; ?>/images/frontpage/Doks.png" alt="Doks" />
</div>
<div class="span6">
<div class="project-description">
<div class="project-title clearfix">
<h3>Doks</h3>
<span class="show_hide close"><i class="icon-cancel"></i></span>
</div>
<p><?php print t('Documents are "web documents", availables wherever you are. Use the book project to keep project requeriments, attached files, install and user guides, or meeting minutes at your fingertips.'); ?></p>
<div class="project-info">
<div><?php print t('<span>Doks</span> are documents and knowledge'); ?></div>
<div><?php print t('<span>With</span> hyperlinking and taxonomies'); ?></div>
<div><?php print t('<span>Attach</span> any file to any document'); ?></div>
<div><?php print t('<span>Basic</span> hierarchy easy to manage'); ?></div>
</div>
</div>
</div>
</div>
<!-- End details -->
<!-- Start details for 3 -->
<div id="slidingDiv2" class="toggleDiv row-fluid single-project">
<div class="span6">
<img src="<?php print $base_path . $directory; ?>/images/frontpage/Tickets.png" alt="<?php print 'Issue Tracking'; ?>" />
</div>
<div class="span6">
<div class="project-description">
<div class="project-title clearfix">
<h3><?php print t('Issue Tracking'); ?></h3>
<span class="show_hide close"><i class="icon-cancel"></i></span>
</div>
<p><?php print t('You can report and interact on every issue that arise in your project and easily track it and get all needed information until get fixed and tested.'); ?></p>
<div class="project-info">
<div><?php print t('<span>Reduce</span> miscommunication'); ?></div>
<div><?php print t('<span>Get</span> non-technical users involved'); ?></div>
<div><?php print t('<span>Quick</span> and easy issue creating and updating'); ?></div>
<div><?php print t('<span>Attach</span> files or images directly to tickets'); ?></div>
</div>
</div>
</div>
</div>
<!-- End details -->
<!-- Start details for 4 -->
<div id="slidingDiv3" class="toggleDiv row-fluid single-project">
<div class="span6">
<img src="<?php print $base_path . $directory; ?>/images/frontpage/Responsive.png" alt="<?php print 'Responsive Design'; ?>" />
</div>
<div class="span6">
<div class="project-description">
<div class="project-title clearfix">
<h3><?php print t('Responsive Design'); ?></h3>
<span class="show_hide close"><i class="icon-cancel"></i></span>
</div>
<p><?php print t('SuiteDesk is optimized to look great on mobile devices thanks to its responsive design. All pages adapt automatically to the screen size on a mobile phone, tablet or desktop computer.'); ?></p>
<div class="project-info">
<div><?php print t('<span>Get</span> complete multi-platform support'); ?></div>
<div><?php print t('<span>Content</span> moves freely across all screen resolutions'); ?></div>
<div><?php print t('<span>Provide</span> an optimal user experience'); ?></div>
<div><?php print t('<span>Its</span> what Google demands'); ?></div>
</div>
</div>
</div>
</div>
<!-- End details -->
<!-- Start details for 5 -->
<div id="slidingDiv4" class="toggleDiv row-fluid single-project">
<div class="span6">
<img src="<?php print $base_path . $directory; ?>/images/frontpage/SuiteCRM.png" alt="CRM" />
</div>
<div class="span6">
<div class="project-description">
<div class="project-title clearfix">
<h3><?php print t('Also CRM, with SuiteCRM'); ?></h3>
<span class="show_hide close"><i class="icon-cancel"></i></span>
</div>
<p><?php print t('SuiteCRM offers everything you need to find and keep customers, improve sales and marketing workflow and focus on creating and capturing opportunities.'); ?></p>
<div class="project-info">
<div><?php print t('<span>Track</span> all accounts and related contacts'); ?></div>
<div><?php print t('<span>Never</span> lose track of an important email'); ?></div>
<div><?php print t('<span>Create</span> and execute campaigns'); ?></div>
<div><?php print t('<span>Close</span> deals and keep customers happy'); ?></div>
</div>
</div>
</div>
</div>
<!-- End details -->
<!-- Start details for 6-->
<div id="slidingDiv5" class="toggleDiv row-fluid single-project">
<div class="span6">
<img src="<?php print $base_path . $directory; ?>/images/frontpage/Gitlab.png" alt="<?php print 'I love Gitlab'; ?>" />
</div>
<div class="span6">
<div class="project-description">
<div class="project-title clearfix">
<h3>I &hearts; Gitlab</h3>
<span class="show_hide close"><i class="icon-cancel"></i></span>
</div>
<p><?php print t('I have my own Gitlab server fully functional to manage git repositories with fine grained access controls that keep code secure.'); ?></p>
<div class="project-info">
<div><?php print t('<span>Git</span> advanced repository management'); ?></div>
<div><?php print t('<span>Code</span> reviews with activity feeds'); ?></div>
<div><?php print t('<span>Fine</span> grained access controls'); ?></div>
<div><?php print '<span>' . t('Link') . '</span> <a href="https://gitlab.cillero.es">https://gitlab.cillero.es</a>'; ?></div>
</div>
</div>
</div>
</div>
<!-- End details -->
<ul id="portfolio-grid" class="thumbnails row">
<li class="span4 mix web">
<div class="thumbnail">
<img src="<?php print $base_path . $directory; ?>/images/frontpage/ProjectsAndTasks.png" alt="<?php print t('Projects & Tasks'); ?>" />
<a href="#single-project" class="more show_hide" rel="#slidingDiv">
<i class="icon-plus"></i>
</a>
<h3><?php print t('Projects & Tasks'); ?></h3>
<p><?php print t('Keep up to date'); ?></p>
<div class="mask"></div>
</div>
</li>
<li class="span4 mix photo">
<div class="thumbnail">
<img src="<?php print $base_path . $directory; ?>/images/frontpage/Doks.png" alt="Doks" />
<a href="#single-project" class="show_hide more" rel="#slidingDiv1">
<i class="icon-plus"></i>
</a>
<h3>Doks</h3>
<p><?php print t('Capture every action'); ?></p>
<div class="mask"></div>
</div>
</li>
<li class="span4 mix identity">
<div class="thumbnail">
<img src="<?php print $base_path . $directory; ?>/images/frontpage/Tickets.png" alt="<?php print 'Issue Tracking'; ?>" />
<a href="#single-project" class="more show_hide" rel="#slidingDiv2">
<i class="icon-plus"></i>
</a>
<h3><?php print t('Issue Tracking'); ?></h3>
<p><?php print t('Fixing everything'); ?></p>
<div class="mask"></div>
</div>
</li>
<li class="span4 mix web">
<div class="thumbnail">
<img src="<?php print $base_path . $directory; ?>/images/frontpage/Responsive.png" alt="<?php print 'Responsive Design'; ?>" />
<a href="#single-project" class="show_hide more" rel="#slidingDiv3">
<i class="icon-plus"></i>
</a>
<h3><?php print t('Responsive Design'); ?></h3>
<p><?php print t('Adapting to the viewing device'); ?></p>
<div class="mask"></div>
</div>
</li>
<li class="span4 mix photo">
<div class="thumbnail">
<img src="<?php print $base_path . $directory; ?>/images/frontpage/SuiteCRM.png" alt="CRM" />
<a href="#single-project" class="show_hide more" rel="#slidingDiv4">
<i class="icon-plus"></i>
</a>
<h3>CRM</h3>
<p><?php print t('Following opportunities'); ?></p>
<div class="mask"></div>
</div>
</li>
<li class="span4 mix identity">
<div class="thumbnail">
<img src="<?php print $base_path . $directory; ?>/images/frontpage/Gitlab.png" alt="<?php print 'I love Gitlab'; ?>" />
<a href="#single-project" class="show_hide more" rel="#slidingDiv5">
<i class="icon-plus"></i>
</a>
<h3>I &hearts; Gitlab</h3>
<p><?php print t('Sharing code'); ?></p>
<div class="mask"></div>
</div>
</li>
</ul>
</div>
</div>
</div>
<!-- Portfolio section end -->
</div><!-- /#frontpage -->
<?php else: ?>
<div id="page-title"><div class="section clearfix">
<h1 class="title"><?php print $title; ?></h1>
</div></div><!-- /.section, /#page-title -->
<div id="page">
<header id="header" role="banner"><div class="section clearfix">
<?php if ($search_box): ?>
<div id="search-box"><?php print $search_box; ?></div>
<?php endif; ?>
<?php print $header; ?>
</div></header><!-- /.section, /#header -->
<div id="main-wrapper"><div id="main" class="clearfix<?php if ($primary_links || $navigation) { print ' with-navigation'; } ?>">
<div id="main-content" class="column">
<?php if ($tabs): ?>
<div class="tabs"><?php print $tabs; ?></div>
<?php endif; ?>
<div class="section">
<?php print $highlight; ?>
<?php print $messages; ?>
<?php print $help; ?>
<?php print $content_top; ?>
<div id="content-area">
<?php print $content; ?>
</div>
<?php print $content_bottom; ?>
</div></div><!-- /.section, /#main-content -->
<?php print $sidebar_main; ?>
</div></div><!-- /#main, /#main-wrapper -->
</div><!-- /#page -->
<?php if ($footer || $footer_message): ?>
<div id="footer">
<div class="section">
<?php if ($footer_message): ?>
<div id="footer-message"><?php print $footer_message; ?></div>
<?php endif; ?>
<?php print $footer; ?>
</div><!-- /.section -->
</div><!-- /#footer -->
<?php endif; ?>
<?php endif; ?>
<!-- ScrollUp button -->
<a href="#" id="scroll-top-link" class="icon-up-open"></a>
<footer id="socket"><div class="section">
<span class='copyright'>2009-<?php print date('Y'); ?> &copy; manuel.cillero.es</span>
<ul class="social-menu">
<li class="social-link-rss"><a href="http://manuel.cillero.es/feed" title="Rss" class="icon-rss"><span class="element-invisible">RSS</span></a></li>
<li class="social-link-twitter"><a href="http://twitter.com/manuelcillero" title="Twitter" target="_blank" class="icon-twitter"><span class="element-invisible">Twitter</span></a></li>
<li class="social-link-facebook"><a href="http://facebook.com/manuelcillero" title="Facebook" target="_blank" class="icon-facebook"><span class="element-invisible">Facebook</span></a></li>
<li class="social-link-linkedin"><a href="http://es.linkedin.com/in/manuelcillero" title="Linkedin" target="_blank" class="icon-linkedin"><span class="element-invisible">LinkedIn</span></a></li>
<li class="social-link-mail"><a href="http://manuel.cillero.es/contact" title="Mail" target="_blank" class="icon-mail"><span class="element-invisible">Mail</span></a></li>
</ul>
</div></footer><!-- /.section, /#socket -->
<?php if (user_is_anonymous()): ?>
<script type="text/javascript" src="<?php print $base_path . $directory; ?>/js/modernizr.custom.js"></script>
<script type="text/javascript" src="<?php print $base_path . $directory; ?>/js/jquery.mixitup.js"></script>
<script type="text/javascript" src="<?php print $base_path . $directory; ?>/js/jquery.bxslider.js"></script>
<script type="text/javascript" src="<?php print $base_path . $directory; ?>/js/jquery.cslider.js"></script>
<script type="text/javascript" src="<?php print $base_path . $directory; ?>/js/jquery.placeholder.js"></script>
<script type="text/javascript" src="<?php print $base_path . $directory; ?>/js/jquery.inview.js"></script>
<script type="text/javascript" src="<?php print $base_path . $directory; ?>/js/frontapp.js"></script>
<?php endif; ?>
</div><!-- /#page-wrapper -->
<?php print $page_closure; ?>
<?php print $closure; ?>
</body>
</html>

View file

@ -0,0 +1,280 @@
<?php
/**
* @file
* 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 /.
* - $css: An array of CSS files for the current page.
* - $directory: The directory the template is located in, e.g. modules/system
* or themes/garland.
* - $is_front: TRUE if the current page is the front page. Used to toggle the mission statement.
* - $logged_in: TRUE if the user is registered and signed in.
* - $is_admin: TRUE if the user has permission to access administration pages.
*
* Page metadata:
* - $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'.
* - $head_title: A modified version of the page title, for use in the TITLE tag.
* - $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.
* - $classes: String of classes that can be used to style contextually through
* CSS. It should be placed within the <body> tag. When selecting through CSS
* it's recommended that you use the body tag, e.g., "body.front". It can be
* manipulated through the variable $classes_array from preprocess functions.
* The default values can be one or more of the following:
* - front: Page is the home page.
* - not-front: Page is not the home page.
* - logged-in: The current viewer is logged in.
* - not-logged-in: The current viewer is not logged in.
* - node-type-[node type]: When viewing a single node, the type of that node.
* For example, if the node is a "Blog entry" it would result in "node-type-blog".
* Note that the machine name will often be in a short form of the human readable label.
* - page-views: Page content is generated from Views. Note: a Views block
* will not cause this class to appear.
* - page-panels: Page content is generated from Panels. Note: a Panels block
* will not cause this class to appear.
* The following only apply with 'sidebar_second' block regions:
* - no-sidebars: When no sidebar content exists.
* - one-sidebar, sidebar-second: A combination of the
* two classes when only one of the two sidebars have content.
* - $node: Full node object. Contains data that may not be safe. This is only
* available if the current page is on the node's primary url.
* - $menu_item: (array) A page's menu item. This is only available if the
* current page is in the menu.
*
* 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.
*
* Navigation:
* - $search_box: HTML to display the search box, empty if search has been disabled.
* - $primary_links (array): An array containing the Primary menu links for the
* site, if they have been configured.
* - $secondary_links (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: The page title, for use in the actual HTML content.
* - $messages: HTML for status and error messages. Should be displayed prominently.
* - $tabs: Tabs linking to any sub-pages beneath the current page (e.g., the
* view and edit tabs when displaying a node).
* - $help: Dynamic help text, mostly for admin pages.
* - $content: The main content of the current page.
* - $feed_icons: A string of all feed icons for the current page.
*
* Footer/closing data:
* - $footer_message: The footer message as defined in the admin settings.
* - $closure: Final closing markup from any modules that have altered the page.
* This variable should always be output last, after all other dynamic content.
*
* Helper variables:
* - $classes_array: Array of html class attribute values. It is flattened
* into a string within the variable $classes.
*
* Regions:
* - $content_top: Items to appear above the main content of the current page.
* - $content_bottom: Items to appear below the main content of the current page.
* - $navigation: Items for the navigation bar.
* - $sidebar_second: Items for the second sidebar.
* - $header: Items for the header region.
* - $footer: Items for the footer region.
* - $page_closure: Items to appear below the footer.
*
* The following variables are deprecated and will be removed in Drupal 7:
* - $body_classes: This variable has been renamed $classes in Drupal 7.
*
* @see template_preprocess()
* @see template_preprocess_page()
* @see zen_preprocess()
* @see zen_process()
*/
?>
<!DOCTYPE html>
<html <?php print $html_attributes; ?>>
<head>
<?php print $head; ?>
<title><?php
// Suffix for public (U+00B0), authorised (U+207B) and private (U+00AA) nodes:
print str_replace(array('°', 'ª', '⁻'), '', $head_title); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<?php
global $base_url;
print '<meta property="og:url" content="'. url(isset($_GET['q']) ? $_GET['q'] : '<front>', array('absolute' => TRUE)) ."\" />\n";
print '<meta property="og:title" content="'. ($title ? $title : $head_title) ."\" />\n";
$view_image = $node->field_imagen_adjunta[0]['view'];
if ($node && !empty($view_image)) {
$ini = strpos($view_image, '"') + 1;
$end = strpos($view_image, '"', $ini);
$og_image = substr($view_image, $ini, $end - $ini);
} else {
$og_image = $base_url . '/' . $directory . '/images/manuel.cillero.es.jpg';
}
print '<meta property="og:image" content="'. $og_image ."\" />\n";
if ($site_name) print '<meta property="og:site_name" content="'. $site_name ."\" />\n";
?>
<?php print $styles; ?>
<link type="text/css" rel="stylesheet" media="all" href="//fonts.googleapis.com/css?family=Lato:300,400,700" />
<?php print $scripts; ?>
<!--[if lt IE 9]>
<link type="text/css" rel="stylesheet" media="all" href="<?php print $base_path . $directory; ?>/css/ie8.css" />
<script src="<?php print $base_path . $directory; ?>/js/respond.min.js"></script>
<script src="<?php print $base_path . $directory; ?>/js/html5shiv.min.js"></script>
<![endif]-->
</head>
<body class="<?php print $classes; ?>">
<div id="skip-link"><a href="#main-content"><?php print t('Skip to main content'); ?></a></div>
<div id="page-wrapper">
<?php if ($primary_links || $navigation): ?>
<div id="navigation-top"><div class="section clearfix">
<ul class="social-menu">
<?php
$currenturl = drupal_get_path_alias($_GET['q']);
$ESlink = '<a href="/' . $currenturl . '" title="Español">ES</a>';
$ENlink = '<a href="/en/' . $currenturl . '" title="English">EN</a>';
if ($language->language != 'es') {
$ENlink = '<strong>' . $ENlink . '</strong>';
} else {
$ESlink = '<strong>' . $ESlink . '</strong>';
}
print '<li class="lang-item">' . $ESlink . '</li>';
print '<li class="lang-item">' . $ENlink . '</li>';
?>
<li class="social-link-rss"><a href="http://manuel.cillero.es/feed" title="Rss" class="icon-rss"><span class="element-invisible">RSS</span></a></li>
<li class="social-link-twitter"><a href="http://twitter.com/manuelcillero" title="Twitter" target="_blank" class="icon-twitter"><span class="element-invisible">Twitter</span></a></li>
<li class="social-link-facebook"><a href="http://facebook.com/manuelcillero" title="Facebook" target="_blank" class="icon-facebook"><span class="element-invisible">Facebook</span></a></li>
<li class="social-link-linkedin"><a href="http://es.linkedin.com/in/manuelcillero" title="Linkedin" target="_blank" class="icon-linkedin"><span class="element-invisible">LinkedIn</span></a></li>
<li class="social-link-mail"><a href="http://manuel.cillero.es/contact" title="Mail" target="_blank" class="icon-mail"><span class="element-invisible">Mail</span></a></li>
</ul>
</div></div><!-- /.section, /#navigation-top -->
<div id="navigation" class="navbar navbar-default"><div class="section clearfix">
<nav id="main-menu" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-main">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="<?php print $base_url . ($language->language != 'es' ? '/' . $language->language : '') . (user_is_logged_in() ? '/user' : ''); ?>" title="<?php print t('SuiteDesk homepage'); ?>" class="logo"><?php print '<img src="' . $base_path . $directory . '/images/suitedesk.png" alt="manuel.cillero.es" />'; ?></a>
</div>
<div id="navbar-main" class="collapse navbar-collapse">
<?php print $primary_links; ?>
</div><!-- /#navbar-main -->
</nav><!-- /#main-menu -->
<?php print $navigation; ?>
</div></div><!-- /.section, /#navigation -->
<?php endif; ?>
<?php if ($title): ?>
<div id="page-title"><div class="section clearfix">
<?php
$title = '<h1 class="title">' . $title . '</h1>';
if (empty($node) && arg(0) == 'node' && is_numeric(arg(1))) {
$node = node_load(arg(1));
}
if (!empty($node)) {
$title = '<div id="' . $node->type . '-item" class="stormcomponent"></div>' . $title;
}
if (!empty($breadcrumb)) {
$title .= $breadcrumb;
}
print $title;
?>
</div></div><!-- /.section, /#page-title -->
<?php endif; ?>
<div id="page">
<header id="header" role="banner"><div class="section clearfix">
<?php if ($search_box): ?>
<div id="search-box"><?php print $search_box; ?></div>
<?php endif; ?>
<?php print $header; ?>
</div></header><!-- /.section, /#header -->
<div id="main-wrapper"><div id="main" class="clearfix<?php if ($primary_links || $navigation) { print ' with-navigation'; } ?>">
<div id="main-content" class="column">
<?php if ($tabs): ?>
<div class="tabs"><?php print $tabs; ?></div>
<?php endif; ?>
<div class="section">
<?php print $highlight; ?>
<?php print $messages; ?>
<?php print $help; ?>
<?php print $content_top; ?>
<div id="content-area">
<?php print $content; ?>
</div>
<?php print $content_bottom; ?>
</div></div><!-- /.section, /#main-content -->
<?php print $sidebar_main; ?>
</div></div><!-- /#main, /#main-wrapper -->
</div><!-- /#page -->
<?php if ($footer || $footer_message): ?>
<div id="footer">
<div class="section">
<?php if ($footer_message): ?>
<div id="footer-message"><?php print $footer_message; ?></div>
<?php endif; ?>
<?php print $footer; ?>
</div><!-- /.section -->
</div><!-- /#footer -->
<?php endif; ?>
<!-- ScrollUp button -->
<a href="#" id="scroll-top-link" class="icon-up-open"></a>
<footer id="socket"><div class="section">
<span class='copyright'>2009-<?php print date('Y'); ?> &copy; manuel.cillero.es</span>
<ul class="social-menu">
<li class="social-link-rss"><a href="http://manuel.cillero.es/feed" title="Rss" class="icon-rss"><span class="element-invisible">RSS</span></a></li>
<li class="social-link-twitter"><a href="http://twitter.com/manuelcillero" title="Twitter" target="_blank" class="icon-twitter"><span class="element-invisible">Twitter</span></a></li>
<li class="social-link-facebook"><a href="http://facebook.com/manuelcillero" title="Facebook" target="_blank" class="icon-facebook"><span class="element-invisible">Facebook</span></a></li>
<li class="social-link-linkedin"><a href="http://es.linkedin.com/in/manuelcillero" title="Linkedin" target="_blank" class="icon-linkedin"><span class="element-invisible">LinkedIn</span></a></li>
<li class="social-link-mail"><a href="http://manuel.cillero.es/contact" title="Mail" target="_blank" class="icon-mail"><span class="element-invisible">Mail</span></a></li>
</ul>
</div></footer><!-- /.section, /#socket -->
</div><!-- /#page-wrapper -->
<?php print $page_closure; ?>
<?php print $closure; ?>
</body>
</html>

View file

@ -0,0 +1,47 @@
<?php
/**
* @file
* Default print module template
*
* @ingroup print
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $print['language']; ?>" xml:lang="<?php print $print['language']; ?>">
<head>
<?php print $print['head']; ?>
<?php print $print['base_href']; ?>
<title><?php print $print['title']; ?></title>
<?php print $print['scripts']; ?>
<?php print $print['sendtoprinter']; ?>
<?php print $print['robots_meta']; ?>
<?php print $print['favicon']; ?>
<?php print $print['css']; ?>
</head>
<body class="print-body suitedesk">
<?php if (!empty($print['message'])) {
print '<div class="print-message">'. $print['message'] .'</div>';
} ?>
<div class="print-logo"><?php print $print['logo']; ?></div>
<hr class="print-hr" />
<h1 class="print-title"><?php print $print['title']; ?></h1>
<div class="print-content">
<?php print '<div class="node-type-' . $print['node']->type . '">' . $print['content'] . '</div>'; ?>
</div>
<hr class="print-hr print-source-and-links" />
<div class="print-source_url"><?php print $print['source_url']; ?></div>
<div class="print-links"><?php print $print['pfp_links']; ?></div>
</body>
</html>

View file

@ -0,0 +1,52 @@
<?php
/**
* @file user-profile.tpl.php
* Default theme implementation to present all user profile data.
*
* This template is used when viewing a registered member's profile page,
* e.g., example.com/user/123. 123 being the users ID.
*
* By default, all user profile data is printed out with the $user_profile
* variable. If there is a need to break it up you can use $profile instead.
* It is keyed to the name of each category or other data attached to the
* account. If it is a category it will contain all the profile items. By
* default $profile['summary'] is provided which contains data on the user's
* history. Other data can be included by modules. $profile['user_picture'] is
* available by default showing the account picture.
*
* Also keep in mind that profile items and their categories can be defined by
* site administrators. They are also available within $profile. For example,
* if a site is configured with a category of "contact" with
* fields for of addresses, phone numbers and other related info, then doing a
* straight print of $profile['contact'] will output everything in the
* category. This is useful for altering source order and adding custom
* markup for the group.
*
* To check for all available data within $profile, use the code below.
* @code
* print '<pre>'. check_plain(print_r($profile, 1)) .'</pre>';
* @endcode
*
* Available variables:
* - $user_profile: All user profile data. Ready for print.
* - $profile: Keyed array of profile categories and their items or other data
* provided by modules.
*
* @see user-profile-category.tpl.php
* Where the html is handled for the group.
* @see user-profile-item.tpl.php
* Where the html is handled for each item in the group.
* @see template_preprocess_user_profile()
*/
?>
<div class="profile">
<?php print $user_profile; ?>
</div>
<?php
if (module_exists('storm')) {
print '<div id="stormdesktop">' . storm_dashboard() . '</div>';
}
?>

View file

@ -0,0 +1,124 @@
<?php
/**
* @file
* Theme implementation to display a block.
*
* Available variables:
* - $title: Block title.
* - $content: Block content.
* - $block->module: Module that generated the block.
* - $block->delta: An ID for the block, unique within each module.
* - $block->region: The block region embedding the current block.
* - $edit_links: A list of contextual links for the block. It can be
* manipulated through the variable $edit_links_array from preprocess
* functions.
* - $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:
* - block: The current template type, i.e., "theming hook".
* - block-[module]: The module generating the block. For example, the user
* module is responsible for handling the default user navigation block. In
* that case the class would be "block-user".
* - first: The first block in the region.
* - last: The last block in the region.
* - region-count-[x]: The position of the block in the list of blocks in the
* current region.
* - region-odd: An odd-numbered block of the list of blocks in the current
* region.
* - region-even: An even-numbered block of the list of blocks in the current
* region.
* - count-[x]: The position of the block in the list of blocks on the current
* page.
* - odd: An odd-numbered block of the list of blocks on the current page.
* - even: An even-numbered block of the list of blocks on the current page.
*
* Helper variables:
* - $classes_array: Array of html class attribute values. It is flattened
* into a string within the variable $classes.
* - $edit_links_array: An array of contextual links for the block.
* - $block_zebra: Outputs 'odd' and 'even' dependent on each block region.
* - $zebra: Same output as $block_zebra but independent of any block region.
* - $block_id: Counter dependent on each block region.
* - $id: Same output as $block_id but independent of any block region.
* - $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.
* - $block_html_id: A valid HTML ID and guaranteed unique.
*
* @see template_preprocess()
* @see zen_preprocess()
* @see template_preprocess_block()
* @see zen_preprocess_block()
* @see zen_process()
*/
?>
<?php if ($admin_links): ?>
<div class="views-admin-links views-hide">
<?php print $admin_links; ?>
</div>
<?php endif; ?>
<?php if ($header): ?>
<div class="view-header">
<?php print $header; ?>
</div>
<?php endif; ?>
<?php if ($exposed): ?>
<div class="view-filters">
<?php print $exposed; ?>
</div>
<?php endif; ?>
<?php if ($attachment_before): ?>
<div class="attachment attachment-before">
<?php print $attachment_before; ?>
</div>
<?php endif; ?>
<?php if ($rows): ?>
<div class="view-content <?php print $classes; ?>">
<?php print $rows; ?>
</div>
<?php elseif ($empty): ?>
<div class="view-empty">
<?php print $empty; ?>
</div>
<?php endif; ?>
<?php if ($pager): ?>
<?php print $pager; ?>
<?php endif; ?>
<?php if ($attachment_after): ?>
<div class="attachment attachment-after">
<?php print $attachment_after; ?>
</div>
<?php endif; ?>
<?php
global $base_url;
if ($node = menu_get_object() && arg(2)) {
$urlcal = $base_url . '/calendar/' . arg(2);
$mescal = t('Return to calendar');
} else {
$urlcal = $base_url . '/calendar';
$mescal = t('Go to calendar');
}
print '<div class="more-link"><a href="' . $urlcal . '">' . $mescal . '</a></div>';
?>
<?php if ($footer): ?>
<div class="view-footer">
<?php print $footer; ?>
</div>
<?php endif; ?>
<?php if ($feed_icon): ?>
<div class="feed-icon">
<?php print $feed_icon; ?>
</div>
<?php endif; ?>
<?php print $edit_links; ?>

View file

@ -0,0 +1,87 @@
<?php
/**
* @file views-view.tpl.php
* Main view template
*
* Variables available:
* - $classes_array: An array of classes determined in
* template_preprocess_views_view(). Default classes are:
* .view
* .view-[css_name]
* .view-id-[view_name]
* .view-display-id-[display_name]
* .view-dom-id-[dom_id]
* - $classes: A string version of $classes_array for use in the class attribute
* - $css_name: A css-safe version of the view name.
* - $css_class: The user-specified classes names, if any
* - $header: The view header
* - $footer: The view footer
* - $rows: The results of the view query, if any
* - $empty: The empty text to display if the view is empty
* - $pager: The pager next/prev links to display, if any
* - $exposed: Exposed widget form/info to display
* - $feed_icon: Feed icon to display, if any
* - $more: A link to view more, if any
* - $admin_links: A rendered list of administrative links
* - $admin_links_raw: A list of administrative links suitable for theme('links')
*
* @ingroup views_templates
*/
?>
<?php if ($rows): ?>
<div class="<?php print $classes; ?>">
<?php if ($admin_links): ?>
<div class="views-admin-links views-hide">
<?php print $admin_links; ?>
</div>
<?php endif; ?>
<?php if ($header): ?>
<div class="view-header">
<?php print $header; ?>
</div>
<?php endif; ?>
<?php if ($exposed): ?>
<div class="view-filters">
<?php print $exposed; ?>
</div>
<?php endif; ?>
<?php if ($attachment_before): ?>
<div class="attachment attachment-before">
<?php print $attachment_before; ?>
</div>
<?php endif; ?>
<div class="view-content">
<?php print $rows; ?>
</div>
<?php if ($pager): ?>
<?php print $pager; ?>
<?php endif; ?>
<?php if ($attachment_after): ?>
<div class="attachment attachment-after">
<?php print $attachment_after; ?>
</div>
<?php endif; ?>
<?php if ($more): ?>
<?php print $more; ?>
<?php endif; ?>
<?php if ($footer): ?>
<div class="view-footer">
<?php print $footer; ?>
</div>
<?php endif; ?>
<?php if ($feed_icon): ?>
<div class="feed-icon">
<?php print $feed_icon; ?>
</div>
<?php endif; ?>
</div>
<?php endif; ?><?php /* class view */ ?>

View file

@ -0,0 +1,87 @@
<?php
/**
* @file views-view.tpl.php
* Main view template
*
* Variables available:
* - $classes_array: An array of classes determined in
* template_preprocess_views_view(). Default classes are:
* .view
* .view-[css_name]
* .view-id-[view_name]
* .view-display-id-[display_name]
* .view-dom-id-[dom_id]
* - $classes: A string version of $classes_array for use in the class attribute
* - $css_name: A css-safe version of the view name.
* - $css_class: The user-specified classes names, if any
* - $header: The view header
* - $footer: The view footer
* - $rows: The results of the view query, if any
* - $empty: The empty text to display if the view is empty
* - $pager: The pager next/prev links to display, if any
* - $exposed: Exposed widget form/info to display
* - $feed_icon: Feed icon to display, if any
* - $more: A link to view more, if any
* - $admin_links: A rendered list of administrative links
* - $admin_links_raw: A list of administrative links suitable for theme('links')
*
* @ingroup views_templates
*/
?>
<?php if ($rows): ?>
<div class="<?php print $classes; ?>">
<?php if ($admin_links): ?>
<div class="views-admin-links views-hide">
<?php print $admin_links; ?>
</div>
<?php endif; ?>
<?php if ($header): ?>
<div class="view-header">
<?php print $header; ?>
</div>
<?php endif; ?>
<?php if ($exposed): ?>
<div class="view-filters">
<?php print $exposed; ?>
</div>
<?php endif; ?>
<?php if ($attachment_before): ?>
<div class="attachment attachment-before">
<?php print $attachment_before; ?>
</div>
<?php endif; ?>
<div class="view-content">
<?php print $rows; ?>
</div>
<?php if ($pager): ?>
<?php print $pager; ?>
<?php endif; ?>
<?php if ($attachment_after): ?>
<div class="attachment attachment-after">
<?php print $attachment_after; ?>
</div>
<?php endif; ?>
<?php if ($more): ?>
<?php print $more; ?>
<?php endif; ?>
<?php if ($footer): ?>
<div class="view-footer">
<?php print $footer; ?>
</div>
<?php endif; ?>
<?php if ($feed_icon): ?>
<div class="feed-icon">
<?php print $feed_icon; ?>
</div>
<?php endif; ?>
</div>
<?php endif; ?><?php /* class view */ ?>

View file

@ -0,0 +1,28 @@
<?php
/**
* This template is used to print a single field in a view. It is not
* actually used in default Views, as this is registered as a theme
* function which has better performance. For single overrides, the
* template is perfectly okay.
*
* Variables available:
* - $view: The view object
* - $field: The field handler object that can process the input
* - $row: The raw SQL result that can be used
* - $output: The processed output that will normally be used.
*
* When fetching output from the $row, this construct should be used:
* $data = $row->{$field->field_alias}
*
* The above will guarantee that you'll always get the correct data,
* regardless of any changes in the aliasing that might happen if
* the view is modified.
*/
?>
<?php
global $base_url, $theme_path;
$node_icon = $base_url . '/' . $theme_path . '/images/storm/' . substr($output, 5) . '.png';
print '<img src="' . $node_icon . '" width="20" height="20" />';
?>

View file

@ -0,0 +1,40 @@
<?php
/**
* @file views-view-fields.tpl.php
* Default simple view template to all the fields as a row.
*
* - $view: The view in use.
* - $fields: an array of $field objects. Each one contains:
* - $field->content: The output of the field.
* - $field->raw: The raw data for the field, if it exists. This is NOT output safe.
* - $field->class: The safe class id to use.
* - $field->handler: The Views field handler object controlling this field. Do not use
* var_export to dump this object, as it can't handle the recursion.
* - $field->inline: Whether or not the field should be inline.
* - $field->inline_html: either div or span based on the above flag.
* - $field->separator: an optional separator that may appear before a field.
* - $row: The raw result object from the query, with all data it fetched.
*
* @ingroup views_templates
*/
?>
<?php foreach ($fields as $id => $field): ?>
<?php if (!empty($field->content) && $field->class != 'nid-1'): ?>
<?php if (!empty($field->separator)): ?>
<?php print $field->separator; ?>
<?php endif; ?>
<<?php print $field->inline_html;?> class="views-field-<?php print $field->class; ?>">
<?php if ($field->label): ?>
<label class="views-label-<?php print $field->class; ?>">
<?php print $field->label; ?>:
</label>
<?php endif; ?>
<?php
// $field->element_type is either SPAN or DIV depending upon whether or not
// the field is a 'block' element type or 'inline' element type.
?>
<<?php print $field->element_type; ?> class="field-content"><?php print $field->content; ?></<?php print $field->element_type; ?>>
</<?php print $field->inline_html;?>>
<?php endif; ?>
<?php endforeach; ?>

View file

@ -0,0 +1,35 @@
<?php
/**
* @file views-view-list.tpl.php
* Default simple view template to display a list of rows.
*
* - $title : The title of this group of rows. May be empty.
* - $options['type'] will either be ul or ol.
* @ingroup views_templates
*/
?>
<div class="item-list">
<?php if (!empty($title)) : ?>
<h3><?php print $title; ?></h3>
<?php endif; ?>
<<?php print $options['type']; ?>>
<?php foreach ($rows as $id => $row): ?>
<?php
global $user;
$task_class = '';
$task_assigned = $view->render_field('nid_1', $id);
if (!empty($task_assigned)) {
if ($user->stormperson_nid == $task_assigned) {
$task_class = ' task-own';
} elseif (module_exists('stormteam') && stormteam_user_belongs_to_team($task_assigned, $user->stormperson_nid)) {
$task_class = ' task-own';
} else {
$task_class = ' task-assigned';
}
}
?>
<li class="<?php print $classes[$id] . $task_class; ?>"><?php print $row; ?></li>
<?php endforeach; ?>
</<?php print $options['type']; ?>>
</div>

View file

@ -0,0 +1,39 @@
<?php
/**
* @file views-view-table.tpl.php
* Template to display a view as a table.
*
* - $title : The title of this group of rows. May be empty.
* - $header: An array of header labels keyed by field id.
* - $fields: An array of CSS IDs to use for each field id.
* - $class: A class or classes to apply to the table, based on settings.
* - $row_classes: An array of classes to apply to each row, indexed by row
* number. This matches the index in $rows.
* - $rows: An array of row items. Each row is an array of content.
* $rows are keyed by row number, fields within rows are keyed by field ID.
* @ingroup views_templates
*/
?>
<div class="table-responsive">
<table class="table table-condensed table-hover <?php print $class; ?>"<?php print $attributes; ?>>
<?php if (!empty($title)) : ?>
<caption><?php print $title; ?></caption>
<?php endif; ?>
<thead>
<tr>
<?php foreach ($header as $field => $label): ?>
<th class="views-field views-field-<?php print $fields[$field]; ?>"><?php print $label; ?></th>
<?php endforeach; ?>
</tr>
</thead>
<tbody>
<?php foreach ($rows as $count => $row): ?>
<tr class="<?php print implode(' ', $row_classes[$count]); ?>">
<?php foreach ($row as $field => $content): ?>
<td class="views-field views-field-<?php print $fields[$field]; ?>"><?php print $content; ?></td>
<?php endforeach; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>