Changeset 1368435
- Timestamp:
- 03/10/2016 04:44:20 PM (10 years ago)
- Location:
- php-code-for-posts
- Files:
-
- 2 edited
-
tags/2.0.4/readme.txt (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
php-code-for-posts/tags/2.0.4/readme.txt
r1368424 r1368435 22 22 The shortcodes can be used to also display plain HTML content, allowing you to add in iframe, objects, areas and other tags that are removed by the post editor 23 23 24 The plugin also contains a variable array which you can add variables to for use between snippets called $_var and is available though the global variable $PHPPC which is an object, so its $PHPPC ->_vars[]24 The plugin also contains a variable array which you can add variables to for use between snippets called $_var and is available though the global variable $PHPPC which is an object, so its $PHPPC::$_vars[] 25 25 26 26 = New for 1.1.1 = … … 47 47 To assign variables to the array, use the following code: 48 48 ` global $PHPPC; 49 $PHPPC ->$_vars["myvaridentifier"] = $myvar;`49 $PHPPC::$_vars["myvaridentifier"] = $myvar;` 50 50 51 51 and to read a variable from the array use this code: 52 52 ` global $PHPPC; 53 $myvar = $PHPPC ->$_vars["myvaridentifer"];`53 $myvar = $PHPPC::$_vars["myvaridentifer"];` 54 54 Simples! 55 55 -
php-code-for-posts/trunk/readme.txt
r1368424 r1368435 22 22 The shortcodes can be used to also display plain HTML content, allowing you to add in iframe, objects, areas and other tags that are removed by the post editor 23 23 24 The plugin also contains a variable array which you can add variables to for use between snippets called $_var and is available though the global variable $PHPPC which is an object, so its $PHPPC ->_vars[]24 The plugin also contains a variable array which you can add variables to for use between snippets called $_var and is available though the global variable $PHPPC which is an object, so its $PHPPC::$_vars[] 25 25 26 26 = New for 1.1.1 = … … 47 47 To assign variables to the array, use the following code: 48 48 ` global $PHPPC; 49 $PHPPC ->$_vars["myvaridentifier"] = $myvar;`49 $PHPPC::$_vars["myvaridentifier"] = $myvar;` 50 50 51 51 and to read a variable from the array use this code: 52 52 ` global $PHPPC; 53 $myvar = $PHPPC ->$_vars["myvaridentifer"];`53 $myvar = $PHPPC::$_vars["myvaridentifer"];` 54 54 Simples! 55 55
Note: See TracChangeset
for help on using the changeset viewer.