Revision 217
Added by stefan about 19 years ago
trunk/wb/framework/frontend.functions.php | ||
---|---|---|
171 | 171 |
// Function for page description |
172 | 172 |
if (!function_exists('page_description')) { |
173 | 173 |
function page_description() { |
174 |
echo WEBSITE_DESCRIPTION; |
|
174 |
global $wb; |
|
175 |
if ($wb->page_description!='') { |
|
176 |
echo $wb->page_description; |
|
177 |
} else { |
|
178 |
echo PAGE_DESCRIPTION; |
|
179 |
} |
|
175 | 180 |
} |
176 | 181 |
} |
182 |
|
|
177 | 183 |
// Function for page keywords |
178 | 184 |
if (!function_exists('page_keywords')) { |
179 | 185 |
function page_keywords() { |
180 |
echo WEBSITE_KEYWORDS; |
|
186 |
global $wb; |
|
187 |
if ($wb->page_keywords!='') { |
|
188 |
echo $wb->page_keywords; |
|
189 |
} else { |
|
190 |
echo WEBSITE_KEYWORDS; |
|
191 |
} |
|
181 | 192 |
} |
182 | 193 |
} |
183 | 194 |
// Function for page header |
Also available in: Unified diff
Frontend functions page_keywords() and page_description() now display page specific entries if present, otherwise website settings.