{"id":43306,"date":"2016-03-17T07:54:25","date_gmt":"2016-03-17T07:54:25","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=43306"},"modified":"2016-03-17T12:11:17","modified_gmt":"2016-03-17T12:11:17","slug":"implement-twig-opencart","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/implement-twig-opencart\/","title":{"rendered":"Implement Twig In Opencart"},"content":{"rendered":"<p>Here, we will learn how to integrate twig templating engine with the Opencart. First of all, we have to download the composer installer in the root of our Opencart using the command:<\/p>\n<pre class=\"brush:powershell\">curl -s http:\/\/getcomposer.org\/installer | php<\/pre>\n<p>Then, we have to create a composer.json file in the root and put the following lines into it:<\/p>\n<pre class=\"brush:js\">{\r\n    \"require\": {\r\n        \"twig\/twig\": \"1.*\"\r\n    }\r\n}<\/pre>\n<p>After pasting the above lines, we have to install the dependencies using the command:<\/p>\n<pre class=\"brush:shell\">php composer.phar install<\/pre>\n<p>It will create a vendor folder by default in which the twig packages will be stored. To make an access to these files, I have added these lines of codes in the index.php file in the root as I have created another folder named views in the catalog folder.<\/p>\n<pre class=\"brush:php\">\/\/ Twig\r\nrequire_once 'vendor\/autoload.php'; \r\n\r\n$twigLoader = new Twig_Loader_Filesystem('catalog\/views\/theme\/default\/template'); \r\n\r\n$twig = new Twig_Environment($twigLoader);<\/pre>\n<p>It is not advisable to perform modifications to the index.php file. Instead, you can copy the code in system\/engine\/front.php<\/p>\n<p>Working with the twig is very simple. I have made changes in the account file. I just replace a few line at the end of the\u00a0controller. So, here&#8217;s the replaced controller code:<\/p>\n<pre class=\"brush:php\">if ($this-&gt;config-&gt;get('config_template') != 'default' &amp;&amp; file_exists(DIR_TEMPLATE . $this-&gt;config-&gt;get('config_template') . '\/template\/account\/account.tpl')) {\r\n\t$this-&gt;response-&gt;setOutput($this-&gt;load-&gt;view($this-&gt;config-&gt;get('config_template') . '\/template\/account\/account.tpl', $data));\r\n} else {\r\n\techo $this-&gt;twig-&gt;render('account\/account.html', $data);\r\n}<\/pre>\n<p>I have created a twig file named account.html in the location catalog\/views\/theme\/default\/template\/account and here the code of twig file:<\/p>\n<pre class=\"brush:xml\">{{ header | raw }}\r\n&lt;div class=\"container\"&gt;\r\n  &lt;ul class=\"breadcrumb\"&gt;\r\n    {% for breadcrumb in breadcrumbs  %}\r\n    &lt;li&gt;&lt;a href=\"{{ breadcrumb.href }}\"&gt;{{ breadcrumb.text | raw }}&lt;\/a&gt;&lt;\/li&gt;\r\n    {% endfor %}\r\n  &lt;\/ul&gt;\r\n  {% if success %}\r\n  &lt;div class=\"alert alert-success\"&gt;&lt;i class=\"fa fa-check-circle\"&gt;&lt;\/i&gt; {{ success }}&lt;\/div&gt;\r\n  {% endif %}\r\n  &lt;div class=\"row\"&gt;{{ column_left | raw }}\r\n    {% if column_left and column_right %}\r\n    {% set class = 'col-sm-6' %}\r\n    {% elseif column_left or column_right %}\r\n    {% set class = 'col-sm-9' %}\r\n    {% else %}\r\n    {% set class = 'col-sm-12' %}\r\n    {% endif %}\r\n    &lt;div id=\"content\" class=\"{{ class }}\"&gt;{{ content_top }}\r\n      &lt;h2&gt;{{ text_my_account }}&lt;\/h2&gt;\r\n      &lt;ul class=\"list-unstyled\"&gt;\r\n        &lt;li&gt;&lt;a href=\"{{ edit }}\"&gt;{{ text_edit }}&lt;\/a&gt;&lt;\/li&gt;\r\n        &lt;li&gt;&lt;a href=\"{{ password }}\"&gt;{{ text_password }}&lt;\/a&gt;&lt;\/li&gt;\r\n        &lt;li&gt;&lt;a href=\"{{ address }}\"&gt;{{ text_address }}&lt;\/a&gt;&lt;\/li&gt;\r\n        &lt;li&gt;&lt;a href=\"{{ wishlist }}\"&gt;{{ text_wishlist }}&lt;\/a&gt;&lt;\/li&gt;\r\n      &lt;\/ul&gt;\r\n      {% if credit_cards %}\r\n      &lt;h2&gt;{{ text_credit_card }}&lt;\/h2&gt;\r\n      &lt;ul class=\"list-unstyled\"&gt;\r\n        {% for credit_card in credit_cards %}\r\n        &lt;li&gt;&lt;a href=\"{{ credit_card.href }}\"&gt;{{ credit_card.name }}&lt;\/a&gt;&lt;\/li&gt;\r\n        {% endfor %}\r\n      &lt;\/ul&gt;\r\n      {% endif %}\r\n      &lt;h2&gt;{{ text_my_orders }}&lt;\/h2&gt;\r\n      &lt;ul class=\"list-unstyled\"&gt;\r\n        &lt;li&gt;&lt;a href=\"{{ order }}\"&gt;{{ text_order }}&lt;\/a&gt;&lt;\/li&gt;\r\n        &lt;li&gt;&lt;a href=\"{{ download }}\"&gt;{{ text_download }}&lt;\/a&gt;&lt;\/li&gt;\r\n       {% if reward %}\r\n        &lt;li&gt;&lt;a href=\"{{ reward }}\"&gt;{{ text_reward }}&lt;\/a&gt;&lt;\/li&gt;\r\n        {% endif %}\r\n        &lt;li&gt;&lt;a href=\"{{ return }}\"&gt;{{ text_return }}&lt;\/a&gt;&lt;\/li&gt;\r\n        &lt;li&gt;&lt;a href=\"{{ transaction }}\"&gt;{{ text_transaction }}&lt;\/a&gt;&lt;\/li&gt;\r\n        &lt;li&gt;&lt;a href=\"{{ recurring }}\"&gt;{{ text_recurring }}&lt;\/a&gt;&lt;\/li&gt;\r\n      &lt;\/ul&gt;\r\n      &lt;h2&gt;{{ text_my_newsletter }}&lt;\/h2&gt;\r\n      &lt;ul class=\"list-unstyled\"&gt;\r\n        &lt;li&gt;&lt;a href=\"{{ newsletter }}\"&gt;{{ text_newsletter }}&lt;\/a&gt;&lt;\/li&gt;\r\n      &lt;\/ul&gt;\r\n      {{ content_bottom | raw }}&lt;\/div&gt;\r\n    {{ column_right | raw }}\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n{{ footer | raw }}\u00a0\r\n<\/pre>\n<p>For a thorough knowledge of the twig, please do visit\u00a0<a href=\"http:\/\/twig.sensiolabs.org\/documentation\">Twig Documentation<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here, we will learn how to integrate twig templating engine with the Opencart. First of all, we have to download the composer installer in the root of our Opencart using the command: curl -s http:\/\/getcomposer.org\/installer | php Then, we have to create a composer.json file in the root and put the following lines into it: <a href=\"https:\/\/webkul.com\/blog\/implement-twig-opencart\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":70,"featured_media":41008,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[305,2709],"tags":[2874,2875,2071,775,2873,2712],"class_list":["post-43306","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-opencart","category-twig","tag-composer","tag-composer-json","tag-opencart","tag-template","tag-template-engine","tag-twig"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Implement Twig In Opencart - Webkul Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/implement-twig-opencart\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Implement Twig In Opencart - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Here, we will learn how to integrate twig templating engine with the Opencart. First of all, we have to download the composer installer in the root of our Opencart using the command: curl -s http:\/\/getcomposer.org\/installer | php Then, we have to create a composer.json file in the root and put the following lines into it: [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/implement-twig-opencart\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-03-17T07:54:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-03-17T12:11:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Vikhyat Sharma\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vikhyat Sharma\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/implement-twig-opencart\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/implement-twig-opencart\/\"},\"author\":{\"name\":\"Vikhyat Sharma\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/af7160d2546c64a1856ab1b5ce77d9b0\"},\"headline\":\"Implement Twig In Opencart\",\"datePublished\":\"2016-03-17T07:54:25+00:00\",\"dateModified\":\"2016-03-17T12:11:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/implement-twig-opencart\/\"},\"wordCount\":212,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/implement-twig-opencart\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"keywords\":[\"composer\",\"composer.json\",\"opencart\",\"template\",\"template-engine\",\"twig\"],\"articleSection\":[\"opencart\",\"Twig\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/implement-twig-opencart\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/implement-twig-opencart\/\",\"url\":\"https:\/\/webkul.com\/blog\/implement-twig-opencart\/\",\"name\":\"Implement Twig In Opencart - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/implement-twig-opencart\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/implement-twig-opencart\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"datePublished\":\"2016-03-17T07:54:25+00:00\",\"dateModified\":\"2016-03-17T12:11:17+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/implement-twig-opencart\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/implement-twig-opencart\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/implement-twig-opencart\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"width\":825,\"height\":260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/implement-twig-opencart\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Implement Twig In Opencart\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/af7160d2546c64a1856ab1b5ce77d9b0\",\"name\":\"Vikhyat Sharma\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7c9c700cc2d7120c9faf1ab3392b4e533808ba197f58c0441d6caecc68179e12?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7c9c700cc2d7120c9faf1ab3392b4e533808ba197f58c0441d6caecc68179e12?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Vikhyat Sharma\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/vikhyat-sharma83\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Implement Twig In Opencart - Webkul Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/implement-twig-opencart\/","og_locale":"en_US","og_type":"article","og_title":"Implement Twig In Opencart - Webkul Blog","og_description":"Here, we will learn how to integrate twig templating engine with the Opencart. First of all, we have to download the composer installer in the root of our Opencart using the command: curl -s http:\/\/getcomposer.org\/installer | php Then, we have to create a composer.json file in the root and put the following lines into it: [...]","og_url":"https:\/\/webkul.com\/blog\/implement-twig-opencart\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2016-03-17T07:54:25+00:00","article_modified_time":"2016-03-17T12:11:17+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","type":"image\/png"}],"author":"Vikhyat Sharma","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Vikhyat Sharma","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/implement-twig-opencart\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/implement-twig-opencart\/"},"author":{"name":"Vikhyat Sharma","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/af7160d2546c64a1856ab1b5ce77d9b0"},"headline":"Implement Twig In Opencart","datePublished":"2016-03-17T07:54:25+00:00","dateModified":"2016-03-17T12:11:17+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/implement-twig-opencart\/"},"wordCount":212,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/implement-twig-opencart\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","keywords":["composer","composer.json","opencart","template","template-engine","twig"],"articleSection":["opencart","Twig"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/implement-twig-opencart\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/implement-twig-opencart\/","url":"https:\/\/webkul.com\/blog\/implement-twig-opencart\/","name":"Implement Twig In Opencart - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/implement-twig-opencart\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/implement-twig-opencart\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","datePublished":"2016-03-17T07:54:25+00:00","dateModified":"2016-03-17T12:11:17+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/implement-twig-opencart\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/implement-twig-opencart\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/implement-twig-opencart\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","width":825,"height":260},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/implement-twig-opencart\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Implement Twig In Opencart"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/af7160d2546c64a1856ab1b5ce77d9b0","name":"Vikhyat Sharma","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7c9c700cc2d7120c9faf1ab3392b4e533808ba197f58c0441d6caecc68179e12?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7c9c700cc2d7120c9faf1ab3392b4e533808ba197f58c0441d6caecc68179e12?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Vikhyat Sharma"},"url":"https:\/\/webkul.com\/blog\/author\/vikhyat-sharma83\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/43306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/70"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=43306"}],"version-history":[{"count":1,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/43306\/revisions"}],"predecessor-version":[{"id":43347,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/43306\/revisions\/43347"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/41008"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=43306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=43306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=43306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}