aboutsummaryrefslogtreecommitdiffstats
path: root/mod/network.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-13 07:09:29 -0700
committerfriendica <info@friendica.com>2012-07-13 07:09:29 -0700
commita20a6377277a985fa596b0ea460d91b97f79b4a5 (patch)
tree1878d488143e2f0d698dc42ae924ab7be93ffb54 /mod/network.php
parent599f3d29610b2cc509ab51df0f42d154dd70278d (diff)
downloadvolse-hubzilla-a20a6377277a985fa596b0ea460d91b97f79b4a5.tar.gz
volse-hubzilla-a20a6377277a985fa596b0ea460d91b97f79b4a5.tar.bz2
volse-hubzilla-a20a6377277a985fa596b0ea460d91b97f79b4a5.zip
merge upstream, slider work, refactor ping module, language selection work
Diffstat (limited to 'mod/network.php')
-rw-r--r--mod/network.php34
1 files changed, 11 insertions, 23 deletions
diff --git a/mod/network.php b/mod/network.php
index bb37ea6dc..f058319f4 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -92,29 +92,17 @@ function network_init(&$a) {
);
}
- $a->page['content'] .= '<div id="slider-range" class="ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all">
-<div class="ui-slider-range ui-widget-header" style="margin-left: 30px; margin-right: 30px;"></div>
-<a class="ui-slider-handle ui-state-default ui-corner-all" href="#" style="left: 0%;"></a>
-<a class="ui-slider-handle ui-state-default ui-corner-all" href="#" style="left: 100%;"></a>
-</div>
- <script>
- $(function() {
- $( "#slider-range" ).slider({
- range: true,
- min: 0,
- max: 500,
- values: [ 75, 300 ],
- slide: function( event, ui ) {
- $( "#amount" ).val( "$" + ui.values[ 0 ] + " - $" + ui.values[ 1 ] );
- }
- });
- $( "#amount" ).val( "$" + $( "#slider-range" ).slider( "values", 0 ) +
- " - $" + $( "#slider-range" ).slider( "values", 1 ) );
- });
- </script>
-';
-
-
+ $tpl = get_markup_template('main_slider.tpl');
+ $a->page['content'] .= replace_macros($tpl,array(
+ '$me' => t('Me'),
+ '$intimate' => t('Best Friends'),
+ '$friends' => t('Friends'),
+ '$coworkers' => t('Co-workers'),
+ '$oldfriends' => t('Former Friends'),
+ '$acquaintances' => t('Acquaintances'),
+ '$world' => t('Everybody')
+ ));
+
// search terms header
if(x($_GET,'search')) {
$a->page['content'] .= '<h2>' . t('Search Results For:') . ' ' . htmlspecialchars($search) . '</h2>';