Plugin Directory

Changeset 1685686


Ignore:
Timestamp:
06/26/2017 06:12:42 PM (9 years ago)
Author:
alishanvr
Message:

Readme file is updated. Faq's about filters has been added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bx-slider-by-trs/trunk/readme.txt

    r1685678 r1685686  
    323210. much more
    3333
     34== Frequently Asked Questions ==
     35
     36= Does this plugin work with newest WP version and also older versions? =
     37Yes, this plugin works really fine with newest version as old version!
     38
     39= I want to wrap slider output in a div element =
     40You can use 'trs_bx_slider_return_shortcode_html' filter like this way.
     41add_filter('trs_bx_slider_return_shortcode_html', 'test_func', 10, 3);
     42function test_func( $slider, $slider_id ){
     43    if (absint($slider_id) === 4){
     44        $html = '<div class="your-custom-class">';
     45        $html .= $slider;
     46        $html .= '</div>';
     47
     48        return $html;
     49    }
     50
     51    // default
     52    return $slider;
     53}
     54
     55
     56= I am getting error that Extension of provided images / video is not supported. Please read documentation. =
     57You are getting this error because you are using image or video that is supported by BX slider by TRS.
     58We support mp4, webm and ogg video type that is compatible with HTML video element. Same in case with images.
     59But you can extend and add your own extensions by using below filters.
     60'trs_bx_slider_add_image_types'
     61'trs_bx_slider_add_video_types'
     62
     63Example:
     64add_filter('trs_bx_slider_add_image_types', 'test_func', 10);
     65function test_func( $image_types ){
     66    $image_types[] = 'dwg';
     67    $image_types[] = 'any-other-image-extension';
     68
     69
     70    return $image_types;
     71}
     72
     73
     74
     75add_filter('trs_bx_slider_add_video_types', 'test_func', 10);
     76function test_func( $video_types ){
     77    $video_types[] = 'mp3';
     78    $video_types[] = 'avi';
     79    $video_types[] = 'any-other-video-extension';
     80
     81    return $video_types;
     82}
     83
     84
    3485== Changelog ==
    35 -v 2.1-
     86=v 2.1=
    3687* jQuery easing feature is now enabled.
    3788* BX Slider option for 'Manual show without infinite loop' is now added.
     
    4293* limit WordPress Media to choose only one item at a time.
    4394
    44 -v 1.1-
     95=v 1.1=
    4596* Now you can sort slides with Drag and Drop feature.
    4697* BX Slider has now adaptive height option. You can set it while creation of slider.
    4798* Enhanced slider dashboard view little bit.
    4899
    49 -v 1.0.3-
     100=v 1.0.3=
    50101* Minor Bug Fixes
    51102
    52 -v 1.0.2-
     103=v 1.0.2=
    53104* Slider height meta option added
    54105* Minor bug fixed - image disappeared when slider is second time update [FIXED]
    55106* Add one more class for bootstrapping
    56107
    57 -v 1.0.1-
     108=v 1.0.1=
    58109* Dashboard GUI has been updated
    59110* Some Labels has been updated
    60111* Add Slider Short code on 'add slider' page
    61112
    62 -v 1.0.0-
     113=v 1.0.0=
    63114* Starting the jurney
Note: See TracChangeset for help on using the changeset viewer.