<?php

/*
  MailBeez Automatic Trigger Email Campaigns
  http://www.mailbeez.com

  Copyright (c) 2010, 2011 MailBeez

  inspired and in parts based on
  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License

  v2.6
 */

///////////////////////////////////////////////////////////////////////////////
///																																					 //
///                 MailBeez Core file - do not edit                         //
///                                                                          //
///////////////////////////////////////////////////////////////////////////////
// button for view mail template in html and txt format

$param_mainmodule_id = (mh_get('maintemplate_id')) ? '&maintemplate_id='.mh_get('maintemplate_id') : '';


$common_plugin_actions = '';

if (mh_cfg('MH_RESPONSIVE')== 'True') {
    $common_plugin_actions .= '<br><div style="margin-top: 7px;"></div>';

    $common_plugin_actions .= mb_admin_button(mh_href_link(mh_fn('FILENAME_MAILBEEZ'), 'app=load_app&app_path=config_editor/admin_application_plugins/view_responsive.php&popup=true&module=' . mh_urlencode($mInfo->code) . $param_mainmodule_id), mh_lng('MAILBEEZ_BUTTON_VIEW_HTML_RESPONSIVE'), $id = '', 'popup', 'button', '', 'document', 'iframe');
} else {
$common_plugin_actions = mb_admin_button(mh_cfg('MAILBEEZ_MAILHIVE_URL') . 'view&format=html&module=' . mh_urlencode($mInfo->code), mh_lng('MAILBEEZ_BUTTON_VIEW_HTML')) . '  ' . mb_admin_button(mh_cfg('MAILBEEZ_MAILHIVE_URL') . 'view&format=txt&module=' . mh_urlencode($mInfo->code) . $param_mainmodule_id, mh_lng('MAILBEEZ_BUTTON_VIEW_TXT'));
}


$contents[] = array('text' => '<div class="mb_action_box">' . mh_image(mh_cfg('MH_ADMIN_DIR_WS_IMAGES') . 'icon_view_32.png', '', '32', '32', 'align="right" style="margin-bottom: 10px; margin-left: 5px; margin-right: 10px;"') . '
        <div class="mb_action_box headline">' . mh_lng('MAILBEEZ_ACTION_VIEW_TEMPLATE_HEADLINE') . '</div>
        <div class="mb_action_box text">' . mh_lng('MAILBEEZ_ACTION_VIEW_TEMPLATE_TEXT') . '</div>
        <div class="mb_action_box buttons" style="clear: both"><div align="center">' . $common_plugin_actions . '</div></div>
        </div>');
