Advertisement
Guest User

iPhoneStyle Checkbox

a guest
Oct 18th, 2011
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. <br/><?php $metabox->the_field('nofollow'); ?>
  2. <input type="checkbox" class="on_off" name="<?php $metabox->the_name(); ?>" value="1"<?php if ($metabox->get_the_value()) echo ' checked="checked"'; ?>/> Use <code>nofollow</code>
  3.  
  4. <script type="text/javascript" charset="utf-8">
  5.     $(window).load(function() {
  6.         $('.on_off').iphoneStyle();  
  7.     });
  8. </script>
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement