Theme Basics is a series of tutorial notes on building a Blogger theme.
Discover tips and learn how to start building your own Blogger theme:
- Minimum code requirements.
- Basic templates.
- Tags & Data definitions.
- Resources and examples.
<?php | |
define('LANG_ENGLISH', 'en'); | |
define('LANG_FRENCH', 'fr'); | |
define('LANG_SPANISH', 'es'); | |
// Look for l in query string and set as language. | |
$language = isset($_GET['l']) ? $_GET['l'] : LANG_ENGLISH; | |
/** |
data:image/gif;base64,R0lGODlhAQABAAAAACw= |
@font-face{font-family:"summernote";font-style:normal;font-weight:normal;src:url("./font/summernote.eot?4c7e83314b68cfa6a0d18a8b4690044b");src:url("./font/summernote.eot?4c7e83314b68cfa6a0d18a8b4690044b#iefix") format("embedded-opentype"), | |
url("./font/summernote.woff?4c7e83314b68cfa6a0d18a8b4690044b") format("woff"), | |
url("./font/summernote.ttf?4c7e83314b68cfa6a0d18a8b4690044b") format("truetype") | |
} | |
[class^="note-icon-"]:before, | |
[class*=" note-icon-"]:before { | |
display: inline-block; | |
font: normal normal normal 14px summernote; | |
font-size: inherit; | |
-webkit-font-smoothing: antialiased; |
Regular expressions, ever versatile, will help up locate HTML tags in a string today.
Pattern matching HTML strings serves at least one crucial function in web dev: sanitizing user input. Allowing user-submitted strings opens one's application to significant vulnerability. Supposing, for example, some ne'er-do-well on the internet submitted a comment that includes <script src="[path]/stealYourData.js"></script>
. Regular expressions allow us to match HTML tags in a string, because HTML tags conform to a certain pattern: