{"id":19368,"date":"2012-08-17T10:20:28","date_gmt":"2012-08-17T10:20:28","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/dx-template-manager\/"},"modified":"2014-09-08T15:01:20","modified_gmt":"2014-09-08T15:01:20","slug":"dx-template-manager","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/dx-template-manager\/","author":1401913,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1","stable_tag":"1.2","tested":"4.0.38","requires":"3.3.1","requires_php":"","requires_plugins":"","header_name":"DX Template Manager","header_author":"nofearinc","header_description":"","assets_banners_color":"","last_updated":"2014-09-08 15:01:20","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/devrix.com\/","header_plugin_uri":"http:\/\/devrix.com\/template-manager","header_author_uri":"http:\/\/devwp.eu","rating":5,"author_block_rating":0,"active_installs":10,"downloads":4307,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1573787","resolution":"1","location":"plugin"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1573787","resolution":"2","location":"plugin"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1573787","resolution":"3","location":"plugin"}},"screenshots":{"1":"Activating the plugin in Settings -&gt; DX Template Options","2":"Creating a dynamic page template","3":"Assigning a dynamic template to a post"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[20668,3979,662,975],"plugin_category":[43],"plugin_contributors":[81716,81717],"plugin_business_model":[],"class_list":["post-19368","plugin","type-plugin","status-publish","hentry","plugin_tags-evaluation","plugin_tags-execute","plugin_tags-php","plugin_tags-template","plugin_category-customization","plugin_contributors-devrix","plugin_contributors-nofearinc","plugin_committers-devrix","plugin_committers-nofearinc"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/dx-template-manager.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/dx-template-manager\/trunk\/screenshot-1.png?rev=1573787","caption":"Activating the plugin in Settings -&gt; DX Template Options"},{"src":"https:\/\/ps.w.org\/dx-template-manager\/trunk\/screenshot-2.png?rev=1573787","caption":"Creating a dynamic page template"},{"src":"https:\/\/ps.w.org\/dx-template-manager\/trunk\/screenshot-3.png?rev=1573787","caption":"Assigning a dynamic template to a post"}],"raw_content":"<!--section=description-->\n<p>Create page templates like the ones in your theme folder but through a \"DX Templates\" menu in your Admin dashboard. Paste HTML, JS and PHP code which you could assign to your posts, pages or custom post types via a meta box dropdown. Create page templates and apply them to be evaluated.<\/p>\n\n<p><strong>Note: eval() function is used. However, it is available only for admin users to submit code and normally admin users could do a lot harm or upload external harmful plugins as well.<\/strong><\/p>\n\n<p>A complete demo is available here:<\/p>\n\n<p>[youtube http:\/\/www.youtube.com\/watch?v=jtsbXfNi7ts]<\/p>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n\n<p>e.g.<\/p>\n\n<ol>\n<li>Upload <code>dx-template-manager<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory or install via the Plugin installer in your admin dashboard<\/li>\n<li>Activate the \"DX Template Manager\" plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Navigate to \"Settings\" -&gt; DX Template Options<\/li>\n<li>Read the note. If you do agree, check the checkbox and hit the \"agree\" button<\/li>\n<li>Create a page template within the DX Template Manager menu - add your full HTML and PHP code including the head section and meta tags<\/li>\n<li>Create a post\/page and assign the page template from the DX Templates metabox on the right<\/li>\n<li>Save your post and view it<\/li>\n<\/ol>\n\n<p>Check out this video for a complete install guide<\/p>\n\n<p>[youtube http:\/\/www.youtube.com\/watch?v=jtsbXfNi7ts]<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Why do I need to 'agree'?<\/dt>\n<dd><p>The plugin uses the eval() PHP function that evaluates a PHP script on the fly. If a hacker reaches your admin, he would be able to write any form of PHP which could affect your site and database.<\/p>\n\n<p>However, if the hacker has an access to the admin, he could 1) delete everything and takeover your site, or 2) upload a custom plugin of his that does the malware work.<\/p><\/dd>\n<dt>What needs to be inserted in a DX Template?<\/dt>\n<dd><p>Your full HTML as it would be in your page template file. HTML, head and body sections, meta tags, some content. It would replace the entire post\/page resolved from the site.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2<\/h4>\n\n<ul>\n<li>Small update and version bump<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<p>Adding a prepared statement call and improving i18n<\/p>\n\n<h4>1.0<\/h4>\n\n<p>A stable version<\/p>","raw_excerpt":"Create page templates like the ones in your theme folder but through a &quot;DX Templates&quot; menu in your Admin dashboard - HTML, JS, PHP supported &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/19368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=19368"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nofearinc"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=19368"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=19368"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=19368"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=19368"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=19368"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=19368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}