-
Notifications
You must be signed in to change notification settings - Fork 0
/
aksearch_learning.tpl.php
executable file
·69 lines (59 loc) · 3.55 KB
/
aksearch_learning.tpl.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
global $base_url;
global $base_root;
global $language ;
$lang_name = $language->language ;
$root = drupal_get_path('module', 'aksearch_learning')."/default";
$app = drupal_get_path('module', 'aksearch_learning')."/default/app";
$assets = drupal_get_path('module', 'aksearch_learning')."/default/assets";
$config = drupal_get_path('module', 'aksearch_learning')."/default/config";
$css = drupal_get_path('module', 'aksearch_learning')."/default/css";
$finder = drupal_get_path('module', 'aksearch_learning')."/default/finder";
$lib = drupal_get_path('module', 'aksearch_learning')."/default/lib";
$searchurl = url('node/'.variable_get('aksearch_learning_spage'));
?>
<!-- search page -->
<?php
if(variable_get('ak_enable_jquery', '0'))
{
drupal_add_js('//code.jquery.com/jquery-1.11.0.min.js', 'external');
}
drupal_add_js('var drupalVariables = {"base":"'.$base_url.'","root":"'.$base_url.'/'.$root.'","nodeid":"' . $nif . '" }', 'inline');
drupal_add_css('http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,300', array('group' => CSS_THEME,'preprocess' => FALSE, 'type'=>'external'));
?>
<link rel="stylesheet/less" type="text/css" href="<?php echo $base_url.'/'.$css.'/style.less'; ?>" />
<link rel="stylesheet" type="text/css" href="<?php echo $base_url.'/'.$css.'/bootstrap.css'; ?>" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,700&subset=latin,greek-ext,latin-ext' rel='stylesheet' type='text/css'>
<?php
drupal_add_js($lib.'/angular.min.js',array('type'=>'file','scope'=>'footer','weight'=>100));
drupal_add_js($lib.'/angular-route.min.js',array('type'=>'file','scope'=>'footer','weight'=>101));
drupal_add_js($lib.'/less-1.5.0.min.js',array('type'=>'file','scope'=>'footer','weight'=>101));
drupal_add_js($lib.'/ui-bootstrap-0.10.0.min.js',array('type'=>'file','scope'=>'footer','weight'=>102));
drupal_add_js($app.'/app.js',array('type'=>'file','scope'=>'footer','weight'=>102));
drupal_add_js($app.'/controllers/mainController.js',array('type'=>'file','scope'=>'footer','weight'=>103));
drupal_add_js($app.'/controllers/search/listingController.js',array('type'=>'file','scope'=>'footer','weight'=>104));
drupal_add_js($app.'/controllers/search/paginationController.js',array('type'=>'file','scope'=>'footer','weight'=>105));
drupal_add_js($app.'/controllers/search/facetsController.js',array('type'=>'file','scope'=>'footer','weight'=>106));
drupal_add_js($app.'/controllers/view_item/viewItemController.js',array('type'=>'file','scope'=>'footer','weight'=>107));
drupal_add_js($app.'/controllers/view_item/agris-viewItemController.js',array('type'=>'file','scope'=>'footer','weight'=>107));
?>
<!--
<script>
document.write('<base href="' + document.location + '" />');
</script>
-->
<div class="field-type-text-with-summary">
<?php print $cont['und']['0']['safe_summary']; ?>
<?php print $cont['und']['0']['safe_value']; ?>
</div>
<div id="akListing" ng-app="akListing" ng-controller="mainController" ng-init="init_finder('agrif','publications');" class="col-xs-12 col-sm-12 col-md-12" ng-cloak> <!-- Language
<div class="languages_block">
<a href="javascript:;" ng-click="change_language('el')"><img src="<?php echo $assets ?>/images/flag_gr_round.png" ></a>
<a href="javascript:;" ng-click="change_language('en')"><img src="<?php echo $assets ?>/images/flag_en_round.png" ></a>
</div>
<!-- / Language -->
<div id="akListing" ng-init="app_init('<?php echo $lang_name ?>')" class="col-xs-12 col-sm-12 col-md-12"> <!-- class="col-xs-12 col-sm-12 col-md-12" -->
<div ng-view>
</div>
</div>
</div>