Spanish Quote Of The Day Frase Del Dia Wordpress Plugin is used by 1 websites. Among 1, 0 site is within top 10,000 and 0 site is within top 100,000 websites.
Wordpress Plugin Information of
|Plugin Meta Name||Plugin Meta Information|
|Plugin Description||Spanish Quote of the Day gives you a random notable quote in spanish from todopensamientos.com's database.|
|Detail Plugin Description||
Spanish Quote of the Day automatically shows a random formatted notable quote in spanish inside your wordpress themes. The spanish quote is collectted by random from todopensamientos.com's database therefore it's not necessary that you have your own database of quotes; Spanish Quote of the Day gives them to you. Simple put the widget Spanish Quote of the Day in any of your theme sidebars; its operation is automatic.
This plugin has a triple functionality:
The Widget Spanish Quote of the Day creates a widget called "Spanish Quotes of the Day" -or the translated version of this name- that you can include in any of your theme sidebars. Automatically, your theme will show a notable random quote in spanish, plus the author name, the original author's archive page and a link to the source.
Spanish Quote of the Day creates the shortcode
Filters, quotes's length, output format control Spanish Quote of the Day works via filtered outputs so it's possible to decide one output format for the widget use, and another one for the shortcode use; even you can modify the output format depending on the post number, post content, categories, etc.
In addition, from version 1.2.2+, you can even decide the maximum length of the quotes you want to receive. In former versions of the plugin, the maximum length was permanently set to 275 characters but now, you can choose to receive longer o shorter quotes through the plugins's settings page.
The standard output format
After installation and activation, the quote standard output format to screen is this:
In a basic installation, as default, both of widget and shorcode outputs are formatted via the same function that convert the object response and adds a minimun styling via these four simple classes:
And this is the minimum styles to format the output
It's a very simple styling, I know it, but it's to improve an ease integration of Spanish Quote of the Day with your theme styles without coding.
Of course, you are allow to modify the format of the output via CSS. Just, edit directly the
Spanish Quote of the Day has three filters, one for the widget outputs called
All of three filters has the same structure:
so they allow you to control completely the output format of the different uses -widget or shortcode- and, additionally, they also allow you to modify this output format according to the current post, his content, the post categories, etc.
For example, if you want to modify the output for the default posts template and always include a
Another example could be to change the format only for pages and leaving the standard output for the rest. This this case, you should include a code like this next example in your
These are two basic example that simply work after the basic filters and add some html code however, if you need a more accurate control of the output, you can even disconnect the default filters, in that way,
It's possible but then, remeber that the other two filters are directly receiving an oembed object response and you have to deal to his individual properties (see The Oembed Call section below for more information).
For example, if in the shortcode use you want to change a) the order of the elements of the output, b) add some text and c) change completely the styling classes, you could use a source like this:
The Oembed Call
Spanish Quote of the Day works via an unique oembed call (see http://http://www.oembed.com/ for further information) to the quotes database of http://todopensamientos.com so the plugin it's fast, secure, simple and... automatic.
The oembed call to http://todopensamientos.com/oembed/ address returns a HTTP response that the plugin transforms for extracting the standard oembed response object :
and creates the first output that's given to you via the first filter
Then, the plugin processes the object response and gives you the processed output to screen converting the object into an HTML string. This output is served for widget use and shortcode use via the
The english version of the shortcode
Quotes Lenght Control
From version 1.2.2+, we have added a new query var inside the oembed call that allows you to decide the maximun length for the quotes that you want to receive from http:://todopensamientos.com database. In former versions, the maximum length was a constant (275 characters), now this parameter is var so, you can modify it through the plugin's settings page. We usually suggest a maximum length below 300 characters but, now, you decide...
From version 1.2.0 and greater, we add the asynchronous fetching operation mode to connect and collect the quotes. To activate the Asynchronous mode simply go to the Settings > Spanish Quotes and check the field: Asynchronous Mode.
The asynchoroous fetching operation mode improves the load page time in the server side because it moves the process of fetching the quote to the client side. That's fantastic, but remember that this could be incompatible with some client systems and, in addition it's a much less stable process so, we advise do not activate the asynchronous mode unless your website truly has a high volumen of hits by day. By default, the asynchronous mode is disabled.
In the asynchronous mode the filter
In each quote, by default I include a credit link to the todopensamientos.com's database, the true source of these quotes. It's my little contribution to this project. Of course, you are allow to modify the standard output and avoid the credits link... but I invite you to don't suppressed it. Every day, they are doing a fantastic work collecting, verifying, arranging, classifying and checking the correct source of all their quotes, so, let them to live; credit them.
Special Needs or Requests
If you have an special need, suggestion or request, for example, you'd prefer to choose a specific category of quotes, or the minimum or maximun length allowed for the quotes (nowadays, all quotes have a maximun length of 275 characters), or your preferred authors, etc., please, don't hesitate to contact with http://todopensamientos.com via the plugin's author email in the address firstname.lastname@example.org.
Wordpress Official Plugin Repository