function template_load_pages_adkportal() { global $scripturl, $context, $txt, $adkportal, $boardurl, $adkFolder, $settings, $modSettings, $options, $user_info; //cat_bar or titlebar? $cat = $context['page_view_content']['catbg'] == 'catbg' ? 'cat' : 'title'; echo ' <table border="0" class="m_100"> <tr> <td valign="top"> <table class="m_100"> <tr> <td> <div class="' . $cat . '_bar"> <h3 class="' . $context['page_view_content']['catbg'] . '"> ' . $context['page_view_content']['titlepage'] . ' </h3> </div> <div class="' . $context['page_view_content']['winbg'] . '"><span class="topslice"><span></span></span> <div class="content"> ', analizar_type($context['page_view_content']['type'], $context['page_view_content']['body']), ' </div> <span class="botslice"><span></span></span></div> </td> </tr> </table> </td>'; echo ' </tr> </table>'; //Show comments if (!empty($context['page_view_content']['enable_comments']) && !empty($context['page_view_comments'])) { echo ' <br /> <table border="0" class="m_100"> <tr> <td valign="top"> <div class="cat_bar"> <h3 class="catbg"> ' . $txt['adkmodules_comments'] . ' </h3> </div>'; foreach ($context['page_view_comments'] as $comment) { echo ' <span class="upperframe"><span> </span></span> <div class="roundframe">'; echo ' <table style="width: 100%"> <tr> <td style="width: 20%;" valign="top">'; echo ' <div class="title" style="font-weight: 120%;"> <a href="', $comment['member_info']['href'], '"> ', empty($comment['member_info']['name']) ? $comment['member_info']['username'] : $comment['member_info']['name'], ' </a> </div>'; if (!empty($comment['member_info']['group'])) { echo ' <div class="membergroup">', $comment['member_info']['group'], '</div>'; } if (!$comment['member_info']['is_guest']) { if ((empty($settings['hide_post_group']) || $comment['member_info']['group'] == '') && $comment['member_info']['post_group'] != '') { echo ' <div class="postgroup">', $comment['member_info']['post_group'], '</div>'; } echo ' <div class="stars">', $comment['member_info']['group_stars'], '</div>'; if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($comment['member_info']['avatar']['image'])) { echo ' <div class="avatar"> <a href="', $scripturl, '?action=profile;u=', $comment['member_info']['id'], '"> ', $comment['member_info']['avatar']['image'], ' </a> </div>'; } echo ' <div class="postcount">', $txt['member_postcount'], ': ', $comment['member_info']['posts'], '</div>'; } echo ' </td> <td style="width: 80%;" valign="top"> <div class="smalltext" id="comment_', $comment['id_comment'], '"> ', $comment['is_new'] ? '<img class="adk_vertical" style="vertical-align: middle;" alt="*" src="' . $adkFolder['images'] . '/new.png" /> ' : '', ' <a href="', $scripturl, '?page=', $context['page_view_content']['urltext'], ';comment=', $comment['id_comment'], '#comment_', $comment['id_comment'], '" rel="nofollow"> «', $comment['date'], ' - ' . $txt['adkmodules_reply'] . ': #', $comment['num_replie'], '» </a> </div> <hr /> ', $comment['body'], ' </td> </tr> </table> </div> <span class="lowerframe"><span> </span></span>'; } echo ' <div align="right"> <div class="smalltext"> ' . $txt['pages'] . ': ' . $context['page_index'] . ' </div> </div> </td> </tr> </table>'; if (!empty($adkportal['enable_pages_comments']) && !$user_info['is_guest']) { echo ' <br /> <form method="post" action="' . $scripturl . '?action=pages;sa=addcomment"> <div class="' . $cat . '_bar"> <h3 class="' . $context['page_view_content']['catbg'] . '"> <img id="quickreply2" style="vertical-align: middle;" src="' . $adkFolder['images'] . '/add.png" alt="" /> <a onclick="javascript:mymenu(\'quickreply\');" href="javascript:void(0);">' . $txt['adkmodules_add_comment'] . '</a> </h3> </div> <div style="display: none;" id="quickreply"> <div class="' . $context['page_view_content']['winbg'] . '"><span class="topslice"><span></span></span> <div class="content"> ', getTemplateEditor(), ' <div style="text-align: center;"> <input type="hidden" name="sc" value="' . $context['session_id'] . '" /> <input type="hidden" name="id_page" value="' . $context['page_view_content']['id_page'] . '" /> <input type="submit" value="' . $txt['save'] . '" class="button_submit" /> </div> </div> <span class="botslice"><span></span></span></div> </div> </form>'; } } }
function CreateAddCustomBlocks($type) { global $context, $txt, $scripturl, $boardurl, $adkFolder; if ($type == 'staff') { $the_txt = $txt['adkblock_staff']; } elseif ($type == 'php' || $type == 'bbc') { $the_txt = ''; } elseif ($type == 'top_poster' || $type == 'top_karma') { $the_txt = $txt['adkblock_limit']; } else { $the_txt = $txt['adkblock_select_forums']; } echo ' <form method="post" action="' . $scripturl . '?action=admin;area=blocks;sa=newblocks;set=' . $type . '_save"> <div class="cat_bar"> <h3 class="catbg"> <img style="vertical-align: middle;" alt="" src="' . $adkFolder['images'] . '/page.png" /> ' . $txt['adkblock_creating'] . ' </h3> </div> <span class="clear upperframe"> <span> </span> </span> <div class="roundframe"> <div> <table style="width: 100%;"> <tr> <td valign="top" style="width: 30%;"> ' . $txt['adkblock_titulo'] . ' </td> <td> <input type="text" value="" name="titulo" /> </td> </tr> </table> <table style="width: 100%;"> <tr> <td valign="top" style="width: 30%;"> ', $type == 'staff' ? help_link('', 'adkhelp_staff_group', false) : '', $the_txt . ' </td> <td>'; if ($type == 'staff') { echo ' <fieldset> <legend style="color: teal">' . $txt['adkblock_select_group'] . '</legend>'; foreach ($context['g'] as $id_group => $v) { echo ' <input style="vertical-align: middle;" type="checkbox" value="' . $id_group . '" name="groups_allowed[' . $id_group . ']" /> ' . $v['name'] . '<br />'; } echo ' <div style="text-align: right;"> <i>' . $txt['adkblock_check_all'] . '</i> <input style="vertical-align: middle;" type="checkbox" onclick="invertAll(this, this.form, \'groups_allowed\');" /> </div> </fieldset> ' . $txt['adkblock_avatar'] . ': <input style="vertical-align: middle;" type="checkbox" name="avatar" />'; } elseif ($type == 'auto_news') { echo ' <select name="auto_news_id_boards[]" size="10" multiple="multiple" style="width: 280px;">'; foreach ($context['jump_to'] as $category) { echo ' <option disabled="disabled">----------------------------------------------------</option> <option disabled="disabled">', $category['name'], '</option> <option disabled="disabled">----------------------------------------------------</option>'; foreach ($category['boards'] as $board) { echo ' <option value="', $board['id'], '"> ' . str_repeat(' ', $board['child_level']) . '|--- ' . $board['name'] . '</option>'; } } echo ' </select> <br /><br /> ' . $txt['adkblock_limit_auto_news'] . ': <input type="text" name="int" value="" size="2" />'; } elseif ($type == 'bbc') { echo ' </td> </tr> <tr> <td colspan="2"> <strong>HTML</strong> <input type="checkbox" name="html" /><br />'; //Get Template Editor() getTemplateEditor(); } elseif ($type == 'php') { echo ' <textarea name="descript" rows="10" cols="80"><?php</textarea>'; } elseif ($type == 'top_poster' || ($type = 'top_karma')) { echo ' <input type="text" name="descript" value="" />'; } echo ' </td> </tr> </table> <br /> <div class="cat_bar"> <h3 class="catbg"> <img alt="" src="' . $adkFolder['images'] . '/admin.png" style="vertical-align: middle;" /> ', $txt['adkblock_options'], ' </h3> </div> <div class="adk_padding_8"> <table style="width: 100%;"> <tr class="smalltext"> <td style="width: 50%;"> </td> <td style="width: 50%;"> <fieldset> <legend style="color: teal">' . $txt['adkblock_options'] . '</legend> <table style="width: 100%;"> <tr class="smalltext"> <td style="width: 50%;"> ' . $txt['adkblock_empty_style_block'] . ' </td> <td style="width: 50%; text-align: right;"> <input type="checkbox" name="empty_body" /> </td> </tr> <tr class="smalltext"> <td style="width: 50%;"> ' . $txt['adkblock_empty_title'] . ' </td> <td style="width: 50%; text-align: right;"> <input type="checkbox" name="empty_title" /> </td> </tr> <tr class="smalltext"> <td style="width: 50%;"> ' . $txt['adkblock_empty_collapse'] . ' </td> <td style="width: 50%; text-align: right;"> <input type="checkbox" name="empty_collapse" /> </td> </tr> </table> </fieldset> </td> </tr> </table> <table style="width: 100%;"> <tr class="smalltext"> <td style="width: 50%;"> </td> <td style="width: 50%;"> <fieldset> <legend style="color: teal">' . $txt['adkblock_icons'] . '</legend> <table style="width: 100%;"> <tr> <td> ', openDirImages(), ' </td> </tr> </table> </fieldset> </td> </tr> </table> </div> <hr /> <div style="text-align: center;"> <input type="hidden" name="sc" value="' . $context['session_id'] . '" /> <input class="button_submit" type="submit" value="' . $txt['save'] . '" /> </div> </div> </div> <span class="lowerframe"> <span> </span> </span> </form>'; }
function template_createpages() { global $scripturl, $context, $txt, $adkportal, $boardurl, $adkFolder; echo ' <form method="post" action="' . $scripturl . '?action=admin;area=modules;sa=', $context['save_action'], '">'; echo ' <div class="cat_bar"> <h3 class="catbg"> <img style="vertical-align: middle;" alt="" src="' . $adkFolder['images'] . '/pages.png" /> ' . $context['page_title'] . ' </h3> </div> <span class="clear upperframe"> <span> </span> </span> <div class="roundframe"> <div> <table style="width:100%;"> <tr> <td style="width: 30%;"> <div class="smalltext"><strong>' . $txt['adkmodules_titulo'] . ':</strong></div> </td> <td style="width: 70%;" > <div class="smalltext" style="padding-left: 207px;"><input type="text" value="' . $context['edit_admin_page']['titlepage'] . '" name="titlepage" size="30" /></div> </td> </tr> <tr> <td style="width: 30%;"> <div class="smalltext"><strong>' . $txt['adkmodules_pages_url'] . ':</strong></div> </td> <td style="width: 70%;"> <div class="smalltext">http://tuforo.com/index.php?page= <input type="text" value="' . $context['edit_admin_page']['urltext'] . '" name="urltext" size="30" /> (' . $txt['adkmodules_pages_minusculas'] . ')</div> </td> </tr> <tr> <td style="width: 30%;"> <div class="smalltext"><strong>' . $txt['adkmodules_pages_type'] . ':</strong></div> </td> <td style="width: 70%;"> <div class="smalltext"> PHP<input type="radio" name="type" value="php" ', $context['edit_admin_page']['type'] == 'php' ? 'checked="checked"' : '', ' style="vertical-align: sub;"/> Html<input type="radio" name="type" value="html" ', $context['edit_admin_page']['type'] == 'html' ? 'checked="checked"' : '', ' style="vertical-align: sub;"/> BBC<input type="radio" name="type" value="bbc" ', $context['edit_admin_page']['type'] == 'bbc' ? 'checked="checked"' : '', ' style="vertical-align: sub;"/> </div> </td> </tr> <tr> <td colspan="2"> <hr />'; //Get Template EDitor() getTemplateEditor(); echo ' </td> </tr> </table> <br /> <div class="cat_bar"> <h3 class="catbg"> <img alt="" src="' . $adkFolder['images'] . '/admin.png" style="vertical-align: middle;" /> ', $txt['adkmodules_options'], ' </h3> </div> <div class="adk_padding_8"> <table style="width: 100%;"> <tr class="smalltext"> <td style="width: 50%;"> </td> <td style="width: 50%;"> <fieldset> <legend style="color: teal">' . $txt['adkmodules_pages_design'] . '</legend> <table style="width: 100%;"> <tr class="smalltext"> <td style="width: 50%;"> ' . $txt['adkmodules_titulo'] . ' ' . $txt['adkmodules_admin_pages_in'] . ': </td> <td style="width: 50%; text-align: right;"> <select name="cattitlebg" style="width: 82px;"> <option value="catbg" ', $context['edit_admin_page']['cattitlebg'] == 'catbg' ? 'selected="selected"' : '', '>Catbg</option> <option value="titlebg" ', $context['edit_admin_page']['cattitlebg'] == 'titlebg' ? 'selected="selected"' : '', '>Titlebg</option> </select> </td> </tr> <tr class="smalltext"> <td style="width: 50%;"> ' . $txt['adkmodules_pages_body'] . ' ' . $txt['adkmodules_admin_pages_in'] . ': </td> <td style="width: 50%; text-align: right;"> <select name="winbg" style="width: 82px;"> <option value="windowbg" ', $context['edit_admin_page']['winbg'] == 'windowbg' ? 'selected="selected"' : '', '>Windowbg</option> <option value="windowbg2" ', $context['edit_admin_page']['winbg'] == 'windowbg2' ? 'selected="selected"' : '', '>Windowbg2</option> </select> </td> </tr> <tr class="smalltext"> <td style="width: 50%;"> ' . $txt['adkmodules_enable_comments'] . ' </td> <td style="width: 50%; text-align: right;"> <input name="enable_comments" type="checkbox" style="vertical-align: middle;"', !empty($context['edit_admin_page']['enable_comments']) ? ' checked="checked"' : '', ' /> </td> </tr> </table> </fieldset> </td> </tr> </table> </div> <div class="adk_padding_8"> <table style="width: 100%;"> <tr class="smalltext"> <td style="width: 50%;"> </td> <td style="width: 50%;"> <fieldset> <legend style="color: teal">' . $txt['adkmodules_pages_groups'] . '</legend>'; load_membergroups_edit($context['edit_admin_page']['grupos_permitidos']); echo ' <div style="text-align: right;"> <i>' . $txt['adkmodules_check_all'] . '</i> <input style="vertical-align: middle;" type="checkbox" onclick="invertAll(this, this.form, \'groups_allowed\');" /> </div> </fieldset> </td> </tr> </table> </div> <hr /> <div style="text-align: center;"> <input type="hidden" value="' . $context['session_id'] . '" name="sc" /> <input type="submit" value="' . $txt['save'] . '" class="button_submit" /> <input type="hidden" value="' . $context['edit_admin_page']['id_page'] . '" name="id_page" /> </div> </div> </div> <span class="lowerframe"> <span> </span> </span> </form>'; }