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


PHP HTML_TEMPLATE_IT::touchBlock方法代碼示例

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


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

示例1: gettext

    if (!empty($values["file_id"])) {
        // ALTER AN EXISTING DOCUMENT
    } else {
        // UPLOAD A NEW DOCUMENT
        if (!empty($values["desc"])) {
            $problem .= gettext("Please describe the file.") . " ";
            $hint .= "";
        }
        $new_file = $podspace->upload("FILE_TO_UPLOAD");
    }
}
$content = new HTML_TEMPLATE_IT();
$content->loadTemplatefile(PATH_TEMPLATES . "weblog_podcast.template.html");
$content->setVariable("GREETING", str_replace("%n", $portal->get_user()->get_forename(), gettext("Hi %n!")));
if (empty($_GET["file"])) {
    $content->touchBlock("BLOCK_UPLOAD");
}
$help_text = "<b>" . gettext("What is podcasting?") . "</b> " . gettext("Podcasting is the method of distributing multimedia files, such as audio programs, over the Internet using syndication feeds, for playback on mobile decices and personal computers.");
$help_text .= "<br/><br/>" . gettext("The podcast is also available as a webfolder:") . " <a href=\"https://" . STEAM_SERVER . $podspace->get_path() . "\">WebDAV Mountpoint</a>";
$content->setVariable("HELP_TEXT", $help_text);
$content->setVariable("YOUR_PODSCPACE_TEXT", gettext("Your Podspace"));
$content->setVariable("UPLOAD_NEW_FILE_TEXT", gettext("Upload a multimedia file"));
$content->setVariable("PODSPACE", $podspace->get_id());
$content->setVariable("LABEL_FILE", gettext("File"));
$content->setVariable("LABEL_DESCRIPTION", gettext("Description"));
$content->setVariable("LABEL_KEYWORDS", gettext("Keywords"));
$content->setVariable("LABEL_SAVE_CHANGES", gettext("Save changes"));
$content->setVariable("BACK_LINK", PATH_URL . "weblog/" . $weblog->get_id() . "/podspace/");
$content->setVariable("YOUR_PODSPACE_TEXT", gettext("Your Podspace"));
$files_in_podspace = $podspace->get_inventory(CLASS_DOCUMENT);
if (count($files_in_podspace) == 0) {
開發者ID:rolwi,項目名稱:koala,代碼行數:31,代碼來源:weblog_podcast.php


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