From 99c5f88963227a48544747e9dc8b13550b88c0f2 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 10 Feb 2013 04:55:29 -0800 Subject: mod_display - no fun. Not working at all. But a bit of progress. --- view/tpl/build_query.tpl | 2 ++ view/tpl/rmagic.tpl | 11 +++++++++++ view/tpl/smarty3/build_query.tpl | 2 ++ view/tpl/smarty3/rmagic.tpl | 16 ++++++++++++++++ 4 files changed, 31 insertions(+) create mode 100644 view/tpl/rmagic.tpl create mode 100644 view/tpl/smarty3/rmagic.tpl (limited to 'view') diff --git a/view/tpl/build_query.tpl b/view/tpl/build_query.tpl index b7b0ac86c..f4795acb2 100644 --- a/view/tpl/build_query.tpl +++ b/view/tpl/build_query.tpl @@ -22,6 +22,7 @@ var bParam_cats = "$cats"; var bParam_dend = "$dend"; var bParam_dbegin = "$dbegin"; + var bParam_uri = "$uri"; function buildCmd() { var udargs = ((page_load) ? "/load" : ""); @@ -42,6 +43,7 @@ if(bParam_cats != "") bCmd = bCmd + "&cats=" + bParam_cats; if(bParam_dend != "") bCmd = bCmd + "&dend=" + bParam_dend; if(bParam_dbegin != "") bCmd = bCmd + "&dbegin=" + bParam_dbegin; + if(bParam_uri != "") bCmd = bCmd + "&uri=" + bParam_uri; if(bParam_page != 1) bCmd = bCmd + "&page=" + bParam_page; return(bCmd); } diff --git a/view/tpl/rmagic.tpl b/view/tpl/rmagic.tpl new file mode 100644 index 000000000..f16abe975 --- /dev/null +++ b/view/tpl/rmagic.tpl @@ -0,0 +1,11 @@ +

$title

+ +
+ + + + + +
+ +
diff --git a/view/tpl/smarty3/build_query.tpl b/view/tpl/smarty3/build_query.tpl index 5520fb5b9..6df7f6589 100644 --- a/view/tpl/smarty3/build_query.tpl +++ b/view/tpl/smarty3/build_query.tpl @@ -27,6 +27,7 @@ var bParam_cats = "{{$cats}}"; var bParam_dend = "{{$dend}}"; var bParam_dbegin = "{{$dbegin}}"; + var bParam_uri = "{{$uri}}"; function buildCmd() { var udargs = ((page_load) ? "/load" : ""); @@ -47,6 +48,7 @@ if(bParam_cats != "") bCmd = bCmd + "&cats=" + bParam_cats; if(bParam_dend != "") bCmd = bCmd + "&dend=" + bParam_dend; if(bParam_dbegin != "") bCmd = bCmd + "&dbegin=" + bParam_dbegin; + if(bParam_uri != "") bCmd = bCmd + "&uri=" + bParam_uri; if(bParam_page != 1) bCmd = bCmd + "&page=" + bParam_page; return(bCmd); } diff --git a/view/tpl/smarty3/rmagic.tpl b/view/tpl/smarty3/rmagic.tpl new file mode 100644 index 000000000..7e4e563d9 --- /dev/null +++ b/view/tpl/smarty3/rmagic.tpl @@ -0,0 +1,16 @@ +{{* + * AUTOMATICALLY GENERATED TEMPLATE + * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN + * + *}} +

{{$title}}

+ +
+ + + + + +
+ +
-- cgit v1.2.3