function ra_home_theme() { if (ra_is_home() && strlen(qa_opt('ra_home_layout'))) { return '/home/' . qa_opt('ra_home_layout'); } else { return '/index'; } }
<script src="<?php echo DUDE_THEME_URL; ?> /js/bootstrap.js"></script> <script src="<?php echo DUDE_THEME_URL; ?> /js/jquery.dlmenu.js"></script> <script src="<?php echo DUDE_THEME_URL; ?> /js/dude.js"></script> <script type="text/javascript"> <?php if (ra_is_home()) { echo base64_decode(ra_db_builder('js_home')); } else { echo base64_decode(ra_db_builder('js_' . $context->template)); } ?> </script> <?php if (ra_edit_mode()) { ?> <script src="<?php echo DUDE_THEME_URL; ?> /js/ra_builder.js"></script> <?php }
function title() { if (qw_hook_exist(__FUNCTION__)) { $args = func_get_args(); array_unshift($args, $this); return qw_event_hook(__FUNCTION__, $args, NULL); } if (isset($this->content['title'])) { if (isset($this->content['q_view'])) { $this->output(_ra_lang('Question')); } elseif (ra_is_home()) { return; } elseif ($this->template == 'user') { if (defined('QA_WORDPRESS_INTEGRATE_PATH')) { require_once QA_INCLUDE_DIR . 'qa-app-posts.php'; $handle = qa_post_userid_to_handle($this->content['raw']['userid']); $userid = $this->content['raw']['userid']; } else { $handle = @$this->content['raw']['account']['handle']; $userid = @$this->content['raw']['account']['userid']; } $profile = ra_user_profile($handle); $name = isset($profile['name']) ? $profile['name'] : $handle; $this->output($name); } else { $this->output($this->content['title']); } } }