Plugin Directory

Changeset 2321971


Ignore:
Timestamp:
06/11/2020 04:17:00 AM (6 years ago)
Author:
allan.casilum
Message:

1.8.20

Location:
searchie/trunk
Files:
17 added
11 edited

Legend:

Unmodified
Added
Removed
  • searchie/trunk/README.txt

    r2321746 r2321971  
    55Requires at least: 5.4
    66Tested up to: 5.4
    7 Stable tag: 1.8.17
     7Stable tag: 1.8.20
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    2727
    2828== Changelog ==
     29= 1.8.20 =
     30* added a responsive checkbox in the media gutenberg blocks
     31* update the searchie API timeout
     32* fix media files thumbnail
     33* update shortcode media files with responsive attribute
    2934
    3035= 1.8.17 =
  • searchie/trunk/SIO/API/Files.php

    r2321746 r2321971  
    6464
    6565        $res = SIO_API::get_instance()->get($args);
    66 
     66       
    6767    if ( $res['http_code'] == 200 ) {
    6868      $body = json_decode($res['body']);
     
    139139
    140140    $res = SIO_API::get_instance()->get($args);
    141        
     141
    142142    if ( $res['http_code'] == 200 ) {
    143143      $body = json_decode($res['body']);
  • searchie/trunk/SIO/API/Widgets.php

    r2321746 r2321971  
    7373      'type' => 'widgets',
    7474            'query_uri' => [
    75                 'page' => $args['paged']
     75                'page' => isset($args['paged']) ? $args['paged'] : 1
    7676            ]
    7777    ];
     
    148148        } else {
    149149            $ret = $this->store();
    150             if ( $ret['status'] ) {
     150            if ( isset($ret['status']) ) {
    151151                $data = $ret['body']->data;
    152152
  • searchie/trunk/SIO/Media/Index.php

    r2321746 r2321971  
    6767                    'link_href' => '?page=searchie-media&_method=search-files&search=' . $search . '&paged='
    6868                ];
     69
    6970                SIO_View::get_instance()->admin_partials('dashboard/media/index.php', $data);
    7071            } else {
  • searchie/trunk/SIO/Settings/Index.php

    r2321746 r2321971  
    4747  public function content( $arg = [] ) {
    4848    $data = isset($arg['data']) ? $arg['data'] : [];
    49         $get_data = SIO_API_Widgets::get_instance()->get();
     49        $paged = isset( $_GET['paged'] ) ? sanitize_text_field( $_GET['paged'] ) : 1;
     50       
     51        $api_widgets_args = [
     52            'paged' => $paged
     53        ];
     54        $widgets = SIO_API_Widgets::get_instance()->get($api_widgets_args);
     55
    5056        $data = [
    51             'datas' => $get_data['body']->data
     57            'datas' => $widgets['body']->data
    5258        ];
    5359
  • searchie/trunk/SIO/Shortcodes/EmbedURL.php

    r2310276 r2321971  
    4747  public function embedURL( $atts ) {
    4848    $atts = shortcode_atts( [
    49         'width' => '560',
    50         'height' => '315',
    51         'embed_url' => '',
    52         'css_inline' => '',
     49        'width'             =>  '560',
     50        'height'            =>  '315',
     51        'embed_url'     =>  '',
     52        'css_inline'    =>  '',
     53            'responsive'    =>  '0'
    5354    ], $atts, 'sio_embed_media' );
    5455
     
    5859      'embed_url' => $atts['embed_url'],
    5960      'css_inline' => $atts['css_inline'],
     61            'responsive'    =>  $atts['responsive']
    6062    ];
    6163
  • searchie/trunk/admin/partials/dashboard/media/index.php

    r2321746 r2321971  
    5959            ?>
    6060            <a href="<?php echo $ajax_url;?>" class="thickbox">
    61               <img style="width:150px;" src="<?php echo sio_api_thumb($media->thumbnail->small)?>" class="thickbox img-fluid img-thumbnail mr-3">
     61              <img style="width:150px;" src="<?php echo sio_api_thumb($media)?>" class="thickbox img-fluid img-thumbnail mr-3">
    6262            </a>
    6363            <div class="media-body">
     
    6767                  type="text"
    6868                  class="form-control form-control-sm copy-clipboard"
    69                   value="[sio_embed_media embed_url='<?php echo $media->embed_url;?>' width='560' height='315']"
     69                  value="[sio_embed_media embed_url='<?php echo $media->embed_url;?>' width='560' height='315' responsive='0']"
    7070                  style="height:75%;"
    7171                  readonly
  • searchie/trunk/admin/partials/dashboard/media/preview-modal.php

    r2310276 r2321971  
    1919            type="text"
    2020            class="form-control form-control-sm copy-clipboard"
    21             value="[sio_embed_media embed_url='<?php echo $embed_url;?>' width='560' height='315']"
     21            value="[sio_embed_media embed_url='<?php echo $embed_url;?>' width='560' height='315' responsive='0']"
    2222            style="height:75%;"
    2323            >
  • searchie/trunk/admin/partials/shortcodes/embed-url.php

    r2310276 r2321971  
    11<?php if ( $embed_url !== '' ) : ?>
    2 <div class='embed-container'>
     2  <?php $class_responsive = 'sio-frontend-iframe-container-fix'; ?>
     3  <?php if ( $responsive == '1' ) : ?>
     4    <?php $class_responsive = 'sio-frontend-iframe-container'; ?>
     5  <?php endif; ?>
     6<div class='embed-container <?php echo $class_responsive;?>'>
    37  <iframe
    48    width="<?php echo $width;?>"
  • searchie/trunk/functions/helper.php

    r2321746 r2321971  
    2222    return sio_get_plugin_dir_url() . 'assets/img/api-thumb.png';
    2323}
    24 function sio_api_thumb($thumb_url = null) {
     24
     25/**
     26* $size = small or big
     27**/
     28function sio_api_thumb( $obj, $size = 'small') {
     29    $thumb_url = sio_img_default();
     30    if ( isset( $obj->thumbnail ) && $obj->thumbnail != '' && isset( $obj->thumbnail->$size ) ) {
     31        $thumb_url = $obj->thumbnail->$size;
     32    }
     33    return $thumb_url;
     34}
     35
     36function _sio_api_thumb($thumb_url = null) {
    2537    if ( !is_null($thumb_url)) {
    2638        return $thumb_url;
  • searchie/trunk/searchie.php

    r2321746 r2321971  
    44 *
    55 * @link              https://www.searchie.io/
    6  * @since             1.8.17
     6 * @since             1.8.20
    77 * @package           Searchie
    88 *
     
    1111 * Plugin URI:        https://www.searchie.io/
    1212 * Description:       Unlock the full potential of your video and audio content Searchie helps reduce content overwhelm for your customers and team, making your content more accessible and easier to consume.  You create� And let Searchie do the work for you.
    13  * Version:           1.8.17
     13 * Version:           1.8.20
    1414 * Author:            Searchie
    1515 * License:           GPL-2.0+
     
    2929 * Rename this for the plugin and update it as you release new versions.
    3030 */
    31 define( 'SEARCHIE_VERSION', '1.8.17' );
     31define( 'SEARCHIE_VERSION', '1.8.20' );
    3232/**
    3333 * Get the root url file.
     
    177177
    178178function sio_init() {
    179     if ( isset($_GET['test']) ) {
    180         $search = sanitize_text_field($_GET['search']);
    181         $res = SIO_API_Files::get_instance()->search(['search'=>$search]);
    182         sio_dd($res['body']->data);
    183         exit();
    184     }
     179
    185180}
    186181add_action( 'init', 'sio_init' );
Note: See TracChangeset for help on using the changeset viewer.