oembed-gist
Contributing
$ git clone https://github.com/miya0001/oembed-gist
$ cd oembed-gist
$ bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
$ phpunit
oEmbed Gist API for WordPress
Home Page: https://wordpress.org/plugins/oembed-gist/
$ git clone https://github.com/miya0001/oembed-gist
$ cd oembed-gist
$ bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
$ phpunit
Hi,
Just letting you know this doesn't work with WordPress 4.0. When enabled, my posts that have embedded gists are just a blank white page. When disabled my post displays correctly.
Thanks for the awesome plugin!
Luca
If the gist URL has a trailing slash at the end(or just before the #
) it won't be picked up by this plugin.
The current regex pattern is:
Line 20 in 9a9d9e1
To account for the possible trailing slash I'd suggest changing it to:
#(https://gist.github.com/([^\/]+\/)?([a-zA-Z0-9]+)(\/[a-zA-Z0-9]+)?)/?(\#file(\-|_)(.+))?$#i
Hello, I wonder if this plugin is compatible with the 2015 or Twelve Fifteen theme default wordpress theme that is shipped in 4.1.
This is how it looks, no modifications to the theme whatsoever:
I think it's something to do with the default styling of the theme for TD
table elements, maybe overriding the default theme style would help? AFAIK this code is just embeded version of github own's html generated code right?
Hi there,
the plugin doesn't work on the telegram app in instant view(https://instantview.telegram.org).
It doesn't render in the post edit.
Hey,
Love the plugin so far.
Gist.github.com is listed as a forbidden website by one of my clients proxy. (Why I'll never understand)
The plugin doesn't display anything where the gist is usually embedded.
Could the plugin display the code as text in this case ? (I'm guessing it's not possible)
If not, could the plugin add a frame showing gist.github is blocked by proxy?
Right now it just looks like the blog post is missing content which looks unprofessional.
Regards,
Cedric
I'm not sure why, but your plugin places my gists after the footer in my blog instead of inline where they are defined:
http://blogs.nopcode.org/brainstorm/2014/03/04/opensource-dashboard/
i.e, in between the lines:
The only viable option left today is scraping it:
and
If one wants to keep track of AWS expenses on ES, some specific
There should be a gist, but it's placed that the very end after the footer :-?
how to hide the GitHub footer, or it is pretty ugly
Hi,
There seems to be an issue with the new WordPress Update (Version 5)
Hi !
This plugin works with Gist files,
could it work with files from a Repo ?
Thanks !
I really like this but I need it to offer the ability to have a maximum size, scrollable window. Any chance?
Please add support for highlighting a line. The last part of the URL (L) indicates the lines.
Example (single line): https://gist.github.com/alexander-bogomolov/97eb249e9fb8f2c6b87bae2a46e78b13#file-field-field-paragraph-gallery-photos-html-twig-L14
Example (range): https://gist.github.com/alexander-bogomolov/97eb249e9fb8f2c6b87bae2a46e78b13#file-field-field-paragraph-gallery-photos-html-twig-L14-L20
Hi, would it be possible to add an option to make the href's open in a new window/tab instead of redirect on the same page? Thanks for the plugin, really cool.
after I changed the file name to HelloApplication.java
it doesn't work, maybe cause case insensitive issue or something?
https://gist.github.com/changsijay/ee624d079cd4d0bd5c2f#file-helloapplication-java
The wp_head() function adds CSS for every page.
I suggest that the CSS is added to the footer and only when needed.
I think that the solution is to add something like the following to the end of the shortcode() function, just before the 'return sprintf' line:
add_action( 'wp_footer', array( $this, 'wp_head' ) );
I would also like to be able to disable the function - I would instead add the CSS to my own stylesheet.
I think that a static variable is required.
I will try to create a pull request to achieve both of these.
Greetings,
After the latest update, I started to notice 404 errors on any page where I had a gist embedded. The address was something like this:
https://domain.com/oembed-gist/css/style.min.css
On further inspection of the code, I noticed that oembed-gist.php was refactored to call the style/script whenever a gist was present. None the less, I noticed this on line 117-123:
wp_enqueue_script( 'oembed-gist', plugins_url( 'js/script.min.js', __FILE__ ), array(), self::version, true );
After looking at the plugins_url function codex (https://codex.wordpress.org/Function_Reference/plugins_url), it seems that it should be instead something like this:
plugins_url( 'js/script.min.js', dirname(__FILE__) ),
I tested it on my install and the errors are gone for now.
This is related to my request in issue #17 to allow disabling the wp_head() function.
I would like to disable the wp_head() function and put the CSS into my stylesheet file.
I suggest using apply_filters().
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.