?> </a> <span class="icon-group"><a href="<?php echo $plugin_info['author_url']; ?> "><?php echo $plugin_info['author']; ?> </a></span> </p> <p><?php echo $plugin_info['description']; ?> </p> <p><?php ra_lang('Plugin path'); ?> <?php echo $plugin_info['path']; ?> </p> </div> <div class="form-actions"> <?php $context->form_buttons($form, 0); ?> </div> <?php $context->form_hidden($form); ?>
<?php echo ra_nav($context->content, 'dl-menu', false, true); ?> </div> <?php echo ra_logo(); ?> </div> <?php $context->ra_user_box(); ?> <a class="ask-btn btn btn-danger btn-sm" href="<?php echo $context->content['navigation']['main']['ask']['url']; ?> "><?php ra_lang('Ask Questions'); ?> </a> <?php echo ra_nav($context->content, 'main-menu nav navbar-nav', true); ?> </div> </div> <?php if (ra_edit_mode() && ra_is_admin()) { include DUDE_THEME_DIR . '/inc/builder_elm.php';
function ra_ajax_upload_cover() { ?> <div id="cover-uploader" class="modal fade"> <div class="modal-dialog"> <div class="modal-content"> <form method="post" enctype="multipart/form-data"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title"><?php ra_lang('Upload cover'); ?> </h4> </div> <div class="modal-body"> <label for="cover"><?php ra_lang('File name'); ?> </label> <input type="file" name="cover" id="cover"> <input type="hidden" name="code" value="<?php echo qa_get_form_security_code('upload_cover'); ?> "> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal"><?php ra_lang('Close'); ?> </button> <button type="submit" class="btn btn-primary"><?php ra_lang('Save changes'); ?> </button> </div> </form> </div> </div> </div> <?php die; }
?> <div class="list-meta"> <div class="q-status pull-left"><?php echo ra_post_notice($args); ?> </div> <?php $context->post_meta($args, 'qa-q-item'); ?> </div> <?php if (!empty($args['q_tags'])) { ?> <div class="list-tags"> <span class="label"><?php ra_lang('Tags: '); ?> </span> <?php // list tags $context->post_tags($args, 'qa-q-item'); ?> </div> <?php } ?> </div> </div> <?php
function ra_builder_categories_list($limit = 5) { ?> <div class="cat-list widget top-users block clearfix"> <h3 class="widget-title have-link"><a class="all-user-list btn pull-right icon-reorder" href="<?php echo qa_path_html('categories'); ?> "></a> <?php ra_lang('Categories'); ?> </h3> <?php ra_cat_list($limit); ?> </div> <?php }
function sc_ra_user_answers($limit = 10) { if (qw_hook_exist(__FUNCTION__)) { $args = func_get_args(); array_unshift($args, $this); return qw_event_hook(__FUNCTION__, $args, NULL); } 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']); } else { $handle = $this->content['raw']['account']['handle']; } ?> <div class="widget w-question-list"> <h3 class="widget-title"><?php ra_lang('My Answers'); ?> </h3> <?php ra_user_post_list($handle, 'A', $limit); ?> </div> <?php }
<?php /* don't allow this page to be requested directly from browser */ if (!defined('QA_VERSION')) { header('Location: /'); exit; } /* un-authorize access warning */ ?> <div class="no-access"> <i class="icon-locked"></i> <h1><?php ra_lang('Confirm your email address'); ?> </h1> <p class="lead"><?php ra_lang('To complete your registration, please click the confirmation link that has been emailed to you, or <a href="' . qa_path_html('confirm') . '">request another</a>.'); ?> </p> </div>
"> <img src="<?php echo ra_get_avatar($handle, 40, false); ?> " /> </a> </div> <?php } $context->form($a_form); $context->c_list(@$a_form['c_list'], 'qa-a-item'); ?> <h3 class="know-someone"><?php ra_lang('Know someone who can answer? Share a link to this'); ?> </h3> <ul class="social-buttons cf share clearfix"> <li> <a href="https://twitter.com/share" class="twitter-share-button" data-size="medium">Tweet</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script> </li> <li> <!-- Place this tag where you want the +1 button to render. --> <div class="g-plusone"></div> <!-- Place this tag after the last +1 button tag. --> <script type="text/javascript"> (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/platform.js';
<table class="plugin-list"> <tr class="list-header"> <td class="name"><?php ra_lang('Name'); ?> </td> <td class="description"><?php ra_lang('Description'); ?> </td> <td class="author"><?php ra_lang('Author'); ?> </td> <td class="rest"><?php ra_lang('Actions'); ?> </td> </tr> <?php foreach ($plugins as $key => $form) { ?> <tr class="plugin-item" <?php echo $form['tags']; ?> > <td class="name"> <a href="<?php echo @$form['option']; ?>
<?php echo @$args['raw']['views']; ?> <?php ra_lang('Views'); ?> </dt> <dt class="answer icon-chat-3" title="Total Answers"><?php echo @$args['raw']['acount']; ?> <?php ra_lang('Answers'); ?> </dt> <dt class="status" title="<?php 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));
<div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title">JS editor</h4> </div> <div class="modal-body"> <div class="alert alert-success"> <button class="close icon-cancel" type="button"></button> <strong><?php ra_lang('JS saved!'); ?> !</strong>, <?php ra_lang('close this modal or keep editing'); ?> . </div> <textarea id="js-code-editor" class="css-editor" name="css-editor"></textarea> </div> <div class="modal-footer"> <button class="btn" data-dismiss="modal" aria-hidden="true"><?php ra_lang('Close'); ?> </button> <button id="save-js-editor" class="btn btn-default btn-xs"><?php ra_lang('Save changes'); ?> </button> </div> </div> </div> </div>
} else { ?> <ul class="nav-userbox nav pull-right"> <li class="dropdown" id="menuLogin"> <a class="user-buttons" href="<?php echo $user_link['register']['url']; ?> " title="<?php echo $user_link['register']['label']; ?> "><?php echo $user_link['register']['label']; ?> </a> <a class="dropdown-toggle user-buttons" href="#" data-toggle="dropdown" id="navLogin"><?php ra_lang('Login'); ?> </a> <div class="dropdown-menu login-form"> <form id="loginform" action="<?php echo $user_link['login']['url']; ?> " method="post"> <input type="text" id="qa-userid" name="emailhandle" placeholder="<?php echo trim(qa_lang_html('users/email_handle_label'), ':'); ?> " /> <input type="password" id="qa-password" name="password" placeholder="<?php echo trim(qa_lang_html('users/password_label'), ':'); ?> " />
exit; } //search form $search = $context->content['search']; ?> <form <?php echo @$search['form_tags']; ?> class="form-inline search-form pull-right"> <?php echo @$search['form_extra']; ?> <div class="form-group"> <input type="text" <?php echo @$search['field_tags']; ?> value="<?php echo @$search['value']; ?> " class="form-control navbar-search" placeholder="<?php ra_lang('Search for questions'); ?> " /> </div> <button type="submit" class="icon-magnifier btn btn-primary" title="<?php echo @$search['button_label']; ?> "></button> </form>