Image Widget
Image Widget is a simple plugin that uses the native WordPress media manager to add image widgets to your site. Image Widget Features Responsive MU Compatible Handles image resizing and alignment Link the image Add title and description Versatile – all fields are optional Upload, link to external image, or select an image from your media collection Customize the look & feel with filter hooks or theme overrides Quality You Can Trust Image Widget is developed and maintained by The Events Calendar, the same folks behind The Events Calendar, Event Tickets, and a full suite of premium plugins. This plugin is actively supported by our team and contributions from community members. If you see a question in the forum you can help with or have a great idea and want to code it up or submit a patch, that would be awesome! Not only will we shower you with praise and thanks, it’s also a good way to get to know us and lead into options for paid work if you freelance. Pull Requests & Translations Check us out on GitHub to pull request changes. Translations can be submitted here on WordPress.org. Documentation The built in template can be overridden by files within your template. Default vs. Custom Templates The Image Widget comes with a default template for the widget output. If you would like to alter the widget display code, create a new folder called “image-widget” in your template directory and copy over the “views/widget.php” file. Edit the new file to your hearts content. Please do not edit the one in the plugin folder as that will cause conflicts when you update the plugin to the latest release. New in 3.2: You may now also use the “sp_template_image-widget_widget.php” filter to override the default template behavior for .php template files. Eg: if you wanted widget.php to reside in a folder called my-custom-templates/ and wanted it to be called my-custom-name.php: add_filter('sp_template_image-widget_widget.php', 'my_template_filter'); function my_template_filter($template) { return get_template_directory() . '/my-custom-templates/my-custom-name.php'; } Filters There are a number of filters in the code that will allow you to override data as you see fit. The best way to learn what filters are available is always by simply searching the code for ‘apply_filters’. But all the same, here are a few of the more essential filters: widget_title This is actually a pretty typical filter in widgets and is applied to the widget title. widget_text Another very typical widget filter that is applied to the description body text. This filter also takes 2 additional arguments for $args and $instance so that you can learn more about the specific widget instance in the process of filtering the content. image_widget_image_attachment_id Filters the attachment id of the image. Accepts additional $args and $instance arguments. image_widget_image_url Filters the url of the image displayed in the widget. Accepts additional $args and $instance arguments. THIS IS DEPRECATED AND WILL EVENTUALLY BE DELETED image_widget_image_width Filters the display width of the image. Accepts additional $args and $instance arguments. image_widget_image_height Filters the display height of the image. Accepts additional $args and $instance arguments. image_widget_image_maxwidth Filters the inline max-width style of the image. Hint: override this to use this in responsive designs 🙂 Accepts additional $args and $instance arguments. Return null to remove this css from the image output (defaults to ‘100%’). image_widget_image_maxheight Filters the inline max-height style of the image. Accepts additional $args and $instance arguments. Return null to remove this css from the image output (defaults to null) image_widget_image_size Filters the selected image ‘size’ corresponding to WordPress registered sizes. If this is set to ‘tribe_image_widget_custom’ then the width and height are used instead. Accepts additional $args and $instance arguments. image_widget_image_align Filters the display alignment of the image. Accepts additional $args and $instance arguments. image_widget_image_alt Filters the alt text of the image. Accepts additional $args and $instance arguments. image_widget_image_link Filters the url that the image links to. Accepts additional $args and $instance arguments. image_widget_image_link_target Filters the link target of the image link. Accepts additional $args and $instance arguments. image_widget_image_attributes Filters a list of image attributes used in the image output. Similar to ‘wp_get_attachment_image_attributes’ Accepts $instance arguments image_widget_link_attributes Filters a list of attributes used in the image link. Similar to ‘wp_get_attachment_image_attributes’ Accepts $instance arguments Have You Supported the Image Widget? If so, then THANK YOU! Also, feel free to add this line to your wp-config.php file to prevent the image widget from displaying a message after upgrades. define( ‘I_HAVE_SUPPORTED_THE_IMAGE_WIDGET’, true ); For more info on the philosophy here, check out our blog post
Top keywords
- image56×6.77%
- widget33×3.99%
- image widget21×2.54%
- filters18×2.18%
- instance15×1.81%
- arguments14×1.69%
- accepts13×1.57%
- instance arguments13×1.57%
- additional12×1.45%
- args12×1.45%
- args and instance12×1.45%
- image widget image12×1.45%
Widget Responsive for Youtube
Widgets + ShortCode responsive to embed youtube in your sidebar or in your content or in WPBakery Page Builder, with all available options and http://schema.org/VideoObject fields. Among the various options you can choose: – Choosing minutes and seconds of the start and end of the video – Automatically subtitles On/Off – Auto hide video progress bar – Choose theme of controls bar – Choose color of progress bar – Show controls bar or not – Loop mode – Enable fullscreen On/Off – Automatically start video On/Off – Mute video On/Off on start – Hide YouTube logo On/Off – Hide title On/Off – Enabling Privacy Mode On/Off – Enable the suggested videos at the end of playback On/Off – Can be set max-width – Tracking playing for each video on analytics event – Use the fields http://schema.org/VideoObject to improve the SEO on video – Write description below video – YouTube Button subscribe Languages: EN, IT, AR, DE, ES, FR, HE, HI, RU, ZH, PT, DA (thanks to Amlugil, quadbox, Ksenia, Dietz, Daniel Severo Estrázulas, Ole Lyager and google Translate) Help me to keep the software up to date Donate just 1 coffe here ShortCode Params video (required) The link at the video “http://www.youtube.com/watch?v=_9tBFVKhn5o” or link to playlist like “https://www.youtube.com/watch?v=KQ6zr6kCPj8&list=PLatuTuqWSQmViIeVthG2y9YssDtm8EvYt” or link to playlist like “list=PLatuTuqWSQmViIeVthG2y9YssDtm8EvYt” or only the id of video like _9tBFVKhn5o or link to uploads video of user “list=LMFAOVEVO&listType=user_uploads” list (supported players: AS3, HTML5) The list value of link (you can put entire url on video without use this param) autohide (supported players: AS3, HTML5) Values: 2 (default), 1, and 0. This parameter indicates whether the video controls will automatically hide after a video begins playing. The default behavior (autohide=2) is for the video progress bar to fade out while the player controls (play button, volume control, etc.) remain visible. If this parameter is set to 1, then the video progress bar and the player controls will slide out of view a couple of seconds after the video starts playing. They will only reappear if the user moves her mouse over the video player or presses a key on her keyboard. If this parameter is set to 0, the video progress bar and the video player controls will be visible throughout the video and in fullscreen. autoplay (supported players: AS3, HTML5) Values: 0 or 1. Default is 0. Sets whether or not the initial video will autoplay when the player loads. mute (supported players: AS3, HTML5) Values: 0 or 1. Default is 0. Sets whether or not the video mute when the player loads. cc_load (supported players: AS3) Values: 1. Default is based on user preference. Setting to 1 will cause closed captions to be shown by default, even if the user has turned captions off. cc_lang (supported players: AS3) ISO 639-1 two-letter language code [ex. en] color (supported players: AS3, HTML5) This parameter specifies the color that will be used in the player’s video progress bar to highlight the amount of the video that the viewer has already seen. Valid parameter values are red and white, and, by default, the player will use the color red in the video progress bar. See the YouTube API blog for more information about color options. controls (supported players: AS3, HTML5) Values: 0, 1, or 2. Default is 1. This parameter indicates whether the video player controls will display. For IFrame embeds that load a Flash player, it also defines when the controls display in the player as well as when the player will load: controls=0 – Player controls do not display in the player. For IFrame embeds, the Flash player loads immediately. controls=1 – Player controls display in the player. For IFrame embeds, the controls display immediately and the Flash player also loads immediately. controls=2 – Player controls display in the player. For IFrame embeds, the controls display and the Flash player loads after the user initiates the video playback. disablekb (supported players: AS3) Values: 0 or 1. Default is 0. Setting to 1 will disable the player keyboard controls. Keyboard controls are as follows: Spacebar: Play / Pause Arrow Left: Jump back 10% in the current video Arrow Right: Jump ahead 10% in the current video Arrow Up: Volume up Arrow Down: Volume Down start_m (supported players: AS3) End of video at start_m:start_s start_s (supported players: AS3) End of video at start_m:start_s end_m (supported players: AS3) End of video at end_m:end_s end_s (supported players: AS3) End of video at end_m:end_s allowfullscreen (supported players: AS3) Values: 0 or 1. The default value is 1, which causes the fullscreen button to display. Setting this parameter to 0 prevents the fullscreen button from displaying. loop (supported players: HTML5, AS3) Values: 0 or 1. The default value is 0. In the case of a single video player, a setting of 1 causes the player to play the initial video again and again. In the case of a playlist player (or custom player), the player plays the entire playlist and then starts again at the first video. iv_load_policy (supported players: AS3, HTML5) Values: 1 or 3. Default is 1. Setting to 1 will cause video annotations to be shown by default, whereas setting to 3 will cause video annotations to not be shown by default. modestbranding (supported players: AS3, HTML5) This parameter lets you use a YouTube player that does not show a YouTube logo. Set the parameter value to 1 to prevent the YouTube logo from displaying in the control bar. Note that a small YouTube text label will still display in the upper-right corner of a paused video when the user’s mouse pointer hovers over the player. suggested Show suggested videos when the video finishes showinfo (supported players: AS3, HTML5) Values: 0 or 1. The parameter’s default value is 1. If you set the parameter value to 0, then the player will not display information like the video title and uploader before the video starts playing. If the player is loading a playlist, and you explicitly set the parameter value to 1, then, upon loading, the player will also display thumbnail images for the videos in the playlist. Note that this functionality is only supported for the AS3 player since that is the only player that can load a playlist. theme (supported players: AS3, HTML5) This parameter indicates whether the embedded player will display player controls (like a play button or volume control) within a dark or light control bar. Valid parameter values are dark and light, and, by default, the player will display player controls using the dark theme. quality Valid parameter values are small medium large hd720 hd1080 highres ratio Valid parameter values are 16/9 21/9 4/3 9/16 9/21 N.nnnnn privacy Enable privacy-enhanced mode class Set class at the video iframe style Set style at the video iframe maxw Set max-width in px at the video iframe maxh Set max-height in px at the video iframe track Values: 0 or 1. The parameter’s default value is 0. If you set the parameter value to 1, you will find on Google Analytics/Universal Analytics the event on “YoutubeWidgetResponsive” – “Playing” – “Title video | idvideo [author]” schemaorg_name Name field required for printing schema.org snippet schemaorg_thumbnail thumbnail (ID or URL) field required for printing schema.org snippet schemaorg_uploaddate Upload date (YYYY-MM-DD format) field required for printing schema.org snippet schemaorg_description Description field required for printing schema.org snippet schemaorg_description_visible Values: 0 or 1. The parameter’s default value is 0. If you set the parameter value to 1, you will show the description below the video schemaorg_durationm Duration of video in minutes schemaorg_durations Duration of video in seconds