notFoundSuccess.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. define('RENDER_MODE', 'catalyz');
  3. ob_start();
  4. use_helper('Form');
  5. use_stylesheet('catalyz/smoothness/jquery-ui-1.7.custom.css');
  6. use_javascript('catalyz/jquery-1.3.2.min.js');
  7. use_javascript('catalyz/jquery-ui-1.7.custom.min.js');
  8. use_stylesheet('catalyz/catalyz.css');
  9. if (sfConfig::get('app_catalyz_customize_css')) {
  10. use_stylesheet('catalyz-content.css');
  11. }
  12. ?>
  13. <h1><?php echo __('Page Not Found', array(), 'catalyz') ?></h1>
  14. <p><?php echo __('The server returned a 404 response.', array(), 'catalyz') ?></p>
  15. <ul>
  16. <li>
  17. <b><?php echo __('Did you type the URL?', array(), 'catalyz') ?></b>
  18. <p style="margin-top: 5px"><?php echo __('You may have typed the address (URL) incorrectly. Check it to make sure you\'ve got the exact right spelling, capitalization, etc.', array(), 'catalyz') ?></p>
  19. </li>
  20. <li>
  21. <b><?php echo __('Did you follow a link from somewhere else at this site?', array(), 'catalyz') ?></b>
  22. <p style="margin-top: 5px"><?php echo __('If you reached this page from another part of this site, please email us at %email% so we can correct our mistake.', array('%email%' => mail_to(wpConfig::getEmail(), wpConfig::getEmail(), array('encode' => true))), 'catalyz') ?></p>
  23. </li>
  24. <li>
  25. <b><?php echo __('Did you follow a link from another site?', array(), 'catalyz') ?></b>
  26. <p style="margin-top: 5px"><?php echo __('Links from other sites can sometimes be outdated or misspelled. Email us at %email% where you came from and we can try to contact the other site in order to fix the problem.', array('%email%' => mail_to(wpConfig::getEmail(), wpConfig::getEmail(), array('encode' => true))), 'catalyz') ?></p>
  27. </li>
  28. <li>
  29. <b><?php echo __('What\'s next', array(), 'catalyz') ?></b>
  30. <p style="margin-top: 5px"><a href="javascript:history.go(-1)"><?php echo __('Back to previous page', array(), 'catalyz') ?></a> <?php echo __('or', array(), 'catalyz') ?> <a href="<?php echo $ContentTree->getRoot()->getUrl() ?>"><?php echo __('go to the homepage', array(), 'catalyz') ?></a></p>
  31. </li>
  32. </ul>
  33. <?php
  34. $content = ob_get_contents();
  35. ob_end_clean();
  36. use_helper('Catalyz');
  37. $layout = LayoutManager::instance()->getCatalyzTemplate($ContentTree->getCurrentNode()->getCurrentLayoutNameForAction());
  38. $properties['layout_family'] = $layout[0];
  39. $properties['layout_name'] = $layout[1];
  40. $properties['ContentTree'] = $ContentTree;
  41. $properties['page'] = $ContentTree->getCurrentNode()->getPage();
  42. embed_with_layout($content, $layout, $properties);
  43. ?>