TvDrupal - 国内领先的CMS建站视频教程培训网站
- www.tvdrupal.com
改造下tvtheme主题
区域:
regions: header: '网站头部' primary_menu: '主菜单区域' secondary_menu: '第二菜单区域' highlighted: '高亮提示区域' --- 提示信息 Status messages banner: '幻灯片' ---增加幻灯片区域 banner_front: '幻灯片首页' breadcrumb: '面包屑' content: '内容区域' content_top: '内容区域 - 顶部' content_bottom: '内容区域 - 底部' content_front: '首页的内容区域' sidebar: '侧边栏' footer: '网站底部' hidden: 'hidden block from reference block'
page.html.twig:
{# /** * @file * Default theme implementation to display a single page. * * The doctype, html, head and body tags are not in this template. Instead they * can be found in the html.html.twig template in this directory. * * Available variables: * * General utility variables: * - base_path: The base URL path of the Drupal installation. Will usually be * "/" unless you have installed Drupal in a sub-directory. * - is_front: A flag indicating if the current page is the front page. * - logged_in: A flag indicating if the user is registered and signed in. * - is_admin: A flag indicating if the user has permission to access * administration pages. * * Site identity: * - front_page: The URL of the front page. Use this instead of base_path when * linking to the front page. This includes the language domain or prefix. * - logo: The url of the logo image, as defined in theme settings. * - site_name: The name of the site. This is empty when displaying the site * name has been disabled in the theme settings. * - site_slogan: The slogan of the site. This is empty when displaying the site * slogan has been disabled in theme settings. * * Page content (in order of occurrence in the default page.html.twig): * - messages: Status and error messages. Should be displayed prominently. * - node: Fully loaded node, if there is an automatically-loaded node * associated with the page and the node ID is the second argument in the * page's path (e.g. node/12345 and node/12345/revisions, but not * comment/reply/12345). * * Regions: * - page.header: Items for the header region. * - page.navigation: Items for the Navigation region. * - page.page_title: Used by Current page Title. * - page.banner: Items for the banner region. * - page.highlighted: Items for the highlighted top region. * - page.content_top: The main content top of the current page. * - page.help: Item for the help region. * - page.breadcrumb: Item for the Breadcrumb region. * - page.content: The main content of the current page. * - page.sidebar_first: Items for the first sidebar. * - page.sidebar_second: Items for the second sidebar. * - page.content_bottom: Items for the bottom in content region. * - page.footer_top: Items for the footer top region. * - page.footer_first: Items for the footer first region. * - page.footer_second: Items for the footer Second region. * - page.footer_third: Items for the footer third region. * - page.footer_bottom: Items for the footer bottom region. * * @see template_preprocess_page() * @see html.html.twig * * @ingroup themeable */ #}
Toggle navigation
{% if page.header %} {{ page.header }} {% endif %}
{% if page.primary_menu %} {{ page.primary_menu }} {% endif %}
{% if page.banner %}
{{ page.banner }}
{% endif %}
{% if page.highlighted %}
{{ page.highlighted }}
{% endif %} {% if page.page_title and not is_front %}
{{ page.page_title }}
{% endif %}
{% if page.content_top %}
{{ page.content_top }}
{% endif %}
{{ page.breadcrumb }}
{% if page.sidebar_first %}
uuuuu {{ page.sidebar_first }}
{% endif %} {% if page.content %}
{{ page.content }}
{% endif %} {% if page.sidebar_second %}
{{ page.sidebar_second }}
{% endif %}
{% if page.content_bottom %}
{{ page.content_bottom }}
{% endif %}
page--front.html.twig:
{# /** * @file * Default theme implementation to display a single page. * * The doctype, html, head and body tags are not in this template. Instead they * can be found in the html.html.twig template in this directory. * * Available variables: * * General utility variables: * - base_path: The base URL path of the Drupal installation. Will usually be * "/" unless you have installed Drupal in a sub-directory. * - is_front: A flag indicating if the current page is the front page. * - logged_in: A flag indicating if the user is registered and signed in. * - is_admin: A flag indicating if the user has permission to access * administration pages. * * Site identity: * - front_page: The URL of the front page. Use this instead of base_path when * linking to the front page. This includes the language domain or prefix. * - logo: The url of the logo image, as defined in theme settings. * - site_name: The name of the site. This is empty when displaying the site * name has been disabled in the theme settings. * - site_slogan: The slogan of the site. This is empty when displaying the site * slogan has been disabled in theme settings. * * Page content (in order of occurrence in the default page.html.twig): * - messages: Status and error messages. Should be displayed prominently. * - node: Fully loaded node, if there is an automatically-loaded node * associated with the page and the node ID is the second argument in the * page's path (e.g. node/12345 and node/12345/revisions, but not * comment/reply/12345). * * Regions: * - page.header: Items for the header region. * - page.navigation: Items for the Navigation region. * - page.page_title: Used by Current page Title. * - page.banner: Items for the banner region. * - page.highlighted: Items for the highlighted top region. * - page.content_top: The main content top of the current page. * - page.help: Item for the help region. * - page.breadcrumb: Item for the Breadcrumb region. * - page.content: The main content of the current page. * - page.sidebar_first: Items for the first sidebar. * - page.sidebar_second: Items for the second sidebar. * - page.content_bottom: Items for the bottom in content region. * - page.footer_top: Items for the footer top region. * - page.footer_first: Items for the footer first region. * - page.footer_second: Items for the footer Second region. * - page.footer_third: Items for the footer third region. * - page.footer_bottom: Items for the footer bottom region. * * @see template_preprocess_page() * @see html.html.twig * * @ingroup themeable */ #}
Toggle navigation
{% if page.header %} {{ page.header }} {% endif %}
{% if page.primary_menu %} {{ page.primary_menu }} {% endif %}
{{ page.banner_front }}
{% if page.highlighted %}
{{ page.highlighted }}
{% endif %}
{{ page.content_front }}
power by
tvdrupal.com
TvDrupal - 国内领先的CMS建站视频教程培训网站