{"id":7163,"date":"2009-11-06T07:09:14","date_gmt":"2009-11-06T07:09:14","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/external-markup\/"},"modified":"2011-01-31T10:51:10","modified_gmt":"2011-01-31T10:51:10","slug":"external-markup","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/external-markup\/","author":2651196,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.1","stable_tag":"trunk","tested":"2.8.2","requires":"2.7.1","requires_php":"","requires_plugins":"","header_name":"External markup","header_author":"TV4 AB","header_description":"","assets_banners_color":"","last_updated":"2011-01-31 10:51:10","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/www.tv4.se","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1042,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[9898,3002],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-7163","plugin","type-plugin","status-closed","hentry","plugin_tags-external-content","plugin_tags-framework","plugin_committers-henrikbox"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/external-markup.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Retrieve markup from external websites based on html-comments.\nThe plugin creates htmlfiles that are inserted into the templates\nwhere the function call is made. Uses CURL or fOPEN to retrive the\nexternal content. Also checks the age of the htmlfile using filemtime\nand compares it to the option \"em_external_src_cache\".<\/p>\n\n<h3><\/h3>\n\n<p>Websites that are using this plugin:\nhttp:\/\/stylebykling.tv4.se\/\nhttp:\/\/lundh.fotbollskanalen.se\/\nhttp:\/\/sciencefictionbloggen.tv4.se\/<\/p>\n\n<!--section=installation-->\n<p>The markup from external source must be tagged with specific html-comments.\nPlugin retrives markup from start\/end comments.<\/p>\n\n<p>The htmlfile path is default set to \/themes\/TEMPLATENAME\/em_cache\/\nCreate folder \/themes\/TEMPLATENAME\/em_cache\/ and make it writeable (chmod 777)<\/p>\n\n<p>The file external_markup_functions.php must be included in the template functions.php.\nCopy the file external_markup_functions.php into your template folder.<\/p>\n\n<p>Example: include_once (TEMPLATEPATH . '\/external_markup_functions.php');<\/p>\n\n<p>Example:\nFor retriving navigation markup from http:\/\/www.tv4.se;\nFunction call in template:  em_showContent(\"main-navigation start\",\"main-navigation end\",EM_EXAMPLE,FALSE)<\/p>\n\n<p>Explanation of function call:\nem_showContent(HTML-COMMENT-START,HTML-COMMENT-END,DEFINE HTMLFILENAME,COMPRESS)<\/p>\n\n<ul>\n<li>em_showContent is the function (found in external_markup_functions.php)<\/li>\n<li>HTML-COMMENT-START, the start html-comment<\/li>\n<li>HTML-COMMENT-END, the end html-comment<\/li>\n<li>DEFINE HTMLFILENAME, the name definition of the htmlfile (see documentation in external_markup_functions.php)<\/li>\n<li>COMPRESS, should the htmlfile be compressed (FALSE\/TRUE) - use with caution!<\/li>\n<\/ul>","raw_excerpt":"Retrieve markup from external websites based on html-comments.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/7163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=7163"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/henrikbox"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=7163"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=7163"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=7163"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=7163"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=7163"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=7163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}