import.phtml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. /**
  3. * Copyright © 2016 Ihor Vansach (ihor@magefan.com). All rights reserved.
  4. * See LICENSE.txt for license details (http://opensource.org/licenses/osl-3.0.php).
  5. *
  6. * Glory to Ukraine! Glory to the heroes!
  7. */
  8. ?>
  9. <?php
  10. /**
  11. * Blog available for import template
  12. *
  13. * @var $block \Magento\Backend\Block\Template
  14. */
  15. ?>
  16. <table class="available-imports">
  17. <tr>
  18. <td class="item">
  19. <table>
  20. <tr>
  21. <td>
  22. <div class="itm-hld" onclick="window.location='<?php echo $block->getUrl('blog/import/wordpress') ?>'">
  23. <img class="img" src="<?php echo $this->getViewFileUrl('Magefan_Blog::images/wordpress.png') ?>" />
  24. <br/>
  25. <span class="lable">Import from WordPress<br/><br/></span>
  26. </div>
  27. </td>
  28. <tr>
  29. </table>
  30. </td>
  31. <td class="item">
  32. <table>
  33. <tr>
  34. <td>
  35. <div class="itm-hld" onclick="goToAwImport();">
  36. <img class="img" src="<?php echo $this->getViewFileUrl('Magefan_Blog::images/aw_blog.png') ?>" />
  37. <br/>
  38. <span class="lable">Import from aheadWorks<br/> blog extension</span>
  39. <form id="start_aw_import" action="<?php echo $block->getUrl('blog/import/run') ?>" method="post">
  40. <input type="hidden" name="type" value="aw" />
  41. <?php echo $block->getLayout()->getBlock('formkey')->toHtml() ?>
  42. </form>
  43. </div>
  44. </td>
  45. <tr>
  46. </table>
  47. </td>
  48. <td class="item">
  49. <table>
  50. <tr>
  51. <td>
  52. <div class="itm-hld" onclick="window.open('http://magefan.com/contact/')">
  53. <h2 class="img more">Need More?<br/><br/>Other CMS or Extension</h2>
  54. <span class="lable">Contact Magefan Team<br/><br/></span>
  55. </div>
  56. </td>
  57. <tr>
  58. </table>
  59. </td>
  60. <td class="item"></td>
  61. <td class="item"></td>
  62. </tr>
  63. </table>
  64. <script type="text/javascript">
  65. function goToAwImport()
  66. {
  67. if (confirm('Are you sure you want to start import from aheadWorks blog? Attention! Do not run this import again.')) {
  68. document.getElementById('start_aw_import').submit();
  69. }
  70. }
  71. </script>