當前位置: 首頁>>代碼示例>>PHP>>正文


PHP qa_html_theme_base::form方法代碼示例

本文整理匯總了PHP中qa_html_theme_base::form方法的典型用法代碼示例。如果您正苦於以下問題:PHP qa_html_theme_base::form方法的具體用法?PHP qa_html_theme_base::form怎麽用?PHP qa_html_theme_base::form使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在qa_html_theme_base的用法示例。


在下文中一共展示了qa_html_theme_base::form方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: form

 function form($form)
 {
     if (qa_opt('embed_smileys') && isset($form['hidden']) && isset($form['id'])) {
         $id = substr($form['id'], 0, 1);
         if ($id == 'c') {
             $id = $form['id'];
         }
         $editor = @$form['hidden'][$id . '_editor'];
         if ($editor === null) {
             return qa_html_theme_base::form($form);
         }
         if ($editor == "" && qa_opt('embed_smileys_editor_button')) {
             @($form['fields']['content']['tags'] .= ' index="' . $this->idx . '"');
             $smileybox = $this->makeSmileyBox();
             $form['fields'] = array_merge(array('smileys' => array("type" => "custom", "html" => '<div class="smiley-button" id="smiley-button' . $this->idx . '" title="Add emoticon" onclick="toggleSmileyBox(' . $this->idx . ')"><img src="' . QA_HTML_THEME_LAYER_URLTOROOT . 'images/emoticon-00100-smile.gif"/></div>' . $smileybox)), $form['fields']);
             $this->idx++;
         } else {
             if ($editor == "Markdown Editor" && qa_opt('embed_smileys_markdown_button')) {
                 @($form['fields']['content']['tags'] .= ' index="' . $this->idx . '"');
                 $smileybox = $this->makeSmileyBox();
                 $form['fields']['content']['html'] = str_replace('class="wmd-button-bar"></div>', 'class="wmd-button-bar"><div class="smiley-button" id="smiley-button' . $this->idx . '" title="Add emoticon" onclick="toggleSmileyBox(' . $this->idx . ')"><img src="' . QA_HTML_THEME_LAYER_URLTOROOT . 'images/emoticon-00100-smile.gif"/></div>' . $smileybox . '</div>', $form['fields']['content']['html']);
                 $form['fields']['content']['html'] = str_replace('<textarea', '<textarea index="' . $this->idx . '"', $form['fields']['content']['html']);
                 $this->idx++;
             }
         }
     }
     qa_html_theme_base::form($form);
 }
開發者ID:NoahY,項目名稱:q2a-smilies,代碼行數:28,代碼來源:qa-smilies-layer.php

示例2: form

 function form($form)
 {
     if (qa_opt('ajax_comment_enable') && !$this->qa_state && !empty($form) && isset($form['ajax_comment']) && $this->can_comment) {
         $this->output('<div class="ajax-comment"' . (isset($form['ajax_comment_comments']) ? ' comments="true"' : '') . ' style="display:none" value="' . $form['ajax_comment'] . '" id="ajax-comment-' . $this->idx++ . '">');
         unset($form['ajax_comment']);
         unset($form['ajax_comment_comments']);
         qa_html_theme_base::form($form);
         $this->output('</div>');
     } else {
         qa_html_theme_base::form($form);
     }
 }
開發者ID:microbye,項目名稱:q2a-comment-ajax,代碼行數:12,代碼來源:qa-comment-layer.php

示例3: profile_page

 function profile_page()
 {
     $handle = $this->content['raw']['account']['handle'];
     $userid = $this->content['raw']['account']['userid'];
     $about = cs_user_profile($handle, 'about');
     $this->output('<div class="user-cols content-sidebar">');
     $this->cs_user_nav($handle);
     $this->output('<div class="user-cols-right">');
     if (isset($about) && strlen($about)) {
         $this->output('<div class="about-me widget">', '<h3 class="widget-title">' . qa_lang_html('cleanstrap/about_me') . '</h3>', $about, '</div>');
     }
     $this->cs_user_activity_count($handle);
     $this->output('<div class="about-me widget">', '<h3 class="widget-title">' . qa_lang_html('cleanstrap/user_profile') . '</h3>');
     qa_html_theme_base::form($this->content['form_profile']);
     $this->output('</div>');
     $this->cs_user_qa($handle);
     $this->output('</div>');
     $this->output('</div>');
 }
開發者ID:microbye,項目名稱:CleanStrap,代碼行數:19,代碼來源:blocks.php


注:本文中的qa_html_theme_base::form方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。