<?php
/**
 * Copyright © 2013-2017 Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

// @codingStandardsIgnoreFile
?>

		<img src="<?php echo $block->getData('image_url'); ?>"/>

		<a <?php /* @escapeNotVerified */ echo $block->getLinkAttributes() ?>>
			<?php echo $block->escapeHtml($block->getLabel()) ?>

Update category gird box widget.

<?php
/**
 * Copyright © 2013-2017 Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

// @codingStandardsIgnoreFile
?>

		<a <?php /* @escapeNotVerified */ echo $block->getLinkAttributes() ?>>
			<img src="<?php echo $block->getData('image_url'); ?>"/>

		<a <?php /* @escapeNotVerified */ echo $block->getLinkAttributes() ?>>
			<?php echo $block->escapeHtml($block->getLabel()) ?>


<?php

$this->rcmJsLibIncludeCoreJs();
$this->rcmIncludeJqueryUi();
$this->rcmIncludeTwitterBootstrap();

$this->headScript()->appendFile(
    $this->basePath() . '/modules/rcm-tinymce-js/tinymce/tinymce.js'
);
$this->headScript()->appendFile(
    $this->basePath() . '/modules/rcm-lib/rcm-html-editor/rcm-html-editor.js'
);

$this->headScript()->appendFile(
    $this->basePath() . '/modules/rcm-admin/js/rcm-admin.js'
);

$this->headLink()->appendStylesheet(
    '/modules/rcm-lib/rcm-html-editor/rcm-html-editor.css'
);
$this->headLink()->appendStylesheet(
    '/modules/rcm-jquery/jquery-context-menu/jquery.contextMenu.css'
);
$this->headScript()->appendFile(
    $this->basePath()
    . '/modules/rcm-jquery/jquery-context-menu/jquery.contextMenu.js'
);
$this->headScript()->appendFile(
    $this->basePath()
    . '/modules/rcm-jquery/jquery-context-menu/jquery.ui.position.js'
);

?>

<?= $this->render('rcm-admin/admin/partial/panel/panel.phtml'); ?>
<?= $this->render('rcm-admin/admin/partial/dialog/dialog.phtml'); ?>

Add css from old repo

<?php

$this->rcmJsLibIncludeCoreJs();
$this->rcmIncludeJqueryUi();
$this->rcmIncludeTwitterBootstrap();

$this->headScript()->appendFile(
    $this->basePath() . '/modules/rcm-tinymce-js/tinymce/tinymce.js'
);
$this->headScript()->appendFile(
    $this->basePath() . '/modules/rcm-lib/rcm-html-editor/rcm-html-editor.js'
);

$this->headScript()->appendFile(
    $this->basePath() . '/modules/rcm-admin/js/rcm-admin.js'
);

$this->headLink()->appendStylesheet(
    '/modules/rcm-admin/css/rcm-admin.css'
);
$this->headLink()->appendStylesheet(
    '/modules/rcm-lib/rcm-html-editor/rcm-html-editor.css'
);
$this->headLink()->appendStylesheet(
    '/modules/rcm-jquery/jquery-context-menu/jquery.contextMenu.css'
);
$this->headScript()->appendFile(
    $this->basePath()
    . '/modules/rcm-jquery/jquery-context-menu/jquery.contextMenu.js'
);
$this->headScript()->appendFile(
    $this->basePath()
    . '/modules/rcm-jquery/jquery-context-menu/jquery.ui.position.js'
);

?>

<?= $this->render('rcm-admin/admin/partial/panel/panel.phtml'); ?>
<?= $this->render('rcm-admin/admin/partial/dialog/dialog.phtml'); ?>


<?= $this->tabs ?>

<?= $this->form ?>

<?= $this->escapedHint ?>

[graphite]
metric_prefix = icinga
base_url = http://graphite.com/render?
service_name_template = $HOSTNAME$.$SERVICEDESC$
host_name_template = $HOSTNAME$
;this template is used for the small image, macro $target$ can used.
graphite_args_template = "&target=$target$&source=0&width=300&height=120&hideAxes=true&lineWidth=2&hideLegend=true&colorList=049BAF"
;this template is used for the large image, macro $target$ can used.
;graphite_large_args_template = "&target=alias(color($target$_warn,'yellow'),'warning')&target=alias(color($target$_crit,'red'),'critical')&target=$target$&source=0&width=800&height=700&colorList=049BAF&lineMode=connected"

Add quotes so config parsing works.

<?= $this->tabs ?>

<?= $this->form ?>

<?= $this->escapedHint ?>

[graphite]
metric_prefix = icinga
base_url = http://graphite.com/render?
service_name_template = "$HOSTNAME$.$SERVICEDESC$"
host_name_template = "$HOSTNAME$"
;this template is used for the small image, macro $target$ can used.
graphite_args_template = "&target=$target$&source=0&width=300&height=120&hideAxes=true&lineWidth=2&hideLegend=true&colorList=049BAF"
;this template is used for the large image, macro $target$ can used.
;graphite_large_args_template = "&target=alias(color($target$_warn,'yellow'),'warning')&target=alias(color($target$_crit,'red'),'critical')&target=$target$&source=0&width=800&height=700&colorList=049BAF&lineMode=connected"


<?php
/** @var \NightsWatch\Entity\Announcement[] $announcements */
/** @var \NightsWatch\Entity\User $identity */
/** @var \Zend\View\Model\ViewModel $this */
if ($identity && $identity->rank >= \NightsWatch\Entity\User::RANK_LIEUTENANT) {
    echo 'url('home', ['controller' => 'announcement', 'action' => 'create']) . '">Post Announcement';
}
if (!count($announcements)) {
    echo '
There are no announcements viewable by your rank.
';
} else {
    foreach ($announcements as $announcement) {
        echo $this->partial('nights-watch/announcement/partials/announcement', ['announcement' => $announcement]);
    }
}

Fix Announcement Button for appropriate Rank

<?php
/** @var \NightsWatch\Entity\Announcement[] $announcements */
/** @var \NightsWatch\Entity\User $identity */
/** @var \Zend\View\Model\ViewModel $this */
if ($identity && $identity->rank >= \NightsWatch\Entity\User::RANK_GENERAL) {
    echo 'url('home', ['controller' => 'announcement', 'action' => 'create']) . '">Post Announcement';
}
if (!count($announcements)) {
    echo '
There are no announcements viewable by your rank.
';
} else {
    foreach ($announcements as $announcement) {
        echo $this->partial('nights-watch/announcement/partials/announcement', ['announcement' => $announcement]);
    }
}


<?php
	if ($this->snippet->has_name):
		$headerTag = $this->headerTag ?: 'h3';
?>
<?php echo '<'.$headerTag.'>'.nl2br($this->escape($this->snippet->name)).'</'.$headerTag.'>'; ?>
<?php
	endif;

	if ($this->snippet->has_image && $this->snippet->image_id):
		$scalingTpl = property_exists($this, 'scaling_template') ? $this->scaling_template : null;
		echo $this->image()->render($this->snippet->image_id, $scalingTpl);
	endif;

	if ($this->snippet->has_html || $this->snippet->has_text):
		if ($this->snippet->has_text):
			$theContent = nl2br($this->escape($this->snippet->text));
			if ($this->linkify !== false):
				$theContent = $this->string()->linkify($theContent);
			endif;
		elseif ($this->snippet->has_html):
			$bodyClass = 'rich';
			if ($this->bodyClass):
				$bodyClass .= ' '.$this->bodyClass;
			endif;
			$theContent = '
'.$this->snippet->html.'
';
		endif;
		echo $theContent;
	endif;
?>

Allow class on the header

<?php
	if ($this->snippet->has_name):
		$headerTag = $this->headerTag ?: 'h3';
		$headerClass = $this->headerClass ?: '';
		echo '<'.$headerTag.($headerClass ? ' class="'.$headerClass.'"' : '').'>'.nl2br($this->escape($this->snippet->name)).'</'.$headerTag.'>';
	endif;

	if ($this->snippet->has_image && $this->snippet->image_id):
		$scalingTpl = property_exists($this, 'scaling_template') ? $this->scaling_template : null;
		echo $this->image()->render($this->snippet->image_id, $scalingTpl);
	endif;

	if ($this->snippet->has_html || $this->snippet->has_text):
		if ($this->snippet->has_text):
			$theContent = nl2br($this->escape($this->snippet->text));
			if ($this->linkify !== false):
				$theContent = $this->string()->linkify($theContent);
			endif;
		elseif ($this->snippet->has_html):
			$bodyClass = 'rich';
			if ($this->bodyClass):
				$bodyClass .= ' '.$this->bodyClass;
			endif;
			$theContent = '
'.$this->snippet->html.'
';
		endif;
		echo $theContent;
	endif;
?>


<?php
$customer = $this->getCustomer();
$payment = $this->getPayment();
?>

<?= trim($customer['firstname']) ?>, seu pagamento de
        <?= $this->formatPriceWithLocalCurrency($this->currencyCode, $payment->getEbanxLocalAmount()); ?>
        foi aprovado o/

Se tiver alguma dúvida em relação ao seu pagamento, acesse a Conta EBANX com o email
        <?= $customer['email'] ?>.

    <?php include 'apps.phtml' ?>

Create template for success page

<?php
$customer = $this->getCustomer();
$payment = $this->getPayment();
?>

<?= trim($customer['firstname']) ?>, su pago de
        <?= $this->formatPriceWithLocalCurrency($this->currencyCode, $payment->getEbanxLocalAmount()); ?>
        fue aprobado./

Si tiene alguna duda acerca de su pago, acceda a la cuenta EBANX con el correo electrónico
        <?= $customer['email'] ?>.

    <?php include 'apps.phtml' ?>


<?php if (!$this->disableLib): ?>
<div id="library_content" class="lib-content tabs ui-widget ui-widget-content block-shadow alpha-block padded"
    <?php if (!$this->showLib): ?>
    style="display:none"
    <?php endif; ?>
>
    <?php echo $this->render('library/library.phtml') ?>

<?php endif; ?>

        <?php if(!$this->disableLib && !$this->showLib):?>

            Schedule files

        <?php endif; ?>
    <?php echo $this->sb_form; ?>

<?php echo $this->dialog ?>

Fix inconsistent label which does not match tooltip


        <title>Lightdatasys</title>

        <link rel="stylesheet" href="/app/asset/css/application" />

                    Menu

Lightdatasys

Login

Football

        <ng-view>
            Loading
        </ng-view>

Use the asset helper for writing the

        <title>Lightdatasys</title>

        <link rel="stylesheet" href="/app/asset/css/application" />

                    Menu

Lightdatasys

Login

Football

        <ng-view>
            Loading
        </ng-view>

        <?php echo $app['lidsys.asset']->jsTag('bundle/application'); ?>


<?php if (empty($this->vars())): ?>
No object model passed
<?php else:
	$objKey = current($this->vars())->helper->getObjectKey();
    echo 'This is an iteration with objectKey: ' . $objKey;
endif;

Fix testNestedCallsShouldNotOverrideObjectKey for PHP < 5.5

<?php
	$vars = $this->vars();
	if (empty($vars)) :
?>
No object model passed
<?php else:
	$objKey = current($this->vars())->helper->getObjectKey();
    echo 'This is an iteration with objectKey: ' . $objKey;
endif;


<?=
$this->rcmRichEdit(
    'html',
    '
Lorem ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque justosapien, convallis vehicula sollicitudin tristique, rhoncus vel enim.Maecenas mollis dignissim urna, et mollis augue tempus nec. Proin a orcinulla. Pellentesque laoreet orci vitae nisl viverra imperdiet. Nam eueuismod orci. Etiam adipiscing condimentum quam a venenatis. Fusce faucibuslacus non velit varius egestas. Nam molestie mattis sem quis cursus. Duissit amet nunc turpis. Mauris elit urna, dapibus id hendrerit eleifend,placerat at magna. Etiam ornare eleifend elit, vel blandit tellussagittis pretium. Vivamus ut dignissim purus.',
    'div',
    array('style' => 'width:100%')
); ?>

Fix bottom half alignment issues on guest site homepage


Current Directors

        <?php renderOfficerRows($this->officers); ?>

Past Directors

        <?php renderOfficerRows($this->pastofficers); ?>

<?php

function renderOfficerRows($officers)
{
    $officerCount = 0;
?>

Officer Name	Role	Status

      <?php foreach ($officers as $officer) : ?>

    			<a id="officer-id-<?php echo ++$officerCount ?>" href="/directories/people/<?php echo $officer['officerid']; ?>"><?php echo $officer['forename'] . ' ' . $officer['surname']; ?>
    			<?php echo $officer['appointmenttype']; ?>
    			<?php echo $officer['appointmentstatus']; ?>

      <?php endforeach; ?>
<?php
}

Update officer list to reference whos who id

Current Directors

        <?php renderOfficerRows($this->officers); ?>

Past Directors

        <?php renderOfficerRows($this->pastofficers); ?>

<?php

function renderOfficerRows($officers)
{
    $officerCount = 0;
?>

Officer Name	Role	Status

      <?php foreach ($officers as $officer) : ?>

    			<a id="officer-id-<?php echo ++$officerCount ?>" href="/directories/people/<?php echo $officer['whoswhoid']; ?>"><?php echo $officer['forename'] . ' ' . $officer['surname']; ?>
    			<?php echo $officer['appointmenttype']; ?>
    			<?php echo $officer['appointmentstatus']; ?>

      <?php endforeach; ?>
<?php
}


<a class="promotion-link patreon-link" href="http://safe.topwebcomics.com/vote/<?=$siteId?>/default.aspx" target="blank">
	<img src="http://topwebcomics.com/rankimages/rankimage.aspx?ImageTemplate=dynamiclink1&SiteID=<?=$siteId?>" />

Remove classes from TWC link

<a class="" href="http://safe.topwebcomics.com/vote/<?=$siteId?>/default.aspx" target="blank">
        <img src="http://topwebcomics.com/rankimages/rankimage.aspx?ImageTemplate=dynamiclink1&SiteID=<?=$siteId?>" />


