coldtrick / widget_pack Goto Github PK
View Code? Open in Web Editor NEWVarious general Elgg widgets
Home Page: https://elgg.org/plugins/3122035
Various general Elgg widgets
Home Page: https://elgg.org/plugins/3122035
//ajax.googleapis.com/ajax/services/feed/find?v=1.0&
Twitter search widget doesn't work with https://publish.twitter.com embed code because there is no widget-id in the embed code
tested with elgg v1.12.14 + widget manager v5.2. I had a look into widget manager latest version v7.0.1 and widget_pack v1.0 and I think this issue will be reproduce with the latest versions.
To make it work, I had to modify widget manager v5.2 :
in views/default/widgets/twitter_search/content.php
<?php
$widget = $vars["entity"];
$height = sanitise_int($widget->height, false);
$data_widget_id = sanitise_string($widget->data_widget_id);
$href = sanitise_string($widget->href);
if (!empty($data_widget_id) || !empty($href)) {
if ($height) {
$height = "data-height='" . $height . "'";
}
if ($data_widget_id) {
$data_widget_id = "data-widget-id='" . $data_widget_id . "'";
}
if ($href) {
$href = "href='" . $href . "'";
}
?>
<a class="twitter-timeline" data-dnt="true" <?php echo $data_widget_id; ?> <?php echo $href; ?> <?php echo $height; ?> ></a>
and widget_manager_widgets_twitter_search_settings_save_hook() in lib/widgets.php
$pattern = '/data-widget-id=\"(\d+)\"/i';
$matches = array();
if (preg_match($pattern, $embed_code, $matches)) {
$widget->data_widget_id = $matches[1];
$widget->href = "";
} else {
$pattern = '/href=["\']?([^"\'>]+)["\']?/i';
$matches = array();
if (preg_match($pattern, $embed_code, $matches)) {
$widget->href = $matches[1];
$widget->data_widget_id = "";
} else {
register_error(elgg_echo("widgets:twitter_search:embed_code:error"));
return;
}
}
}
use system cache
Improving the image quality is bad since the resolution of 400 x 225 when introducing the image slideshow in the panel.
widget_pack/classes/ColdTrick/WidgetPack/Widgets.php
Lines 235 to 241 in 03fc2db
$result['landscape'] = [
'w' => 800,
'h' => 450,
'square' => false,
'upscale' => true,
'crop' => true,
];
double div?
When composer update:
The requested package bower-asset/flexslider-customized could not be found in any version
An extension could be added with a map by coordinates and height, in which the tags with the URL to the pages or blogs of the site could be seen, where these tags can be added manually or associated, just as is done in image slideshow.
This could use https://leafletjs.com.
Thanks for maintaining the plugins. <3
Need to hook to allow search on that field
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.