Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <reference name="before_body_end">
- <action method="unsetChild"><name>global_cookie_notice</name></action>
- </reference>
- <reference name="after_body_start">
- <block type="page/html_cookieNotice" name="global_cookie_notice" as ="global_cookie_notice" template="page/html/cookienotice.phtml" before="-" />
- </reference>`
- $block = Mage::getModel('cms/block')->load($blockIdentifier, 'identifier');
- $block = Mage::getModel('cms/block')->setStoreId(Mage::app()->getStore()->getId())->load($blockIdentifier, 'identifier');
- $content = "<p>This website requires cookies to provide all of its features. For more " .
- "information on what data is contained in the cookies, please see our " .
- "<a href="{{store direct_url="privacy-policy-cookie-restriction-mode"}}">Privacy Policy page</a>. " .
- "To accept cookies from this site, please click the Allow button below.</p>";
- $cmsBlock = array(
- 'title' => 'Cookie restriction notice',
- 'identifier' => 'cookie_restriction_notice_block',
- 'content' => $content,
- 'is_active' => 1,
- 'stores' => 0
- );
- Mage::getModel('cms/block')->setData($cmsBlock)->save();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement