چۈشەندۈرۈش
This plugin will generate an tag for a random image selected from a specified folder.
Setup Instructions
- Extract randomImage.php into your wp-content/plugins folder (or a subfolder)
- Activate the plugin in WordPress
- On the options screen, select the «Random Image» menu
- Fill in the values for your physical and http paths
- Select scaling options (optional)
- Add some code to whatever page you want to display the image. This is a great way to
customize the header image for your wordpress installation. The plugin will look in
the folder and randomly select a header image to display.
Sample Code
By placing code like the following in your header, it will create an image tag for you
based on the images in the specified folder.
<?php
if (function_exists(›generateRandomImgTag‹))
{
generateRandomImgTag();
}
?>
<!–
The lines above are for the HTML documentation (online)
–>
This code will ensure that the function exists (ie the plugin is active and working) and
call it if it’s working correctly. If the function is missing, or the plugin has been
removed then the call will be ignored, and no errors will result.
Feedback
kdmurray.at.kdmurray.dot.net
باھالاشلار
بۇ قىستۇرمىغا تېخى باھا يېزىلمىدى.
تۆھپىكار ۋە ئىجادكار
«Random Image Selector» كودى ئوچۇق يۇمشاق دېتال. تۆۋەندىكى كىشىلەر بۇ قىستۇرمىغا تۆھپە قوشقان.
تۆھپىكار«Random Image Selector» نى تىلىڭىزغا تەرجىمە قىلىڭ
ئىجادىيەتكە قىزىقامسىز؟
كودقا كۆز يۈگۈرتۈپ، SVN خەزىنە تەكشۈرۈپ ياكى RSSئارقىلىق ئىجادىيەت خاتىرىسىگە مۇشتەرى بولغىلى بولىدۇ.