:::

16-1 上課範例:theme.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>">
<head>
  <!-- Assign Theme name -->
  <{assign var=theme_name value=$xoTheme->folderName}>

  <!-- Title and meta -->
  <meta http-equiv="content-language" content="<{$xoops_langcode}>" />
  <meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" />
  <title><{$xoops_sitename}> <{if $xoops_pagetitle !=''}><{$xoops_pagetitle}> - <{/if}></title>
  <meta name="robots" content="<{$xoops_meta_robots}>" />
  <meta name="keywords" content="<{$xoops_meta_keywords}>" />
  <meta name="description" content="<{$xoops_meta_description}>" />
  <meta name="rating" content="<{$xoops_meta_rating}>" />
  <meta name="author" content="<{$xoops_meta_author}>" />
  <meta name="copyright" content="<{$xoops_meta_copyright}>" />
  <meta name="generator" content="XOOPS" />

  <!-- Rss -->
  <link rel="alternate" type="application/rss+xml" title="" href="<{xoAppUrl backend.php}>" />

  <!-- Favicon -->
  <link rel="shortcut icon" type="image/ico" href="<{xoImgUrl icons/favicon.ico}>" />
  <link rel="icon" type="image/png" href="<{xoImgUrl icons/favicon.png}>" />

  <!-- Sheet Css -->
    <link rel="stylesheet" type="text/css" media="all" title="Style sheet" href="<{xoAppUrl xoops.css}>" />
    <link rel="stylesheet" type="text/css" media="all" title="Style sheet" href="<{xoImgUrl style.css}>" />
    <link rel="stylesheet" type="text/css" media="all" title="Style sheet" href="<{xoImgUrl xoops.css}>" />
    <!--[if lte IE 8]>
        <link rel="stylesheet" href="<{xoImgUrl styleIE8.css}>" type="text/css" />
    <![endif]-->
    <!-- customized header contents -->
    <{$xoops_module_header}>

</head>
<body id="<{$xoops_dirname}>" class="<{$xoops_langcode}>">

  <div style="width:980px;margin:0px auto;position:relative;">
 
    <{if $xoops_isuser}>
      <div style="position:absolute;top:145px;left:100px">
        <{includeq file="$theme_name/user_menu.html"}>
      </div>
    <{else}>
      <div style="position:absolute;top:145px;left:80px">
        <{includeq file="$theme_name/login.html"}>
      </div>
    <{/if}>
   
    <table width="980" border="0" cellspacing="0" cellpadding="0" id="page">
      <tr>
        <td width="220" valign="top"><p>
          <!--左區塊區-->
          <{foreach item=block from=$xoBlocks.canvas_left}>
              <{includeq file="$theme_name/block_right.html"}>
          <{/foreach}>

          <!--右區塊區-->
          <{foreach item=block from=$xoBlocks.canvas_right}>
              <{includeq file="$theme_name/block_right.html"}>
          <{/foreach}>
          </p></td>
        <td width="760" valign="top">

        <table width="750" border="0" cellpadding="0" cellspacing="0" id="page2">
          <tr>
            <td valign="top">
            <!-- 上中左區塊 -->
              <{foreach item=block from=$xoBlocks.page_topleft}>
                  <{includeq file="$theme_name/block_center.html"}>
              <{/foreach}>
            </td>
            <td valign="top">
            <!-- 上中右區塊 -->
          <{foreach item=block from=$xoBlocks.page_topright}>
              <{includeq file="$theme_name/block_center.html"}>
          <{/foreach}>
            </td>
          </tr>
          <tr>
            <td colspan="2" valign="top">
            <!-- 上中區塊 -->
              <{foreach item=block from=$xoBlocks.page_topcenter}>
                  <{includeq file="$theme_name/block_center.html"}>
              <{/foreach}>
            </td>
          </tr>
          <tr>
            <td colspan="2" valign="top">
            <!--主內容區-->
            <{$xoops_contents}>
            </td>
          </tr>
          <tr>
            <td valign="top">
            <!-- 下中左區塊 -->
          <{foreach item=block from=$xoBlocks.page_bottomleft}>
              <{include file="$theme_name/block_center.html"}>
          <{/foreach}>
            </td>
            <td valign="top">
            <!-- 下中右區塊 -->
          <{foreach item=block from=$xoBlocks.page_bottomright}>
              <{include file="$theme_name/block_center.html"}>
          <{/foreach}>
            </td>
          </tr>
          <tr>
            <td colspan="2" valign="top">
            <!-- 下中區塊 -->
          <{if $xoBlocks.page_bottomcenter}>
            <{foreach item=block from=$xoBlocks.page_bottomcenter}>
              <{include file="$theme_name/block_center.html"}>
            <{/foreach}>
          <{/if}>
            </td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td colspan="2"><span class="style1">

        <!--頁尾區-->
      <{$xoops_footer}>
      </span></td>
      </tr>
    </table>
  </div>
</body>
</html>
 


:::

搜尋

QR Code 區塊

https%3A%2F%2Ftad0616.cp22.secserverpros.com%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D443%26tbsn%3D18

書籍目錄

展開 | 闔起

線上使用者

546人線上 (114人在瀏覽線上書籍)

會員: 0

訪客: 546

更多…