<?php /** Template version: 1.0.0 */ ?>

<?php
$whats_new = array(
	'7.4' => array(
		'blog_post' => 'http://wp-customerarea.com' . __('/whats-new-in-wp-customer-area-7-4', 'cuar'),
		'codename'  => 'Bob Marley',
		'tagline'   => __("Online payment of invoices with PayPal and Stripe Gateways", 'cuar'),
		'blocks'    => array(
			array(
				'title' => __('Online invoice payments', 'cuar'),
				'text'  => __('You will find a new payments menu item in your WP Customer Area menu to manage your invoices payments. By default, you can accept manual payments (cheque, wired transfers), but we have 2 brand new gateways available to accept payments via PayPal accounts and from credit cards via Stripe.',
					'cuar'),
			),
			array(
				'title' => __('Conversations: Close conversation', 'cuar'),
				'text'  => __('The conversation author can now decide to close the conversation to new replies.',
					'cuar'),
			),
			array(
				'title' => __('Improvements and bug fixes', 'cuar'),
				'text'  => __('Main plugin and existing add-ons have been much improved: 5 big new features and over 20 issues fixes. For instance, we updated supported version of ACF to 4.4.12.1. Also, you can now view any notification that get sent by WP Customer Area into Customer Area menu -> Logs.',
					'cuar'),
			),
		)
	),
	'7.3' => array(
		'blog_post' => 'http://wp-customerarea.com' . __('/whats-new-since-wp-customer-area-7-0', 'cuar'),
		'codename'  => 'Eric Clapton',
		'tagline'   => __("Welcome to the Design Extras add-on", 'cuar'),
		'blocks'    => array(
			array(
				'title' => __('New add-on: Design Extras', 'cuar'),
				'text'  => __('We introduced a new add-on that will add new design elements to your private area. New skins, notifications and invoicing PDF templates have been designed for you!',
					'cuar'),
			),
			array(
				'title' => __('Notifications and PDF Invoices templates options', 'cuar'),
				'text'  => __('Invoicing and notification templates are coming with a bunch of options in the admin area that allow you to customize colors, background and more. It will be easy for you to use them as a base and get your own customized design in a few minutes!',
					'cuar'),
			),
			array(
				'title' => __('Improvements and bug fixes', 'cuar'),
				'text'  => __('Main plugin and existing add-ons have been much improved: many new features and more than 30 issues fixes. For instance, notifications are now sent when a task lists gets completed.',
					'cuar'),
			),
		)
	),
	'7.2' => array(
		'blog_post' => 'http://wp-customerarea.com' . __('/whats-new-since-wp-customer-area-7-0', 'cuar'),
		'codename'  => 'Sid Vicious',
		'tagline'   => __("Welcome to the Unread Documents add-on", 'cuar'),
		'blocks'    => array(
			array(
				'title' => __('New add-on: Unread Documents', 'cuar'),
				'text'  => __('It will allow you to see if your documents have been updated since the last time you read them using a visual indicator. It is compatible with all others private content add-ons. You can also mark private contents as unread using a dedicated button.',
					'cuar'),
			),
			array(
				'title' => __('Notifications: New tasks reminders', 'cuar'),
				'text'  => __('It comes very useful to get some emails when your tasks are overdue, about to expire, or about to be overdue. You wont get any chance left to miss tasks you are assigned to!',
					'cuar'),
			),
			array(
				'title' => __('Improvements and bug fixes', 'cuar'),
				'text'  => __('Main plugin and existing add-ons have been much improved: this is 17 issues fixed. For instance, a lot of improvements and bug fixes can be seen on the frontend interface especially on the collection views and sidebars.',
					'cuar'),
			),
		)
	),
    '7.1' => array(
        'blog_post' => 'http://wp-customerarea.com' . __('/whats-new-since-wp-customer-area-7-0', 'cuar'),
        'codename'  => 'Kurt Cobain',
        'tagline'   => __("A small post-summer-break update", 'cuar'),
        'blocks'    => array(
            array(
                'title' => __('Better add-on version detection', 'cuar'),
                'text'  => __('WP Customer Area will let you know after each update if you have the latest add-on release. Never forget to update them anymore!',
                    'cuar'),
            ),
            array(
                'title' => __('PDF Invoices', 'cuar'),
                'text'  => __('Invoices can now be downloaded as PDF files. A simple template is provided but you can make your own very easily too!',
                    'cuar'),
            ),
            array(
                'title' => __('Download all attachments', 'cuar'),
                'text'  => __('For those who have the Enhanced Files add-on, you can now download all attached files with a single click.',
                    'cuar'),
            ),
        )
    ),
    '7.0' => array(
        'blog_post' => 'http://wp-customerarea.com' . __('/whats-new-in-wp-customer-area-7-0', 'cuar'),
        'codename'  => 'Lemmy Kilmister',
        'tagline'   => __("WP Customer Area 7.0 has got a new dress.", 'cuar'),
        'blocks'    => array(
            array(
                'title' => __('New skin', 'cuar'),
                'text'  => __('The appearance of the private area has been completely rewritten to enhance compatibility with all themes and usability. ',
                    'cuar'),
            ),
            array(
                'title' => __('Better ownership control', 'cuar'),
                'text'  => __('Our add-ons allow assigning content to groups, roles, etc. However, these owner types could not be mixed. For example, you can now assign private content at the same time to a group and to a few users.',
                    'cuar'),
            ),
            array(
                'title' => __('Improvements and bug fixes', 'cuar'),
                'text'  => __('Existing add-ons have been much improved: 17 new features and over 14 issues fixes. For instance, notifications are now sent in HTML format using a clean professional template.',
                    'cuar'),
            ),
        )
    ),
    '6.3' => array(
        'blog_post' => 'http://wp-customerarea.com' . __('/whats-new-in-wp-customer-area-6-3', 'cuar'),
        'codename'  => 'Bon Scott',
        'tagline'   => __("WP Customer Area 6.3 has been aimed at improving customer relationship management and improving existing add-ons.", 'cuar'),
        'blocks'    => array(
            array(
                'title' => __('Contact information', 'cuar'),
                'text'  => __('User profiles can now store a home and a billing address. This is an essential information when managing your customers and will help building more CRM features into the plugin later on.',
                    'cuar'),
            ),
            array(
                'title' => __('Invoicing', 'cuar'),
                'text'  => __('We are introducing a new add-on to publish invoices for your customers. No more attaching files, there is a proper content type for invoices and we will soon add a lot around that (PDF generation, online payment, etc.).',
                    'cuar'),
                'more'  => 'http://wp-customerarea.com' . __('/downloads/wpca-invoicing', 'cuar')
            ),
            array(
                'title' => __('Improvements and bug fixes', 'cuar'),
                'text'  => __('While this time we do not have other big news than the new invoicing add-on, there have been lots of additions and fixes to the base plugin and the existing add-ons: 15 new features and 19 issues have been implemented/fixed.',
                    'cuar'),
            ),
        )
    ),
    '6.2' => array(
        'blog_post' => 'http://wp-customerarea.com' . __('/whats-new-in-wp-customer-area-6-2', 'cuar'),
        'codename'  => 'Jim Morrison',
        'tagline'   => __("WP Customer Area 6.2 has been aimed at improving the attachments to private files and everything around that.", 'cuar'),
        'blocks'    => array(
            array(
                'title' => __('New upload system', 'cuar'),
                'text'  => __('The file upload system has been completely rewritten. You can now drag and drop files and watch the upload progress. Additionally, we have also added some more settings and provide a security helper to make sure your setup is as secure as it can.',
                    'cuar'),
            ),
            array(
                'title' => __('Enhanced Files', 'cuar'),
                'text'  => __('We are introducing a new add-on which improves the file attachments: upload multiple attachments on the same private file, change the attachment caption and automatically add file type icons in front of the download links.',
                    'cuar'),
                'more'  => 'http://wp-customerarea.com' . __('/downloads/wpca-enhanced-files', 'cuar')
            ),
            array(
                'title' => __('Smart Groups', 'cuar'),
                'text'  => __('Smart Groups will change the way to build your user groups. No more adding or removing users by hand, you will simply make dynamic groups based on criteria such as name, domain of the email address, and any other meta information linked to your user profiles.',
                    'cuar'),
                'more'  => 'http://wp-customerarea.com' . __('/downloads/wpca-smart-groups', 'cuar')
            ),
        )
    ),
    '6.1' => array(
        'blog_post' => 'http://wp-customerarea.com' . __('/whats-new-in-wp-customer-area-6-1', 'cuar'),
        'codename'  => 'Jimi Hendrix',
        'tagline'   => __("WP Customer Area 6.1 focuses mainly on making administrator's life easier, introducing event logging and a better administration panel.", 'cuar'),
        'blocks'    => array(
            array(
                'title' => __('Protect post types', 'cuar'),
                'text'  => __('We are introducing a new add-on which will allow protecting any kind of external post types. Posts created from third party plugins can be made private and assigned just like private pages or files.',
                    'cuar'),
                'more'  => 'http://wp-customerarea.com' . __('/downloads/wpca-protect-post-types', 'cuar')
            ),
            array(
                'title' => __('Shortcodes', 'cuar'),
                'text'  => __('we have added shortcodes to display the navigation menu, list protected content, etc. You will now be able to easily build custom pages with a list of the content you want to pull for the connected user.',
                    'cuar'),
                'more'  => 'http://wp-customerarea.com' . __('/documentation/shortcodes', 'cuar')
            ),
            array(
                'title' => __('Better admin panel', 'cuar'),
                'text'  => __('The main plugin menu has been improved a lot, it is now less cluttered and better organised. The content lists now feature powerful filters to help you find the content you are looking for faster.',
                    'cuar')
            ),
            array(
                'title' => __('Logging', 'cuar'),
                'text'  => __('When dealing with private content and secure areas, keeping track of events is crucial. We have added a module to track what is happening within your private area.',
                    'cuar')
            ),
            array(
                'title' => __('And more!', 'cuar'),
                'text'  => __('As with any new release, we constantly provide bug fixes. This update is no exception with no less than 23 issues corrected.',
                    'cuar'),
                'more'  => 'https://github.com/marvinlabs/customer-area/issues?q=milestone%3A6.1+is%3Aclosed'
            ),
        )
    ),
    '6.0' => array(
        'blog_post' => 'http://wp-customerarea.com' . __('/customer-area-is-dead-long-live-wp-customer-area/', 'cuar'),
        'codename'  => 'John Lennon',
        'tagline'   => __("WP Customer Area 6.0 is a major release which sees a lot of changes not only inside the plugin but also on the website.", 'cuar'),
        'blocks'    => array(
            array(
                'title' => __('Improved setup &amp; updates', 'cuar'),
                'text'  => __('We have implemented a new setup assistant that will make it even easier to install the plugin. Updates will be smoother too.',
                    'cuar')
            ),
            array(
                'title' => __('Better permissions', 'cuar'),
                'text'  => __('Some new permissions have been added to give you more control about what your users can do. On top of that, we have also improved the permissions screen to make it faster to set permissions.',
                    'cuar')
            ),
            array(
                'title' => __('And more!', 'cuar'),
                'text'  => __('As with any new release, we constantly provide bug fixes. This update is no exception with no less than 20 issues corrected.',
                    'cuar')
            ),
        )
    )
);
?>

<?php foreach ($whats_new as $ver => $desc) : ?>
    <h3><?php printf(__("New in %s ~ <em>%s</em>", 'cuar'), $ver, $desc['codename']); ?></h3>
    <h4><?php echo $desc['tagline']; ?></h4>
    <div class="cuar-whatsnew-boxes">
        <?php $i = 0;
        foreach ($desc['blocks'] as $item) : ?>
            <div class="cuar-whatsnew-box">
                <h3><?php echo $item['title']; ?></h3>

                <p><?php echo $item['text']; ?></p>
                <?php if ( !empty($item['more'])) : ?>
                    <p><a href="<?php echo $item['more']; ?>"><?php _e('Learn more', 'cuar'); ?></a></p>
                <?php endif; ?>
            </div>
            <?php
            $i++;
            if ($i > 2)
            {
                echo '<div class="cuar-clearfix">&nbsp;</div>';
                $i = 0;
            }
        endforeach; ?>
        <p class="cuar-clearfix">&nbsp;</p>
    </div>
<?php endforeach; ?>