<?php
/*
 * Doctrine Admin
 * Copyright (C) 2013 Bastiaan Welmers, bastiaan@welmers.net
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

if ($this instanceof \Bast1aan\DoctrineAdmin\View\FormElementAssociation):
$entity = $this->property->getValue();

?>
<?php print $this->getView()->renderEntity($entity) ?> <input class="doctrine_admin_form_element_association" type="text" name="<?php print $this->property->getName() ?>" value="<?php print $this->getView()->renderEntityId($entity) ?>" />
<?php endif ?>

Put target name in a <span> with correct class, so it can be targeted with JS/CSS

<?php
/*
 * Doctrine Admin
 * Copyright (C) 2013 Bastiaan Welmers, bastiaan@welmers.net
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

if ($this instanceof \Bast1aan\DoctrineAdmin\View\FormElementAssociation):
$entity = $this->property->getValue();

?>
 <span class="target_entity_id <?php print $this->getView()->renderEntityId($entity) ?>"><?php print $this->getView()->renderEntity($entity) ?> <input class="doctrine_admin_form_element_association" type="text" name="<?php print $this->property->getName() ?>" value="<?php print $this->getView()->renderEntityId($entity) ?>" />
<?php endif ?>


<?php
header('Content-type: application/javascript');

echo "var server = '" . $this->serverUrl() . $this->baseUrl('') . "';\n\n";

require_once(APPLICATION_PATH . '/../public/js/jquery-1.6.min.js');
require_once(APPLICATION_PATH . '/../public/js/both.js');
?>
/*global $, document, injectStatus */

$(document).ready(function()
{
	$("head").append('<link href="' + server + 'css/both.css" media="screen" rel="stylesheet" type="text/css" />');
	mqueue.monitorLinks(server);
});

Resolve JavaScripts conflicts with remote sites.

/*global $, document, injectStatus */
(function(){
	<?php
	header('Content-type: application/javascript');
	require_once(APPLICATION_PATH . '/../public/js/jquery-1.6.min.js');
	?>
	jQuery.noConflict()(function(){
		var server = '<?php echo $this->serverUrl() . $this->baseUrl('') ?>';
		<?php require_once(APPLICATION_PATH . '/../public/js/both.js'); ?>

		$(document).ready(function()
		{
			$("head").append('<link href="' + server + 'css/both.css" media="screen" rel="stylesheet" type="text/css" />');
			mqueue.monitorLinks(server);
		});
	});
})();


<?php
/**
 * @var \App\Entity\Station $station
 * @var \App\Assets $assets
 */

$assets->addInlineJs($this->fetch('stations/sidebar.js', ['station' => $station]), 95);
?>

    <a class="navbar-brand px-0" href="<?=$router->fromHere('stations:profile:index') ?>">

<?=$this->e($station->getName()) ?>

        <div class="xs" id="station-time" title="<?=$this->e(__('Station Time')) ?>">
            <?=date('H:i:s T') ?>

<?php
echo $this->fetch('partials/sidebar_menu', ['menu' => $menu, 'active' => $active]);
?>

Add "Edit" button next to station name.

<?php
/**
 * @var \App\Entity\Station $station
 * @var \App\Assets $assets
 * @var \App\Acl $acl
 */

$assets->addInlineJs($this->fetch('stations/sidebar.js', ['station' => $station]), 95);
?>

        <a class="navbar-brand px-0 flex-fill" href="<?= $router->fromHere('stations:profile:index') ?>">

<?= $this->e($station->getName()) ?>

            <div class="xs" id="station-time" title="<?= $this->e(__('Station Time')) ?>">
                <?= date('H:i:s T') ?>

        <?php
        if ($acl->isAllowed(App\Enums\StationPermissions::Profile, $station)): ?>
            <a class="navbar-brand ml-0 flex-shrink-0" href="<?= $router->fromHere('stations:profile:edit') ?>">
                edit
                <?= __('Edit Profile') ?>

        <?php
        endif; ?>

<?php
echo $this->fetch('partials/sidebar_menu', ['menu' => $menu, 'active' => $active]);
?>


<form method="post" enctype="multipart/form-data">

		Admin >
		<a href="<?=$this->url('admin', array('action' => 'list', 'model' => $model))?>"><?=\ATP\Inflector::pluralize($modelData['displayName'])?> >
		Module Parameters
		<input type="submit" class="model-save" name="submit" value="Save Parameters" />

			<?php foreach(array_keys($params) as $group) { ?>

<a href="#<?=$group?>-tab"><?=$group?>

			<?php } ?>

			<?php foreach($params as $group => $paramList) { ?>
				<div id="<?=$group?>-tab">

						<?php foreach($paramList as $id => $param) { ?>
							<?php $helper = "form{$param['type']}"?>
							<?php $value = isset($objects[$param['identifier']]) ? $objects[$param['identifier']]->value : $param['default']?>
							<?=$this->$helper(array('label' => $param['identifier'], 'name' => "params[{$group}][{$id}]", 'value' => $value))?>
						<?php } ?>

			<?php } ?>

</form>

Allow options for admin parameters

<form method="post" enctype="multipart/form-data">

		Admin >
		<a href="<?=$this->url('admin', array('action' => 'list', 'model' => $model))?>"><?=\ATP\Inflector::pluralize($modelData['displayName'])?> >
		Module Parameters
		<input type="submit" class="model-save" name="submit" value="Save Parameters" />

			<?php foreach(array_keys($params) as $group) { ?>

<a href="#<?=$group?>-tab"><?=$group?>

			<?php } ?>

			<?php foreach($params as $group => $paramList) { ?>
				<div id="<?=$group?>-tab">

						<?php foreach($paramList as $id => $param) { ?>
							<?php $helper = "form{$param['type']}"?>
							<?php $value = isset($objects[$param['identifier']]) ? $objects[$param['identifier']]->value : $param['default']?>
							<?=$this->$helper(array_merge(
								array('label' => $param['identifier'], 'name' => "params[{$group}][{$id}]", 'value' => $value),
								isset($param['options']) ? $param['options'] : array()
							))?>
						<?php } ?>

			<?php } ?>

</form>


<?php

	# VISUALIZADOR HTML

	print "";

	print "
";

	# CONTENIDO (INPUT)
	$html_contenido='';
	$html_contenido .= " $components_html ";

	# PRINT HTML
	print $html_contenido;

	print "
"; //wrap

?>

Change the id of the section_group_div for selected by js


<?php $this->appendJs("/atp-comic/js/comic.js")?>

<img class="comic-img" src="<?=$page->filePath('image_file')?>" />

<?=$this->partial('atp-comic/shared/nav_links.phtml', array('node' => $node))?>

	<?php foreach($page->getAtpcomicNodesByPage() as $curNode) { ?>
		<?=$this->partial('atp-comic/shared/nav_links.phtml', array('node' => $curNode))?>
	<?php } ?>

<?=$page->title?> (page <?=$node->pageNumber?>)

<?=$page->descriptionHtml?>

Page Transcript

<?=$page->transcriptHtml?>

Use absolute path in page images

<?php $this->appendJs("/atp-comic/js/comic.js")?>

<img class="comic-img" src="<?=$this->basePath($page->filePath('image_file'))?>" />

<?=$this->partial('atp-comic/shared/nav_links.phtml', array('node' => $node))?>

	<?php foreach($page->getAtpcomicNodesByPage() as $curNode) { ?>
		<?=$this->partial('atp-comic/shared/nav_links.phtml', array('node' => $curNode))?>
	<?php } ?>

<?=$page->title?> (page <?=$node->pageNumber?>)

<?=$page->descriptionHtml?>

Page Transcript

<?=$page->transcriptHtml?>


<div class="well well-sm">
New Filter
<select id="filtertype">
<option value="sector">Sector</option>
<option value="geography">Geography</option>
<option value="keyevent">Key Event</option>
<option value="jobarea">Functional Area</option>
</select>
<input type="text" id="searchfilter" placeholder="Start typing..." style="width:20em">
<input type="button" class="button" value="Add filter">
</div>
<input type="hidden" name="filters">

<script>
$(document).ready(function() {
    $('#searchfilter').autocomplete({
        source: function(request, response) {

    		var type = $('#filtertype').val();
    		var url = '/ajax/filter/search/' + type + '/' + request.term;

            $.ajax({
                url: url,
                success: function(data) {
                    data.forEach(function(item) {
                        item.value = item.label;
                    });
                    response(data);
                }
            });
        }
    });
	});
</script>

Set values in hidden field

<div class="well well-sm">
New Filter
<select id="filtertype">
<option value="sector">Sector</option>
<option value="geography">Geography</option>
<option value="keyevent">Key Event</option>
<option value="jobarea">Functional Area</option>
</select>
<input type="text" id="searchfilter" placeholder="Start typing..." style="width:20em">
<input type="button" class="button" value="Add filter">
</div>
<input type="hidden" id="filters" value='[{}]'>

<script>
$(document).ready(function() {
	function updateTags()
	{
	}

    $('#searchfilter').autocomplete({
        source: function(request, response) {

    		var type = $('#filtertype').val();
    		var url = '/ajax/filter/search/' + type + '/' + request.term;

            $.ajax({
                url: url,
                success: function(data) {
                    response(data);
                }
            });
        },
        select: function(event, ui) {
        	$('#searchfilter').val(ui.item.label);
        	var json = $('#filters').val();
        	var currentFilters = jQuery.parseJSON(json);
        	currentFilters.push(ui.item);
        	$('#filters').val(JSON.stringify(currentFilters));
        	updateTags();
        	event.preventDefault();
        }
    });
});
</script>


<?php /** @var $app \H4D\Leveret\Application */;?>

General information

Application info

Name

<?php echo $app->getName();?>

Environment

<?php echo $app->getEnvironment();?>

System info

Host

<?php echo $app->getRequest()->getHttpHost();?>

PHP info

PHP version

<?php echo phpversion();?>

Update default view (show config file path).

<?php /** @var $app \H4D\Leveret\Application */;?>

General information

Application info

Name

<?php echo $app->getName();?>

Environment

<?php echo $app->getEnvironment();?>

Config file

<?php echo $app->getConfig()->getConfigFilePath();?>

System info

Host

<?php echo $app->getRequest()->getHttpHost();?>

PHP info

PHP version

<?php echo phpversion();?>


<?php
$customer = $this->getCustomer();
$payment = $this->getPayment();
?>

<?= trim($customer['firstname']) ?>, su pago de
        <?= $this->formatPriceWithLocalCurrency($this->currencyCode, $payment->getEbanxLocalAmount()); ?>
        fue aprobado./

Si tiene alguna duda acerca de su pago, acceda a la cuenta EBANX con el correo electrónico
        <?= $customer['email'] ?>.

    <?php include 'apps.phtml' ?>

Fix customer data on debit card success page

<?php
$order = $this->getOrder();
$payment = $this->getPayment();
?>

<?= trim($order->getBillingAddress()->getFirstname()) ?>, su pago de
        <?= $this->formatPriceWithLocalCurrency($this->currencyCode, $payment->getEbanxLocalAmount()); ?>
        fue aprobado./

Si tiene alguna duda acerca de su pago, acceda a la cuenta EBANX con el correo electrónico
        <?= $order->getBillingAddress()->getEmail() ?>.

    <?php include 'apps.phtml' ?>


This is the admin interface

Update admin dashboard with dummy data

Welcome to SlmCmf

Congratulations! You have successfully installed the Slm Content Management Framework. This page is completely ripped from the Zend Framework Skeleton Application. The CMF can serve as a simple starting point for you to begin building your application on ZF2.

Fork SlmCmf on GitHub »

Follow Development

Zend Framework 2 is under active development. If you are interested in following the development of ZF2, there is a special ZF2 portal on the official Zend Framework webiste which provides links to the ZF2 wiki, dev blog, issue tracker, and much more. This is a great resource for staying up to date with the latest developments!

Discover Modules

The community is working on developing a community site to serve as a repository and gallery for ZF2 modules. The project is available on GitHub. The site is currently live and currently contains a list of some of the modules already available for ZF2.

Help & Support

If you need any help or support while developing with ZF2, you may reach us via IRC: #zftalk.2 on Freenode. We'd love to hear any questions or feedback you may have regarding the beta releases. Alternatively, you may subscribe and post questions to the mailing lists.


<?
$title = 'Bulk Contact Form';
?>

    <button id="btn-selectall" class="btn" type="button">Select All</button>
    <button id="btn-selectnone" class="btn" type="button">Select None</button>

    <?=$form->render() ?>

Add "Stations Only" and "Podcasts Only" buttons for selection of bulk recipients.

<?
$title = 'Bulk Contact Form';
?>

    <button class="btn btn-select" data-select="all" type="button">Select All</button>
    <button class="btn btn-select" data-select="stations" type="button">Stations Only</button>
    <button class="btn btn-select" data-select="podcasts" type="button">Podcasts Only</button>
    <button class="btn btn-select" data-select="none" type="button">Select None</button>

    <?=$form->render() ?>


                    (cc) 2016 BZ Coding Ltd. Some Rights Reserved.

                    Terms of Service • Privacy and Cookies

                    Default UI theme built on top of Skeleton,
                    cover photo by Yair Hazout / Unsplash.

                    Favicon by Freepik from Flaticon, licensed by CC 3.0 BY

Remove redundant title attribute on footer links


<?php echo $page->title() ?>

An online metronome, implemented using the WebAudioAPI

Click the button, or press the space bar, to start/stop the metronome

            BPM: 120
            <input id="bpm-control" type="range" name="BPM" min="20" max="300" value="120">

Make metronome half width on larger displays


<?php
/**
 * Login with Amazon
 *
 * @category    Amazon
 * @package     Amazon_Login
 * @copyright   Copyright (c) 2014 Amazon.com
 * @license     http://opensource.org/licenses/Apache-2.0  Apache License, Version 2.0
 */
?>

<?php

/**
 * More button styles: http://login.amazon.com/button-guide
 */

