Esempio n. 1
0
 function a_list_item($a_item)
 {
     if (qw_hook_exist(__FUNCTION__)) {
         $args = func_get_args();
         array_unshift($args, $this);
         return qw_event_hook(__FUNCTION__, $args, NULL);
     }
     $this->output_raw(ra_template_part('answer', $this, $a_item));
 }
Esempio n. 2
0
ra_lang('Status of question');
?>
"><?php 
echo ra_post_notice($args);
?>
</dt> 
						</dl>
					</div>
				</div>

				<?php 
$context->output_raw(base64_decode(qa_opt('ads_below_question_title')));
?>

				<?php 
$context->output_raw(ra_template_part('question_form', $context, $args));
$context->q_view_content($args);
if (qa_opt('short_url_content_on')) {
    $login = qa_opt('short_url_bitly_username');
    $api_key = qa_opt('short_url_bitly_api_key');
    $url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    $api_url = "http://api.bit.ly/v3/shorten?login="******"&apiKey=" . $api_key . "&uri=" . urlencode($url) . "&format=txt";
    if (qa_opt($url)) {
        $short_url = qa_opt($url);
    } else {
        $short_url = file_get_contents($api_url);
        qa_opt($url, $short_url);
    }
    echo '<input value="' . $short_url . '">';
}
?>