开发者 | naderc |
---|---|
更新时间 | 2014年2月16日 07:57 |
PHP版本: | 3.2.1 及以上 |
WordPress版本: | 3.2.1 |
$url2png->getScreenshot('Website URL', WIDTH, HEIGHT, IMAGETAG, CLASS)
Example: $url2png->getScreenshot('www.outsource.io', 300, 300)
// Result: http://www.example.com/wp-content/screenshots/...
Example: $url2png->getScreenshot('www.outsource.io', 300, 300, true)
// Result: <img src="http://example.com/wp-content/screenshots/.…" alt="Website URL" class="" width="300" />
Example: $url2png->getScreenshot('www.outsource.io', 300, 300, true, 'alignleft')
// Result: <img src="http://example.com/wp-content/screenshots/.…" alt="Website URL" class="alignleft" width="300" />
url2png.php
to the /wp-content/plugins/
directory<?php $url2png->getScreenshot('Website URL', WIDTH, HEIGHT, true); ?>
or other functions in your templatesVisit Outsource