?>

            - <?php echo $this->__('OR'); ?> -

            <button class="amazon-login-button" style="cursor:pointer; background:none; border:0;">

            </button>

Load image resource over secure connection


<?php
 include("../../config/settings.inc.php");
$REFRESH = "<meta http-equiv=\"refresh\" content=\"300; URL=http://mesonet.agron.iastate.edu/data/uscomp.phtml\">";
$TITLE = "IEM | US NEXRAD";
  include("$rootpath/include/header.php");?>

Current RADAR Products
  |   Loop RADAR
  |   Switch to MidWest View
  |   <a href="<?php echo $rooturl; ?>/GIS/apps/rview/warnings.phtml">Current Warnings

<img src="../data/uscomp.png?<?php echo time(); ?>">

(Image refreshes every 5 minutes)

<?php include("$rootpath/include/footer.php"); ?>

Fix bad link in REFRESH

<?php
 include("../../config/settings.inc.php");
$REFRESH = "<meta http-equiv=\"refresh\" content=\"300; URL=http://mesonet.agron.iastate.edu/current/uscomp.phtml\">";
$TITLE = "IEM | US NEXRAD";
  include("$rootpath/include/header.php");?>

Current RADAR Products
  |   Loop RADAR
  |   Switch to MidWest View
  |   <a href="<?php echo $rooturl; ?>/GIS/apps/rview/warnings.phtml">Current Warnings

<img src="../data/uscomp.png?<?php echo time(); ?>">

(Image refreshes every 5 minutes)

<?php include("$rootpath/include/footer.php"); ?>


<?php
include("../../config/settings.inc.php");

$REFRESH = "<meta http-equiv=\"refresh\" content=\"300; URL=http://mesonet.agron.iastate.edu/data/mwcomp.phtml\">";
$TITLE = "IEM | Iowa NEXRAD + Warnings";
  include("$rootpath/include/header.php");?>

Current RADAR Products
  |   Loop RADAR
  |   Switch to US View
  |   <a href="<?php echo $rooturl; ?>/GIS/apps/rview/warnings.phtml">Current Warnings

<img src="<?php echo $rooturl; ?>/data/mwcomp.png?<?php echo time(); ?>">

(Image refreshes every 5 minutes)

<?php include("$rootpath/include/footer.php"); ?>

Fix bad link in REFRESH

<?php
include("../../config/settings.inc.php");

$REFRESH = "<meta http-equiv=\"refresh\" content=\"300; URL=http://mesonet.agron.iastate.edu/current/mwcomp.phtml\">";
$TITLE = "IEM | Iowa NEXRAD + Warnings";
  include("$rootpath/include/header.php");?>

Current RADAR Products
  |   Loop RADAR
  |   Switch to US View
  |   <a href="<?php echo $rooturl; ?>/GIS/apps/rview/warnings.phtml">Current Warnings

<img src="<?php echo $rooturl; ?>/data/mwcomp.png?<?php echo time(); ?>">

(Image refreshes every 5 minutes)

<?php include("$rootpath/include/footer.php"); ?>


<?php
/**
 * Created by PhpStorm.
 * User: carl
 * Date: 16/07/17
 * Time: 10:34
 */

// can this fail?
$total = Mage::getModel("checkout/session")->getQuote()->getGrandTotal();

$laybuy_payments = FALSE;

if($total){
    $laybuy_payments = number_format( ($total / 6), 2, '.', ',');
}

?>
<ul class="form-list" id="payment_form_<?php echo $this->getMethodCode(); ?>" style="display: none;">

            <?php if($laybuy_payments): ?>

6 interest free payments from $<?= $laybuy_payments; ?>

            <?php endif; ?>

Laybuy lets you receive your purchase now and spread the total cost over 6 weekly automatic payments. Interest free.

Available to NZ residents who are 18 years and over and have a valid debit or credit card.

By selecting ‘LAYBUY’ and you will be redirected to Laybuy to complete your order

Update country availability text in checkout

<?php
/**
 * Created by PhpStorm.
 * User: carl
 * Date: 16/07/17
 * Time: 10:34
 */

// can this fail?
$total = Mage::getModel("checkout/session")->getQuote()->getGrandTotal();

$laybuy_payments = FALSE;

if($total){
    $laybuy_payments = number_format( ($total / 6), 2, '.', ',');
}

?>
<ul class="form-list" id="payment_form_<?php echo $this->getMethodCode(); ?>" style="display: none;">

            <?php if($laybuy_payments): ?>

6 interest free payments from $<?= $laybuy_payments; ?>

            <?php endif; ?>

Laybuy lets you receive your purchase now and spread the total cost over 6 weekly automatic payments. Interest free.

Available to NZ, AU or UK residents who are 18 years and over and have a valid debit or credit card.

By selecting ‘LAYBUY’ and you will be redirected to Laybuy to complete your order


        <title>Lightdatasys</title>

        <link rel="stylesheet" href="/app/asset/css/application" />

                    Menu

Lightdatasys

Login

Football

        <ng-view>
            Loading
        </ng-view>

        <?php echo $app['lidsys.asset']->jsTag('bundle/application'); ?>

Switch application.css to use AssetService helper

        <title>Lightdatasys</title>

        <?php echo $app['lidsys.asset']->cssTag('bundle/application'); ?>

                    Menu

Lightdatasys

Login

Football

        <ng-view>
            Loading
        </ng-view>

        <?php echo $app['lidsys.asset']->jsTag('bundle/application'); ?>


<?php
$title = isset($this->title) ? $this->escapeHtml($this->title) : 'Contact';

$addressTitle = isset($this->addressTitle) ? $this->escapeHtml($addressTitle) : 'Address';

$contact = $this->contact;
$address = $contact->get('contact-address');
?>
<fieldset>
    <legend><?php echo $title; ?>:</legend>
    <?
    echo $this->formRow($contact->get('contact-first-name'));
    echo $this->formRow($contact->get('contact-last-name'));
    echo $this->formRow($contact->get('contact-company'));
    echo $this->formRow($contact->get('contact-email'));
    echo $this->formRow($contact->get('contact-phone-no'));
    echo $this->formRow($contact->get('contact-fax-no'));
    echo $this->partial(
        'scl-contact/address',
        array('address' => $address, 'title' => $addressTitle)
    );
    ?>
</fieldset>

Fix use of PHP short tag

<?php
$title = isset($this->title) ? $this->escapeHtml($this->title) : 'Contact';

$addressTitle = isset($this->addressTitle) ? $this->escapeHtml($addressTitle) : 'Address';

$contact = $this->contact;
$address = $contact->get('contact-address');
?>
<fieldset>
    <legend><?php echo $title; ?>:</legend>
    <?php
    echo $this->formRow($contact->get('contact-first-name'));
    echo $this->formRow($contact->get('contact-last-name'));
    echo $this->formRow($contact->get('contact-company'));
    echo $this->formRow($contact->get('contact-email'));
    echo $this->formRow($contact->get('contact-phone-no'));
    echo $this->formRow($contact->get('contact-fax-no'));
    echo $this->partial(
        'scl-contact/address',
        array('address' => $address, 'title' => $addressTitle)
    );
    ?>
</fieldset>


<?php /** @var $app \H4D\Leveret\Application */;?>

General information

Application info

Name

<?php echo $app->getName();?>

Environment

<?php echo $app->getEnvironment();?>

System info

Date

<?php echo date(DATE_ISO8601);?>

Time zone

<?php echo date_default_timezone_get();?>

IP address

<?php echo $_SERVER['SERVER_ADDR'];?>

PHP version

<?php echo phpversion();?>

Update default view (avoid use of date).

<?php /** @var $app \H4D\Leveret\Application */;?>

General information

Application info

Name

<?php echo $app->getName();?>

Environment

<?php echo $app->getEnvironment();?>

System info

Host

<?php echo $app->getRequest()->getHttpHost();?>

PHP info

PHP version

<?php echo phpversion();?>


Warning! Best check yo self, you're not looking too good.<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>

Update test for moved alert-dismissable

<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>Warning! Best check yo self, you're not looking too good.


Profile

	Username:
	<?=$this->view->getVar('escaper')->escapeHtml($this->view->getVar('user')->name)?>
	edit

	Password edit

	Emails:

<?=$this->partial('partials/messages')?>

<? foreach ($this->view->getVar('user')->getEmails() as $email) { ?>

			<?=$email->email?>
			<?=$email->is_primary ? 'primary' : ''?>
			<?=$email->verified ? '' : 'not verified'?>
			<?=$email->verified && !$email->is_primary ? "id'>set primary" : ''?>
			<?=!$email->is_primary ? '' : "id'>delete"?>

<? } ?>

				Add new email

Implement helper for custom messages.

Profile

	Username:
	<?=$this->view->getVar('escaper')->escapeHtml($this->view->getVar('user')->name)?>
	edit

	Password edit

	Emails:

<?=$this->partial('partials/messages')?>

<? foreach ($this->view->getVar('user')->getEmails() as $email) { ?>

			<?=$email->email?>
			<?=$email->is_primary ? 'primary' : ''?>
			<?=$email->verified ? '' : 'not verified'?>
			<?=$email->verified && !$email->is_primary ? "id'>set primary" : ''?>
			<?=$email->is_primary ? '' : "id'>delete"?>

<? } ?>

				Add new email


<?php
$month = isset($_GET['month']) ? $_GET['month'] : date("m");
$day = isset($_GET['day']) ? $_GET['day'] : date("d");
$ts = strtotime("2003-$month-$day");
$pts = strftime("2003-%m-%d", $ts);
?>

<?php
 $page = "plotting";
 $TITLE = "IEM | Monthly Temperature Spreads";
include("/mesonet/php/include/header.php");
 include("../../include/forms.php"); ?>

Seasonal Temperature Spreads

Related: View by Date
| View by Month

<?php include("/mesonet/php/include/footer.php"); ?>

Fix paths, no other bugs at least

<?php
include("../../../config/settings.inc.php");
$month = isset($_GET['month']) ? $_GET['month'] : date("m");
$day = isset($_GET['day']) ? $_GET['day'] : date("d");
$ts = strtotime("2003-$month-$day");
$pts = strftime("2003-%m-%d", $ts);
?>

<?php
 $page = "plotting";
 $TITLE = "IEM | Monthly Temperature Spreads";
include("$rootpath/include/header.php");
 include("$rootpath/include/forms.php"); ?>

Seasonal Temperature Spreads

Related: View by Date
| View by Month

<?php include("$rootpath/include/footer.php"); ?>


Gästeliste

<?php echo $this->HtmlTable($this->guests); ?>
<?php // \Zend\Debug\Debug::dump($this->guests); ?>
<?php echo $this->paginationControl($this->guests, 'Sliding', array('partial/paginator.phtml', 'Event'), array('route' => 'events/action', 'id' => $this->event->getId())); ?>

Set up header data in view

    <button class="close" data-dismiss="alert" type="button">x</button>

<?php echo $this->event->getTitle() ?> — Gästeliste

Gäste: <?php echo count($this->guests) ?>

Zusagen: <?php echo count($this->guests) ?>

Absagen: <?php echo count($this->guests) ?>

Offen: <?php echo count($this->guests) ?>

<?php echo $this->HtmlTable($this->guests); ?>
<?php // \Zend\Debug\Debug::dump($this->guests); ?>
<?php echo $this->paginationControl($this->guests, 'Sliding', array('partial/paginator.phtml', 'Event'), array('route' => 'events/action', 'id' => $this->event->getId())); ?>


<?php echo sprintf($this->translate('Welcome to %sMagazinePro%s'), '', '') ?>

