| 1 |
# HTML Header with qt.io branding and online links |
| 2 |
|
| 3 |
HTML.stylesheets = template/style/online.css \ |
| 4 |
template/style/cookie-confirm.css \ |
| 5 |
template/style/gsc.css \ |
| 6 |
template/style/list_arrow.png \ |
| 7 |
template/style/list_expand.png \ |
| 8 |
template/style/icomoon.eot \ |
| 9 |
template/style/icomoon.svg \ |
| 10 |
template/style/icomoon.ttf \ |
| 11 |
template/style/icomoon.woff \ |
| 12 |
template/style/cookiebar-x.png \ |
| 13 |
template/style/doc_search.png \ |
| 14 |
template/style/theqtcompany.png |
| 15 |
|
| 16 |
#for including files into the qch file. Relative to the outputdir of a QDoc build. |
| 17 |
qhp.extraFiles += style/online.css \ |
| 18 |
style/cookie-confirm.css \ |
| 19 |
style/gsc.css \ |
| 20 |
style/list_arrow.png \ |
| 21 |
style/list_expand.png \ |
| 22 |
style/icomoon.eot \ |
| 23 |
style/icomoon.svg \ |
| 24 |
style/icomoon.ttf \ |
| 25 |
style/icomoon.woff \ |
| 26 |
style/cookiebar-x.png \ |
| 27 |
style/doc_search.png \ |
| 28 |
style/theqtcompany.png |
| 29 |
|
| 30 |
HTML.headerstyles = \ |
| 31 |
" <link rel=\"stylesheet\" type=\"text/css\" href=\"style/online.css\" />\n" \ |
| 32 |
" <link rel=\"shortcut icon\" href=\"//d33sqmjvzgs8hq.cloudfront.net/wp-content/themes/oneqt/assets/images/favicon.ico.gzip\" />\n" |
| 33 |
|
| 34 |
HTML.headerscripts = \ |
| 35 |
" <script type=\"text/javascript\"> wpThemeFolder = \'http://qt.io/wp-content/themes/oneqt\'; </script>\n" \ |
| 36 |
" <script type=\"text/javascript\" src=\"//d33sqmjvzgs8hq.cloudfront.net/wp-includes/js/jquery/jquery.js.gzip\"></script>\n" \ |
| 37 |
" <script type=\"text/javascript\" src=\"//d33sqmjvzgs8hq.cloudfront.net/wp-includes/js/jquery/jquery-migrate.min.js.gzip\"></script>\n" \ |
| 38 |
" <script type=\"text/javascript\" src=\"//d33sqmjvzgs8hq.cloudfront.net/wp-content/themes/oneqt/js/combo.js.gzip\"></script>\n" \ |
| 39 |
" <script type=\"text/javascript\" src=\"scripts/main.js\"></script>\n" \ |
| 40 |
" <script type=\"text/javascript\" src=\"scripts/extras.js\"></script>\n" \ |
| 41 |
" <script type=\"text/javascript\">\n" \ |
| 42 |
" \$(function(){\n" \ |
| 43 |
" \$(\"#footer\").load(\"/style/qt-footer.html\");\n" \ |
| 44 |
" \$(\"#sidebar-content\").load(\"style/qt5-sidebar.html\");\n" \ |
| 45 |
" });\n" \ |
| 46 |
" </script>\n" \ |
| 47 |
" <script type=\"text/javascript\">\n" \ |
| 48 |
" (function (i, s, o, g, r, a, m) {\n" \ |
| 49 |
" i[\'GoogleAnalyticsObject\'] = r; i[r] = i[r] || function () {\n" \ |
| 50 |
" (i[r].q = i[r].q || []).push(arguments)\n" \ |
| 51 |
" }, i[r].l = 1 * new Date(); a = s.createElement(o),\n" \ |
| 52 |
" m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)\n" \ |
| 53 |
" })(window, document, \'script\', \'//www.google-analytics.com/analytics.js\', \'ga\');\n\n" \ |
| 54 |
" ga(\'create\', \'UA-54043535-2\', \'qt.io\');\n" \ |
| 55 |
" ga(\'set\', \'forceSSL\', true);\n" \ |
| 56 |
" ga(\'send\', \'pageview\');\n" \ |
| 57 |
" </script>\n" |
| 58 |
|
| 59 |
HTML.scripts = template/scripts/extras.js \ |
| 60 |
template/scripts/main.js |
| 61 |
|
| 62 |
HTML.endheader = \ |
| 63 |
"</head>\n" |
| 64 |
|
| 65 |
# minimal header |
| 66 |
HTML.postheader = \ |
| 67 |
"<body>\n" \ |
| 68 |
"<div class=\"header\" id=\"tmpl_header\">\n" \ |
| 69 |
"<header class=\"\" id=\"navbar\"><div id=\"cookie-confirmation\" style=\"display:none\"><div id=\"cookie-confirmation-inner\"><p>We bake cookies in your browser for a better experience. Using this site means that you consent.\n" \ |
| 70 |
"<a href=\"https://www1.qt.io/terms-conditions/ \">Read more</a></p><div id=\"cookie-confirmation-buttons-area\"><a href=\"#\" id=\"confirmation-button\">Continue »</a>\n" \ |
| 71 |
"</div></div>\n" \ |
| 72 |
"<script>\n" \ |
| 73 |
" $('#confirmation-button').on('click', function() { $('#cookie-confirmation').fadeOut(); createCookie(\"cookies_nom\", \"yum\", 180); });\n" \ |
| 74 |
" if (!(readCookie('cookies_nom') == 'yum')) { $('#cookie-confirmation').fadeIn(); }\n" \ |
| 75 |
"</script>\n" \ |
| 76 |
"</div>\n" \ |
| 77 |
"<div class=\"container\">\n" \ |
| 78 |
" <div class=\"navbar-header cf\">\n" \ |
| 79 |
" <div id=\"mm-wrap\">\n" \ |
| 80 |
" <ul id=\"mm-helper\" class=\"mm-menu\" data-event=\"hover_intent\" data-effect=\"fade\" data-effect-speed=\"200\" data-panel-width=\"#navbar\" data-panel-inner-width=\"1280px\" data-second-click=\"go\" data-document-click=\"collapse\" data-vertical-behaviour=\"accordion\" data-breakpoint=\"0\">\n" \ |
| 81 |
" <li class=\"mm-item\"><a class=\"mm-link\" href=\"http://blog.qt.io/\" tabindex=\"0\">Blog</a></li>\n" \ |
| 82 |
" <li class=\"mm-item\"><a class=\"mm-link\" href=\"https://www.qt.io/contact-us/\" tabindex=\"0\">Contact Us</a></li>\n" \ |
| 83 |
" <li class=\"mm-item\"><a title=\"Qt Account\" class=\"mm-link\" href=\"https://account.qt.io/\" tabindex=\"0\"></a></li>\n" \ |
| 84 |
" </ul>\n" \ |
| 85 |
" </div>\n" \ |
| 86 |
" <a class=\"navbar-oneQt retina\" data-icon=\"\" href=\"https://www.qt.io/\"></a>\n" \ |
| 87 |
" </div>\n" \ |
| 88 |
"</div>\n" \ |
| 89 |
"</header>\n" \ |
| 90 |
"</div>\n" \ |
| 91 |
"<div class=\"main\">\n" \ |
| 92 |
"<div class=\"main-rounded\">\n" \ |
| 93 |
"<div class=\"navigationbar\">\n" \ |
| 94 |
" <ul class=\"sub-navigation\">\n" \ |
| 95 |
" <li><a href=\"http://wiki.qt.io/\">Wiki</a></li>\n" \ |
| 96 |
" <li><a href=\"http://doc.qt.io/\" class=\"active\">Documentation</a></li>\n" \ |
| 97 |
" <li><a href=\"http://forum.qt.io/\">Forum</a></li>\n" \ |
| 98 |
" <li><a href=\"https://bugreports.qt.io/\">Bug Reports</a></li>\n" \ |
| 99 |
" <li><a href=\"https://codereview.qt-project.org/\">Code Review</a></li>\n" \ |
| 100 |
" </ul>\n" \ |
| 101 |
" <div id=\"main_title_bar\">\n" \ |
| 102 |
" <h1>Qt Documentation</h1>\n" \ |
| 103 |
" <div class=\"search_bar\">\n" \ |
| 104 |
" <script>\n" \ |
| 105 |
" (function() {\n" \ |
| 106 |
" var cx = \'003672281345882769388:1y4pftuq8so\';\n" \ |
| 107 |
" var gcse = document.createElement(\'script\');\n" \ |
| 108 |
" gcse.type = \'text/javascript\';\n" \ |
| 109 |
" gcse.async = true;\n" \ |
| 110 |
" gcse.src = (document.location.protocol == \'https:\' ? \'https:\' : \'http:\') + \'//www.google.com/cse/cse.js?cx=\' + cx;\n" \ |
| 111 |
" var s = document.getElementsByTagName(\'script\')[0];\n" \ |
| 112 |
" s.parentNode.insertBefore(gcse, s);\n" \ |
| 113 |
" })();\n" \ |
| 114 |
" </script>\n" \ |
| 115 |
" <gcse:searchbox-only resultsUrl=\"search-results.html\"></gcse:searchbox-only>\n" \ |
| 116 |
" </div></div>\n" \ |
| 117 |
" <ul>\n" |
| 118 |
|
| 119 |
HTML.postpostheader = \ |
| 120 |
" </ul>\n" \ |
| 121 |
"</div>\n" \ |
| 122 |
"<div class=\"content\">\n" \ |
| 123 |
" <div class=\"line\">\n" \ |
| 124 |
" <div class=\"content mainContent\">\n" |
| 125 |
|
| 126 |
HTML.prologue = \ |
| 127 |
"<div class=\"context\">\n" |