1
0
Fork 0

never use profile_load outside of a module's _init() function

This commit is contained in:
Zach Prezkuta 2013-01-03 10:47:45 -07:00
commit fdd142c42e
24 changed files with 214 additions and 164 deletions

View file

@ -5,12 +5,13 @@
* Version:
* Author: Christian Vogeley (https://christian-vogeley.de/profile/christian)
*/
function cleanzero_init(&$a) {
$a->theme_info = array(
'extends' => 'duepuntozero',
);
set_template_engine($a, 'smarty3');
function cleanzero_init(&$a) {
$a->page['htmlhead'] .= <<< EOT
<script>

View file

@ -8,6 +8,7 @@
*/
function comix_plain_init(&$a) {
$a->theme_info = array(
'extends' => 'duepuntozero',
);
@ -59,3 +60,5 @@ $('.savedsearchterm').hover(
</script>
EOT;
}

View file

@ -8,6 +8,7 @@
*/
function comix_init(&$a) {
$a->theme_info = array(
'extends' => 'duepuntozero',
);
@ -59,3 +60,5 @@ $('.savedsearchterm').hover(
</script>
EOT;
}

View file

@ -7,6 +7,7 @@
*/
function darkbubble_init(&$a) {
$a->theme_info = array(
'extends' => 'testbubble',
);
@ -21,3 +22,4 @@ $('html').click(function() { $("#nav-notifications-menu" ).hide(); });
});
</script>
EOT;
}

View file

@ -7,11 +7,11 @@
* Author: Mike Macgirvin <mike@macgirvin.com>
*/
function darkzero_NS_init(&$a) {
$a->theme_info = array(
'extends' => 'duepuntozero',
);
function darkzero_NS_init(&$a) {
$a->page['htmlhead'] .= <<< EOT
<script>
function insertFormatting(comment,BBcode,id) {
@ -94,4 +94,4 @@ $('.savedsearchterm').hover(
</script>
EOT;
}
}

View file

@ -8,12 +8,12 @@
* Maintainer: Mike Macgirvin <mike@macgirvin.com>
*/
function darkzero_init(&$a) {
$a->theme_info = array(
'extends' => 'duepuntozero',
);
set_template_engine($a, 'smarty3');
function darkzero_init(&$a) {
$a->page['htmlhead'] .= <<< EOT
<script>
function insertFormatting(comment,BBcode,id) {

View file

@ -7,9 +7,6 @@
* Author:
*/
$a = get_app();
set_template_engine($a, 'smarty3');
function get_diabook_config($key, $default = false) {
if (local_user()) {
$result = get_pconfig(local_user(), "diabook", $key);
@ -26,6 +23,8 @@ function get_diabook_config($key, $default = false) {
function diabook_init(&$a) {
set_template_engine($a, 'smarty3');
//print diabook-version for debugging
$diabook_version = "Diabook (Version: 1.027)";
$a->page['htmlhead'] .= sprintf('<META NAME=generator CONTENT="%s"/>', $diabook_version);

View file

@ -8,14 +8,13 @@
* Screenshot: <a href="screenshot.jpg">Screenshot</a>
*/
$a = get_app();
$a->theme_info = array(
'family' => 'dispy',
'name' => 'dark',
);
set_template_engine($a, 'smarty3');
function dispy_dark_init(&$a) {
$a->theme_info = array(
'family' => 'dispy',
'name' => 'dark',
);
set_template_engine($a, 'smarty3');
/** @purpose set some theme defaults
*/
$cssFile = null;

View file

@ -8,15 +8,14 @@
* Screenshot: <a href="screenshot.jpg">Screenshot</a>
*/
$a = get_app();
$a->theme_info = array(
'family' => 'dispy',
'name' => 'light',
);
set_template_engine($a, 'smarty3');
function dispy_light_init(&$a) {
$a->theme_info = array(
'family' => 'dispy',
'name' => 'light',
);
set_template_engine($a, 'smarty3');
/** @purpose set some theme defaults
*/
$cssFile = null;

View file

@ -17,15 +17,14 @@
* or rename to prefix1_function_name (prefix2_function_name), etc.
*/
$a = get_app();
$a->theme_info = array(
'family' => 'dispy',
'version' => '1.2.2'
);
set_template_engine($a, 'smarty3');
function dispy_init(&$a) {
$a->theme_info = array(
'family' => 'dispy',
'version' => '1.2.2'
);
set_template_engine($a, 'smarty3');
/** @purpose set some theme defaults
*/
$cssFile = null;

View file

@ -1,4 +1,7 @@
<?php
function easterbunny_init(&$a) {
$a->theme_info = array(
'extends' => 'duepuntozero',
);
}

View file

@ -1,4 +1,6 @@
<?php
function facepark_init(&$a) {
$a->theme_info = array();
set_template_engine($a, 'smarty3');
@ -48,3 +50,5 @@ $('.savedsearchterm').hover(
</script>
EOT;
}

View file

@ -1,10 +1,11 @@
<?php
function greenzero_init(&$a) {
$a->theme_info = array(
'extends' => 'duepuntozero',
);
set_template_engine($a, 'smarty3');
function greenzero_init(&$a) {
$a->page['htmlhead'] .= <<< EOT
<script>
function insertFormatting(comment,BBcode,id) {

View file

@ -1,10 +1,11 @@
<?php
function purplezero_init(&$a) {
$a->theme_info = array(
'extends' => 'duepuntozero',
);
set_template_engine($a, 'smarty3');
function purplezero_init(&$a) {
$a->page['htmlhead'] .= <<< EOT
<script>
function insertFormatting(comment,BBcode,id) {

View file

@ -7,10 +7,10 @@
* Maintainer: Tobias <https://diekershoff.homeunix.net/friendica/profile/tobias>
*/
function quattro_init(&$a) {
$a->theme_info = array();
set_template_engine($a, 'smarty3');
function quattro_init(&$a) {
$a->page['htmlhead'] .= <<< EOT
<script>
function insertFormatting(comment,BBcode,id) {

View file

@ -1,9 +1,10 @@
<?php
function slack_NS_init(&$a) {
$a->theme_info = array(
'extends' => 'duepuntozero',
);
function slack_NS_init(&$a) {
$a->page['htmlhead'] .= <<< EOT
<script>
function insertFormatting(comment,BBcode,id) {
@ -86,4 +87,4 @@ $('.savedsearchterm').hover(
</script>
EOT;
}
}

View file

@ -1,10 +1,11 @@
<?php
function slackr_init(&$a) {
$a->theme_info = array(
'extends' => 'duepuntozero',
);
set_template_engine($a, 'smarty3');
function slackr_init(&$a) {
$a->page['htmlhead'] .= <<< EOT
<script>
function insertFormatting(comment,BBcode,id) {

View file

@ -9,11 +9,10 @@
* Screenshot: <a href="screenshot.png">Screenshot</a>
*/
$a = get_app();
$a->theme_info = array();
set_template_engine($a, 'smarty3');
function smoothly_init(&$a) {
$a->theme_info = array();
set_template_engine($a, 'smarty3');
$cssFile = null;
$ssl_state = null;
$baseurl = $a->get_baseurl($ssl_state);

View file

@ -8,6 +8,8 @@
* Maintainer: Mike Macgirvin <mike@macgirvin.com>
*/
function testbubble_init(&$a) {
set_template_engine($a, 'smarty3');
$a->page['htmlhead'] .= <<< EOT
@ -18,3 +20,4 @@ $('html').click(function() { $("#nav-notifications-menu" ).hide(); });
});
</script>
EOT;
}

View file

@ -8,11 +8,11 @@
* Description: "Vier" uses the font awesome font library: http://fortawesome.github.com/Font-Awesome/
*/
function vier_init(&$a) {
set_template_engine($a, 'smarty3');
$a->theme_info = array();
function vier_init(&$a) {
$a->page['htmlhead'] .= <<< EOT
<script>
function insertFormatting(comment,BBcode,id) {