-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
latest updates, some filters & changes in API
- Loading branch information
Showing
127 changed files
with
25,985 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
profiles/markaspot/themes/ntxuva/templates/node--report--edit.tpl.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?php | ||
/** | ||
* @file | ||
* Node template for reports | ||
*/ | ||
?> | ||
<article id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>> | ||
|
||
<?php | ||
// taxonomy_term_load($node->field_category[LANGUAGE_NONE][0]['taxonomy_term']['tid']); | ||
$cat_tid = $node->field_category[LANGUAGE_NONE][0]['tid']; | ||
$status_tid = $node->field_status[LANGUAGE_NONE][0]['tid']; | ||
$category = taxonomy_term_load($cat_tid); | ||
$status = taxonomy_term_load($status_tid); | ||
?> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<header> | ||
<?php print render($title_prefix); ?> | ||
<?php if (!$page && $title): ?> | ||
<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): ?> | ||
<span class="submitted"> | ||
<?php print $user_picture; ?> | ||
<?php print $submitted; ?> | ||
</span> | ||
<?php endif; ?> | ||
<div class="cat-stat-wrapper"> | ||
<span class="label label-default marker-category col-<?php echo $category->field_category_hex[LANGUAGE_NONE][0]['value'] ?> col-md-6"><i class="icon-li icon-<?php echo $category->field_category_icon[LANGUAGE_NONE][0]['value'] ?> "></i> <?php echo $category->name?> </span> <span class="label label-default marker-status col-<?php echo $status->field_status_hex[LANGUAGE_NONE][0]['value'] ?> col-md-6"><i class="icon-li icon-<?php echo $status->field_status_icon[LANGUAGE_NONE][0]['value'] ?>"></i> <?php echo $status->name ?></span> | ||
<?php if (isset($node->field_address_id[LANGUAGE_NONE][0]['value'])): ?> | ||
<span class="label label-default marker-status">Ponto: | ||
<?php | ||
$string = file_get_contents($GLOBALS['base_url'].'/georeport/v2/locations.json?id='.$node->field_address_id[LANGUAGE_NONE][0]['value']); | ||
$json_a = json_decode($string, true); | ||
if ($json_a) { | ||
print $json_a[0]['location_name']; | ||
} | ||
?> | ||
</span> | ||
<?php endif; ?> | ||
|
||
</div> | ||
</header> | ||
<?php | ||
// Hide comments, tags, and links now so that we can render them later. | ||
hide($content['comments']); | ||
hide($content['links']); | ||
hide($content['field_tags']); | ||
print render($content['body']); | ||
?> | ||
<?php if (isset($content['field_address'])): ?> | ||
<span class="label label-default marker-status col-md-6">Morada:</span> | ||
<?php print render($content['field_address']); ?> | ||
<?php endif; ?> | ||
</div> | ||
<div class="col-md-5 col-md-offset-1"> | ||
<?php print render($content['field_geo']); ?> | ||
</div> | ||
</div> | ||
|
||
|
||
<?php if (!empty($content['field_tags']) || !empty($content['links'])): ?> | ||
<footer> | ||
<?php print render($content['field_tags']); ?> | ||
<?php print render($content['links']); ?> | ||
</footer> | ||
<?php endif; ?> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<?php print render($content['comments']); ?> | ||
<?php if (isset($content['field_statement'])): ?> | ||
<?php print render($content['field_statement']); ?> | ||
<?php endif; ?> | ||
</div> | ||
<div class="col-md-5 col-md-offset-1 "> | ||
<?php if (!empty($content['field_image'])): ?> | ||
<div class="node-gallery"> | ||
<?php print render($content['field_image']); ?> | ||
</div> | ||
<?php endif; ?> | ||
</div> | ||
</div> | ||
</article> <!-- /.node --> |
116 changes: 0 additions & 116 deletions
116
profiles/markaspot/themes/ntxuva/templates/page--inqueritos.tpl.old.php
This file was deleted.
Oops, something went wrong.
85 changes: 85 additions & 0 deletions
85
profiles/markaspot/themes/ntxuva/templates/page--report--edit.tpl.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?php | ||
/** | ||
* @file | ||
* Node template for reports | ||
*/ | ||
?> | ||
<article id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>> | ||
|
||
<?php | ||
// taxonomy_term_load($node->field_category[LANGUAGE_NONE][0]['taxonomy_term']['tid']); | ||
$cat_tid = $node->field_category[LANGUAGE_NONE][0]['tid']; | ||
$status_tid = $node->field_status[LANGUAGE_NONE][0]['tid']; | ||
$category = taxonomy_term_load($cat_tid); | ||
$status = taxonomy_term_load($status_tid); | ||
?> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<header> | ||
<?php print render($title_prefix); ?> | ||
<?php if (!$page && $title): ?> | ||
<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): ?> | ||
<span class="submitted"> | ||
<?php print $user_picture; ?> | ||
<?php print $submitted; ?> | ||
</span> | ||
<?php endif; ?> | ||
<div class="cat-stat-wrapper"> | ||
<span class="label label-default marker-category col-<?php echo $category->field_category_hex[LANGUAGE_NONE][0]['value'] ?> col-md-6"><i class="icon-li icon-<?php echo $category->field_category_icon[LANGUAGE_NONE][0]['value'] ?> "></i> <?php echo $category->name?> </span> <span class="label label-default marker-status col-<?php echo $status->field_status_hex[LANGUAGE_NONE][0]['value'] ?> col-md-6"><i class="icon-li icon-<?php echo $status->field_status_icon[LANGUAGE_NONE][0]['value'] ?>"></i> <?php echo $status->name ?></span> | ||
<?php if (isset($node->field_address_id[LANGUAGE_NONE][0]['value'])): ?> | ||
<span class="label label-default marker-status">Ponto: | ||
<?php | ||
$string = file_get_contents($GLOBALS['base_url'].'/georeport/v2/locations.json?id='.$node->field_address_id[LANGUAGE_NONE][0]['value']); | ||
$json_a = json_decode($string, true); | ||
if ($json_a) { | ||
print $json_a[0]['location_name']; | ||
} | ||
?> | ||
</span> | ||
<?php endif; ?> | ||
|
||
</div> | ||
</header> | ||
<?php | ||
// Hide comments, tags, and links now so that we can render them later. | ||
hide($content['comments']); | ||
hide($content['links']); | ||
hide($content['field_tags']); | ||
print render($content['body']); | ||
?> | ||
<?php if (isset($content['field_address'])): ?> | ||
<span class="label label-default marker-status col-md-6">Morada:</span> | ||
<?php print render($content['field_address']); ?> | ||
<?php endif; ?> | ||
</div> | ||
<div class="col-md-5 col-md-offset-1"> | ||
<?php print render($content['field_geo']); ?> | ||
</div> | ||
</div> | ||
|
||
|
||
<?php if (!empty($content['field_tags']) || !empty($content['links'])): ?> | ||
<footer> | ||
<?php print render($content['field_tags']); ?> | ||
<?php print render($content['links']); ?> | ||
</footer> | ||
<?php endif; ?> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<?php print render($content['comments']); ?> | ||
<?php if (isset($content['field_statement'])): ?> | ||
<?php print render($content['field_statement']); ?> | ||
<?php endif; ?> | ||
</div> | ||
<div class="col-md-5 col-md-offset-1 "> | ||
<?php if (!empty($content['field_image'])): ?> | ||
<div class="node-gallery"> | ||
<?php print render($content['field_image']); ?> | ||
</div> | ||
<?php endif; ?> | ||
</div> | ||
</div> | ||
</article> <!-- /.node --> |
Oops, something went wrong.