{"id":333,"date":"2019-12-27T01:00:44","date_gmt":"2019-12-27T01:00:44","guid":{"rendered":"https:\/\/demo.brutalistthemes.com\/w95\/?p=333"},"modified":"2023-12-03T11:54:59","modified_gmt":"2023-12-03T11:54:59","slug":"highlight-js-is-included","status":"publish","type":"post","link":"https:\/\/demo.brutalistthemes.com\/w95\/2019\/12\/27\/highlight-js-is-included\/","title":{"rendered":"Highlight.js is included"},"content":{"rendered":"<div class=\"intro\">\n\tThis is an intro paragraph created with a shortcode<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">W95 theme includes highlighter.js for code snippets formatting. To use it, just add <code>&lt;pre&gt;&lt;code&gt;Your code&lt;\/code&gt;&lt;\/pre&gt;<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/**\n * Limit excerpt to a number of characters without cutting last word\n * \n * @param string $excerpt\n * @return string\n *\/\nfunction custom_short_excerpt($excerpt){\n\t$limit = 200;\n\n\tif (strlen($excerpt) &gt; $limit) {\n\t\treturn substr($excerpt, 0, strpos($excerpt, ' ', $limit));\n\t}\n\n\treturn $excerpt;\n}\n\nadd_filter('the_excerpt', 'custom_short_excerpt');<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">B\u00e9ton brut (french for raw concrete) is a smooth architectural surface made out of concrete. The concrete is left unfinished or roughly-finished after casting and it remains exposed visually. The final surface often shows the forms and structures of the formwork.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The best known proto-Brutalist architecture is the work of the Swiss architect Le Corbusier, in particular his 1952 Unit\u00e9 d&#8217;habitation in France and the 1953 Secretariat Building (Palace of Assembly) in Chandigarh, India. Brutalism gained considerable momentum in the United Kingdom during the mid-twentieth century, as economically depressed (and World War II-ravaged) communities sought inexpensive construction and design methods for low-cost housing, shopping centres, and government buildings.<\/p>\n\n\n<div class=\"pull-left\">\n\tThis is a left side pull-quote created with a shortcode<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Nonetheless, many architects chose the Brutalist style even when they had large budgets, as they appreciated the &#8216;honesty&#8217;, the sculptural qualities, and perhaps, the uncompromising, anti-bourgeois, nature of the style.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The use of b\u00e9ton brut was pioneered by Auguste Perret and other modern architects. It was used in such buildings as Unit\u00e9 d&#8217;Habitation in the early part of the twentieth century. It flourished as a part of the brutalist architecture of the 1960s and 70s.<\/p>\n\n\n<div class=\"pull-right\">\n\tThis is a right side pull-quote created with a shortcode<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">This largely gave way to structural expressionism as steel structures became more advanced and viable. Wood-imprinted concrete is still very popular in landscaping especially in some of the western European countries.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>W95 theme includes highlighter.js for code snippets formatting. <\/p>\n<pre><code>\/\/ Your code here\nadd_filter(<span class=\"hljs-string\">'the_excerpt'<\/span>, <span class=\"hljs-string\">'custom_short_excerpt'<\/span>);\n<\/code><\/pre>\n<p>. It will automatically detect language.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-333","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/demo.brutalistthemes.com\/w95\/wp-json\/wp\/v2\/posts\/333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demo.brutalistthemes.com\/w95\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/demo.brutalistthemes.com\/w95\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/demo.brutalistthemes.com\/w95\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.brutalistthemes.com\/w95\/wp-json\/wp\/v2\/comments?post=333"}],"version-history":[{"count":0,"href":"https:\/\/demo.brutalistthemes.com\/w95\/wp-json\/wp\/v2\/posts\/333\/revisions"}],"wp:attachment":[{"href":"https:\/\/demo.brutalistthemes.com\/w95\/wp-json\/wp\/v2\/media?parent=333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/demo.brutalistthemes.com\/w95\/wp-json\/wp\/v2\/categories?post=333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/demo.brutalistthemes.com\/w95\/wp-json\/wp\/v2\/tags?post=333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}