當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。