Update of /cvsroot/phpslash/phpslash-ft/public_html
In directory usw-pr-cvs1:/tmp/cvs-serv11829/public_html
Modified Files:
config.php3 index.php3 article.php3
Log Message:
extrans, title, and metatag tweaks
Index: config.php3
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/public_html/config.php3,v
retrieving revision 1.115
retrieving revision 1.116
diff -C2 -d -r1.115 -r1.116
*** config.php3 2001/11/12 02:32:43 1.115
--- config.php3 2001/11/13 22:01:27 1.116
***************
*** 112,115 ****
--- 112,122 ----
$_PSL[mailinglist_subject] = "PHPSlash Times";
+ // metatags that may need to be overwritten later ( article description).
+ // other metatags should probably just reside in slashHead.tpl
+ $metatags['keywords'] = "weblog, content management, php";
+ $metatags['description'] = "phpSlash is a port of the slash-0.2 code from Perl to PHP. Since it was first started, phpslash has become a different beast of its own. It currently boasts full HTML templates, an OO design, the ability to operate in a hosted environment, and a bunch of other goodies.";
+
+ $_PSL[metatags] = $metatags;
+
/*
the comment_defaultmode variable allows you to define how the comments
Index: index.php3
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/public_html/index.php3,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -d -r1.47 -r1.48
*** index.php3 2001/09/06 17:18:22 1.47
--- index.php3 2001/11/13 22:01:27 1.48
***************
*** 9,13 ****
// Objects
! $poll = new Poll;
$story = new Story;
$block = new Block_i;
--- 9,13 ----
// Objects
! // $poll = new Poll;
$story = new Story;
$block = new Block_i;
***************
*** 34,41 ****
}
- slashhead($pagetitle,$xsiteobject);
- debug("Auth", $auth->auth);
-
$allstories = breadcrumb( $ary);
$allstories .= $story->getStories($ary);
--- 34,42 ----
}
$allstories = breadcrumb( $ary);
+
+ $_PSL['metatags']['object'] = $xsiteobject;
+
+ slashhead($pagetitle,$_PSL['metatags']);
$allstories .= $story->getStories($ary);
Index: article.php3
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/public_html/article.php3,v
retrieving revision 1.50
retrieving revision 1.51
diff -C2 -d -r1.50 -r1.51
*** article.php3 2001/09/21 00:02:48 1.50
--- article.php3 2001/11/13 22:01:27 1.51
***************
*** 82,87 ****
$t->set_file(article, "article.tpl");
!
! $header = getHeader($ttitle,$xsiteobject);
$footer = getFooter();
--- 82,91 ----
$t->set_file(article, "article.tpl");
!
! $_PSL['metatags']['object'] = $xsiteobject;
! // override description metatag to include first 150 chars of article
! $_PSL['metatags']['description'] = substr(strip_tags($story->story_ary["intro_text"]), 0, 150);
!
! $header = getHeader($ttitle,$_PSL['metatags']);
$footer = getFooter();
|