Giter Club home page Giter Club logo

widget_pack's People

Contributors

jdalsem avatar jeabakker avatar karnakitab avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

tritol oseg

widget_pack's Issues

Twitter search widget doesn't work with publish.twitter.com embed code

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;
            }
        }        
}

Improving the image quality is bad since the resolution of 400 x 225 when introducing the image slideshow in the panel.

Improving the image quality is bad since the resolution of 400 x 225 when introducing the image slideshow in the panel.

$result['landscape'] = [
'w' => 400,
'h' => 225,
'square' => false,
'upscale' => true,
'crop' => true,
];

$result['landscape'] = [
			'w' => 800,
			'h' => 450,
			'square' => false,
			'upscale' => true,
			'crop' => true,
		];

Composer update error

When composer update:

The requested package bower-asset/flexslider-customized could not be found in any version

Map with tags widget

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.