Инструкция по использованию:
Using the shortcode feature
Example 1: Very simple grabbing of first paragraph from the WordPress website
[webgrab url='http://wordpress.org/about/' tag='p class="intro">']
Example 2: A little more complex grabbing with some tags removal
[webgrab url='http://www.freewebsitetemplates.com' tag='div id="leftside">' rtag1='h1>' rtag2='div class="pages"' rtag3='div class="about">' rtag4='div class="templatedaily">']
You can add unlimited number of tags to be removed from the output: use shortcode attributes that starts with rtag
Example 3: Grabbing with some tags removal and some tags stripping
[webgrab url='http://www.freewebsitetemplates.com' tag='div id="leftside">' rtag1='h1>' rtag2='div class="pages"' rtag3='div class="about">' rag4='div class="templatedaily">' stag1='a' stag2='span class="title">']
You can add unlimited number of tags to be stripped of the output: use shortcode attributes that starts with stag
Example 4: Grabbing with tags removal, tags stripping and string replacements
[webgrab url='http://www.freewebsitetemplates.com' tag='div id="leftside">' rtag1='h1>' rtag2='div class="pages"' rtag3='div class="about">' rtag4='div class="templatedaily">' stag1='a' stag2='span class="title">' srch1='class="ss"' repl1='style="display:block;"' srch2='class="title"' repl2='style="display:block;"']
You can add unlimited number of search/replace pairs to be passed to processor: for needle, use shortcode attributes that starts with srch, and for replace, use shortcode attributes that starts with repl
Example 5: Grabbing with tags removal, tags stripping and string replacements – advanced custom own design formatting
[webgrab url='http://www.freewebsitetemplates.com' tag='div id="leftside">' rtag1='h1>' rtag2='div class="pages"' rtag3='div class="about">' rtag4='div style="clear:' rtag5='div class="clear">' rtag6='div style="margin-left:31px;display:block;">' rtag7='div class="templatedaily">' srch1='class="title"' repl1='style="display:block;font-size:16px;font-weight:bold;margin-bottom:5px;background-color:#dedede;padding:2px;border:1px solid #ababab;"' srch2='class="ss"' repl2='style="display:block;margin-bottom:10px;"' srch3='class="download"' repl3='style="margin-top:17px;padding:5px;font-weight:bold;text-decoration:none;border:1px solid #ababab;background-color:#dedede;color:#000000;"' srch4='class="preview"' repl4='style="margin-top:17px;padding:5px;font-weight:bold;text-decoration:none;border:1px solid #ababab;background-color:#dedede;color:#000000;"' srch5='class="getwix"' repl5='style="margin-top:17px;padding:5px;font-weight:bold;text-decoration:none;border:1px solid #ababab;background-color:#dedede;color:#000000;"' srch6='class="templateleft"' repl6='style="padding:10px 0 10px 0;border-bottom:1px solid #ababab;"' srch7='class="templateright"' repl7='style="padding:10px 0 10px 0;border-bottom:1px solid #ababab;"'/]
Step 1: make a folder named /webgrabber-wordpress-plugin under the /wp-content/plugins directory;
Step 2: copy entire archive contens to the new created /wp-content/plugins/webgrabber-wordpress-plugin folder;
Step 3: make sure that the /wp-content/plugins/webgrabber-wordpress-plugin/engine/cache directory is writable;
Step 4: activate the plugin through the ‘Plugins’ menu in WordPress administration page;
Step 5: use [webgrab] short code into posts/pages editor, or drag and configure a widget under the ‘Appearance/Widgets’ section