/**
 * System Report needs to be run whenever a setting has changed that could effect something critical.
 */
function podlove_run_system_report()
{
    $report = new Podlove\SystemReport();
    $report->run();
}
    public function template()
    {
        ?>
		<div class="row-fluid">
			<div class="span3">
				<h3>Is this for you?</h3>
				<p>
					This tool is for you if you are using this WordPress setup to publish a podcast right now.
					The assistant has explicit support for <a href="http://wordpress.org/extend/plugins/podpress/" target="_blank">podPress</a> and <a href="http://wordpress.org/extend/plugins/powerpress/" target="_blank">PowerPress</a> setups but it will 
					work with anything that relies on WordPress enclosures.
				</p>
			</div>
			<div class="span3">
				<h3>Preparation</h3>
				<p>
					Before you start, <strong><em>please backup your database!</em></strong>.
					The assistant won't edit or delete any data. However, nobody has ever lost any data by backing up. Play it safe.
				</p>
				<p>
					<?php 
        echo __('Don\'t know how to do a backup? Try ') . '<a href="' . admin_url('plugin-install.php?tab=search&s=BackWPup') . '" target="_blank">BackWPup</a>.';
        ?>
				</p>
			</div>
			<div class="span6">
				<h3>System Check</h3>
				<p>
					<?php 
        $r = new \Podlove\SystemReport();
        $report = $r->render();
        ?>
					<textarea style="width: 100%" readonly cols="100" rows="<?php 
        echo substr_count($report, "\n") + 1;
        ?>
"><?php 
        echo $report;
        ?>
</textarea>
				</p>
			</div>
		</div>
		<div class="row-fluid">
			<div class="span12">
				<a href="<?php 
        echo self::get_page_link(2);
        ?>
" class="btn btn-primary btn-large btn-block">
					<?php 
        echo __('Let\'s do this!', 'podlove');
        ?>
				</a>
			</div>
		</div>
		<!-- 
		<div class="hero-unit">
			<h1>
				<?php 
        echo __('Hi, Let\'s Migrate!', 'podlove');
        ?>
			</h1>
			<p>
				<?php 
        echo __('My name is Miggy and I\'m your Migration Assistant for today. Cool, huh?
				I\'m able to help you if you\'re currently using PodPress, PowerPress or any other podcasting setup which manages episodes as posts with enclosures.', 'podlove');
        ?>
			</p>
			<p>
				<?php 
        echo __('Before we start, <strong><em>please backup your database!</em></strong>
				I won\'t edit or delete any of your existing data but, you know, nobody has ever lost any data by backing up. Play it safe.', 'podlove');
        ?>
			</p>
			<p>
				<?php 
        echo __('Don\'t know how to do a backup? Try ') . '<a href="' . admin_url('plugin-install.php?tab=search&s=BackWPup') . '" target="_blank">BackWPup</a>.';
        ?>
			</p>
			<p>
				<a href="<?php 
        echo self::get_page_link(2);
        ?>
" class="btn btn-primary btn-large">
					<?php 
        echo __('Let\'s do this!', 'podlove');
        ?>
				</a>
			</p>
		</div>
		-->
		<?php 
    }
    public function page()
    {
        ?>
		<div class="wrap">
			<?php 
        screen_icon('podlove-podcast');
        ?>
			<h2><?php 
        echo __('Support', 'podlove');
        ?>
</h2>

			<div class="notice" style="margin: 3%">
				<p style="float: right">
					<a href="//publisher.podlove.org/support/" target="_blank" class="button button-primary"><?php 
        echo __('Get Support', 'podlove');
        ?>
</a>
				</p>
				<h2><?php 
        echo __('Get Professional Support', 'podlove');
        ?>
</h2>
				<p>
					<?php 
        echo sprintf(__('If you need quick, private and competent support, get it at %spublisher.podlove.org/support%s.', 'podlove'), '<a href="//publisher.podlove.org/support/" target="_blank">', '</a>');
        ?>
				</p>
				<p>
					<?php 
        echo __('We are happy to help getting you up and running during setup or answering questions that come up once in a while.', 'podlove');
        ?>
				</p>
			</div>

			<h3><?php 
        echo __('Bug Reports, Feature Requests & Help', 'podlove');
        ?>
</h3>

			<p>
				<ul>
					<li>
						<?php 
        echo sprintf(__('Please report bugs at %sGitHub Issues%s.', 'podlove'), '<a href="https://github.com/podlove/podlove-publisher/issues" target="_blank">', '</a>');
        ?>
					</li>
					<li>
						<?php 
        echo sprintf(__('%sPodlove Community%s is the best place to find answers, ask the community for help and discuss features.', 'podlove'), '<a target="_blank" href="//community.podlove.org">', '</a>');
        ?>
					</li>
					<li>
						<?php 
        echo sprintf(__('%sTrello%s shows our roadmap.', 'podlove'), '<a target="_blank" href="//trello.com/board/podlove-publisher/508293f65573fa3f62004e0a">', '</a>');
        ?>
					</li>
					<li>
						<?php 
        echo sprintf(__('For quick remarks and feedback, you can reach us at %sTwitter (@podlove_org)%s and %sADN (@podlove)%s', 'podlove'), '<a target="_blank" href="//twitter.com/podlove_org">', '</a>', '<a target="_blank" href="https://alpha.app.net/podlove">', '</a>');
        ?>
					</li>
				</ul>
			</p>

			<?php 
        do_action('podlove_support_repair_html');
        ?>

			<p>
				<?php 
        echo __('When reporting a bug, please append the following system report to help us trace the root cause:', 'podlove');
        ?>
			</p>

			<p>
				<?php 
        $r = new \Podlove\SystemReport();
        $report = $r->render();
        ?>
				<textarea class="podlove_system_report" readonly cols="100" rows="<?php 
        echo substr_count($report, "\n") + 1;
        ?>
"><?php 
        echo $report;
        ?>
</textarea>
			</p>

		</div>	
		<?php 
    }