Changeset 2321971
- Timestamp:
- 06/11/2020 04:17:00 AM (6 years ago)
- Location:
- searchie/trunk
- Files:
-
- 17 added
- 11 edited
-
README.txt (modified) (2 diffs)
-
SIO/API/Files.php (modified) (2 diffs)
-
SIO/API/Widgets.php (modified) (2 diffs)
-
SIO/Media/Index.php (modified) (1 diff)
-
SIO/Settings/Index.php (modified) (1 diff)
-
SIO/Shortcodes/EmbedURL.php (modified) (2 diffs)
-
admin/partials/dashboard/media/index.php (modified) (2 diffs)
-
admin/partials/dashboard/media/preview-modal.php (modified) (1 diff)
-
admin/partials/shortcodes/embed-url.php (modified) (1 diff)
-
functions/helper.php (modified) (1 diff)
-
gutenberg-blocks (added)
-
gutenberg-blocks/dist (added)
-
gutenberg-blocks/dist/blocks.build.js (added)
-
gutenberg-blocks/dist/blocks.editor.build.css (added)
-
gutenberg-blocks/dist/blocks.style.build.css (added)
-
gutenberg-blocks/readme.md (added)
-
gutenberg-blocks/src (added)
-
gutenberg-blocks/src/block (added)
-
gutenberg-blocks/src/block/block.js (added)
-
gutenberg-blocks/src/block/editor.scss (added)
-
gutenberg-blocks/src/block/media-async-autocomplete.js (added)
-
gutenberg-blocks/src/block/media-select2.js (added)
-
gutenberg-blocks/src/block/media.js (added)
-
gutenberg-blocks/src/block/style.scss (added)
-
gutenberg-blocks/src/blocks.js (added)
-
gutenberg-blocks/src/common.scss (added)
-
gutenberg-blocks/src/init.php (added)
-
searchie.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
searchie/trunk/README.txt
r2321746 r2321971 5 5 Requires at least: 5.4 6 6 Tested up to: 5.4 7 Stable tag: 1.8. 177 Stable tag: 1.8.20 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 27 27 28 28 == 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 29 34 30 35 = 1.8.17 = -
searchie/trunk/SIO/API/Files.php
r2321746 r2321971 64 64 65 65 $res = SIO_API::get_instance()->get($args); 66 66 67 67 if ( $res['http_code'] == 200 ) { 68 68 $body = json_decode($res['body']); … … 139 139 140 140 $res = SIO_API::get_instance()->get($args); 141 141 142 142 if ( $res['http_code'] == 200 ) { 143 143 $body = json_decode($res['body']); -
searchie/trunk/SIO/API/Widgets.php
r2321746 r2321971 73 73 'type' => 'widgets', 74 74 'query_uri' => [ 75 'page' => $args['paged']75 'page' => isset($args['paged']) ? $args['paged'] : 1 76 76 ] 77 77 ]; … … 148 148 } else { 149 149 $ret = $this->store(); 150 if ( $ret['status']) {150 if ( isset($ret['status']) ) { 151 151 $data = $ret['body']->data; 152 152 -
searchie/trunk/SIO/Media/Index.php
r2321746 r2321971 67 67 'link_href' => '?page=searchie-media&_method=search-files&search=' . $search . '&paged=' 68 68 ]; 69 69 70 SIO_View::get_instance()->admin_partials('dashboard/media/index.php', $data); 70 71 } else { -
searchie/trunk/SIO/Settings/Index.php
r2321746 r2321971 47 47 public function content( $arg = [] ) { 48 48 $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 50 56 $data = [ 51 'datas' => $ get_data['body']->data57 'datas' => $widgets['body']->data 52 58 ]; 53 59 -
searchie/trunk/SIO/Shortcodes/EmbedURL.php
r2310276 r2321971 47 47 public function embedURL( $atts ) { 48 48 $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' 53 54 ], $atts, 'sio_embed_media' ); 54 55 … … 58 59 'embed_url' => $atts['embed_url'], 59 60 'css_inline' => $atts['css_inline'], 61 'responsive' => $atts['responsive'] 60 62 ]; 61 63 -
searchie/trunk/admin/partials/dashboard/media/index.php
r2321746 r2321971 59 59 ?> 60 60 <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"> 62 62 </a> 63 63 <div class="media-body"> … … 67 67 type="text" 68 68 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']" 70 70 style="height:75%;" 71 71 readonly -
searchie/trunk/admin/partials/dashboard/media/preview-modal.php
r2310276 r2321971 19 19 type="text" 20 20 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']" 22 22 style="height:75%;" 23 23 > -
searchie/trunk/admin/partials/shortcodes/embed-url.php
r2310276 r2321971 1 1 <?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;?>'> 3 7 <iframe 4 8 width="<?php echo $width;?>" -
searchie/trunk/functions/helper.php
r2321746 r2321971 22 22 return sio_get_plugin_dir_url() . 'assets/img/api-thumb.png'; 23 23 } 24 function sio_api_thumb($thumb_url = null) { 24 25 /** 26 * $size = small or big 27 **/ 28 function 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 36 function _sio_api_thumb($thumb_url = null) { 25 37 if ( !is_null($thumb_url)) { 26 38 return $thumb_url; -
searchie/trunk/searchie.php
r2321746 r2321971 4 4 * 5 5 * @link https://www.searchie.io/ 6 * @since 1.8. 176 * @since 1.8.20 7 7 * @package Searchie 8 8 * … … 11 11 * Plugin URI: https://www.searchie.io/ 12 12 * 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. 1713 * Version: 1.8.20 14 14 * Author: Searchie 15 15 * License: GPL-2.0+ … … 29 29 * Rename this for the plugin and update it as you release new versions. 30 30 */ 31 define( 'SEARCHIE_VERSION', '1.8. 17' );31 define( 'SEARCHIE_VERSION', '1.8.20' ); 32 32 /** 33 33 * Get the root url file. … … 177 177 178 178 function 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 185 180 } 186 181 add_action( 'init', 'sio_init' );
Note: See TracChangeset
for help on using the changeset viewer.