ZMObject
|
+--ZMMetaTags
public class ZMMetaTags
extends ZMObject
| Constructor Summary | |
|---|---|
ZMMetaTags(string delimiter) Create new instance. |
|
| Method Summary | |
|---|---|
| string | getDescription(boolean echo) Returns/echo'es the description meta tag value value for the current request. |
| string | getKeywords(boolean echo) Returns/echo'es the keywords meta tag value for the current request. |
| string | getTitle(boolean echo) Returns/echo'es the page title. |
| static void | instance() Get instance. |
| Methods inherited from org.zenmagick.ZMObject | |
|---|---|
| backtrace, create, log, singleton | |
public ZMMetaTags(string delimiter)
Create new instance.
public string getDescription(boolean echo)
Returns/echo'es the description meta tag value value for the current request.
true, the meta tag value will be echo'ed as well as returned.public string getKeywords(boolean echo)
Returns/echo'es the keywords meta tag value for the current request.
true, the meta tag value will be echo'ed as well as returned.public string getTitle(boolean echo)
Returns/echo'es the page title.
true, the title will be echo'ed as well as returned.public static void instance()
Get instance. /
Page meta tag data generator.
Based on zen-carts
../modules/meta_tags.php.In contrast to the zen-cart implementation, however, keywords are build entirely by looking at category and product id in the request.
All other pages will get served default values base on the store configuration. Only exception is the homepage where the keywords will include the top categories.