当前位置: 首页>>代码示例>>PHP>>正文


PHP Head::addChild方法代码示例

本文整理汇总了PHP中Head::addChild方法的典型用法代码示例。如果您正苦于以下问题:PHP Head::addChild方法的具体用法?PHP Head::addChild怎么用?PHP Head::addChild使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Head的用法示例。


在下文中一共展示了Head::addChild方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: createHead

 public function createHead()
 {
     $head = new Head();
     $head->addChild($this->getTitleTag());
     $head->addChild("\n            <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>\n            <meta name='viewport' content='width=device-width, initial-scale=1'>\n            <meta name='robots' content='index, follow'>\n            <meta http-equiv='X-UA-Compatible' content='IE=edge' />\n\t\t\t<link rel='stylesheet' type='text/css' href='/src/front/style/style.css'/>\n            <link rel='stylesheet' type='text/css' href='/src/front/style/line-items.css'/>\n            <link rel='stylesheet' type='text/css' href='/src/front/style/style-less.css' title='main'/>\n            <link rel='stylesheet' type='text/css' href='/src/front/style/animate-animo.min.css'/>\n            <link rel='shortcut icon' href='images/system/favicon.ico' type='image/x-icon'/>\n            <script type='text/javascript' src='/src/front/js/ext/jquery-2.1.4.min.js'></script>\n            <script type='text/javascript' src='/src/front/js/ext/jquery.actual.min.js'></script>\n            <script type='text/javascript' src='/src/front/js/ext/jquery.imageloader.js'></script>\n            <script type='text/javascript' src='/src/front/js/ext/require.js'></script>\n            <script>\n              require(['/src/front/js/require.config.js'], function(){\n                require(['./components/components.module'])\n              });\n            </script>\n            <script type='text/javascript' src='/src/front/js/ext/animo.min.js'></script>\n            <script type='text/javascript' src='/src/front/js/custom.js'></script>\n            <script type='text/javascript' src='/src/front/js/v-utils.js'></script>\n            <script type='text/javascript' src='/src/front/js/changePage.js'></script>\n            <script type='text/javascript' src='/src/front/js/preview.js'></script>\n            <script type='text/javascript' src='/src/front/js/utils.js'></script>\n            <script type='text/javascript' src='/src/front/js/components/vCore-imageGallery.js'></script>\n            <script type='text/javascript' src='/src/front/js/components/vCore-popup.js'></script>\n            <script type='text/javascript' src='/src/front/js/components/vCore-imageZoom.js'></script>\n            <script type='text/javascript' src='/src/front/js/components/vCore-effects.js'></script>\n            ");
     $head->addChild(SearchEngines::getGoogleAnalyticScript());
     $head->addChild(SearchEngines::getYandexMetricScript());
     return $head;
 }
开发者ID:gingerP,项目名称:shop,代码行数:9,代码来源:APagesCreator.php

示例2: getHtml

 public function getHtml()
 {
     $html = new Html();
     $head = new Head();
     $head->addChild("\n        <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>\n        <meta http-equiv='cache-control' content='max-age=0' />\n        <meta http-equiv='cache-control' content='no-cache' />\n        <meta http-equiv='expires' content='0' />\n        <meta http-equiv='expires' content='Tue, 01 Jan 1980 1:00:00 GMT' />\n        <meta http-equiv='pragma' content='no-cache' />\n        <link rel='stylesheet' type='text/css' href='/src/front/style/admin-page.css'>\n        ");
     $head->addChild(Components::getMenu());
     $head->addChildList($this->getHeadContent());
     $body = new Body();
     $body->addChildList($this->getGeneralContent());
     return $this->pagePrefix . $html->addChildList([$head, $body])->getHtml();
 }
开发者ID:gingerP,项目名称:shop,代码行数:11,代码来源:AdminPagesCreator.php

示例3: getPreAuthPage

 private function getPreAuthPage()
 {
     $mainTag = new Html();
     $head = new Head();
     $head->addChild("\n            <title>Admin page</title>\n            <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>\n            <link rel='shortcut icon' href='images/system/favicon.ico' type='image/x-icon'/>\n            <link rel='stylesheet' type='text/css' href='/src/front/style/style-less.css'/>\n            <script type='text/javascript' src='/src/front/js/fixies.js'></script>\n            <script type='text/javascript' src='/src/front/js/ext/jquery.js'></script>\n            <script type='text/javascript' src='/src/front/js/ext/jquery-1.10.2.js'></script>\n            <script type='text/javascript' src='/src/front/js/ext/tinycolor.js'></script>\n            <script type='text/javascript' src='/src/front/js/v-utils.js'></script>\n            <script type='text/javascript' src='/src/front/js/utils.js'></script>\n            <script type='text/javascript' src='/src/front/js/admin.js'></script>\n            <script type='text/javascript' src='/src/front/js/components/vCore-effects.js'></script>\n            ");
     $body = new Body();
     $body->addChild("\n            <div class='admin_auth_container' >\n                <div class='auth_header f-20'>Авторизация</div>\n                <label class='f-15' for='user'>User</label>\n                <input id='user'>\n                <label class='f-15' for='password'>Password</label>\n                <input id='password' type='password'>\n                <button class='button f-20 input_hover'>Войти</button>\n            </div>\n            <script type='text/javascript'>\n                /*inputHoverModule.update();*/\n            </script>\n        ");
     return $mainTag->addChildList([$head, $body]);
 }
开发者ID:gingerP,项目名称:shop,代码行数:9,代码来源:AdminPage.php


注:本文中的Head::addChild方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。