Agnosia Bootstrap Carousel by AuSoft
Agnosia Bootstrap Carousel hooks the [gallery] shortcode with attribute type="carousel" in order to show a Bootstrap Carousel based on the selected images and their titles and descriptions. This plugin assumes either your theme includes the necessary Bootstrap javascript and CSS files to display the carousel properly, or that you have included those files on your own. It will not include the files for you, so if they are not present, the carousel will not work and you will only obtain its bare HTML. Basic example: [gallery type="carousel" ids="61,60,59"] Required attributes: type: it needs to be type="carousel". ids: you must provide a list of ids corresponding to attachments, like ids="1,2,3". Otherwise, the default [gallery] shortcode function will be processed instead of this plugin’s one. Optional attributes: name: any name. String will be sanitize to be used as an HTML ID. Recommended when you want to have more than one carousel in the same page. Default: agnosia-bootstrap-carousel. Example: [gallery type="carousel" ids="61,60,59" name="myCarousel"] indicators: indicators position. Accepted values: before-inner, after-inner, after-control, false (hides indicators). Default: before-inner. Example: [gallery type="carousel" ids="61,60,59" indicators="after-inner"] width: carousel container width, in px or %. Default: not set. Example: [gallery type="carousel" ids="61,60,59" width="800px"] height: carousel item height, in px or %. Default: not set. Example: [gallery type="carousel" ids="61,60,59" height="400px"] titletag: define HTML tag for image title. Default: h4. Example: [gallery type="carousel" ids="61,60,59" titletag="h2"] wpautop: auto-format text. Default: true. Example: [gallery type="carousel" ids="61,60,59" wpautop="false"] title: show or hide image title. Set false to hide. Default: true. Example: [gallery type="carousel" ids="61,60,59" title="false"] text: show or hide image text. Set false to hide. Default: true. Example: [gallery type="carousel" ids="61,60,59" text="false"] containerclass: extra class for carousel container. Default: not set. Example: [gallery type="carousel" ids="61,60,59" containerclass="container"] itemclass: extra class for carousel item. Default: not set. Example: [gallery type="carousel" ids="61,60,59" itemclass="container"] captionclass: extra class for item caption. Default: not set. Example: [gallery type="carousel" ids="61,60,59" captionclass="container"] control: control arrows display. Accepted values: true (to show), false (to hide). Default: true. Example: [gallery type="carousel" ids="61,60,59" control="false"] interval: the amount of time to delay between automatically cycling an item. If false, carousel will not automatically cycle. Default: 5000. Example: [gallery type="carousel" ids="61,60,59" interval="2000"] pause: pauses the cycling of the carousel on mouseenter and resumes the cycling of the carousel on mouseleave. Default: “hover”. Example: [gallery type="carousel" ids="61,60,59" interval="hover"] size: size for image attachment. Accepted values: thumbnail, medium, large, full. Default: full. See wp_get_attachment_image_src() for further reference. Example: [gallery type="carousel" ids="61,60,59" size="full"] Native supported attributes: orderby: Alternative order for your images. Example: [gallery type="carousel" ids="61,60,59" orderby="rand"] link: where your image titles will link to. Accepted values: file, none and empty. An empty value will link to your attachment’s page. Example: [gallery type="carousel" ids="61,60,59" link="file"] Extending This plugin offers hooks for actions and filters, so you can modify its functionality or add your own. Action hooks: agnosia_bootstrap_carousel_before_init: Do something before the carousel is loaded. agnosia_bootstrap_carousel_init: Do something after the carousel is loaded. Filter hooks: agnosia_bootstrap_carousel_attributes: Modify the attributes passed to the shortcode. agnosia_bootstrap_carousel_posts: Modify the $post objects that the shortcode is using. agnosia_bootstrap_carousel_container_style: Modify the carousel container style. agnosia_bootstrap_carousel_item_style: Modify the style of the carousel items. agnosia_bootstrap_carousel_output: Modify the full HTML output of the carousel. agnosia_bootstrap_carousel_container: Modify the HTML output of the carousel container tag. agnosia_bootstrap_carousel_inner: Modify the HTML output of the carousel inner tag. agnosia_bootstrap_carousel_caption_container: Modify the HTML output of the caption container tag. agnosia_bootstrap_carousel_img_container: Modify the HTML output of the image container tag. agnosia_bootstrap_carousel_img: Modify the HTML output of the item image tag. agnosia_bootstrap_carousel_excerpt: Modify the HTML output of the image caption. agnosia_bootstrap_carousel_indicators: Modify the HTML output of the indicators element. agnosia_bootstrap_carousel_control: Modify the HTML output of the control element. agnosia_bootstrap_carousel_javascript: Modify the output of the carousel Javascript. agnosia_bootstrap_carousel_make_array: Modify the list of $post IDs that the carousel is using. Contributing You can make suggestions and submit your own modifications to this plugin on Github. For more information, visit our website.
Top keywords
- carousel58×7.27%
- ids22×2.76%
- type21×2.63%
- bootstrap20×2.51%
- gallery20×2.51%
- type carousel20×2.51%
- bootstrap carousel19×2.38%
- carousel ids19×2.38%
- type carousel ids19×2.38%
- 5918×2.26%
- 6018×2.26%
- 60 5918×2.26%
Bootstrap Blocks
Bootstrap Gutenberg Blocks for WordPress. This plugin adds Bootstrap components and layout options as Gutenberg blocks. Features Supports Bootstrap v5 and v4 Support for CSS grid (experimental) Fully customizable with filters Configuration via option page or programmatically with constants Block templates can be overwritten in your theme The full documentation of this plugin can be found on GitHub: https://github.com/tschortsch/bootstrap-blocks-wordpress-plugin#readme Available Blocks Container Options: Fluid: If enabled the container will use the full available width, spanning the entire width of the viewport. Fluid Breakpoint: Used to enable responsive containers. This feature only works with Bootstrap v4.4+. The container will use 100% of the width until the specified breakpoint is reached, after which the defined max-widths will apply for each of the higher breakpoints. Margin After: Define a margin which should be added after the container. Row Options: Template: Choose from a predefined template for the inner column blocks. No Gutters: Disable gutters between columns. Alignment: Horizontal alignment of inner column blocks. Vertical Alignment: Vertical alignment of inner column blocks. Editor stack columns: Displays stacked columns in the editor to enhance readability of block content. Horizontal Gutters: Size of horizontal gutters. Vertical Gutters: Size of vertical gutters. CSS Grid Gutters: Size of gutters when CSS grid is used. Column Options: Sizes for all breakpoints (xxl, xl, lg, md, sm, xs): How much space the column should use for the given breakpoint. Equal width for all breakpoints (xxl, xl, lg, md, sm, xs): If enabled column will spread width evenly with other columns. Background Color: Set background color to column. Content vertical alignment: Align content vertically in column. This option is only needed if a background color is set. Otherwise use the Alignment option of the outer row block. Padding: Define padding inside the column. Button Options: Style: Choose the styling of the button. Open in new tab: Choose if link should be opened in a new tab. Rel: Set rel attribute of the link. Alignment: Horizontal alignment of the button. Supported Bootstrap versions This plugin supports Bootstrap v4 and v5. The version can be selected in the plugin settings (Settings > Bootstrap Blocks) or by defining the WP_BOOTSTRAP_BLOCKS_BOOTSTRAP_VERSION constant in the wp-config.php file: Bootstrap 4: define( 'WP_BOOTSTRAP_BLOCKS_BOOTSTRAP_VERSION', '4' ); Bootstrap 5 (default): define( 'WP_BOOTSTRAP_BLOCKS_BOOTSTRAP_VERSION', '5' ); Possible values right now are '4' or '5'. By default Bootstrap version 5 is selected. CSS Grid The CSS grid (supported with Bootstrap >= 5.1.0) can be enabled in the plugin settings (Settings > Bootstrap Blocks) or by defining the WP_BOOTSTRAP_BLOCKS_ENABLE_CSS_GRID constant in the wp-config.php file: eg. define( 'WP_BOOTSTRAP_BLOCKS_ENABLE_CSS_GRID', true ); When the CSS grid is enabled the row and the column blocks will use custom templates for the rendering process: Row: row-css.grid.php Column: column-css-grid.php The support is still experimental since it’s also marked as experimental in the Bootstarp library. Please read the official Bootstrap documentation to get more information on how to use it. Bootstrap library Please be aware that this plugin does not include the Bootstrap library in your website. You need to do this by yourself. We decided not to include the library so that you can modify Bootstrap to your own needs before loading it. You’ll find an example how to include it in your theme’s functions.php in the documentation. Templates All blocks are implemented as dynamic blocks. This makes it possible to overwrite the template of a block in your theme. To overwrite a block template create a folder called wp-bootstrap-blocks/ in your theme directory. You can copy the original template from wp-bootstrap-blocks/src/templates/ .php as a starting point and adjust it to your needs. Requirements WordPress >= 5.0 PHP >= 5.6 Further Information Documentation: https://github.com/tschortsch/bootstrap-blocks-wordpress-plugin#readme WordPress Plugin: https://wordpress.org/plugins/wp-bootstrap-blocks GitHub Repository: https://github.com/tschortsch/bootstrap-blocks-wordpress-plugin Changelog: https://github.com/tschortsch/bootstrap-blocks-wordpress-plugin/releases Issue tracker: https://github.com/tschortsch/bootstrap-blocks-wordpress-plugin/issues