<?php echo sprintf($this->translate('Congratulations! We have successfully installed the %sMagazinePro Application%s.
We are currently running Zend Framework version %s.'), '', '', \Zend\Version\Version::VERSION) ?>

Add all magazine that we have issued.

<?php echo sprintf($this->translate('Welcome to %sMagazinePro%s'), '', '') ?>

<?php echo sprintf($this->translate('Congratulations! We have successfully installed the %sMagazinePro Application%s.
We are currently running Zend Framework version %s.'), '', '', \Zend\Version\Version::VERSION) ?>

Issue 1 - JAN-FEB 2014

Issue 1 »

Issue 2 - MAR-APR 2014

Issue 2 »

Issue 3 - MAY-JUN 2014

Issue 2 »


<?php if ($this->pageCount): ?>

  <?php if (isset($this->previous)): ?>

      <a href="<?php echo $this->url($this->route, array('page' => $this->previous)); ?>">Previous

  <?php else: ?>

Previous

  <?php endif; ?>

  <?php foreach ($this->pagesInRange as $page): ?>
    <?php if ($page != $this->current): ?>

        <a href="<?php echo $this->url($this->route, array('page' => $page)); ?>">
          <?php echo $page; ?>

    <?php else: ?>

<?php echo $page; ?>

    <?php endif; ?>
  <?php endforeach; ?>

  <?php if (isset($this->next)): ?>

      <a href="<?php echo $this->url($this->route, array('page' => $this->next)); ?>">Next

  <?php else: ?>

Next

  <?php endif; ?>

<?php endif; ?>

Add left arrow and right arrow

<?php if ($this->pageCount): ?>

  <?php if (isset($this->previous)): ?>

      <a href="<?php echo $this->url($this->route, array('page' => $this->previous)); ?>">← Prev

  <?php else: ?>

← Prev

  <?php endif; ?>

  <?php foreach ($this->pagesInRange as $page): ?>
    <?php if ($page != $this->current): ?>

        <a href="<?php echo $this->url($this->route, array('page' => $page)); ?>">
          <?php echo $page; ?>

    <?php else: ?>

<?php echo $page; ?>

    <?php endif; ?>
  <?php endforeach; ?>

  <?php if (isset($this->next)): ?>

      <a href="<?php echo $this->url($this->route, array('page' => $this->next)); ?>">Next →

  <?php else: ?>

Next →

  <?php endif; ?>

<?php endif; ?>


<?php /* @var $this Fooman_GoogleAnalyticsPlus_Block_TagManager */?>
<?php if ($this->shouldInclude()): ?>

   <?php $dataLayerDetails = "{'test_version':'2'}";
   	if($this->isSuccessPage()) {
   			$order = $this->_getOrder();
   			$shipping = Mage::helper('googleanalyticsplus')->convert($order, 'shipping_amount');
            $tax = Mage::helper('googleanalyticsplus')->convert($order, 'tax_amount');
            $total_revenue =  Mage::helper('googleanalyticsplus')->convert($order, 'grand_total');
            $revenue = $total_revenue - $shipping - $tax;

            $dataLayerDetails = "{
            'id': '". $this->jsQuoteEscape($order->getIncrementId()) ."',
            'affiliation': '". $this->jsQuoteEscape(Mage::app()->getStore()->getName()) ."',
            'revenue': '". $revenue ."',
            'shipping': '". $shipping ."',
            'tax': '". $tax ."',
            'total_revenue': '". $total_revenue ."',
            'currency': '". Mage::helper('googleanalyticsplus')->getTrackingCurrency($order) ."'
            }";
    }?>

    <script>
        /* <![CDATA[ */
        dataLayer = [<?php echo $dataLayerDetails?>];
        /* ]]> */
    </script>
    <?php echo $this->getTagManagerSnippet(); ?>
<?php endif; ?>

Remove TEST and name fields

<?php /* @var $this Fooman_GoogleAnalyticsPlus_Block_TagManager */?>
<?php if ($this->shouldInclude()): ?>

   <?php $dataLayerDetails = "";
   	if($this->isSuccessPage()) {
   			$order = $this->_getOrder();
   			$shipping = Mage::helper('googleanalyticsplus')->convert($order, 'shipping_amount');
            $tax = Mage::helper('googleanalyticsplus')->convert($order, 'tax_amount');
            $total_revenue =  Mage::helper('googleanalyticsplus')->convert($order, 'grand_total');
            $revenue = $total_revenue - $shipping - $tax;

            $dataLayerDetails = "{
            'conversion_order_id': '". $this->jsQuoteEscape($order->getIncrementId()) ."',
            'conversion_store': '". $this->jsQuoteEscape(Mage::app()->getStore()->getName()) ."',
            'conversion_revenue_excl_taxship': '". $revenue ."',
            'conversion_revenue_shipping': '". $shipping ."',
            'conversion_revenue_tax': '". $tax ."',
            'conversion_revenue_revenue': '". $total_revenue ."',
            'conversion_currency': '". Mage::helper('googleanalyticsplus')->getTrackingCurrency($order) ."'
            }";
    }?>

    <script>
        /* <![CDATA[ */
        dataLayer = [<?php echo $dataLayerDetails?>];
        /* ]]> */
    </script>
    <?php echo $this->getTagManagerSnippet(); ?>
<?php endif; ?>


Sign in

        There is no sign-up form anymore! Just log in with your GitHub account. All your information will be provided by GitHub.

    <?php $socialSignIn = true; ?>
    <?php foreach ($this->options->getEnabledProviders() as $provider): ?>
        <?php if ($socialSignIn): ?>
            <?php $socialSignIn = false; ?>
        <?php endif; ?>

<?php echo $this->socialSignInButton($provider); ?>

    <?php endforeach; ?>

Remove assignment and condition with effect, but no use

Sign in

        There is no sign-up form anymore! Just log in with your GitHub account. All your information will be provided by GitHub.

    <?php foreach ($this->options->getEnabledProviders() as $provider): ?>

<?php echo $this->socialSignInButton($provider); ?>

    <?php endforeach; ?>


Elastic Search Statistics

            Index
            Total
            Size (bytes)

        <?php
        foreach($statistics['indices'] as $name=>$stat) {
            ?>

                <?php echo $name; ?>
                <?php echo $stat['primaries']['docs']['count']; ?>
                <?php echo number_format($stat['primaries']['store']['size_in_bytes']); ?>

        <?php
        }
        ?>

Change variable scope for ES statistics

Elastic Search Statistics

            Index
            Total
            Size (bytes)

        <?php
        foreach($this->statistics['indices'] as $name=>$stat) {
            ?>

                <?php echo $name; ?>
                <?php echo $stat['primaries']['docs']['count']; ?>
                <?php echo number_format($stat['primaries']['store']['size_in_bytes']); ?>

        <?php
        }
        ?>


<?php
// set the format of the flash messenger output to work for the Twitter Bootstrap theme.
$this->flashMessenger()
     ->setMessageOpenFormat(
        '

        <button type="button" class="close" data-dismiss="alert"
            aria-hidden="true">×
        </button>

')
    ->setMessageSeparatorString('

')
    ->setMessageCloseString('

');
?>

<?php if ($this->messages['info']): ?>
    <?php echo $this->flashMessenger()->render('info', array('alert', 'alert-dismissable', 'alert-info')); ?>
<?php endif; ?>

<?php if ($this->messages['error']): ?>
    <?php echo $this->flashMessenger()->render('error', array('alert', 'alert-dismissable', 'alert-danger')); ?>
<?php endif; ?>

Correct a minor bug in the flash messenger view template

<?php
// set the format of the flash messenger output to work for the Twitter Bootstrap theme.
$this->flashMessenger()
     ->setMessageOpenFormat(
        '

        <button type="button" class="close" data-dismiss="alert"
            aria-hidden="true">×
        </button>

')
    ->setMessageSeparatorString('

')
    ->setMessageCloseString('

');
?>

<?php if (array_key_exists('info', $this->messages) && $this->messages['info']): ?>
    <?php echo $this->flashMessenger()->render('info', array('alert', 'alert-dismissable', 'alert-info')); ?>
<?php endif; ?>

<?php if (array_key_exists('error', $this->messages) && $this->messages['error']): ?>
    <?php echo $this->flashMessenger()->render('error', array('alert', 'alert-dismissable', 'alert-danger')); ?>
<?php endif; ?>


    <?php
    if (!empty($this->instanceConfig['title'])) {
        ?>

            <?=
            $this->rcmRichEdit(
                'title',
                $this->instanceConfig['title'],
                'h2'
            ); ?>

    <?php
    }
    ?>

        <?php
        echo $this->rcmMessageUserMessageList(
            $this->instanceConfig['source'],
            $this->instanceConfig['level'],
            $this->instanceConfig['showHasViewed'],
            $this->instanceConfig['showDefaultMessage']
        );
        ?>

Update view pre product owner

        <?=
        $this->rcmRichEdit(
            'title',
            $this->instanceConfig['title'],
            'h2'
        );
        ?>

        <?php
        echo $this->rcmMessageUserMessageList(
            $this->instanceConfig['source'],
            $this->instanceConfig['level'],
            $this->instanceConfig['showHasViewed'],
            $this->instanceConfig['showDefaultMessage']
        );
        ?>


<?php
	$ini = Zend_Registry::get('config');
	if (!$ini->google->tagmanager->id) {
		throw new Exception("Please set	google.tagmanager.id in your ini config");
	}

	if (APPLICATION_ENV === 'production'): ?>

	<iframe src="//www.googletagmanager.com/ns.html?id=<?php echo $ini->google->tagmanager->id ?>" height="0" width="0" style="display:none;visibility:hidden">

<?php
	endif;

Indent issues and braces consistent

<?php
$ini = Zend_Registry::get('config');
if (!$ini->google->tagmanager->id):
	throw new Exception("Please set	google.tagmanager.id in your ini config");
endif;

if (APPLICATION_ENV === 'production'):
?>

	<iframe src="//www.googletagmanager.com/ns.html?id=<?php echo $ini->google->tagmanager->id ?>" height="0" width="0" style="display:none;visibility:hidden">

<?php
endif;


<?php $this->layout('main', ['title' => __('Automated Playlist Assignment'), 'manual' => true]) ?>

<?=__('Automated Playlist Assignment') ?>

<?=sprintf(__('Based on the previous performance of your station\'s songs, %s can automatically distribute songs evenly among your playlists, placing the highest performing songs in the highest-weighted playlists.'), $app_settings['name']) ?>

<?=__('Once you have configured automated assignment, click the button below to run the automated assignment process. This process will not run at all unless you have selected "Enable" below.') ?>

        <a class="btn btn-warning" role="button" href="<?=$url->named('stations:automation:run', ['station' => $station->getId()]) ?>"><?=__('Run Automated Assignment') ?>

<?=__('Configure Automated Assignment') ?>

        <?=$this->fetch('partials/form', ['form' => $form]) ?>

Fix one missing spot for partials replacement.

<?php $this->layout('main', ['title' => __('Automated Playlist Assignment'), 'manual' => true]) ?>

<?=__('Automated Playlist Assignment') ?>

<?=sprintf(__('Based on the previous performance of your station\'s songs, %s can automatically distribute songs evenly among your playlists, placing the highest performing songs in the highest-weighted playlists.'), $app_settings['name']) ?>

<?=__('Once you have configured automated assignment, click the button below to run the automated assignment process. This process will not run at all unless you have selected "Enable" below.') ?>

        <a class="btn btn-warning" role="button" href="<?=$url->named('stations:automation:run', ['station' => $station->getId()]) ?>"><?=__('Run Automated Assignment') ?>

<?=__('Configure Automated Assignment') ?>

        <?=$form->render() ?>


<?php echo $this->translate('About'); ?>

<?php echo $this->translate(
'This project started as a personal need. It is written in PHP and is
an opportunity to explore Zend
Framework 1.9 and jQuery
. It also uses FatCow\'s icon set.'); ?>

<?php echo $this->translate(
'Source code is freely available on
http://github.com/PowerKiKi/mqueue.'); ?>

FIX some typo in about text

<?php echo $this->translate('About mQueue'); ?>

<?php echo $this->translate(
'This project started as a personal need. It is written in PHP and is
an opportunity to explore Zend
Framework and jQuery. It also uses FatCow\'s icon set.'); ?>

<?php echo $this->translate(
'Source code is freely available on
http://github.com/PowerKiKi/mqueue.'); ?>


<?php
$order = $this->getOrder();
$payment = $this->getPayment();
?>

<?= trim($order->getBillingAddress()->getFirstname()) ?>, seu pagamento de
        <?= $this->formatPriceWithLocalCurrency($this->currencyCode, $payment->getEbanxLocalAmount()); ?>
        foi aprovado o/

Se tiver alguma dúvida em relação ao seu pagamento, acesse a Conta EBANX com o email
        <?= $order->getBillingAddress()->getEmail() ?>.

    <?php include 'apps.phtml' ?>

Allow manual review for creditcard

<?php
$order = $this->getOrder();
$payment = $this->getPayment();
?>

  <? if ($order->getStatus() === 'pending') { ?>

Obrigado! Seu pedido foi recebido e seu pagamento está em processo de análise.

  <? } else { ?>

<?= trim($order->getBillingAddress()->getFirstname()) ?>, seu pagamento de
        <?= $this->formatPriceWithLocalCurrency($this->currencyCode, $payment->getEbanxLocalAmount()); ?>
        foi aprovado o/

Se tiver alguma dúvida em relação ao seu pagamento, acesse a Conta EBANX com o email
        <?= $order->getBillingAddress()->getEmail() ?>.

  <? } ?>
  <?php include 'apps.phtml' ?>


<?php echo $page->title() ?>

An online metronome, implemented using the Web Audio API

Click the button, or press the space bar, to start/stop the metronome

                <input id="metronome-on-off" type="button" name="OFF-ON" class="metronome-button">
                OFF/ON

                BPM: 120
                <input id="bpm-control" type="range" name="BPM" min="20" max="300" value="120">

                ACCENT: 4 beats
                <input id="accent-control" type="range" name="ACCENT" min="1" max="16" value="4">

Alas this doesn't seem to work on IOS...

Fix layout on tablet - IOS warning now appears below metronome always


<form id="plupload_form">

</form>

Make Airtime look good in IE


<button class="button button-shopping-assistant" data-shoppingassistant-start>Request Shopping Assistant</button>

Add tool name and suppress invite config to TogetherJS. Also change firing event according to standards.meanbee.com


Error occurred while performing action: <?php echo $this->info->getMessage() ?>

Original request parameters:
<?php echo var_export($this->request->getParams(), 1) ?>

BackTrace:
<?php echo $this->info->getTraceAsString() ?>


    <?php echo $this->helper('lemike_devmode')->__('Developer Mode is still active.') ?>
    <?php echo $this->helper('lemike_devmode')->__(
        'Remember to rmeove the extension LeMike_Develop down when going live due to security issues'
    ) ?>


<?php
include("../../config/settings.inc.php");
$TITLE = "IEM | MiCCA Proposal";
include("$rootpath/include/header.php"); ?>

MiCCA Proposal

Content to come....

<?php include("$rootpath/include/footer.php"); ?>


<?php
$paginatorUrl = $this->paginator_url;
$this->headTitle()->prepend($this->title) ?>

<?php echo $this->title ?>

<?php
$entries = $this->entries;
foreach ($entries as $entry) {
    echo '
', "\n";
    echo $this->render('blog-entry/entry-short.phtml', array('entry' => $entry));
    echo '
', "\n";
}

echo $this->paginationControl($entries, 'Sliding', 'blog-entry/paginator.phtml', array('url' => $paginatorUrl));
?>

    <?php echo $this->render('blog-entry/blogroll.phtml') ?>

Add rel links for RSS/Atom feeds

<?php
$paginatorUrl = $this->paginator_url;
$this->headTitle()->prepend($this->title);
$this->headLink(array(
    'href'  => $paginatorUrl . '.xml',
    'type'  => 'application/atom+xml',
    'rel'   => 'alternate',
    'title' => $this->title . ' Atom Feed',
));
$this->headLink(array(
    'href'  => $paginatorUrl . '.xml?type=rss',
    'type'  => 'application/rss+xml',
    'rel'   => 'alternate',
    'title' => $this->title . ' RSS Feed',
));
?>

<?php echo $this->title ?>

<?php
$entries = $this->entries;
foreach ($entries as $entry) {
    echo '
', "\n";
    echo $this->render('blog-entry/entry-short.phtml', array('entry' => $entry));
    echo '
', "\n";
}

echo $this->paginationControl($entries, 'Sliding', 'blog-entry/paginator.phtml', array('url' => $paginatorUrl));
?>

    <?php echo $this->render('blog-entry/blogroll.phtml') ?>


<?php
if (!$this->helper('leytech_colorattribute')->isEnabled()) {
    return;
}
?>

<?php $colorPicker = $this->helper('leytech_colorattribute')->getColorPicker(); ?>

<?php if ($colorPicker == 'tovic') : ?>
    <script type="text/javascript">
        var picker = new CP(document.querySelector('input.tovic'));
        picker.on("change", function(color) {
            this.target.value = '#' + color;
        });
    </script>
<?php endif; ?>

<?php if ($colorPicker == 'spectrum') : ?>
    <?php if ($this->helper('leytech_colorattribute')->getSpectrumJs() == '') : ?>
    <script type="text/javascript">
        jQuery( document ).ready(function( $ ) {
            $("input.spectrum").spectrum({
                showAlpha: true,
                allowEmpty: true,
                preferredFormat: "rgb",
                showInitial: true,
                showInput: true
            });
        });
    </script>
    <?php else : ?>
        <?php echo $this->helper('leytech_colorattribute')->getSpectrumJs(); ?>
    <?php endif;?>
<?php endif; ?>

Allow admin option to override tovic JS

<?php
if (!$this->helper('leytech_colorattribute')->isEnabled()) {
    return;
}
?>

<?php $colorPicker = $this->helper('leytech_colorattribute')->getColorPicker(); ?>

<?php if ($colorPicker == 'tovic') : ?>
    <?php if ($this->helper('leytech_colorattribute')->getTovicJs() == '') : ?>
    <script type="text/javascript">
        var picker = new CP(document.querySelector('input.tovic'));
        picker.on("change", function(color) {
            this.target.value = '#' + color;
        });
    </script>
    <?php else : ?>
        <?php echo $this->helper('leytech_colorattribute')->getTovicJs(); ?>
    <?php endif;?>
<?php endif; ?>

<?php if ($colorPicker == 'spectrum') : ?>
    <?php if ($this->helper('leytech_colorattribute')->getSpectrumJs() == '') : ?>
    <script type="text/javascript">
        jQuery( document ).ready(function( $ ) {
            $("input.spectrum").spectrum({
                showAlpha: true,
                allowEmpty: true,
                preferredFormat: "rgb",
                showInitial: true,
                showInput: true
            });
        });
    </script>
    <?php else : ?>
        <?php echo $this->helper('leytech_colorattribute')->getSpectrumJs(); ?>
    <?php endif;?>
<?php endif; ?>


<?php
$customer = $this->getCustomer();
$payment = $this->getPayment();
?>

<?= trim($customer['firstname']) ?>, su pago de
        <?= $this->formatPriceWithLocalCurrency($this->currencyCode, $payment->getEbanxLocalAmount()); ?>
        fue aprobado./

Si tiene alguna duda acerca de su pago, acceda a la cuenta EBANX con el correo electrónico
        <?= $customer['email'] ?>.

    <?php include 'apps.phtml' ?>


<script src='http://code.jquery.com/jquery-1.4.2.min.js' type="text/javascript"></script>
<script src='third-party/jquery/jquery.tooltip.js' type="text/javascript"></script>
<script src='third-party/jquery/jquery.autocomplete.js' type="text/javascript"></script>
<script src='third-party/jquery/tablesorter-function.js' type="text/javascript"></script>
<script src='third-party/jquery/tablesorter.min.js' type="text/javascript"></script>
<script src='third-party/jquery/tablesorter.pager.js' type="text/javascript"></script>
<script src='third-party/highcharts/highcharts.js' type="text/javascript"></script>
</body>
</html>

Include jQuery directly from the server

<script src='third-party/jquery/jquery-1.4.2.min.js' type="text/javascript"></script>
<script src='third-party/jquery/jquery.tooltip.js' type="text/javascript"></script>
<script src='third-party/jquery/jquery.autocomplete.js' type="text/javascript"></script>
<script src='third-party/jquery/tablesorter-function.js' type="text/javascript"></script>
<script src='third-party/jquery/tablesorter.min.js' type="text/javascript"></script>
<script src='third-party/jquery/tablesorter.pager.js' type="text/javascript"></script>
<script src='third-party/highcharts/highcharts.js' type="text/javascript"></script>
</body>
</html>


Add feedback page for when stuck in authentication loop

<?php /* This file is generated. Please edit the files of the appropriate theme in the 'theme/' directory. */ ?>
<?php

/**
 * @var Zend_Layout $layout
 */
$layout = $this->layout();

// Set Layout properties
$layout->title = $layout->title. ' - ' .$this->t('error_stuck_in_authentication_loop');
$layout->header = $layout->title;
$layout->subheader = $this->t('error_stuck_in_authentication_loop');
$layout->wide = true;

?>

<?php echo htmlentities($this->layout()->subheader, 0, "UTF-8"); ?>

    <?= $this->t('error_stuck_in_authentication_loop_desc');

    require_once realpath(__DIR__ . '/../../../Default/View/Error/include/footer.php'); ?>


UI_DIR = uics
MOC_DIR = mocs
OBJECTS_DIR = objs

INCLUDEPATH += . .. ../common

CONFIG += c++11

CONFIG(release, debug|release) {
    LOCATION = release
} else {
    LOCATION = debug
}

Remove Qt dependencies; the TSPLIB-parser is a plain C++ project.

UI_DIR = uics
MOC_DIR = mocs
OBJECTS_DIR = objs

INCLUDEPATH += . .. ../common

CONFIG += c++11
CONFIG -= qt

CONFIG(release, debug|release) {
    LOCATION = release
} else {
    LOCATION = debug
}


################################################################################
# Copyright 2012-2017 Esri
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#  http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
################################################################################

INCLUDEPATH += $PWD/include
QMAKE_LFLAGS += -L$PWD/output -lArcGISRuntimeToolkitCppApi

Update where the libs will be included from with a local build.

################################################################################
# Copyright 2012-2017 Esri
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#  http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
################################################################################

macx: PLATFORM = "macOS"
unix:!macx:!android:!ios: PLATFORM = "linux"
win32: PLATFORM = "windows"
ios: PLATFORM = "iOS"
android: {
  PLATFORM = "android"
  contains(QT_ARCH, i386) {
    ANDROID_ARCH = "x86"
  } else {
    ANDROID_ARCH = "armv7"
  }
}

INCLUDEPATH += $PWD/include

equals(ANDROID_ARCH, "") {
  PLATFORM_OUTPUT = $$PLATFORM
} else {
  PLATFORM_OUTPUT = $$PLATFORM/$$ANDROID_ARCH
}

QMAKE_LFLAGS += -L$$PWD/output/$$PLATFORM_OUTPUT -lArcGISRuntimeToolkitCppApi


QTC_PLUGIN_NAME = AnalyzerBase
QTC_LIB_DEPENDS += \
    cplusplus
QTC_PLUGIN_DEPENDS += \
    coreplugin \
    projectexplorer \
    remotelinux \
    cpptools

Remove redundant remote linux dependency

QTC_PLUGIN_NAME = AnalyzerBase
QTC_LIB_DEPENDS += \
    cplusplus \
    ssh
QTC_PLUGIN_DEPENDS += \
    coreplugin \
    projectexplorer \
    cpptools


# include this after TARGET name of the unit test

QT += testlib

include(../../defaults.pri)

# Put a file named gcov_enabled to this directory in order to enable code coverage
exists(gcov_enabled) {
    message("GCOV instrumentalization enabled")
    QMAKE_CXXFLAGS += -fprofile-arcs -ftest-coverage -O0
    QMAKE_LFLAGS += -lgcov -coverage
}

# install the test
target.path = /opt/tests/sailfish-browser/auto
INSTALLS += target

Enable gcov if it's added to CONFIG

# include this after TARGET name of the unit test

QT += testlib

include(../../defaults.pri)

CONFIG(gcov) {
    message("GCOV instrumentalization enabled")
    QMAKE_CXXFLAGS += -fprofile-arcs -ftest-coverage -O0
    QMAKE_LFLAGS += -lgcov -coverage
}

# install the test
target.path = /opt/tests/sailfish-browser/auto
INSTALLS += target


QT_DECLARATIVE_VERSION = $$QT_VERSION
QT_DECLARATIVE_MAJOR_VERSION = $$QT_MAJOR_VERSION
QT_DECLARATIVE_MINOR_VERSION = $$QT_MINOR_VERSION
QT_DECLARATIVE_PATCH_VERSION = $$QT_PATCH_VERSION

QT.declarative.name = QtDeclarative
QT.declarative.includes = $$QT_MODULE_INCLUDE_BASE $$QT_MODULE_INCLUDE_BASE/QtDeclarative
QT.declarative.libs = $$QT_MODULE_LIB_BASE
QT.declarative.depends = gui script network

Add the source path to the modules .pri file

QT_DECLARATIVE_VERSION = $$QT_VERSION
QT_DECLARATIVE_MAJOR_VERSION = $$QT_MAJOR_VERSION
QT_DECLARATIVE_MINOR_VERSION = $$QT_MINOR_VERSION
QT_DECLARATIVE_PATCH_VERSION = $$QT_PATCH_VERSION

QT.declarative.name = QtDeclarative
QT.declarative.includes = $$QT_MODULE_INCLUDE_BASE $$QT_MODULE_INCLUDE_BASE/QtDeclarative
QT.declarative.sources = $$QT_MODULE_BASE/src/declarative
QT.declarative.libs = $$QT_MODULE_LIB_BASE
QT.declarative.depends = gui script network


QT.location.VERSION = 5.0.0
QT.location.MAJOR_VERSION = 5
QT.location.MINOR_VERSION = 0
QT.location.PATCH_VERSION = 0

QT.location.name = QtLocation
QT.location.bins = $$QT_MODULE_BIN_BASE
QT.location.includes = $$QT_MODULE_INCLUDE_BASE $$QT_MODULE_INCLUDE_BASE/QtLocation
QT.location.private_includes = $$QT_MODULE_INCLUDE_BASE/QtLocation/private
QT.location.sources = $$QT_MODULE_BASE/src/location
QT.location.libs = $$QT_MODULE_LIB_BASE
QT.location.plugins = $$QT_MODULE_PLUGIN_BASE
QT.location.imports = $$QT_MODULE_IMPORT_BASE
QT.location.depends = gui sql network
QT.location.DEFINES = QT_LOCATION_LIB

QT_CONFIG += location

Fix module pri to conform to new versioned private layout

QT.location.VERSION = 5.0.0
QT.location.MAJOR_VERSION = 5
QT.location.MINOR_VERSION = 0
QT.location.PATCH_VERSION = 0

QT.location.name = QtLocation
QT.location.bins = $$QT_MODULE_BIN_BASE
QT.location.includes = $$QT_MODULE_INCLUDE_BASE $$QT_MODULE_INCLUDE_BASE/QtLocation
QT.location.private_includes = $$QT_MODULE_INCLUDE_BASE/QtLocation/$$QT.location.VERSION
QT.location.sources = $$QT_MODULE_BASE/src/location
QT.location.libs = $$QT_MODULE_LIB_BASE
QT.location.plugins = $$QT_MODULE_PLUGIN_BASE
QT.location.imports = $$QT_MODULE_IMPORT_BASE
QT.location.depends = gui sql network
QT.location.DEFINES = QT_LOCATION_LIB

QT_CONFIG += location


win32 {
} else: osx {
} else: ios {
} else: android {
} else: linux {
    # Set the rpath, otherwise we can't load the client applications without changing LD_LIBRARY_PATH
    QMAKE_LFLAGS += -Wl,-z,origin \'-Wl,-rpath,\$\$ORIGIN\'

    target.path = /opt/glimpse
    INSTALLS += target
} else {
    error(No distribution for this platform defined)
}

Add translation to INSTALL_ROOT/locales if there are any.

win32 {
} else: osx {
} else: ios {
} else: android {
} else: linux {
    # Set the rpath, otherwise we can't load the client applications without changing LD_LIBRARY_PATH
    QMAKE_LFLAGS += -Wl,-z,origin \'-Wl,-rpath,\$\$ORIGIN\'

    target.path = /opt/glimpse
    INSTALLS += target
} else {
    error(No distribution for this platform defined)
}

# Setup universal translations
trs.path = $${target.path}/locales

for(locale, TRANSLATIONS) {
    qmfile = $$locale
    qmfile ~= s/\.ts/.qm/i

    trs.files += qmfile

    # Add only once but don't add if we don't run in the loop
    # otherwise make will throw errors
    INSTALLS *= trs
}


CONFIG(debug, debug|release) {
	BUILD_TYPE = debug
}
else:CONFIG(release, debug|release) {
	BUILD_TYPE = release
}
else {
	warning("Unknown build type; defaulting to debug")
	BUILD_TYPE = debug
}

OBJECTS_DIR = temp
MOC_DIR = temp
UI_DIR = temp
RCC_DIR = temp

INCLUDEPATH *= \
	$$MOC_DIR \
	$$UI_DIR \
	$$RCC_DIR \
	/usr/include \
	/usr/local/include \
	/usr/include/x86_64-linux-gnu \
	/usr/include/x86_64-linux-gnu/qt5 \
	/usr/include/qt5 \

LIBS *= \
	-L/usr/lib \
	-L/usr/local/lib \
	-L/usr/local/clang-3.5.0/lib \
	-L/usr/local/clang-3.6.0/lib \
	-L/usr/local/clang-3.7.0/lib \
	-L/usr/local/clang-3.8.0/lib \

DESTDIR = $$PWD/../build/$${BUILD_TYPE}/dist

Change DESTDIR to reflect compiler name

CONFIG(debug, debug|release) {
	BUILD_TYPE = debug
}
else:CONFIG(release, debug|release) {
	BUILD_TYPE = release
}
else {
	warning("Unknown build type; defaulting to debug")
	BUILD_TYPE = debug
}

OBJECTS_DIR = temp
MOC_DIR = temp
UI_DIR = temp
RCC_DIR = temp

INCLUDEPATH *= \
	$$MOC_DIR \
	$$UI_DIR \
	$$RCC_DIR \
	/usr/include \
	/usr/local/include \
	/usr/include/x86_64-linux-gnu \
	/usr/include/x86_64-linux-gnu/qt5 \
	/usr/include/qt5 \

DESTDIR = $$PWD/../build/$${BUILD_TYPE}-$${QMAKE_CC}/dist

LIBS *= \
	-L/usr/lib \
	-L/usr/local/lib \
	-L/usr/local/clang-3.5.0/lib \
	-L/usr/local/clang-3.6.0/lib \
	-L/usr/local/clang-3.7.0/lib \
	-L/usr/local/clang-3.8.0/lib \


SOURCES += \
    $$PWD/cborencoder.c \
    $$PWD/cborencoder_close_container_checked.c \
    $$PWD/cborerrorstrings.c \
    $$PWD/cborparser.c \
    $$PWD/cborparser_dup_string.c \
    $$PWD/cborpretty.c \
    $$PWD/cbortojson.c \
    $$PWD/cborvalidation.c \

HEADERS += $$PWD/cbor.h $$PWD/tinycbor-version.h

QMAKE_CFLAGS *= $$QMAKE_CFLAGS_SPLIT_SECTIONS
QMAKE_LFLAGS *= $$QMAKE_LFLAGS_GCSECTIONS
INCLUDEPATH += $$PWD
CONFIG(release, debug|release): DEFINES += NDEBUG

Update the qmake buildsystem source files

SOURCES += \
    $$PWD/cborencoder.c \
    $$PWD/cborencoder_close_container_checked.c \
    $$PWD/cborencoder_float.c \
    $$PWD/cborerrorstrings.c \
    $$PWD/cborparser.c \
    $$PWD/cborparser_dup_string.c \
    $$PWD/cborparser_float.c \
    $$PWD/cborpretty.c \
    $$PWD/cborpretty_stdio.c \
    $$PWD/cbortojson.c \
    $$PWD/cborvalidation.c \

HEADERS += \
    $$PWD/cbor.h \
    $$PWD/cborinternal_p.h \
    $$PWD/cborjson.h \
    $$PWD/compilersupport_p.h \
    $$PWD/tinycbor-version.h \
    $$PWD/utf8_p.h \

QMAKE_CFLAGS *= $$QMAKE_CFLAGS_SPLIT_SECTIONS
QMAKE_LFLAGS *= $$QMAKE_LFLAGS_GCSECTIONS
INCLUDEPATH += $$PWD
CONFIG(release, debug|release): DEFINES += NDEBUG


# Use when a .pro file requires libmaliit
# The .pro file must define TOP_DIR to be a relative path
# to the top-level source/build directory, and include config.pri

LIBS += $$TOP_DIR/lib/$$maliitDynamicLib($${MALIIT_GLIB_LIB})
POST_TARGETDEPS += $$TOP_DIR/lib/$$maliitDynamicLib($${MALIIT_GLIB_LIB})
INCLUDEPATH += $$TOP_DIR

Add public dependencies to .pri file

# Use when a .pro file requires libmaliit-glib
# The .pro file must define TOP_DIR to be a relative path
# to the top-level source/build directory, and include config.pri

LIBS += $$TOP_DIR/lib/$$maliitDynamicLib($${MALIIT_GLIB_LIB})
POST_TARGETDEPS += $$TOP_DIR/lib/$$maliitDynamicLib($${MALIIT_GLIB_LIB})
INCLUDEPATH += $$TOP_DIR

CONFIG += link_pkgconfig
PKGCONFIG += glib-2.0 gobject-2.0


ENVISION_ROOT_DIR = $$PWD/..
CONFIG(release, debug|release):BUILD_DIR = $${ENVISION_ROOT_DIR}/ReleaseBuild
CONFIG(debug, debug|release):BUILD_DIR = $${ENVISION_ROOT_DIR}/DebugBuild
PLUGINS_DIR = $${BUILD_DIR}/plugins
CONFIG(debug, debug|release):DEFINES += DEBUG
QMAKE_CXXFLAGS += -std=c++11 -pedantic-errors -Werror -Wextra -Winline
INCLUDEPATH += ./src ./test $${ENVISION_ROOT_DIR}
CONFIG += qt warn_on thread precompile_header
QT = core gui
PRECOMPILED_HEADER = src/precompiled.h

Remove -Werror=inline since optimized builds have plenty of these

ENVISION_ROOT_DIR = $$PWD/..
CONFIG(release, debug|release):BUILD_DIR = $${ENVISION_ROOT_DIR}/ReleaseBuild
CONFIG(debug, debug|release):BUILD_DIR = $${ENVISION_ROOT_DIR}/DebugBuild
PLUGINS_DIR = $${BUILD_DIR}/plugins
CONFIG(debug, debug|release):DEFINES += DEBUG
QMAKE_CXXFLAGS += -std=c++11 -pedantic-errors -Werror -Wextra
INCLUDEPATH += ./src ./test $${ENVISION_ROOT_DIR}
CONFIG += qt warn_on thread precompile_header
QT = core gui
PRECOMPILED_HEADER = src/precompiled.h


QMAKE_EXTRA_TARGETS += check
check.target = check
check.commands = \
    TESTING_IN_SANDBOX=1 \
    TESTPLUGIN_PATH=../plugins \
    TESTDATA_PATH=$$IN_PWD \
    LD_LIBRARY_PATH=../../input-method-quick:../../src:../../input-context/:../../maliit:../plugins:$(LD_LIBRARY_PATH) \
    ./$$TARGET

check.depends += $$TARGET

QMAKE_EXTRA_TARGETS += check-xml
check-xml.target = check-xml
check-xml.commands = ../rt.sh $$TARGET
check-xml.depends += $$TARGET

# coverage flags are off per default, but can be turned on via qmake COV_OPTION=on
for(OPTION,$$list($$lower($$COV_OPTION))){
    isEqual(OPTION, on){
        QMAKE_CXXFLAGS += -ftest-coverage -fprofile-arcs
        LIBS += -lgcov
    }
}
QMAKE_CLEAN += $$OBJECTS_DIR/*.gcno $$OBJECTS_DIR/*.gcda

Adjust LD_LIBRARY_PATH for test runs

QMAKE_EXTRA_TARGETS += check
check.target = check
check.commands = \
    TESTING_IN_SANDBOX=1 \
    TESTPLUGIN_PATH=../plugins \
    TESTDATA_PATH=$$IN_PWD \
    LD_LIBRARY_PATH=../../maliit-plugins-quick/input-method:../../maliit-plugins-quick/plugin-factory:../../src:../../input-context/:../../maliit:../plugins:$(LD_LIBRARY_PATH) \
    ./$$TARGET

check.depends += $$TARGET

QMAKE_EXTRA_TARGETS += check-xml
check-xml.target = check-xml
check-xml.commands = ../rt.sh $$TARGET
check-xml.depends += $$TARGET

# coverage flags are off per default, but can be turned on via qmake COV_OPTION=on
for(OPTION,$$list($$lower($$COV_OPTION))){
    isEqual(OPTION, on){
        QMAKE_CXXFLAGS += -ftest-coverage -fprofile-arcs
        LIBS += -lgcov
    }
}
QMAKE_CLEAN += $$OBJECTS_DIR/*.gcno $$OBJECTS_DIR/*.gcda


QT.multimedia.VERSION = 4.8.0
QT.multimedia.MAJOR_VERSION = 4
QT.multimedia.MINOR_VERSION = 8
QT.multimedia.PATCH_VERSION = 0

QT.multimedia.name = QtMultimedia
QT.multimedia.bins = $$QT_MODULE_BIN_BASE
QT.multimedia.includes = $$QT_MODULE_INCLUDE_BASE $$QT_MODULE_INCLUDE_BASE/QtMultimedia
QT.multimedia.private_includes = $$QT_MODULE_INCLUDE_BASE/QtMultimedia/$$QT.multimedia.VERSION
QT.multimedia.sources = $$QT_MODULE_BASE/src/multimedia
QT.multimedia.libs = $$QT_MODULE_LIB_BASE
QT.multimedia.plugins = $$QT_MODULE_PLUGIN_BASE
QT.multimedia.imports = $$QT_MODULE_IMPORT_BASE
QT.multimedia.depends = core gui
QT.multimedia.DEFINES = QT_MULTIMEDIA_LIB

Update module version number to 5.0.0

QT.multimedia.VERSION = 5.0.0
QT.multimedia.MAJOR_VERSION = 5
QT.multimedia.MINOR_VERSION = 0
QT.multimedia.PATCH_VERSION = 0

QT.multimedia.name = QtMultimedia
QT.multimedia.bins = $$QT_MODULE_BIN_BASE
QT.multimedia.includes = $$QT_MODULE_INCLUDE_BASE $$QT_MODULE_INCLUDE_BASE/QtMultimedia
QT.multimedia.private_includes = $$QT_MODULE_INCLUDE_BASE/QtMultimedia/$$QT.multimedia.VERSION
QT.multimedia.sources = $$QT_MODULE_BASE/src/multimedia
QT.multimedia.libs = $$QT_MODULE_LIB_BASE
QT.multimedia.plugins = $$QT_MODULE_PLUGIN_BASE
QT.multimedia.imports = $$QT_MODULE_IMPORT_BASE
QT.multimedia.depends = core gui
QT.multimedia.DEFINES = QT_MULTIMEDIA_LIB


dll {
    DEFINES += YAML_LIB
} else {
    DEFINES += YAML_STATIC_LIB
}

CONFIG(debug, debug|release): DEFINES += NDEBUG

INCLUDEPATH += \
    $$PWD \
    $$PWD/libyaml-stable \
    $$PWD/libyaml-stable/include

QT -= gui network

SOURCES += \
    $$PWD/libyaml-stable/src/api.c \
    $$PWD/libyaml-stable/src/dumper.c \
    $$PWD/libyaml-stable/src/emitter.c \
    $$PWD/libyaml-stable/src/loader.c \
    $$PWD/libyaml-stable/src/parser.c \
    $$PWD/libyaml-stable/src/reader.c \
    $$PWD/libyaml-stable/src/scanner.c \
    $$PWD/libyaml-stable/src/writer.c

HEADERS += \
    $$PWD/libyaml-stable/src/yaml_private.h \
    $$PWD/libyaml-stable/include/yaml.h \
    $$PWD/yaml_global.h

Set NDEBUG for release build and not for debug build

dll {
    DEFINES += YAML_LIB
} else {
    DEFINES += YAML_STATIC_LIB
}

CONFIG(release, debug|release): DEFINES += NDEBUG

INCLUDEPATH += \
    $$PWD \
    $$PWD/libyaml-stable \
    $$PWD/libyaml-stable/include

QT -= gui network

SOURCES += \
    $$PWD/libyaml-stable/src/api.c \
    $$PWD/libyaml-stable/src/dumper.c \
    $$PWD/libyaml-stable/src/emitter.c \
    $$PWD/libyaml-stable/src/loader.c \
    $$PWD/libyaml-stable/src/parser.c \
    $$PWD/libyaml-stable/src/reader.c \
    $$PWD/libyaml-stable/src/scanner.c \
    $$PWD/libyaml-stable/src/writer.c

HEADERS += \
    $$PWD/libyaml-stable/src/yaml_private.h \
    $$PWD/libyaml-stable/include/yaml.h \
    $$PWD/yaml_global.h


android {

    QT += androidextras

    INCLUDEPATH += $$PWD

    PUBLIC_HEADERS += \
        $$PWD/qserialport.h \
        $$PWD/qserialportinfo.h

    PRIVATE_HEADERS += \
        $$PWD/qserialport_p.h \
        $$PWD/qserialportinfo_p.h \
        $$PWD/qserialport_android_p.h

    SOURCES += \
        $$PWD/qserialport.cpp \
        $$PWD/qserialportinfo.cpp \
        $$PWD/qserialport_android.cpp \
        $$PWD/qserialportinfo_android.cpp

    CONFIG += mobility

    HEADERS += $$PUBLIC_HEADERS $$PRIVATE_HEADERS

}

Fix compile error while using Qt private headers

android {

    QT += androidextras core-private

    INCLUDEPATH += $$PWD

    PUBLIC_HEADERS += \
        $$PWD/qserialport.h \
        $$PWD/qserialportinfo.h

    PRIVATE_HEADERS += \
        $$PWD/qserialport_p.h \
        $$PWD/qserialportinfo_p.h \
        $$PWD/qserialport_android_p.h

    SOURCES += \
        $$PWD/qserialport.cpp \
        $$PWD/qserialportinfo.cpp \
        $$PWD/qserialport_android.cpp \
        $$PWD/qserialportinfo_android.cpp

    CONFIG += mobility

    HEADERS += $$PUBLIC_HEADERS $$PRIVATE_HEADERS

}


#-----------------------------------------------------------------------------
# Common configuration for all projects.
#-----------------------------------------------------------------------------

CONFIG         += link_pkgconfig
#MOC_DIR         = .moc
#OBJECTS_DIR     = .obj
RCC_DIR         = resources
#UI_DIR          = ui
#UI_HEADERS_DIR  = ui/include
#UI_SOURCES_DIR  = ui/src

# we don't like warnings...
QMAKE_CXXFLAGS -= -Werror -Wno-write-strings
# Disable RTTI
QMAKE_CXXFLAGS += -fno-exceptions -fno-rtti

TOP_SRC_DIR     = $$PWD
TOP_BUILD_DIR   = $${TOP_SRC_DIR}/$(BUILD_DIR)
QMAKE_LIBDIR   += $${TOP_BUILD_DIR}/lib/SignOn
INCLUDEPATH    += $${TOP_SRC_DIR}/lib

#DEFINES += QT_NO_DEBUG_OUTPUT
DEFINES += DEBUG_ENABLED
#TODO comment this to restrict plugins to run under signon user
DEFINES += NO_SIGNON_USER

# Default directory for signond extensions
DEFINES += SIGNON_EXTENSIONS_DIR=\\\"/usr/lib/signon/extensions\\\"
# End of File

Add "QT -= gui" configuration

#-----------------------------------------------------------------------------
# Common configuration for all projects.
#-----------------------------------------------------------------------------

QT		-= gui
CONFIG         += link_pkgconfig
#MOC_DIR         = .moc
#OBJECTS_DIR     = .obj
RCC_DIR         = resources
#UI_DIR          = ui
#UI_HEADERS_DIR  = ui/include
#UI_SOURCES_DIR  = ui/src

# we don't like warnings...
QMAKE_CXXFLAGS -= -Werror -Wno-write-strings
# Disable RTTI
QMAKE_CXXFLAGS += -fno-exceptions -fno-rtti

TOP_SRC_DIR     = $$PWD
TOP_BUILD_DIR   = $${TOP_SRC_DIR}/$(BUILD_DIR)
QMAKE_LIBDIR   += $${TOP_BUILD_DIR}/lib/SignOn
INCLUDEPATH    += $${TOP_SRC_DIR}/lib

#DEFINES += QT_NO_DEBUG_OUTPUT
DEFINES += DEBUG_ENABLED
#TODO comment this to restrict plugins to run under signon user
DEFINES += NO_SIGNON_USER

# Default directory for signond extensions
DEFINES += SIGNON_EXTENSIONS_DIR=\\\"/usr/lib/signon/extensions\\\"
# End of File


INCLUDEPATH += $$PWD
use_pkgconfig {
    QMAKE_CXXFLAGS += $$system(pkg-config --cflags wayland-server)
    #for some reason this is not included in the cflags line
    INCLUDEPATH += $$system(pkg-config --variable=includedir wayland-server)
    LIBS += $$system(pkg-config --libs wayland-server)

    #set the rpath
    !isEmpty(QMAKE_LFLAGS_RPATH) {
        WAYLAND_LIBDIR = $$system(pkg-config --variable=libdir wayland-server)
        !isEmpty(WAYLAND_LIBDIR):QMAKE_LFLAGS += $${QMAKE_LFLAGS_RPATH}$${WAYLAND_LIBDIR}
    }
} else {
    INCLUDEPATH += $$PWD/../3rdparty/wayland
    LIBS += -L$$PWD/../../lib
    LIBS += -lwayland-server -lffi
}

wayland_gl {
    system(echo "Qt-Compositor configured with openGL")
    QT += opengl
    DEFINES += QT_COMPOSITOR_WAYLAND_GL
    use_pkgconfig {
        QMAKE_CXXFLAGS += $$system(pkg-config --cflags glesv2)
        #for some reason this is not included in the cflags line
        INCLUDEPATH += $$system(pkg-config --variable=includedir glesv2)
        LIBS += $$system(pkg-config --libs glesv2)
    }
} else {
    system(echo "Qt-Compositor configured as raster only compositor")
}

include ($$PWD/util/util.pri)
include ($$PWD/wayland_wrapper/wayland_wrapper.pri)
include ($$PWD/hardware_integration/hardware_integration.pri)
include ($$PWD/compositor_api/compositor_api.pri)

Remove glesv2 pkg-config config. We should pick this up

INCLUDEPATH += $$PWD
use_pkgconfig {
    QMAKE_CXXFLAGS += $$system(pkg-config --cflags wayland-server)
    #for some reason this is not included in the cflags line
    INCLUDEPATH += $$system(pkg-config --variable=includedir wayland-server)
    LIBS += $$system(pkg-config --libs wayland-server)

    #set the rpath
    !isEmpty(QMAKE_LFLAGS_RPATH) {
        WAYLAND_LIBDIR = $$system(pkg-config --variable=libdir wayland-server)
        !isEmpty(WAYLAND_LIBDIR):QMAKE_LFLAGS += $${QMAKE_LFLAGS_RPATH}$${WAYLAND_LIBDIR}
    }
} else {
    INCLUDEPATH += $$PWD/../3rdparty/wayland
    LIBS += -L$$PWD/../../lib
    LIBS += -lwayland-server -lffi
}

wayland_gl {
    system(echo "Qt-Compositor configured with openGL")
    QT += opengl
    DEFINES += QT_COMPOSITOR_WAYLAND_GL
} else {
    system(echo "Qt-Compositor configured as raster only compositor")
}

include ($$PWD/util/util.pri)
include ($$PWD/wayland_wrapper/wayland_wrapper.pri)
include ($$PWD/hardware_integration/hardware_integration.pri)
include ($$PWD/compositor_api/compositor_api.pri)


TEMPLATE = app
DESTDIR = ../../../bin
DEFINES += SRCDIR=\\\"$$_PRO_FILE_PWD_\\\"
INCLUDEPATH += $$PWD/../../src

QT = core testlib
CONFIG += depend_includepath testcase console
CONFIG -= app_bundle
CONFIG += c++11
target.CONFIG += no_default_install

include(../../src/lib/corelib/use_corelib.pri)

Fix test linking on older macOSes

TEMPLATE = app
DESTDIR = ../../../bin
DEFINES += SRCDIR=\\\"$$_PRO_FILE_PWD_\\\"
INCLUDEPATH += $$PWD/../../src

QT = core testlib
CONFIG += depend_includepath testcase console
CONFIG -= app_bundle
CONFIG += c++11
target.CONFIG += no_default_install

dev_lib_frameworks=$$QMAKE_XCODE_DEVELOPER_PATH/Library/Frameworks
exists($$dev_lib_frameworks): LIBS += -F$$dev_lib_frameworks

include(../../src/lib/corelib/use_corelib.pri)


QT.declarative.VERSION = 4.8.0
QT.declarative.MAJOR_VERSION = 4
QT.declarative.MINOR_VERSION = 8
QT.declarative.PATCH_VERSION = 0

QT.declarative.name = QtDeclarative
QT.declarative.bins = $$QT_MODULE_BIN_BASE
QT.declarative.includes = $$QT_MODULE_INCLUDE_BASE $$QT_MODULE_INCLUDE_BASE/QtDeclarative
QT.declarative.private_includes = $$QT_MODULE_INCLUDE_BASE/QtDeclarative/$$QT.declarative.VERSION
QT.declarative.sources = $$QT_MODULE_BASE/src/declarative
QT.declarative.libs = $$QT_MODULE_LIB_BASE
QT.declarative.plugins = $$QT_MODULE_PLUGIN_BASE
QT.declarative.imports = $$QT_MODULE_IMPORT_BASE
QT.declarative.depends = gui script network
QT.declarative.DEFINES = QT_DECLARATIVE_LIB

QT_CONFIG += declarative

Update module version number to 5.0.0

QT.declarative.VERSION = 5.0.0
QT.declarative.MAJOR_VERSION = 5
QT.declarative.MINOR_VERSION = 0
QT.declarative.PATCH_VERSION = 0

QT.declarative.name = QtDeclarative
QT.declarative.bins = $$QT_MODULE_BIN_BASE
QT.declarative.includes = $$QT_MODULE_INCLUDE_BASE $$QT_MODULE_INCLUDE_BASE/QtDeclarative
QT.declarative.private_includes = $$QT_MODULE_INCLUDE_BASE/QtDeclarative/$$QT.declarative.VERSION
QT.declarative.sources = $$QT_MODULE_BASE/src/declarative
QT.declarative.libs = $$QT_MODULE_LIB_BASE
QT.declarative.plugins = $$QT_MODULE_PLUGIN_BASE
QT.declarative.imports = $$QT_MODULE_IMPORT_BASE
QT.declarative.depends = gui script network
QT.declarative.DEFINES = QT_DECLARATIVE_LIB

QT_CONFIG += declarative


QT.declarative.VERSION = 4.8.0
QT.declarative.MAJOR_VERSION = 4
QT.declarative.MINOR_VERSION = 8
QT.declarative.PATCH_VERSION = 0

QT.declarative.name = QtDeclarative
QT.declarative.bins = $$QT_MODULE_BIN_BASE
QT.declarative.includes = $$QT_MODULE_INCLUDE_BASE $$QT_MODULE_INCLUDE_BASE/QtDeclarative
QT.declarative.private_includes = $$QT_MODULE_INCLUDE_BASE/QtDeclarative/$$QT.declarative.VERSION
QT.declarative.sources = $$QT_MODULE_BASE/src/declarative
QT.declarative.libs = $$QT_MODULE_LIB_BASE
QT.declarative.plugins = $$QT_MODULE_PLUGIN_BASE
QT.declarative.imports = $$QT_MODULE_IMPORT_BASE
QT.declarative.depends = gui script network opengl xmlpatterns
QT.declarative.DEFINES = QT_DECLARATIVE_LIB

QT_CONFIG += declarative

Update module version number to 5.0.0

QT.declarative.VERSION = 5.0.0
QT.declarative.MAJOR_VERSION = 5
QT.declarative.MINOR_VERSION = 0
QT.declarative.PATCH_VERSION = 0

QT.declarative.name = QtDeclarative
QT.declarative.bins = $$QT_MODULE_BIN_BASE
QT.declarative.includes = $$QT_MODULE_INCLUDE_BASE $$QT_MODULE_INCLUDE_BASE/QtDeclarative
QT.declarative.private_includes = $$QT_MODULE_INCLUDE_BASE/QtDeclarative/$$QT.declarative.VERSION
QT.declarative.sources = $$QT_MODULE_BASE/src/declarative
QT.declarative.libs = $$QT_MODULE_LIB_BASE
QT.declarative.plugins = $$QT_MODULE_PLUGIN_BASE
QT.declarative.imports = $$QT_MODULE_IMPORT_BASE
QT.declarative.depends = gui script network opengl xmlpatterns
QT.declarative.DEFINES = QT_DECLARATIVE_LIB

QT_CONFIG += declarative


include(../../crash-reporter-conf.pri)

TEMPLATE = app
QT += testlib dbus
CONFIG += debug

CREPORTER_SRC_DIR = ../../../src
CREPORTER_STUBS_DIR = ../stubs
CREPORTER_TESTLIB_DIR = ../testlib

include(testlib/testlib.pri)

INCLUDEPATH += . \
               $$CREPORTER_STUBS_DIR \
               $${CREPORTER_TESTLIB_DIR} \

DEPENDPATH += $$INCLUDEPATH \

target.path = $$CREPORTER_TESTS_INSTALL_LIBS

INSTALLS += target \

Remove *.gcno files on make distclean

include(../../crash-reporter-conf.pri)

TEMPLATE = app
QT += testlib dbus
CONFIG += debug

CREPORTER_SRC_DIR = ../../../src
CREPORTER_STUBS_DIR = ../stubs
CREPORTER_TESTLIB_DIR = ../testlib

include(testlib/testlib.pri)

INCLUDEPATH += . \
               $$CREPORTER_STUBS_DIR \
               $${CREPORTER_TESTLIB_DIR} \

DEPENDPATH += $$INCLUDEPATH \

target.path = $$CREPORTER_TESTS_INSTALL_LIBS

INSTALLS += target \

QMAKE_CLEAN += $(OBJECTS_DIR)/*.gcno


# Common configuration for all .pro files.

ROOT_DIRECTORY = $$PWD
BUILD_DIRECTORY = $${ROOT_DIRECTORY}/build

QT += core gui widgets

# Activate C++11 support.

QMAKE_CXXFLAGS += -std=c++11

Add code coverage for debug builds.

# Common configuration for all .pro files.

ROOT_DIRECTORY = $$PWD
BUILD_DIRECTORY = $${ROOT_DIRECTORY}/build

QT += core gui widgets

# Activate C++11 support.

QMAKE_CXXFLAGS += -std=c++11

# Add code coverage support.

CONFIG(debug)
{
	LIBS += -lgcov
	QMAKE_CXXFLAGS += -g -fprofile-arcs -ftest-coverage -O0
	QMAKE_LFLAGS += -g -fprofile-arcs -ftest-coverage -O0
}


win32 {
} else: osx {
} else: ios {
} else: android {
} else: linux {
} else {
    error(No distribution for this platform defined)
}

Install to /opt/glimpse on linux. Also link with rpath to avoid the need of a startup script that changes LD_LIBRARY_PATH or does a LD_PRELOAD.

win32 {
} else: osx {
} else: ios {
} else: android {
} else: linux {
    # Set the rpath, otherwise we can't load the client applications without changing LD_LIBRARY_PATH
    QMAKE_LFLAGS += -Wl,-z,origin \'-Wl,-rpath,\$\$ORIGIN\'

    target.path = /opt/glimpse
    INSTALLS += target
} else {
    error(No distribution for this platform defined)
}


QMAKE_EXTRA_TARGETS += check
check.target = check

enable-legacy {
    framework_pc = MeegoImFramework
} else {
    framework_pc = maliit-plugins-0.80
}

framework_libdirs = $$system(pkg-config --libs-only-L $$framework_pc | tr \' \' \'\n\' | grep ^-L | cut -d L -f 2- | tr \'\n\' \':\')
# Note: already contains : delimiters, including one at the end

check.commands = \
    LD_LIBRARY_PATH=$$framework_libdirs$$[QT_INSTALL_LIBS]:$(LD_LIBRARY_PATH) \
    ./$$TARGET

check.depends += $$TARGET

Fix qmake's warning about unescaped backslashes.

QMAKE_EXTRA_TARGETS += check
check.target = check

enable-legacy {
    framework_pc = MeegoImFramework
} else {
    framework_pc = maliit-plugins-0.80
}

framework_libdirs = $$system(pkg-config --libs-only-L $$framework_pc | tr \' \' \'\\n\' | grep ^-L | cut -d L -f 2- | tr \'\\n\' \':\')
# Note: already contains : delimiters, including one at the end

check.commands = \
    LD_LIBRARY_PATH=$$framework_libdirs$$[QT_INSTALL_LIBS]:$(LD_LIBRARY_PATH) \
    ./$$TARGET

check.depends += $$TARGET


contains(QT_MAJOR_VERSION, 4) {
    unittest_arguments += -graphicssystem raster
}

qws {
    unittest_arguments += -qws
}

QMAKE_EXTRA_TARGETS += check
check.target = check
check.commands = \
    TESTING_IN_SANDBOX=1 \
    TESTPLUGIN_PATH=../plugins \
    TESTDATA_PATH=$$IN_PWD \
    LD_LIBRARY_PATH=../../connection:../../maliit-plugins-quick/input-method:../../maliit-plugins-quick/plugin-factory:../../src:../../input-context/input-context-plugin:../../maliit:../../maliit-settings:../plugins:$(LD_LIBRARY_PATH) \
    ./$$TARGET $$unittest_arguments

check.depends += $$TARGET

QMAKE_EXTRA_TARGETS += check-xml
check-xml.target = check-xml
check-xml.commands = ../rt.sh $$TARGET
check-xml.depends += $$TARGET

# coverage flags are off per default, but can be turned on via qmake COV_OPTION=on
for(OPTION,$$list($$lower($$COV_OPTION))){
    isEqual(OPTION, on){
        QMAKE_CXXFLAGS += -ftest-coverage -fprofile-arcs
        LIBS += -lgcov
    }
}
QMAKE_CLEAN += $$OBJECTS_DIR/*.gcno $$OBJECTS_DIR/*.gcda

Update LD_LIBRARY_PATH in tests to reflect build dir changes

contains(QT_MAJOR_VERSION, 4) {
    unittest_arguments += -graphicssystem raster
}

qws {
    unittest_arguments += -qws
}

QMAKE_EXTRA_TARGETS += check
check.target = check
check.commands = \
    TESTING_IN_SANDBOX=1 \
    TESTPLUGIN_PATH=../plugins \
    TESTDATA_PATH=$$IN_PWD \
    LD_LIBRARY_PATH=../../lib:../../lib/plugins:../plugins:$(LD_LIBRARY_PATH) \
    ./$$TARGET $$unittest_arguments

check.depends += $$TARGET

QMAKE_EXTRA_TARGETS += check-xml
check-xml.target = check-xml
check-xml.commands = ../rt.sh $$TARGET
check-xml.depends += $$TARGET

# coverage flags are off per default, but can be turned on via qmake COV_OPTION=on
for(OPTION,$$list($$lower($$COV_OPTION))){
    isEqual(OPTION, on){
        QMAKE_CXXFLAGS += -ftest-coverage -fprofile-arcs
        LIBS += -lgcov
    }
}
QMAKE_CLEAN += $$OBJECTS_DIR/*.gcno $$OBJECTS_DIR/*.gcda


# This file should not be edited.
# Following versions of Qt Creator might offer new version.

QT += declarative

SOURCES += $$PWD/qmlapplicationviewer.cpp
HEADERS += $$PWD/qmlapplicationviewer.h
INCLUDEPATH += $$PWD

contains(DEFINES, QMLOBSERVER) {
    DEFINES *= QMLJSDEBUGGER
}
contains(DEFINES, QMLJSDEBUGGER) {
    CONFIG(debug, debug|release) {
        isEmpty(QMLJSDEBUGGER_PATH) {
            warning()
            warning(Debugging QML requires the qmljsdebugger library that ships with Qt Creator.)
            warning(Please specify its location on the qmake command line, e.g.)
            warning(  qmake -r QMLJSDEBUGGER_PATH=$CREATORDIR/share/qtcreator/qml/qmljsdebugger)
            warning()

            error(QMLJSDEBUGGER defined, but no QMLJSDEBUGGER_PATH set on command line. Aborting.)
            DEFINES -= QMLJSDEBUGGER
        } else {
            include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri)
        }
    } else {
        DEFINES -= QMLJSDEBUGGER
    }
}

Check for Qt 4.7.1 or newer before enabling qml debugging

# This file should not be edited.
# Following versions of Qt Creator might offer new version.

QT += declarative

SOURCES += $$PWD/qmlapplicationviewer.cpp
HEADERS += $$PWD/qmlapplicationviewer.h
INCLUDEPATH += $$PWD

contains(DEFINES, QMLOBSERVER) {
    DEFINES *= QMLJSDEBUGGER
}

defineTest(minQtVersion) {
    maj = $$1
    min = $$2
    patch = $$3
    isEqual(QT_MAJOR_VERSION, $$maj) {
        isEqual(QT_MINOR_VERSION, $$min) {
            isEqual(QT_PATCH_VERSION, $$patch) {
                return(true)
            }
            greaterThan(QT_PATCH_VERSION, $$patch) {
                return(true)
            }
        }
        greaterThan(QT_MINOR_VERSION, $$min) {
            return(true)
        }
    }
    return(false)
}

contains(DEFINES, QMLJSDEBUGGER) {
    CONFIG(debug, debug|release) {
        !minQtVersion(4, 7, 1) {
            warning()
            warning("Debugging QML requires the qmljsdebugger library that ships with Qt Creator.")
            warning("This library requires Qt 4.7.1 or newer.")
            warning()

            error("Qt version $$QT_VERSION too old for QmlJS Debugging. Aborting.")
        }
        isEmpty(QMLJSDEBUGGER_PATH) {
            warning()
            warning("Debugging QML requires the qmljsdebugger library that ships with Qt Creator.")
            warning("Please specify its location on the qmake command line, eg")
            warning("  qmake -r QMLJSDEBUGGER_PATH=$CREATORDIR/share/qtcreator/qmljsdebugger")
            warning()

            error("QMLJSDEBUGGER defined, but no QMLJSDEBUGGER_PATH set on command line. Aborting.")
            DEFINES -= QMLJSDEBUGGER
        } else {
            include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri)
        }
    } else {
        DEFINES -= QMLJSDEBUGGER
    }
}


CONFIG += testcase
QT = core testlib dbus
INCLUDEPATH += ../lib ../
LIBS += -L ../lib -lofono-qt

target.path = $$[QT_INSTALL_PREFIX]/opt/tests/libofono-qt/
INSTALLS += target

Use QMAKE_LFLAGS to make sure we link to the libofono-qt under test

CONFIG += testcase
QT = core testlib dbus
INCLUDEPATH += ../lib ../
QMAKE_LFLAGS += -L ../lib -lofono-qt

target.path = $$[QT_INSTALL_PREFIX]/opt/tests/libofono-qt/
INSTALLS += target


# This file is part of Qt Creator
# It enables debugging of Qt Quick applications

QT += declarative script
INCLUDEPATH += $$PWD/include

symbian {
    LIBNAME = QmLJSDebugger.lib
} else {
    windows:CONFIG(debug, debug|release) {
        LIBNAME = QmlJSDebuggerd
    } else {
        LIBNAME = QmlJSDebugger
    }
}
LIBS += -L$$PWD -l$$LIBNAME

DEFINES += QMLJSDEBUGGER

Fix linker errors with gcce

# This file is part of Qt Creator
# It enables debugging of Qt Quick applications

QT += declarative script
INCLUDEPATH += $$PWD/include

symbian {
    LIBNAME = QmLJSDebugger.lib
} else {
    windows:CONFIG(debug, debug|release) {
        LIBNAME = QmlJSDebuggerd
    } else {
        LIBNAME = QmlJSDebugger
    }
}
LIBS += -L$$PWD -l$$LIBNAME

symbian {
    # Work around bug in gcce toolchain (QTCREATORBUG-5589)
    LIBS += -lusrt2_2.lib
}

DEFINES += QMLJSDEBUGGER


# Use when a .pro file requires libmaliit
# The .pro file must define TOP_DIR to be a relative path
# to the top-level source/build directory, and include config.pri

LIBS += $$TOP_DIR/lib/$$maliitDynamicLib($${MALIIT_GLIB_LIB})
POST_TARGETDEPS += $$TOP_DIR/lib/$$maliitDynamicLib($${MALIIT_GLIB_LIB})
INCLUDEPATH += $$TOP_DIR

Add public dependencies to .pri file

# Use when a .pro file requires libmaliit-glib
# The .pro file must define TOP_DIR to be a relative path
# to the top-level source/build directory, and include config.pri

LIBS += $$TOP_DIR/lib/$$maliitDynamicLib($${MALIIT_GLIB_LIB})
POST_TARGETDEPS += $$TOP_DIR/lib/$$maliitDynamicLib($${MALIIT_GLIB_LIB})
INCLUDEPATH += $$TOP_DIR

CONFIG += link_pkgconfig
PKGCONFIG += glib-2.0 gobject-2.0


HEADERS += view/editorview.h \
    view/editorviewscene.h \
    view/editorviewmviface.h
SOURCES += view/editorview.cpp \
    view/editorviewscene.cpp \
    view/editorviewmviface.cpp

Add recognizing of mouse gestures

HEADERS += view/editorview.h \
    view/editorviewscene.h \
    view/editorviewmviface.h \
    view/gestures/pathcorrector.h \
    view/gestures/mousemovementmanager.h \
    view/gestures/levenshteindistance.h \
    view/gestures/keymanager.h \
    view/gestures/IKeyManager.h

SOURCES += view/editorview.cpp \
    view/editorviewscene.cpp \
    view/editorviewmviface.cpp \
    view/gestures/pathcorrector.cpp \
    view/gestures/mousemovementmanager.cpp \
    view/gestures/levenshteindistance.cpp \
    view/gestures/keymanager.cpp


HEADERS += \
    $$PWD/qmlengine.h \
    $$PWD/canvasframerate.h \

SOURCES += \
    $$PWD/qmlengine.cpp \
    $$PWD/canvasframerate.cpp \

QT += declarative

FORMS +=

RESOURCES +=

Fix compilation if no private headers are available

include(../../../private_headers.pri)
exists(${QT_PRIVATE_HEADERS}/QtDeclarative/private/qdeclarativecontext_p.h) {
    HEADERS += \
        $$PWD/qmlengine.h \
        $$PWD/canvasframerate.h \

    SOURCES += \
        $$PWD/qmlengine.cpp \
        $$PWD/canvasframerate.cpp \

    QT += declarative
}


!cross_compile {
    TRY_INCLUDEPATHS = /include /usr/include /usr/local/include $$QMAKE_INCDIR $$INCLUDEPATH
    # LSB doesn't allow using headers from /include or /usr/include
    linux-lsb-g++:TRY_INCLUDEPATHS = $$QMAKE_INCDIR $$INCLUDEPATH
    for(p, TRY_INCLUDEPATHS) {
        pp = $$join(p, "", "", "/openssl")
        exists($$pp):INCLUDEPATH *= $$p
    }
}

Fix compilation on AIX: -I/usr/include cannot be used.

# Empty file since Qt 4.6
# I'm too lazy to find all places where this file is included


DBUS_XML_DIR = $$TOP_DIR/dbus_interfaces

DBUS_CONTEXT_XML = $$DBUS_XML_DIR/minputmethodcontext1interface.xml
DBUS_SERVER_XML = $$DBUS_XML_DIR/minputmethodserver1interface.xml

Fix OOT build with DBus interface definitions

DBUS_XML_DIR = $$IN_PWD

DBUS_CONTEXT_XML = $$DBUS_XML_DIR/minputmethodcontext1interface.xml
DBUS_SERVER_XML = $$DBUS_XML_DIR/minputmethodserver1interface.xml


QT += network
INCLUDEPATH += $$PWD
SOURCES += \
    $$PWD/o1.cpp \
    $$PWD/o1requestor.cpp \
    $$PWD/o2.cpp \
    $$PWD/o2facebook.cpp \
    $$PWD/o2gft.cpp \
    $$PWD/o2reply.cpp \
    $$PWD/o2replyserver.cpp \
    $$PWD/o2requestor.cpp \
    $$PWD/simplecrypt.cpp \
    $$PWD/o2skydrive.cpp \

HEADERS += \
    $$PWD/o1.h \
    $$PWD/o1dropbox.h \
    $$PWD/o1flickr.h \
    $$PWD/o1requestor.h \
    $$PWD/o1twitter.h \
    $$PWD/o2.h \
    $$PWD/o2facebook.h \
    $$PWD/o2gft.h \
    $$PWD/o2reply.h \
    $$PWD/o2replyserver.h \
    $$PWD/o2requestor.h \
    $$PWD/simplecrypt.h \
    $$PWD/o2skydrive.h \

Include the `script` Qt module.

QT += network script
INCLUDEPATH += $$PWD
SOURCES += \
    $$PWD/o1.cpp \
    $$PWD/o1requestor.cpp \
    $$PWD/o2.cpp \
    $$PWD/o2facebook.cpp \
    $$PWD/o2gft.cpp \
    $$PWD/o2reply.cpp \
    $$PWD/o2replyserver.cpp \
    $$PWD/o2requestor.cpp \
    $$PWD/simplecrypt.cpp \
    $$PWD/o2skydrive.cpp \

HEADERS += \
    $$PWD/o1.h \
    $$PWD/o1dropbox.h \
    $$PWD/o1flickr.h \
    $$PWD/o1requestor.h \
    $$PWD/o1twitter.h \
    $$PWD/o2.h \
    $$PWD/o2facebook.h \
    $$PWD/o2gft.h \
    $$PWD/o2reply.h \
    $$PWD/o2replyserver.h \
    $$PWD/o2requestor.h \
    $$PWD/simplecrypt.h \
    $$PWD/o2skydrive.h \


# to be included at bottom of .pro files
enable-presage {
    DEFINES += HAVE_PRESAGE
    LIBS += -lpresage
}

enable-hunspell {
    DEFINES += HAVE_HUNSPELL
    LIBS += -lhunspell
}

Use pkg-config for checking Hunspell's CFLAGS and LIBS

# to be included at bottom of .pro files
enable-presage {
    DEFINES += HAVE_PRESAGE
    LIBS += -lpresage
}

enable-hunspell {
    CONFIG += link_pkgconfig
    PKGCONFIG += hunspell
    DEFINES += HAVE_HUNSPELL
}