Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. class instaslidewidget extends WP_Widget
  2. {
  3. public function __construct()
  4. {
  5. parent::__construct(
  6. "text_widget",
  7. "Insta Slide Widget",
  8. array("description" => "This is slide widget for photos from intagram")
  9. );
  10. }
  11.  
  12. public function form($instance)
  13. {
  14. $width = "";
  15. if ( ! empty($instance)) {
  16. $width = $instance["width"];
  17. }
  18. }
  19.  
  20. public function widget($args, $instance)
  21. {
  22. $width = $instance["width"];
  23. // ....
  24. }
  25.  
  26. .rslides {
  27. position: relative;
  28. list-style: none;
  29. overflow: hidden;
  30. width: <?php echo $width; ?>;
  31. padding: 0;
  32. margin: 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement