OPiQuotations
v.03.00.00 — April 5, 2019
|
Return list of sharing buttons in a HTML format. More...
Go to the source code of this file.
Namespaces | |
OPiCitations | |
Variables | |
if (!isset( $_GET[ 'id'])) | |
if(true) | else |
$opiquotations = new OPiQuotations\OPiQuotations() | |
$id = (int)$_GET['id'] | |
$quot = $opiquotations->quotation_by_id($id) | |
if($quot===null) | $url = 'http://www.opimedia.be/OPiCitations/?id='.$id |
$twitter_max_length = 279 | |
$max_length = $twitter_max_length - 23 - 1 | |
$quot_short = $quot->to_text_twitter(null, null, $max_length) | |
$quot_short_length = mb_strlen($quot_short) + 24 | |
$encoded_quot_short = rawurlencode($quot_short) | |
$encoded_quot_all = rawurlencode($quot->to_text(true, 'fr', $url, true, array('Web'))) | |
$encoded_title | |
$encoded_url = rawurlencode($url) | |
Return list of sharing buttons in a HTML format.
(April 5, 2019)
Piece of OPiQuotations. https://bitbucket.org/OPiMedia/opiquotations
GPLv3 — Copyright (C) 2016, 2017, 2018, 2019 Olivier Pirson http://www.opimedia.be/
Definition in file OPiQuotations-sharing.php.
$encoded_quot_all = rawurlencode($quot->to_text(true, 'fr', $url, true, array('Web'))) |
Definition at line 82 of file OPiQuotations-sharing.php.
$encoded_quot_short = rawurlencode($quot_short) |
Definition at line 80 of file OPiQuotations-sharing.php.
$encoded_title |
Definition at line 83 of file OPiQuotations-sharing.php.
$encoded_url = rawurlencode($url) |
Definition at line 89 of file OPiQuotations-sharing.php.
$id = (int)$_GET['id'] |
Definition at line 67 of file OPiQuotations-sharing.php.
Referenced by OPiQuotations\OPiQuotation\__construct(), OPiQuotations\OPiQuotation\id(), OPiQuotations\Db\query_quotations(), OPiQuotations\OPiQuotations\quotation_by_id(), OPiQuotations\OPiQuotations\quotations_by_ids(), and OPiQuotations\OPiQuotations\quotations_by_ids_nb().
$max_length = $twitter_max_length - 23 - 1 |
Definition at line 75 of file OPiQuotations-sharing.php.
Referenced by OPiQuotations\html_text_cut(), OPiQuotations\text_cut(), and OPiQuotations\OPiQuotation\to_text_twitter().
$opiquotations = new OPiQuotations\OPiQuotations() |
Definition at line 64 of file OPiQuotations-sharing.php.
$quot = $opiquotations->quotation_by_id($id) |
Definition at line 68 of file OPiQuotations-sharing.php.
Referenced by print_page_links(), OPiQuotations\Db\query_quotations(), OPiQuotations\OPiQuotation\to_text(), and OPiQuotations\OPiQuotation\to_text_twitter().
$quot_short = $quot->to_text_twitter(null, null, $max_length) |
Definition at line 76 of file OPiQuotations-sharing.php.
$quot_short_length = mb_strlen($quot_short) + 24 |
Definition at line 77 of file OPiQuotations-sharing.php.
$twitter_max_length = 279 |
Definition at line 74 of file OPiQuotations-sharing.php.
if ( $quot===null) $url = 'http://www.opimedia.be/OPiCitations/?id='.$id |
Definition at line 72 of file OPiQuotations-sharing.php.
if (true) else |
Definition at line 38 of file OPiQuotations-sharing.php.
if(!isset($_GET['id'])) |
Definition at line 18 of file OPiQuotations-sharing.php.