WordPress.org

Plugin Directory


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • mailchimp-for-woocommerce/trunk/admin/partials/tabs/notices.php

    r1509499 r1772672  
    1 <?php if(isset($_GET['error_notice']) && file_exists(__DIR__.'/errors/'.$_GET['error_notice'].'.php')): ?> 
    2     <?php include(__DIR__.'/errors/'.$_GET['error_notice'].'.php'); ?> 
     1<?php if(isset($_GET['error_notice'])): ?> 
     2<div class="error notice is-dismissable"> 
     3    <?php 
     4        switch($_GET['error_notice']) { 
     5            case 'missing_api_key': 
     6                _e('MailChimp says: You must enter in a valid API key.', 'mailchimp-woocommerce'); 
     7            break; 
     8            case 'missing_campaign_defaults': 
     9                _e('MailChimp says: Sorry you must set up your campaign defaults before you proceed!', 'mailchimp-woocommerce'); 
     10                break; 
     11            case 'missing_list': 
     12                _e('MailChimp says: You must select a marketing list.', 'mailchimp-woocommerce'); 
     13                break; 
     14            case 'missing_store': 
     15                _e('MailChimp says: Sorry you must set up your store before you proceed!', 'mailchimp-woocommerce'); 
     16                break; 
     17            case 'not_ready_for_sync': 
     18                _e('MailChimp says: You are not fully ready to run the Store Sync, please verify your settings before proceeding.', 'mailchimp-woocommerce'); 
     19                break; 
     20            default: 
     21 
     22        } 
     23    ?> 
     24</div> 
    325<?php endif; ?> 
    426 
    5 <?php if(isset($_GET['success_notice']) && file_exists(__DIR__.'/success/'.$_GET['success_notice'].'.php')): ?> 
    6     <?php include(__DIR__.'/success/'.$_GET['success_notice'].'.php'); ?> 
     27<?php if (isset($_GET['success_notice'])): ?> 
     28    <div class="success notice is-dismissable"> 
     29        <?php 
     30        switch($_GET['error_notice']) { 
     31            case 're-sync-started': 
     32                _e('MailChimp says: Your re-sync has been started!', 'mailchimp-woocommerce'); 
     33                break; 
     34            default: 
     35        } 
     36        ?> 
     37    </div> 
    738<?php endif; ?> 
    839 
Note: See TracChangeset for help on using the changeset viewer.