Update of /cvsroot/php-blog/serendipity/templates/default
In directory sc8-pr-cvs1:/tmp/cvs-serv27785/templates/default
Modified Files:
layout.php
Log Message:
Fixed the evaluation of the 'embed' directive, which was incorrect. Also wrote a small HowTo on how to use the 'embed' option.
Index: layout.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/templates/default/layout.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- layout.php 8 Aug 2003 23:18:47 -0000 1.9
+++ layout.php 1 Oct 2003 09:29:03 -0000 1.10
@@ -28,7 +28,7 @@
<table id="mainpane">
<tr>
<?php
-if (!$serendipity['embed']) {
+if (!$serendipity['embed'] || $serendipity['embed'] == 'false' || $serendipity['embed'] === false) {
serendipity_plugin_api::generate_plugins('left', 'td');
}
?>
@@ -80,7 +80,7 @@
</td>
<?php
/* Find any plugins for the RHS */
-if (!$serendipity['embed']) {
+if (!$serendipity['embed'] || $serendipity['embed'] == 'false' || $serendipity['embed'] === false) {
serendipity_plugin_api::generate_plugins('right', 'td');
}
?>
|