{"id":634,"date":"2014-07-07T00:17:04","date_gmt":"2014-07-07T00:17:04","guid":{"rendered":"https:\/\/themes.simonbouchard.com\/theagency-v2\/?page_id=281"},"modified":"2014-07-07T00:17:04","modified_gmt":"2014-07-07T00:17:04","slug":"source-code","status":"publish","type":"page","link":"https:\/\/themes.simonbouchard.com\/studio8\/documentation\/built-in-short-codes\/source-code\/","title":{"rendered":"Source Code"},"content":{"rendered":"<h2 class=\"hard-top\">Attributes<\/h2>\n<table>\n<thead>\n<th>Attribute<\/th>\n<th>Description<\/th>\n<th>Values<\/th>\n<th>Default<\/th>\n<\/thead>\n<tbody>\n<tr>\n<td>source<\/td>\n<td>Define the source code type<\/td>\n<td>xml, html, css, php, js, java, sql, bash, shell, plain<\/td>\n<td>plain<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h6>Demo<\/h6>\n<div class=\"row cf\" style=\"background-size: auto;\"> \n<h5>HTML<\/h5>\n<pre class=\"brush: html;\">\n<nav role=\"navigation\">\n<ul>\n<li class=\"active\"><a href=\"#\">This<\/a><\/li>\n<li><a href=\"#\">is a<\/a><\/li>\n<li><a href=\"#\">awesome<\/a><\/li>\n<li><a href=\"#\">theme !<\/a><\/li>\n<\/ul>\n<\/nav>\n<\/pre>\n<h5>CSS<\/h5>\n<pre class=\"brush: css;\">\n.shortcode_google-map { margin: 20px 0 }\n<\/pre>\n<h5>JS<\/h5>\n<pre class=\"brush: js;\">\n  easeOutBounce: function (x, t, b, c, d) {\n    if ((t\/=d) &lt; (1\/2.75)) {\n      return c*(7.5625*t*t) + b;\n    } else if (t &lt; (2\/2.75)) {\n      return c*(7.5625*(t-=(1.5\/2.75))*t + .75) + b;\n    } else if (t &lt; (2.5\/2.75)) {\n      return c*(7.5625*(t-=(2.25\/2.75))*t + .9375) + b;\n    } else {\n      return c*(7.5625*(t-=(2.625\/2.75))*t + .984375) + b;\n    }\n  },\n<\/pre>\n<h5>PHP<\/h5>\n<pre class=\"brush: php;\">\nfunction is_post_type($type){\n    global $wp_query;\n    if($type == get_post_type($wp_query-&gt;post-&gt;ID)) return true;\n    return false;\n}\n<\/pre>\n <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Attributes Attribute Description Values Default source Define the source code type xml, html, css, php, js, java, sql, bash, shell, plain plain Demo<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":619,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/themes.simonbouchard.com\/studio8\/wp-json\/wp\/v2\/pages\/634"}],"collection":[{"href":"https:\/\/themes.simonbouchard.com\/studio8\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/themes.simonbouchard.com\/studio8\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/themes.simonbouchard.com\/studio8\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/themes.simonbouchard.com\/studio8\/wp-json\/wp\/v2\/comments?post=634"}],"version-history":[{"count":0,"href":"https:\/\/themes.simonbouchard.com\/studio8\/wp-json\/wp\/v2\/pages\/634\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/themes.simonbouchard.com\/studio8\/wp-json\/wp\/v2\/pages\/619"}],"wp:attachment":[{"href":"https:\/\/themes.simonbouchard.com\/studio8\/wp-json\/wp\/v2\/media?parent=634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}