# RUN: llvm-mc -filetype=obj -triple aarch64 %s -o -| llvm-readobj -h | FileCheck --check-prefix=AARCH64-OSABI %s
# AARCH64-OSABI: OS/ABI: SystemV (0x0)

# RUN: llvm-mc -filetype=obj -triple aarch64-linux-gnu %s -o -| llvm-readobj -h | FileCheck --check-prefix=AARCH64-LINUX-OSABI %s
# AARCH64-LINUX-OSABI: OS/ABI: GNU/Linux (0x3)


.globl start
start:
    /* turn args into a slice */
    /* TODO */
    /* enter the main program */
    call	_main
    /* exit */
    movq	%rax,%rdi
    movq	$60,%rax
    syscall

Use the right syscall number to exit.

.globl start
start:
    /* turn args into a slice */
    /* TODO */
    /* enter the main program */
    call	_main
    /* exit */
    movq	%rax,%rdi
    movq	$0x2000001,%rax
    syscall


Test that -g of empty .s file does something sensible.

// Run cc1as with debug on empty file. Needs a known name so we can check it.
// REQUIRES: x86-registered-target
// RUN: rm -rf %t && mkdir -p %t
// RUN: cp %s %t/comment.s
// RUN: %clang -cc1as -triple x86_64-linux-gnu -filetype asm -debug-info-kind=limited -dwarf-version=4 %t/comment.s | FileCheck %s
// RUN: %clang -cc1as -triple x86_64-linux-gnu -filetype asm -debug-info-kind=limited -dwarf-version=5 %t/comment.s | FileCheck %s
// Asm output actually emits the .section directives twice.
// CHECK: {{\.}}section .debug_info
// CHECK: {{\.}}section .debug_info
// CHECK-NOT: {{\.}}section
// CHECK: .ascii "comment.s"


.align 16
.globl rng_hash_128
.type  rng_hash_128,@function
rng_hash_128:
	mov    8(%rdi), %rax

	movabs $0x6595a395a1ec531b, %rcx

#   Option 1)
#   Non-threaded, fastest.  No xor instruction used.

#   Option 2)
#   Threaded, pass the nonce as a second parameter.
#	xor    %rsi, %rax

#   Option 3)
#   Threaded, use the address of the seed as a nonce.
#   xor    %rdi, %rax

	mov    (%rdi), %rsi
	mul    %rcx

	add    %rcx, (%rdi)
	adc    %rsi, 8(%rdi)

	xor    %rsi, %rax
	xor    %rdx, %rax
	mul    %rcx
	add    %rsi, %rax
	add    %rdx, %rax

	ret
.size	rng_hash_128, .-rng_hash_128

Use option 3 in rng

.align 16
.globl rng_hash_128
.type  rng_hash_128,@function
rng_hash_128:
	mov    8(%rdi), %rax

	movabs $0x6595a395a1ec531b, %rcx

#   Option 1)
#   Non-threaded, fastest.  No xor instruction used.

#   Option 2)
#   Threaded, pass the nonce as a second parameter.
#	xor    %rsi, %rax

#   Option 3)
#   Threaded, use the address of the seed as a nonce.
        xor    %rdi, %rax

	mov    (%rdi), %rsi
	mul    %rcx

	add    %rcx, (%rdi)
	adc    %rsi, 8(%rdi)

	xor    %rsi, %rax
	xor    %rdx, %rax
	mul    %rcx
	add    %rsi, %rax
	add    %rdx, %rax

	retq
.size	rng_hash_128, .-rng_hash_128


// RUN: llvm-mc %s -o -| FileCheck %s

.file 1 "dir1" "foo" source ""
.loc 1 1 0
nop

# CHECK: .file {{.*}} source ""

Remove target-specific instructions in test

// RUN: llvm-mc %s -o -| FileCheck %s

.file 1 "dir1" "foo" source ""

# CHECK: .file {{.*}} source ""


; Prints a single character.
; Arguments: (top of stack first)
; - Character to print
print_char:
    mov ax, bx ; save bx to ax
    pop bx
    push ax ; push ax to stack
    mov ah, 0x0e
    mov bl, 0x07
    mov bh, 0x00
    int 0x10
    pop bx ; restore bx
    ret

; Prints a null-terminated string.
; Arguments (top of stack first)
; - Address of null-terminated string to print
print_string:
    pop ax
    push bx
    mov bx, ax
    mov ch, 0
_print_string_loop:
    mov byte al, [bx]
    mov cl, al
    jcxz _print_string_done
    call print_char
    inc bl
    jmp _print_string_loop
_print_string_done:
    pop bx
    ret

; Prints a null-terminated string, followed by a new line and carriage return
; Arguments (top of stack first):
; - Address of null-terminated string to print
print_line:
    call print_string
    mov al, 0xD
    call print_char
    mov al, 0xA
    call print_char
    ret

; NOTE: pusha and popa do not save/restore bx, since it is a callee saved register.
pusha:
    push ax
    push cx
    push dx
    ret

popa:
    pop dx
    pop cx
    pop ax
    ret

Rename pusha and popa to _pusha and _popa

; Prints a single character.
; Arguments: (top of stack first)
; - Character to print
print_char:
    mov ax, bx ; save bx to ax
    pop bx
    push ax ; push ax to stack
    mov ah, 0x0e
    mov bl, 0x07
    mov bh, 0x00
    int 0x10
    pop bx ; restore bx
    ret

; Prints a null-terminated string.
; Arguments (top of stack first)
; - Address of null-terminated string to print
print_string:
    pop ax
    push bx
    mov bx, ax
    mov ch, 0
_print_string_loop:
    mov byte al, [bx]
    mov cl, al
    jcxz _print_string_done
    call print_char
    inc bl
    jmp _print_string_loop
_print_string_done:
    pop bx
    ret

; Prints a null-terminated string, followed by a new line and carriage return
; Arguments (top of stack first):
; - Address of null-terminated string to print
print_line:
    call print_string
    mov al, 0xD
    call print_char
    mov al, 0xA
    call print_char
    ret

; NOTE: _pusha and _popa do not save/restore bx, since it is a callee saved register.
_pusha:
    push ax
    push cx
    push dx
    ret

_popa:
    pop dx
    pop cx
    pop ax
    ret


# REQUIRES: x86

# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
# RUN: ld.lld %t.o -o %t.so --icf=all -shared
# RUN: llvm-objdump -t %t.so | FileCheck %s

# CHECK: zed

        .section        .foo,"ax",@progbits
        nop

        .section        .bar,"ax",@progbits
zed:
        nop


; libLTO.dylib shouldn't assert on invalid inputs.
; RUN: llvm-mc -triple=arm64-apple-ios7.0.0 -filetype=obj -o %t.o
; RUN: llvm-ar r %t.a %t.o
; RUN: %ld64 -lto_library %llvmshlibdir/libLTO.dylib -arch x86_64 -dylib -mllvm -O0 -o %t.dylib %t.a

Add REQUIRES: arm-registered-target to test using an arm-apple-ios triple.

; libLTO.dylib shouldn't assert on invalid inputs.
; REQUIRES: arm-registered-target
; RUN: llvm-mc -triple=arm64-apple-ios7.0.0 -filetype=obj -o %t.o
; RUN: llvm-ar r %t.a %t.o
; RUN: %ld64 -lto_library %llvmshlibdir/libLTO.dylib -arch x86_64 -dylib -mllvm -O0 -o %t.dylib %t.a


# REQUIRES: system-windows, x86

# Test that a response.txt file always uses / instead of \.
# RUN: rm -rf %t.dir
# RUN: mkdir -p %t.dir/build
# RUN: llvm-mc %s -o %t.dir/build/foo.o -filetype=obj -triple=x86_64-pc-linux
# RUN: cd %t.dir
# RUN: ld.lld build/foo.o --reproduce repro
# RUN: tar -O -x -f repro.tar repro/response.txt | FileCheck %s
# CHECK: {{.*}}/build/foo.o

Fix test now that --reproduce takes a full filename.

# REQUIRES: system-windows, x86

# Test that a response.txt file always uses / instead of \.
# RUN: rm -rf %t.dir
# RUN: mkdir -p %t.dir/build
# RUN: llvm-mc %s -o %t.dir/build/foo.o -filetype=obj -triple=x86_64-pc-linux
# RUN: cd %t.dir
# RUN: ld.lld build/foo.o --reproduce repro.tar
# RUN: tar -O -x -f repro.tar repro/response.txt | FileCheck %s
# CHECK: {{.*}}/build/foo.o


( function _l3_Global_s_()
{

'use strict';

let _global = _global_;
let _ = _global_.wTools;
_global_.wTools.global = _global_.wTools.global || Object.create( null );

// --
// implementation
// --

function is( src )
{
  _.assert( arguments.length === 1, 'Expects single argument' );

  if( _.primitiveIs( src ) )
  return false;
}

//

function isReal( src )
{
  _.assert( arguments.length === 1, 'Expects single argument' );

  if( _.primitiveIs( src ) )
  return false;
}

//

function isDerivative( src )
{
  _.assert( arguments.length === 1, 'Expects single argument' );

  if( _.primitiveIs( src ) )
  return false;
}

// --
// extension
// --

var Extension =
{
  is,
  isReal,
  isDerivative
}

//

Object.assign( _.global, Extension );

// --
// export
// --

if( typeof module !== 'undefined' )
module[ 'exports' ] = _;

})();

Extend routines `is`, `isReal`, `isDerivative` of namespace `global`

( function _l3_Global_s_()
{

'use strict';

let _global = _global_;
let _ = _global_.wTools;
_global_.wTools.global = _global_.wTools.global || Object.create( null );

// --
// implementation
// --

function is( src )
{
  _.assert( arguments.length === 1, 'Expects single argument' );

  if( _.primitiveIs( src ) )
  return false;

  for( let namespace in _globals_ )
  {
    if( _globals_[ namespace ] === src )
    return true;
  }

  return false;
}

//

function isReal( src )
{
  _.assert( arguments.length === 1, 'Expects single argument' );

  // if( _.primitiveIs( src ) )
  // return false;

  if( src === _realGlobal_ && src.__GLOBAL_NAME__ === 'real' )
  return true;
  return false;
}

//

function isDerivative( src )
{
  _.assert( arguments.length === 1, 'Expects single argument' );

  // if( _.primitiveIs( src ) )
  // return false;

  if( _.global.is( src ) && !_.global.isReal( src ) )
  return true;
  return false;
}

// --
// extension
// --

var Extension =
{
  is,
  isReal,
  isDerivative
}

//

Object.assign( _.global, Extension );

// --
// export
// --

if( typeof module !== 'undefined' )
module[ 'exports' ] = _;

})();


Add a test for relocations in non alloc sections.

// REQUIRES: x86

// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
// RUN: ld.lld %t -o %t2
// RUN: llvm-readobj -s -section-data %t2 | FileCheck %s

// CHECK:      Name: foo
// CHECK-NEXT: Type: SHT_PROGBITS
// CHECK-NEXT:    Flags [
// CHECK-NEXT: ]
// CHECK-NEXT: Address: 0x0
// CHECK-NEXT: Offset:
// CHECK-NEXT: Size: 4
// CHECK-NEXT: Link: 0
// CHECK-NEXT: Info: 0
// CHECK-NEXT: AddressAlignment: 1
// CHECK-NEXT: EntrySize: 0
// CHECK-NEXT: SectionData (
// CHECK-NEXT:   0000: 00100100
// CHECK-NEXT: )

        .global _start
_start:
        .section foo
        .long _start


<?php
include VIEW_PATH . "partials/header.phtml";
?>

Webmakelaar

Bericht

<?php echo $title; ?> <?php echo $shortMessage; ?>

    <div class="alert alert-<?php echo $class; ?> fade in">

            <?php
            echo $title . " ";
            echo $shortMessage;
            ?>

<?php echo $description; ?>

            <a href="/" class="btn btn-<?php echo $class; ?>">Verder winkelen

<?php
include VIEW_PATH . "partials/footer.phtml";

Remove breadcrums from Message view

<?php
include VIEW_PATH . "partials/header.phtml";
?>

<?php echo $title; ?> <?php echo $shortMessage; ?>

    <div class="alert alert-<?php echo $class; ?> fade in">

            <?php
            echo $title . " ";
            echo $shortMessage;
            ?>

<?php echo $description; ?>

            <a href="/" class="btn btn-<?php echo $class; ?>">Naar de homepagina

<?php
include VIEW_PATH . "partials/footer.phtml";


Action "index", controller "Feeds", module "BabyMonitor".

<?php print $this->url('feeds', array(
    'controller' => 'feeds',
    'action' => 'index'
)); ?>

<?php echo $this->partial(
    'babymonitor/feeds/results/search/default',
    array('resultset' => $resultset)
); ?>

Correct home page can be accessed test

Feeds Home

Action "index", controller "Feeds", module "BabyMonitor".

<?php print $this->url('feeds', array(
    'controller' => 'feeds',
    'action' => 'index'
)); ?>

<?php echo $this->partial(
    'babymonitor/feeds/results/search/default',
    array('resultset' => $resultset)
); ?>


<?php echo $this->doctype() ?>

	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<?php echo $this->headTitle() ?>
	<?php echo $this->headLink() ?>
	<?php echo $this->headScript() ?>
	<?php echo isset($this->google_analytics)?$this->google_analytics:"" ?>

        <?php echo $this->layout()->content ?>

      <?php echo sprintf(_("Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%s"
      ."Maintained and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s"),
      "
", "" ,"");?>

Update airtime demo w/o o.p.s.

<?php echo $this->doctype() ?>

	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<?php echo $this->headTitle() ?>
	<?php echo $this->headLink() ?>
	<?php echo $this->headScript() ?>
	<?php echo isset($this->google_analytics)?$this->google_analytics:"" ?>

        <?php echo $this->layout()->content ?>

      <?php echo sprintf(_("Airtime copyright © Sourcefabric z.ú. All rights reserved.%s"
      ."Maintained and distributed under the GNU GPL v.3 by %sSourcefabric z.ú.%s"),
      "
", "" ,"");?>


Map not loading?

View below for instructions on how to view the map.  For simplicity, all instructions are a single picture showing where the appropriate dialog is and what to click.

Chrome

Firefox

Internet Explorer

Allow same origin for map


<?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’ you will be redirected to Laybuy to complete your order

Remove hard coded currency symbol 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, '.', ',');
    $amounts = Mage::helper('core')->currency($laybuy_payments, true, false);
}

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

            <?php if (isset($amounts)): ?>

6 interest free payments from <?php echo $amounts; ?>

            <?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’ you will be redirected to Laybuy to complete your order


<?php
$skin = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);
?>

Baixe o app para IOS ou Android da Conta EBANX.

                <img src="<?= $skin . 'frontend/base/default/ebanx/badge-apple.png' ?>" alt="">

                <img src="<?= $skin . 'frontend/base/default/ebanx/badge-google.png' ?>" alt="">

Add hidden input with payment hash to success page for tests

<?php
$skin = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);
?>

Baixe o app para IOS ou Android da Conta EBANX.

    <input type="hidden" data-doraemon-hash="<?= $this->getPayment()->getEbanxPaymentHash() ?>" />

                <img src="<?= $skin . 'frontend/base/default/ebanx/badge-apple.png' ?>" alt="">

                <img src="<?= $skin . 'frontend/base/default/ebanx/badge-google.png' ?>" alt="">


<?php
namespace app;
/** @var callable $§ */
?>
<!doctype html>
<html lang="<?=data('lang');?>" data-area="<?=data('area');?>" data-path="<?=data('path');?>" data-act="<?=data('act');?>">
    <head>
        <?=§('head');?>
    </head>
    <body>
        <?=§('top');?>
        <?=§('msg');?>
        <main>
            <?=§('main');?>
            <?=§('sidebar');?>
        </main>
        <?=§('bottom');?>
    </body>
</html>

Add main role for IE

<?php
namespace app;
/** @var callable $§ */
?>
<!doctype html>
<html lang="<?=data('lang');?>" data-area="<?=data('area');?>" data-path="<?=data('path');?>" data-act="<?=data('act');?>">
    <head>
        <?=§('head');?>
    </head>
    <body>
        <?=§('top');?>
        <?=§('msg');?>
        <main role="main">
            <?=§('main');?>
            <?=§('sidebar');?>
        </main>
        <?=§('bottom');?>
    </body>
</html>


        Home

        Articles

        <?php echo $this->title; ?>

      Information Technology
      Farming
      Investing

<a href="/article/<?php echo $this->articleid ?>/edit">Edit this article | <a id="deletearticle" href="/article/<?php echo $this->articleid ?>/delete">Delete this article

        <?php echo $this->title; ?>

        Published by <?php echo $this->pseudonym; ?>

            <img class="img-thumbnail" src="<?php echo $this->image; ?>">

        <?php echo $this->BbCode($this->content); ?>

Allow responses to article authors

        Home

        Articles

        <?php echo $this->title; ?>

      Information Technology
      Farming
      Investing

        <a href="/article/<?php echo $this->articleid ?>/edit">Edit this article |
        <a id="deletearticle" href="/article/<?php echo $this->articleid ?>/delete">Delete this article |
        <a href="#" id="sendmessagedialog" data-id="<?php echo $this->userid; ?>">Reply to author

      <?php echo $this->partial('messaging/dialog.phtml'); ?>

        <?php echo $this->title; ?>

        Published by <?php echo $this->pseudonym; ?>

            <img class="img-thumbnail" src="<?php echo $this->image; ?>">

        <?php echo $this->BbCode($this->content); ?>


<?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 Mexico credit 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' ?>


            {{optionInfo.title}}

Fix show thumbnail if exists


Welcome to the proophessorDO

Powered by Zend Framework 2 and prooph components

            This is a simple Todo application showing you the integration of proophessor into a ZF2 system.

Database is ready?

Make sure you've configured the database connection and triggered the migrations!

About The Domain

            The domain of our Todo example application is very small. Two aggregates are responsible for handing the business logic:

The first one is the User aggregate. Its task is to post new Todos of the user on a todo list.

The second one is the Todo aggregate which manages the state of a Todo.

A Todo is just a line of text describing an open task for the user who owns the Todo.

A Todo can be marked as done

A Todo can be reopened

A Todo can have a Deadline

A User can add Reminders to get notified about the open Todo.

A User gets notified via email.

Align app name on welcome screen

Welcome to proophessor-do

Powered by Zend Framework 2 and prooph components

            This is a simple Todo application showing you the integration of proophessor into a ZF2 system.

Database is ready?

Make sure you've configured the database connection and triggered the migrations!

About The Domain

            The domain of our Todo example application is very small. Two aggregates are responsible for handing the business logic:

The first one is the User aggregate. Its task is to post new Todos of the user on a todo list.

The second one is the Todo aggregate which manages the state of a Todo.

A Todo is just a line of text describing an open task for the user who owns the Todo.

A Todo can be marked as done

A Todo can be reopened

A Todo can have a Deadline

A User can add Reminders to get notified about the open Todo.

A User gets notified via email.


Map not loading?

View below for instructions on how to view the map.  For simplicity, all instructions are a single picture showing where the appropriate dialog is and what to click.

Chrome

Firefox

Internet Explorer

Update the map to MineZ 2

<div id="mapContainer">
    <iframe src="https://minez2map.com/?plugins=TNW" id="mapFrame" sandbox="allow-scripts allow-same-origin allow-forms">

    </iframe>
</div>
<style>
#mapFrame { position: absolute; top: 0; left: 0; z-index: 2; }
.container { position: relative; z-index: 1; }
</style>


    <a href="<?php echo $this->url('project-settings', ['project' => $project->getName()]); ?>"><?php echo $project->getDisplayName(); ?>
    :
    <a href="<?php echo $this->url('project-settings', ['project' => $project->getName(), 'action' => 'view-tasks']); ?>">Tasks
    :
    <?php echo $breadcrumb; ?>

<?php
$form->prepare();
echo $this->form()->render($form);
?>

Correct form rendering for bootstrap

    <a href="<?php echo $this->url('project-settings', ['project' => $project->getName()]); ?>"><?php echo $project->getDisplayName(); ?>
    :
    <a href="<?php echo $this->url('project-settings', ['project' => $project->getName(), 'action' => 'view-tasks']); ?>">Tasks
    :
    <?php echo $breadcrumb; ?>

<?php
$form->prepare();
echo $this->form()->openTag($form);

echo $this->btsFormRow($form->get('command'));
echo $this->btsFormRow($form->get('directory'));

echo $this->formElement($form->get('submit'));

echo $this->form()->closeTag();
?>


<iframe src="<?= urldecode($this->url) ?>" style="height: 99%; width:100%" frameborder="no"></iframe>

Add links for different time periods

<a target="graph_iframe" href="<?= urldecode($this->url) ?>&from=-10min">10 minutes

<a target="graph_iframe" href="<?= urldecode($this->url) ?>&from=-1h">1 hour

<a target="graph_iframe" href="<?= urldecode($this->url) ?>&from=-12h" active>12 hour

<a target="graph_iframe" href="<?= urldecode($this->url) ?>&from=-1d">1 day

<a target="graph_iframe" href="<?= urldecode($this->url) ?>&from=-1w">1 week

<iframe name ="graph_iframe" src="<?= urldecode($this->url) ?>&from=-1d" style="height: 99%; width:100%" frameborder="no">


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

Move dismissible button to front - test update

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


<?
$Attributes = '';

if(isset($Parameters['Id'])) {
	$Attributes .= ' id="'.$Parameters['Id'].'"';
}
else if(isset($Control->_Parameters['Id'])) {
	$Attributes .= ' id="'.$Control->_Parameters['Id'].'"';
}

if(isset($Control->_Parameters['Name'])) {
	$Attributes .= ' name="'.$Control->_Parameters['Name'].'"';
}

if(isset($Control->_Parameters['Form'])) {
	$Attributes .= ' form="'.$Control->_Parameters['Form'].'"';
}

if(isset($Control->_Parameters['CssClass'])) {
	$Attributes .= ' class="'.$Control->_Parameters['CssClass'].'"';
}

$Attributes .= ' type="submit"';

if(isset($Control->_Parameters['Text'])) {
	$Attributes .= ' value="'.$Control->_Parameters['Text'].'"';
}

?><input<?=$Attributes?> />

Support for custom attributes on submit control

<?
$Attributes = '';

if(isset($Parameters['Id'])) {
	$Attributes .= ' id="'.$Parameters['Id'].'"';
}
else if(isset($Control->_Parameters['Id'])) {
	$Attributes .= ' id="'.$Control->_Parameters['Id'].'"';
}

if(isset($Control->_Parameters['Name'])) {
	$Attributes .= ' name="'.$Control->_Parameters['Name'].'"';
}

if(isset($Control->_Parameters['Form'])) {
	$Attributes .= ' form="'.$Control->_Parameters['Form'].'"';
}

if(isset($Control->_Parameters['CssClass'])) {
	$Attributes .= ' class="'.$Control->_Parameters['CssClass'].'"';
}

$Attributes .= ' type="submit"';

if(isset($Control->_Parameters['Text'])) {
	$Attributes .= ' value="'.$Control->_Parameters['Text'].'"';
}

if(isset($Control->_Parameters['Attributes'])) {
	foreach($Control->_Parameters['Attributes'] as $Name => $Value) {
		$Attributes .= ' '.$Name.'="'.$Value.'"';
	}
}

?><input<?=$Attributes?> />


<?php
use PHPCensor\Helper\Lang;

$linkTemplate = $build->getFileLinkTemplate();

/** @var \PHPCensor\Model\BuildError[] $errors */
foreach ($errors as $error):

    $link = str_replace('{BASEFILE}', basename($error->getFile()), $linkTemplate);
    $link = str_replace('{FILE}', $error->getFile(), $link);
    $link = str_replace('{LINE}', $error->getLineStart(), $link);
    $link = str_replace('{LINE_END}', $error->getLineEnd(), $link);
?>

           <span class="label label-<?php print $error->getSeverityClass(); ?>">
               <?php print Lang::get($error->getSeverityString()); ?>

       <?php print Lang::get($error->getPlugin()); ?>
       <a href="<?php print $link; ?>" target="_blank"><?php print $error->getFile(); ?>

           <a href="<?php print $link; ?>" target="_blank">
           <?php
           if ($error->getLineStart() == $error->getLineEnd() || !$error->getLineEnd()) {
               print $error->getLineStart();
           } else {
               print $error->getLineStart() . ' - ' . $error->getLineEnd();
           }
           ?>

       <?= trim($error->getMessage()); ?>

<?php endforeach; ?>

Fix - convert html special chars in error message

<?php
use PHPCensor\Helper\Lang;

$linkTemplate = $build->getFileLinkTemplate();

/** @var \PHPCensor\Model\BuildError[] $errors */
foreach ($errors as $error):

    $link = str_replace('{BASEFILE}', basename($error->getFile()), $linkTemplate);
    $link = str_replace('{FILE}', $error->getFile(), $link);
    $link = str_replace('{LINE}', $error->getLineStart(), $link);
    $link = str_replace('{LINE_END}', $error->getLineEnd(), $link);
?>

           <span class="label label-<?php print $error->getSeverityClass(); ?>">
               <?php print Lang::get($error->getSeverityString()); ?>

       <?php print Lang::get($error->getPlugin()); ?>
       <a href="<?php print $link; ?>" target="_blank"><?php print $error->getFile(); ?>

           <a href="<?php print $link; ?>" target="_blank">
           <?php
           if ($error->getLineStart() == $error->getLineEnd() || !$error->getLineEnd()) {
               print $error->getLineStart();
           } else {
               print $error->getLineStart() . ' - ' . $error->getLineEnd();
           }
           ?>

       <?= htmlspecialchars(trim($error->getMessage())); ?>

<?php endforeach; ?>


<? echo _("Edit Metadata") ?>

    <?php //$this->form->setAction($this->url());
        echo $this->form; ?>

Edit Metadata: Remove second title


<script type="text/javascript">
    <!--
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
        (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
        m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

    ga('create', '<?php echo $this->monitoring_id;?>', '<?php echo $this->domain;?>');
    ga('send', 'pageview');
    -->
</script>

Allow parameters in the create method of Google Analytics js

<script type="text/javascript">
    <!--
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
        (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
        m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
    <?php
    if($this->options) {
    //create method with parameters
    ?>
    ga('create', '<?= $this->monitoring_id; ?>', {
        'cookieDomain': '<?= $this->domain; ?>'<?php
        foreach($this->options as $option => $value):
            echo ',' . PHP_EOL;
            ?>
        '<?= $option; ?>': '<?= $value ?>'
        <?php
    endforeach;
    ?>});
    <?php
    } else {
    //create method without parameters
    ?>
    ga('create', '<?= $this->monitoring_id; ?>', '<?= $this->domain; ?>');
    <?php
    }
?>
    ga('send', 'pageview');
    -->
</script>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Welcome to the Kebab Framework</title>
    <?php
    echo $this->headLink()
        ->appendStylesheet($this->baseUrl('assets/kebab/system/stylesheets/layout.css'))
        ->appendStylesheet($this->baseUrl('assets/kebab/dev-tools/stylesheets/dev-tools.css'));
    ?>
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />

    <?php echo $this->layout()->content; ?>

        www.kebab-project.com

<?php if (Zend_Registry::get('config')->kebab->developerTools->enable): ?>
    <?php echo $this->render('sections/kebab-dev-tools/body.phtml'); ?>
<?php endif; ?>

Add baseurl to favicon.ico link

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Welcome to the Kebab Framework</title>
    <?php
    echo $this->headLink()
        ->appendStylesheet($this->baseUrl('assets/kebab/system/stylesheets/layout.css'))
        ->appendStylesheet($this->baseUrl('assets/kebab/dev-tools/stylesheets/dev-tools.css'));
    ?>
    <link rel="shortcut icon" href="<?php echo $this->baseUrl('favicon.ico'); ?>" type="image/x-icon" />

    <?php echo $this->layout()->content; ?>

        www.kebab-project.com

<?php if (Zend_Registry::get('config')->kebab->developerTools->enable): ?>
    <?php echo $this->render('sections/kebab-dev-tools/body.phtml'); ?>
<?php endif; ?>


/*global $, document, injectStatus */
(function(){
	<?php require_once(APPLICATION_PATH . '/../public/js/min/jquery-2.0.3.js'); ?>
	(function($){
		<?php require_once(APPLICATION_PATH . '/../public/js/min/both.js'); ?>

		$(document).ready(function()
		{
			$("head").append('<link href="<?php echo $this->cacheStamp('/css/both.css'); ?>" media="screen" rel="stylesheet" type="text/css" />');
			mqueue.monitorLinks('<?php echo $this->serverUrl() . $this->baseUrl('') ?>');
		});
	})(jQuery.noConflict(true));
})();

Use appropriate version of remote.js according to APPLICATION_ENV

<?php $jsBasePath = APPLICATION_PATH . '/../public/js/' . (APPLICATION_ENV != 'development' ? 'min/' : '');?>/*global $, document, injectStatus */
(function(){
	<?php require_once($jsBasePath . 'jquery-2.0.3.js'); ?>
	(function($){
		<?php require_once($jsBasePath . 'both.js'); ?>

		$(document).ready(function()
		{
			$("head").append('<link href="<?php echo $this->cacheStamp('/css/both.css'); ?>" media="screen" rel="stylesheet" type="text/css" />');
			mqueue.monitorLinks('<?php echo $this->serverUrl() . $this->baseUrl('') ?>');
		});
	})(jQuery.noConflict(true));
})();


Mcwork Application

<?php echo $this->page; ?>

Add html grid structure from foundation css framework

			 <?php echo $this->translate($this->mcworkContent( $this->page, $this->pagecontent,'subheadline')); ?>

		 <?php echo $this->translate($this->mcworkContent( $this->page, $this->pagecontent,'content')); ?>


Bienvenue sur le backoffice de la Compagnie Miranda

<big class="text-warning text-lg" style="font-style:italic;"> Page temporaire, contenu à définir (dashboard, message d'accueil). </big>

<?php if ($this->acl()->isAllowed("admin_access")): ?>

<a class="admin-btn btn" href="<?php echo $this->url('costume'); ?>">

Consulter le catalog des costumes

<?php endif; ?>

<?php if ($this->acl()->isAllowed("admin_access")): ?>

<a class="admin-btn btn" href="<?php echo $this->url('admin'); ?>">

Administrer le site

<?php endif; ?>

Fix contrôle d'accès liste costume

Bienvenue sur le backoffice de la Compagnie Miranda

<big class="text-warning text-lg" style="font-style:italic;"> Page temporaire, contenu à définir (dashboard, message d'accueil). </big>

<?php if ($this->acl()->isAllowed("list_costumes")): ?>

<a class="admin-btn btn" href="<?php echo $this->url('costume'); ?>">

Consulter le catalog des costumes

<?php endif; ?>

<?php if ($this->acl()->isAllowed("admin_access")): ?>

<a class="admin-btn btn" href="<?php echo $this->url('admin'); ?>">

Administrer le site

<?php endif; ?>


You have successfully completed Step 1!

An email has been sent to <?php echo $this->escape($this->record->getEmailAddress()); ?> with instructions on how to proceed with the account registration process

Fix escape view helper: esacpe() -> escapeHtml()

You have successfully completed Step 1!

An email has been sent to <?php echo $this->escapeHtml($this->record->getEmailAddress()); ?> with instructions on how to proceed with the account registration process


<?php

$routes = [
   'account-personal' => 'Personal',
   'account-profile' => 'Talent Pool',
   'account-directory' => "Who's Who",
   'account-contact' => 'Contact',
   'account-membership' => 'Membership',
   'account-account' => 'Account',
   'account-publish' => 'Publish',
   'account-myarticles' => 'My Articles',
   'account-inbox' => 'Inbox',
   'account-preferences' => 'Preferences',
   'account-experience' => 'Experience',
   'account-company' => 'Company',
];

foreach ($routes as $route => $text) {
?>
    <li class="<?php echo ($this->url() == $this->url($route) ? 'active' : ''); ?>">
        <a href="<?php echo $this->url($route); ?>">
            <?php echo $text; ?>

<?php
}

?>

Remove company tab for user account

<?php

$routes = [
   'account-personal' => 'Personal',
   'account-profile' => 'Talent Pool',
   'account-directory' => "Who's Who",
   'account-contact' => 'Contact',
   'account-membership' => 'Membership',
   'account-account' => 'Account',
   'account-publish' => 'Publish',
   'account-myarticles' => 'My Articles',
   'account-inbox' => 'Inbox',
   'account-preferences' => 'Preferences',
   'account-experience' => 'Experience',
];

foreach ($routes as $route => $text) {
?>
    <li class="<?php echo ($this->url() == $this->url($route) ? 'active' : ''); ?>">
        <a href="<?php echo $this->url($route); ?>">
            <?php echo $text; ?>

<?php
}

?>


Welcome to the Zend Framework!

This is your project's main page

            Helpful Links:

            Zend Framework Website |
            Zend Framework Manual

Remove placeholder text in Index Index.


<?= $this->fetch('includes/api-docs-header.phtml') ?>

Open Menu

Namespaces

                    <?php foreach ($namespaces as $namespace): ?>

                            <a class="doc__side-link <?= $currentNamespace === $namespace['title'] ? 'current' : '' ?>"
                               href="/api-docs/<?= $namespace['slug'] ?>"><?= $namespace['title']; ?>

                    <?php endforeach; ?>

                <?= $content; ?>

Add unique class to api page


<?php echo $this->doctype() ?>

	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<?php echo $this->headTitle() ?>
	<?php echo $this->headLink() ?>
	<?php echo $this->headScript() ?>
	<?php echo isset($this->google_analytics)?$this->google_analytics:"" ?>

        <?php echo $this->layout()->content ?>

      <?php echo sprintf(_("Airtime Copyright ©Sourcefabric o.p.s. All rights reserved.%s"
      ."Maintained and distributed under GNU GPL v.3 by %sSourcefabric o.p.s%s"),
      "
", "" ,"");?>

Update airtime demo w/o o.p.s.

<?php echo $this->doctype() ?>

	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<?php echo $this->headTitle() ?>
	<?php echo $this->headLink() ?>
	<?php echo $this->headScript() ?>
	<?php echo isset($this->google_analytics)?$this->google_analytics:"" ?>

        <?php echo $this->layout()->content ?>

      <?php echo sprintf(_("Airtime copyright © Sourcefabric z.ú. All rights reserved.%s"
      ."Maintained and distributed under the GNU GPL v.3 by %sSourcefabric z.ú.%s"),
      "
", "" ,"");?>


<script src="/node_modules/jquery/dist/jquery.js"></script>
<script src="/node_modules/bootstrap-styl/js/dropdown.js"></script>
<script src="/node_modules/bootstrap-styl/js/collapse.js"></script>
<script src="/node_modules/imd/imd.js"></script>
<script src="/node_modules/tslib/tslib.es6.js"></script>
<script src="/module/localhost/lib/index.js"></script>
<script src="/module/localhost/app/main.js"></script>

Use tslib.js to support browsers without the "export" feature

<script src="/node_modules/jquery/dist/jquery.js"></script>
<script src="/node_modules/bootstrap-styl/js/dropdown.js"></script>
<script src="/node_modules/bootstrap-styl/js/collapse.js"></script>
<script src="/node_modules/imd/imd.js"></script>
<script src="/node_modules/tslib/tslib.js"></script>
<script src="/module/localhost/lib/index.js"></script>
<script src="/module/localhost/app/main.js"></script>


Contribute

«Small streams make large rivers»

Administration

Surveys

Users

Filter sets

Filters

Rules

Add description to new Admin page

Administration

«Manage Surveys, Users, Filters and Rules»

Administration

Surveys

Users

Filter sets

Filters

Rules


<?php namespace qnd; /** @var callable $§ */?>
<!DOCTYPE html>
<html class="<?=$§('class');?>">
    <head>
        <?= §('head');?>
    </head>
    <body>
        <?= §('top');?>
        <?php if ($html = §('left')):?>
        <aside id="left">
            <?= $html;?>
        </aside>
        <?php endif;?>
        <main>
            <?= §('message');?>
            <?= §('main');?>
        </main>
        <?php if ($html = §('right')):?>
        <aside id="right">
            <?= $html;?>
        </aside>
        <?php endif;?>
        <?= §('bottom');?>
    </body>
</html>

Add some data attributes to html element

<?php namespace qnd; /** @var callable $§ */?>
<!DOCTYPE html>
<html data-id="<?= request('id');?>" data-entity="<?= request('entity');?>" data-action="<?= request('action');?>">
    <head>
        <?= §('head');?>
    </head>
    <body>
        <?= §('top');?>
        <?php if ($html = §('left')):?>
        <aside id="left">
            <?= $html;?>
        </aside>
        <?php endif;?>
        <main>
            <?= §('message');?>
            <?= §('main');?>
        </main>
        <?php if ($html = §('right')):?>
        <aside id="right">
            <?= $html;?>
        </aside>
        <?php endif;?>
        <?= §('bottom');?>
    </body>
</html>


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

$title = isset($_POST["title"]) ? $_GET["title"] : "";
$body = isset($_POST["body"]) ? $_GET["body"]: "";
$author = isset($_POST["author"]) ? $_GET["author"]: "";
$url = isset($_POST["url"]) ? $_GET["url"]: "";

if (strlen($title) > 0) {
 $conn = iemdb("mesosite");
 pg_exec($conn, "INSERT into news(body, author, title, url) VALUES
  ('$body', '$author', '$title', '$url')");
 pg_close($conn);
 echo "
Story entered!";
}
?>

  <title>IEM Admin | Add News Item</title>

Back to admin home

<form method="POST" action="add_news.phtml">

Enter Title:<input type="text" name="title" size="30">

Reference URL?:
<input type="text" name="url" size="50">

Enter Story:
<textarea NAME='body' wrap="hard" ROWS="20" COLS="70"></textarea>

Enter Author:
 <input type="text" name="author" value="Daryl Herzmann">

Post Story:
 <input type="submit"><input type="reset">

</form>

Fix it so that it works!

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

$title = isset($_POST["title"]) ? $_POST["title"] : "";
$body = isset($_POST["body"]) ? $_POST["body"]: "";
$author = isset($_POST["author"]) ? $_POST["author"]: "";
$url = isset($_POST["url"]) ? $_POST["url"]: "";

if (strlen($title) > 0) {
 $conn = iemdb("mesosite");
 pg_exec($conn, "INSERT into news(body, author, title, url) VALUES
  ('$body', '$author', '$title', '$url')");
 pg_close($conn);
 echo "
Story entered!";
}
?>

  <title>IEM Admin | Add News Item</title>

Back to admin home

<form method="POST" action="add_news.phtml">

Enter Title:<input type="text" name="title" size="30">

Reference URL?:
<input type="text" name="url" size="50">

Enter Story:
<textarea NAME='body' wrap="hard" ROWS="20" COLS="70"></textarea>

Enter Author:
 <input type="text" name="author" value="Daryl Herzmann">

Post Story:
 <input type="submit"><input type="reset">

</form>


<?php
/**
 * NOTICE OF LICENSE
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
 * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 *
 * @category NoGlitchYo
 * @package NoGlitchYo_Google_Recaptcha
 * @author Maxime ELOMARI <maxime.elomari@gmail.com>
 * @copyright Copyright (c) 2015, Maxime Elomari
 * @license http://opensource.org/licenses/MIT
 */

?>

<?php
/** @var $this NoGlitchYo_GoogleRecaptcha_Block_Widget */
?>
<?php echo $this->getChildHtml('grecaptcha_api') ?>

Fix display bug on backend login


<?php
/*
 * @link https://developers.facebook.com/docs/javascript/quickstart
 */

if (!isset($this->locale)) {
    $this->locale = 'en_US';
}

?>

Use php short tags for echo


<?php

/**
 * @var Doctrine\Common\Collections\ArrayCollection $articles
 * @var Blog\Entity\Article $article
 */

?>

    <?php foreach ($articles as $article) : ?>
        <?php $picture = $article->getMainPicture() ?>

                <a href="<?php echo $this->url('article', array('action' => 'detail', 'id' => $article->getId())) ?>">
                    <img src="<?php echo $this->url('picture', array('action' => 'images', 'id' => $article->getId(), 'name' => $picture->getFilename())) ?>"
                         alt="<?php $picture->getLegend() ?>" class="img-polaroid-border-sm">
                    <?php echo $article->getTitle() ?>

    <?php endforeach ?>

Fix bug article sans picture ?

<?php

/**
 * @var Doctrine\Common\Collections\ArrayCollection $articles
 * @var Blog\Entity\Article $article
 */

?>

    <?php foreach ($articles as $article) : ?>
        <?php $picture = $article->getMainPicture() ?>

                <a href="<?php echo $this->url('article', array('action' => 'detail', 'id' => $article->getId())) ?>">
                    <?php if (!is_null($picture)) : ?>
                        <img src="<?php echo $this->url('picture', array('action' => 'images', 'id' => $article->getId(), 'name' => $picture->getFilename())) ?>"
                             alt="<?php $picture->getLegend() ?>" class="img-polaroid-border-sm">
                        <?php echo $article->getTitle() ?>
                    <?php else : ?>
                        <img src="#" alt="<?php $picture->getLegend() ?>" class="img-polaroid-border-sm">
                        <?php echo $article->getTitle() ?>
                    <?php endif ?>

    <?php endforeach ?>


<div id="mapContainer">
    <iframe src="https://minez2map.com/?plugins=TNW" id="mapFrame" sandbox="allow-scripts allow-same-origin allow-forms">

    </iframe>
</div>
<style>
#mapFrame { position: absolute; top: 0; left: 0; z-index: 2; }
.container { position: relative; z-index: 1; }
</style>

Update Map to use MineZ Classic

<div id="mapContainer">
    <iframe src="https://minezmap.com/?plugins=TNW" id="mapFrame" sandbox="allow-scripts allow-same-origin allow-forms">

    </iframe>
</div>
<style>
#mapFrame { position: absolute; top: 0; left: 0; z-index: 2; }
.container { position: relative; z-index: 1; }
</style>


<?php echo $this->partial('directory-nav.phtml'); ?>

Company directory

<a href="/directories/company/<?php echo $this->companydirectoryid; ?>/overview">Add new company

Number	Name	CEO	Sectors	Turnover

← Previous

Next →

Allow non-CH companies to be added

<?php echo $this->partial('directory-nav.phtml'); ?>

Company directory

Add new company

Number	Name	CEO	Sectors	Turnover

← Previous

Next →


<?php $title = "Maintenance"; $slim_ui = true; require("./header.inc.phtml"); ?>

        Maintenance

<?php echo htmlspecialchars($this->context->message, ENT_HTML5, "UTF-8"); ?>

<?php require("./footer.inc.phtml"); ?>

Add breaks for new lines in maintenance message

<?php $title = "Maintenance"; $slim_ui = true; require("./header.inc.phtml"); ?>

        Maintenance

<?php echo nl2br(htmlspecialchars($this->context->message, ENT_HTML5, "UTF-8")); ?>

<?php require("./footer.inc.phtml"); ?>


<?php
namespace BNETDocs\Templates;

use \BNETDocs\Libraries\Common;
use \BNETDocs\Libraries\Gravatar;
use \BNETDocs\Libraries\Pair;

$title       = ($object ? $object->getTitle() : "News Post Not Found");
$description = "This form allows an individual to create a news post.";

$this->opengraph->attach(new Pair("url", "/news/create"));
$this->opengraph->attach(new Pair("type", "article"));

$this->additional_css[] = "/a/news.css";
require("./header.inc.phtml");
?>

        Create News Post

<?php require("./NYI.inc.phtml"); ?>

<?php require("./footer.inc.phtml"); ?>

Fix title on news post create page

<?php
namespace BNETDocs\Templates;

use \BNETDocs\Libraries\Common;
use \BNETDocs\Libraries\Gravatar;
use \BNETDocs\Libraries\Pair;

$title       = "Create News Post";
$description = "This form allows an individual to create a news post.";

$this->opengraph->attach(new Pair("url", "/news/create"));
$this->opengraph->attach(new Pair("type", "article"));

$this->additional_css[] = "/a/news.css";
require("./header.inc.phtml");
?>

        Create News Post

<?php require("./NYI.inc.phtml"); ?>

<?php require("./footer.inc.phtml"); ?>


<?php
/**
 * Frontend template for the D2PO office pins on map
 *
 * @author Sam Schmidt <samuel@dersam.net>
 * @since 2016-02-05
 */
?>

    {{name}}

    {{address.office_address}}

    {{address.city}},
    {{address.province}}
    {{address.postal_code}}

Update template format to conform to Common bound data variable.

<?php
/**
 * Frontend template for the D2PO office pins on map
 *
 * @author Sam Schmidt <samuel@dersam.net>
 * @since 2016-02-05
 */
?>

    {{data.name}}

    {{data.address.office_address}}

    {{data.address.city}},
    {{data.address.province}}
    {{data.address.postal_code}}


<?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


		<?php echo $this->__('Narrow Search By') ?>

			<?php $facets = $this->getFacets() ?>
			<?php foreach ($facets as $facet): ?>
			<?php if (count($facet->getOptions())): ?>

					<?php echo $facet->getLabel() ?>

						<?php foreach ($facet->getOptions() as $facetOption): ?>

								<?php echo $facetOption->getLabel() ?>
								<?php if ($this->shouldDisplayProductCount()): ?>
									(<?php echo $facetOption->getNumberOfResults() ?>)
								<?php endif; ?>

						<?php endforeach ?>

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

Use Magento dl/dt/dd layered navigation markup structure


<script type="text/javascript">
	$.expr[':'].external = function(obj) {
    	return obj.hostname != '' && (obj.hostname != location.hostname);
	};

	$(document).ready(function() {

		$("a:external").click(function() {
			_gaq.push(['_link', this.href]);
			return false;
		});

		$("form:external").submit(function() {
			_gaq.push(['_linkByPost', this]);
		});
	});
</script>

Change live binding to on.

<script type="text/javascript">
	$.expr[':'].external = function(obj) {
    	return obj.hostname != '' && (obj.hostname != location.hostname);
	};

	$(document).ready(function() {

		$("a:external").on('click', function() {
			_gaq.push(['_link', this.href]);
			return false;
		});

		$("form:external").on('submit', function() {
			_gaq.push(['_linkByPost', this]);
		});
	});
</script>


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

?>
// ==UserScript==
// @name           mQueue - Injects buttons to rate IMDb movies on <?php echo $this->serverUrl() . $this->baseUrl(''); ?>
// @namespace      mQueue
// @include        *
// @exclude        <?php echo $this->serverUrl() . $this->baseUrl(''); ?>*
// ==/UserScript==

// Inject script if any links to IMDb found on the current page
if (document.evaluate('count(//a[contains(@href, "title/tt")])', document, null, XPathResult.NUMBER_TYPE, null).numberValue > 0)
{
    var script = document.createElement('script');
    script.src = '<?php echo $this->serverUrl() . $this->baseUrl('js/remote.js')?>';
    document.getElementsByTagName('head')[0].appendChild(script);
}

FIX formatting were wrong (no newline)


Lista de usuarios

<?= Html::linkAction('create', 'Crear', 'class="button"') ?>
<?php View::content() ?>
<?php if (isset($data)) { ?>

                Nombre
                Edad
                Correo
                Foto
                Acciones

            <?php foreach ($data as $item) { ?>

                    <?= $item->name ?>
                    <?= $item->age ?>
                    <?= $item->email ?>
                    <?= $item->photo ?>
                    <?= Html::linkAction("edit/$item->id", 'Editar') ?> | <?= Html::linkAction("update_photo/$item->id", 'Actualizar foto') ?>

            <?php } ?>

<?php } else { ?>

No hay ningún registro

<?php } ?>

Check that exist elements to list

Lista de usuarios

<?= Html::linkAction('create', 'Crear', 'class="button"') ?>
<?php View::content() ?>
<?php if (count($data) > 0) { ?>

                Nombre
                Edad
                Correo
                Foto
                Acciones

            <?php foreach ($data as $item) { ?>

                    <?= $item->name ?>
                    <?= $item->age ?>
                    <?= $item->email ?>
                    <?= $item->photo ?>
                    <?= Html::linkAction("edit/$item->id", 'Editar') ?> | <?= Html::linkAction("update_photo/$item->id", 'Actualizar foto') ?>

            <?php } ?>

<?php } else { ?>

No hay ningún registro

<?php } ?>


<?=$this->layout('header')?>

<?php requirePageJs( 'index' ) ?>

Аз есмь СТАТИКА

 <?=$this->wp->apply_filters('the_content', $staticEntry->post_content)?>

<?=$this->layout('footer')?>

Remove invlid/global call to the requirePageJs

<?=$this->layout('header')?>

Аз есмь СТАТИКА

 <?=$this->wp->apply_filters('the_content', $staticEntry->post_content)?>

<?=$this->layout('footer')?>


<?php
?>

<?php $this->__('Performance') ?>

		<a class="remoteCall toggleTemplate" href="<?php echo Mage::getUrl('debug/index/clearCache') ?>">
			Clear Magento Cache

Clear cache request should not be an ajax request, remoteCall class removed

<?php
?>

<?php $this->__('Performance') ?>

		<a class="toggleTemplate" href="<?php echo Mage::getUrl('debug/index/clearCache') ?>">
			<?php echo $this->__('Clear Magento Cache'); ?>


<?php

namespace BNETDocs\Templates;

use \BNETDocs\Libraries\Logger;
use \BNETDocs\Libraries\VersionInfo;
use \CarlBennett\MVC\Libraries\Common;

?>

    <footer class="main-page<?php if (isset($slim_ui) && $slim_ui) { ?> slim<?php } ?>">
      <a href="https://github.com/BNETDocs/bnetdocs-web/tree/<?php echo VersionInfo::$version->bnetdocs[1]; ?>" rel="external" title="Contribute to the BNETDocs source code!">BNETDocs <?php echo VersionInfo::$version->bnetdocs[0]; ?> © 2008-2018 <a href="<?php echo Common::relativeUrlToAbsolute("/legal"); ?>" rel="external" title="BNETDocs Legal Policies">BNETDocs

      BNETDocs is in no way affiliated with or endorsed by Blizzard Entertainment™ or its brands, and is not intended to compete with or undermine Blizzard Entertainment™ or Battle.net™. Persons using this software understand that the information provided within is collected knowledge from years of observations and may be inaccurate. All aforementioned trademarks are the property of their respective owners.

<?php echo Logger::getTimingFooter(); ?>

Update initial year to 2003

<?php

namespace BNETDocs\Templates;

use \BNETDocs\Libraries\Logger;
use \BNETDocs\Libraries\VersionInfo;
use \CarlBennett\MVC\Libraries\Common;

?>

    <footer class="main-page<?php if (isset($slim_ui) && $slim_ui) { ?> slim<?php } ?>">
      <a href="https://github.com/BNETDocs/bnetdocs-web/tree/<?php echo VersionInfo::$version->bnetdocs[1]; ?>" rel="external" title="Contribute to the BNETDocs source code!">BNETDocs <?php echo VersionInfo::$version->bnetdocs[0]; ?> © 2003-2018 <a href="<?php echo Common::relativeUrlToAbsolute("/legal"); ?>" rel="external" title="BNETDocs Legal Policies">BNETDocs

      BNETDocs is in no way affiliated with or endorsed by Blizzard Entertainment™ or its brands, and is not intended to compete with or undermine Blizzard Entertainment™ or Battle.net™. Persons using this software understand that the information provided within is collected knowledge from years of observations and may be inaccurate. All aforementioned trademarks are the property of their respective owners.

<?php echo Logger::getTimingFooter(); ?>


<?php
/**
 * @var NightsWatch\Entity\User $identity
 * @var NightsWatch\Form\AssignRankForm $form
 */
?>

    ×/a>
    The council will be immediately notified of any changes made using this form.

<?php echo $this->bootstrapForm($form, 'horizontal');

Resolve HTML syntax error in assign rank template

<?php
/**
 * @var NightsWatch\Entity\User $identity
 * @var NightsWatch\Form\AssignRankForm $form
 */
?>

    ×
    The council will be immediately notified of any changes made using this form.

<?php echo $this->bootstrapForm($form, 'horizontal');


<?php
	$c = Minz_Request::controllerName ();
	$a = Minz_Request::actionName ();
	$params = Minz_Request::params ();
	$markReadUrl = Minz_Session::param ('markReadUrl');
	Minz_Session::_param ('markReadUrl', false);
?>

	<?php if (!empty($this->nextId)) { ?>
	<?php $params['next'] = $this->nextId; ?>
	<a id="load_more" href="<?php echo Minz_Url::display (array ('c' => $c, 'a' => $a, 'params' => $params)); ?>"><?php echo Minz_Translate::t ('load_more'); ?>
	<?php } elseif ($markReadUrl) { ?>
	<a id="bigMarkAsRead" href="<?php echo $markReadUrl; ?>">
		<?php echo Minz_Translate::t ('nothing_to_load'); ?>

		✔

		<?php echo Minz_Translate::t ('mark_all_read'); ?>

	<?php } else { ?>

		<?php echo Minz_Translate::t ('nothing_to_load'); ?>

	<?php } ?>

Add a confirmation dialog when clicking on the big tick

<?php
	$c = Minz_Request::controllerName ();
	$a = Minz_Request::actionName ();
	$params = Minz_Request::params ();
	$markReadUrl = Minz_Session::param ('markReadUrl');
	Minz_Session::_param ('markReadUrl', false);
?>

	<?php if (!empty($this->nextId)) { ?>
	<?php $params['next'] = $this->nextId; ?>
	<a id="load_more" href="<?php echo Minz_Url::display (array ('c' => $c, 'a' => $a, 'params' => $params)); ?>"><?php echo Minz_Translate::t ('load_more'); ?>
	<?php } elseif ($markReadUrl) { ?>
	<a id="bigMarkAsRead" href="<?php echo $markReadUrl; ?>" class="confirm">
		<?php echo Minz_Translate::t ('nothing_to_load'); ?>

		✔

		<?php echo Minz_Translate::t ('mark_all_read'); ?>

	<?php } else { ?>

		<?php echo Minz_Translate::t ('nothing_to_load'); ?>

	<?php } ?>


<?=$this->doctype()?>

	<?=$this->layout()->header?>

    <?=$this->layout()->content?>

    <?=$this->layout()->footer?>

Remove php short open tags

<?php echo $this->doctype();?>

	<?php echo $this->layout()->header;?>

    <?php echo $this->layout()->content;?>

    <?php echo $this->layout()->footer;?>


<?php
$_nofollow = Mage::helper('catalin_seo')->getNofollow();
?>

    <?php foreach ($this->getItems() as $_item): ?>

            <?php if ($_item->getCount() > 0): ?>
                <?php $id = $_item->getFilter()->getRequestVar() . '-' . $_item->getValue(); ?>
                <div class="control" href="<?php echo ($_item->isSelected()) ? $_item->getRemoveUrl() : $_item->getUrl() ?>" <?php echo $_nofollow; ?> >
                    <input type="checkbox"<?php if ($_item->isSelected()): ?> checked="checked" <?php endif; ?>
                           value="<?php echo ($_item->isSelected()) ? $_item->getRemoveUrl() : $_item->getUrl() ?>"
                           id="<?php echo $id; ?>" />

                    <label for="<?php echo $id; ?>">
                        <?php echo $_item->getLabel() ?>
                        <?php if ($this->shouldDisplayProductCount()): ?>
                            (<?php echo $_item->getCount() ?>)
                        <?php endif; ?>

            <?php else: ?>

                    <?php echo $_item->getLabel(); ?>
                    <?php if ($this->shouldDisplayProductCount()): ?>
                        (<?php echo $_item->getCount() ?>)
                    <?php endif; ?>

            <?php endif; ?>

    <?php endforeach ?>

Use classes instead of specific CSS selector

<?php
$_nofollow = Mage::helper('catalin_seo')->getNofollow();
?>

    <?php foreach ($this->getItems() as $_item): ?>

            <?php if ($_item->getCount() > 0): ?>
                <?php $id = $_item->getFilter()->getRequestVar() . '-' . $_item->getValue(); ?>
                <div class="layered-nav-filter" href="<?php echo ($_item->isSelected()) ? $_item->getRemoveUrl() : $_item->getUrl() ?>" <?php echo $_nofollow; ?> >
                    <input type="checkbox"<?php if ($_item->isSelected()): ?> checked="checked" <?php endif; ?>
                           value="<?php echo ($_item->isSelected()) ? $_item->getRemoveUrl() : $_item->getUrl() ?>"
                           id="<?php echo $id; ?>" />

                    <label for="<?php echo $id; ?>" class="layered-nav-filter-label">
                        <?php echo $_item->getLabel() ?>
                        <?php if ($this->shouldDisplayProductCount()): ?>
                            (<?php echo $_item->getCount() ?>)
                        <?php endif; ?>

            <?php else: ?>

                    <?php echo $_item->getLabel(); ?>
                    <?php if ($this->shouldDisplayProductCount()): ?>
                        (<?php echo $_item->getCount() ?>)
                    <?php endif; ?>

            <?php endif; ?>

    <?php endforeach ?>


Warning: This feature is incomplete and/or not yet implemented.

Add a bezel to the NYI macro


<?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; ?>

Add support for displaying error (flash) messages

<?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; ?>


Welcome to the proophessor Todo example application

Powered by Zend Framework 2 and prooph components

            This is a simple Todo application showing you the integration of proophessor into a ZF2 system.

Database is ready?

Make sure you've configured the database connection and triggered the migrations!

About The Domain

            The domain of our Todo example application is very small. Two aggregates are responsible for handing the business logic:

The first one is the User aggregate. Its task is to post new Todos of the user on a todo list.

The second one is the Todo aggregate which manages the state of a Todo.

A Todo is just a line of text describing an open task for the user who owns the Todo.

A Todo can be marked as done

A Todo can be reopened

A Todo can have a Deadline

A User can add Reminders to get notified about the open Todo.

A User gets notified via email.

Align app name on welcome screen

Welcome to the proophessorDO

Powered by Zend Framework 2 and prooph components

            This is a simple Todo application showing you the integration of proophessor into a ZF2 system.

Database is ready?

Make sure you've configured the database connection and triggered the migrations!

About The Domain

            The domain of our Todo example application is very small. Two aggregates are responsible for handing the business logic:

The first one is the User aggregate. Its task is to post new Todos of the user on a todo list.

The second one is the Todo aggregate which manages the state of a Todo.

A Todo is just a line of text describing an open task for the user who owns the Todo.

A Todo can be marked as done

A Todo can be reopened

A Todo can have a Deadline

A User can add Reminders to get notified about the open Todo.

A User gets notified via email.


        Home

        Articles

        <?php echo $this->title; ?>

      Information Technology
      Farming
      Investing

<a href="/article/<?php echo $this->articleid ?>/edit">Edit this article

        <?php echo $this->title; ?>

            <img class="img-thumbnail" style="width:200px; height:200px" src="<?php echo $this->image; ?>">

        <?php echo $this->BbCode($this->content); ?>

Change article image thumbnail size

        Home

        Articles

        <?php echo $this->title; ?>

      Information Technology
      Farming
      Investing

<a href="/article/<?php echo $this->articleid ?>/edit">Edit this article

        <?php echo $this->title; ?>

            <img class="img-thumbnail" src="<?php echo $this->image; ?>">

        <?php echo $this->BbCode($this->content); ?>


<?php
$title = 'List of all posts - test';
$this->headTitle($title);
print $this->showMessages();
?>

		<a href="<?php echo $this->url('blog', array('controller' => 'index', 'action' => 'add'));?>"><?php echo $this->translate('Add new blog'); ?>

<?php echo $this->escapeHtml($title); ?>

<?php
    foreach($this->posts as $post)
    {
        print '

            url('blog', array('action'=>'view', 'id' => $post['id'])) . '">' . $post['title'] . '

';
    }
?>

Revert "test" on working version - откат

<?php
$title = 'List of all posts';
$this->headTitle($title);
print $this->showMessages();
?>

		<a href="<?php echo $this->url('blog', array('controller' => 'index', 'action' => 'add'));?>"><?php echo $this->translate('Add new blog'); ?>

<?php echo $this->escapeHtml($title); ?>

<?php
    foreach($this->posts as $post)
    {
        print '

            url('blog', array('action'=>'view', 'id' => $post['id'])) . '">' . $post['title'] . '

';
    }
?>


<?php $title = "News"; require("./header.inc.phtml"); ?>

        News

This is a template for the news, which isn't available yet.

          Carl Bennett
          Sunday, May 24, 2015

<?php require("./footer.inc.phtml"); ?>

Put up a better sample news post for now.

<?php $title = "News"; require("./header.inc.phtml"); ?>

        Work in progress

I've been giving life back into BNETDocs: Phoenix recently. There's been lots of changes to the code repository and restructuring it. There's been lots of new designs and paradigms put in place that are better than the previous Phoenix from last year. More news coming soon.

          Carl Bennett
          Monday, May 25, 2015

<?php require("./footer.inc.phtml"); ?>


            <?php if ($route === '/'): ?>

                    Need Help?

                    Installation Problems?

                    Documentation

            <?php else: ?>

                    Home

                    Installation Problems?

                    Documentation

            <?php endif; ?>

        <?= $this->fetch('includes/social-nav.phtml') ?>

Remove docs links for now

            <?php if ($route === '/'): ?>

                    Need Help?

                    Installation Problems?

            <?php else: ?>

                    Home

                    Installation Problems?

            <?php endif; ?>

        <?= $this->fetch('includes/social-nav.phtml') ?>


<?php $this->layout('minimal', ['title' => 'Set Up', 'page_class' => 'login-content']) ?>

<?=sprintf(_('Welcome to %s!'), $config->application->name) ?>!

<?=_('Begin setup by creating a Super Administrator account.') ?>

    <form action="" method="post">

                <input type="email" name="username" class="form-control" placeholder="<?=_('E-mail Address') ?>">

                <input type="password" name="password" class="form-control" placeholder="<?=_('Password') ?>">

        <button type="submit" class="btn btn-login btn-primary btn-float"></button>
    </form>

Apply new styling class to initial setup form.


Q. Are you logged in?

R. <?= ( $loggedIn == 1) ? 'yes' : 'no' ?>

<?php if ($loggedIn == 1) { ?>

Q. What's the data associated with my identity?

R. This is the data:

<?php var_dump($identity) ?>

<?php } ?>

Use print_r instead of var_dump

Q. Are you logged in?

R. <?= ( $loggedIn == 1) ? 'yes' : 'no' ?>

<?php if ($loggedIn == 1) { ?>

Q. What's the data associated with my identity?

R. This is the data:

<?php print_r($identity) ?>

<?php } ?>


            <?php if ($route === '/'): ?>

                    Need Help?

                    Installation Problems?

                    Documentation

            <?php else: ?>

                    Home

                    Installation Problems?

                    Documentation

            <?php endif; ?>

        <?= $this->fetch('includes/social-nav.phtml') ?>

Change docs title on homepage

            <?php if ($route === '/'): ?>

                    Need Help?

                    Installation Problems?

                    Learn how to build a workshop!

            <?php else: ?>

                    Home

                    Installation Problems?

                    Documentation

            <?php endif; ?>

        <?= $this->fetch('includes/social-nav.phtml') ?>


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

Add email to config if we have it. This isn't technically part of TogetherJS but we'd like it.


<?php $this->headTitle($arc->name)?>
<?php $this->headTitle($page->title)?>
<?php $this->appendJs("/atp-comic/js/comic.js")?>

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

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

<?=$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 } ?>

Add blog and transcript blocks

<?php $this->headTitle($arc->name)?>
<?php $this->headTitle($page->title)?>
<?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 <?=$page->pageNumber?>)

<?=$page->descriptionHtml?>

Page Transcript

<?=$page->transcriptHtml?>


<?php
/**
 * @var \App\Entity\Station $station
 * @var \App\Customization $customization
 */

$this->layout(
    'minimal',
    [
        'page_class' => 'station-' . $station->getShortName(),
        'title' => $this->e($station->getName()),
    ]
);

/** @var \App\Assets $assets */
$assets
    ->load('fancybox')
    ->load('Vue_PublicFullPlayer')
    ->addInlineJs(
        $this->fetch(
            'frontend/public/index.js',
            [
                'station' => $station,
                'nowplaying' => $nowplaying,
                'customFields' => $customFields,
            ]
        )
    );

$this->push('head');
?>
<meta property="twitter:card" content="player"/>
<meta property="twitter:player" content="<?=(string)$router->named(
    'public:index',
    ['station_id' => $station->getShortName(), 'embed' => 'embed'],
    [],
    true
)?>"/>
<meta property="twitter:player:width" content="400">
<meta property="twitter:player:height" content="250">
<meta property="twitter:title" content="<?=$this->e($station->getName())?>">
<meta property="twitter:site" content="<?=$this->e($station->getUrl())?>">
<meta property="twitter:image" content="<?=$defaultAlbumArt?>">
<?php
$this->end();
?>

<div id="public-radio-player">
    Loading...
</div>

Update dimensions of Twitter player card.

<?php
/**
 * @var \App\Entity\Station $station
 * @var \App\Customization $customization
 */

$this->layout(
    'minimal',
    [
        'page_class' => 'station-' . $station->getShortName(),
        'title' => $this->e($station->getName()),
    ]
);

/** @var \App\Assets $assets */
$assets
    ->load('fancybox')
    ->load('Vue_PublicFullPlayer')
    ->addInlineJs(
        $this->fetch(
            'frontend/public/index.js',
            [
                'station' => $station,
                'nowplaying' => $nowplaying,
                'customFields' => $customFields,
            ]
        )
    );

$this->push('head');
?>
<meta property="twitter:card" content="player"/>
<meta property="twitter:player" content="<?=(string)$router->named(
    'public:index',
    ['station_id' => $station->getShortName(), 'embed' => 'embed'],
    [],
    true
)?>"/>
<meta property="twitter:player:width" content="400">
<meta property="twitter:player:height" content="125">
<meta property="twitter:title" content="<?=$this->e($station->getName())?>">
<meta property="twitter:site" content="<?=$this->e($station->getUrl())?>">
<meta property="twitter:image" content="<?=$defaultAlbumArt?>">
<?php
$this->end();
?>

<div id="public-radio-player">
    Loading...
</div>


Liens doc

RBAC : pour une gestion simple des droits par role

Filter : pour filtrer des données (formulaire ou autre) => peut être utilisé avec InputFilter

Validator : pour valider des données (formulaire ou autre) => peut être utilisé avec InputFilter

Add Apigility link to doc links page

Liens doc

RBAC : pour une gestion simple des droits par role

Filter : pour filtrer des données (formulaire ou autre) => peut être utilisé avec InputFilter

Validator : pour valider des données (formulaire ou autre) => peut être utilisé avec InputFilter

Apigility : pour la partie API


		<?php foreach($images as $image) { ?>

				<a href="<?=$this->basePath() . $image->filePath('image')?>">
					<img src="<?=$this->basePath() . $this->resize(array(
						'width' => 200,
						'height' => 200,
						'mode' => 'fit',
						'path' => $image->filePath("thumbnail")
					))?>" />

<?=$image->title?>

		<?php } ?>

Add header to gallery page

Image Gallery

		<?php foreach($images as $image) { ?>

				<a href="<?=$this->basePath() . $image->filePath('image')?>">
					<img src="<?=$this->basePath() . $this->resize(array(
						'width' => 200,
						'height' => 200,
						'mode' => 'fit',
						'path' => $image->filePath("thumbnail")
					))?>" />

<?=$image->title?>

		<?php } ?>


<?php
$this->headTitle('Welcome!');
?>

Welcome to PHP Hampshire

PHP Hampshire is a not-for-profit PHP and other community software (e.g. Linux, MySQL, Apache etc.) user group that focuses on hobbyist and professional software development.

If you would like to get involved in our community, please visit our Google Group community.

Speakers

We are looking for speakers!

The slots we have are 10-15 minutes on PHP or related topics. If you would like to become a speaker at the next PHP Hampshire event, please get in touch with us by emailing info-at-phphants.co.uk.

Meetups

<a href="<?php echo $this->url('meetups'); ?>">See our meetups page

Projects

This website

GoDeploy

Remove urgency from We are looking for speakers text


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

	# VISUALIZADOR HTML

	print "";

	print "
 ";

	# ETIQUETA (LABEL)
	$html_label = "
 ".component_common_draw::draw_label($this)."
";

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

	switch($permissions) {

		case 0	:	$html_contenido .= "  ".label::get_label('sin_acceso')." ";
					break;

		case ($permissions>=1)	:

					$html_contenido .= "
 ";
					foreach ($ar_children_areas as $key => $value) {
						$section_name = RecordObj_dd::get_termino_by_tipo($key,DEDALO_APPLICATION_LANG);
						$html_contenido .= "$section_name
";
					}
					$html_contenido .= "
 ";

					break;
	}

	$html_contenido .= "
";

	# Prepare content to show in page
	tools::prepare_content($html_contenido);

	# PRINT HTML
	print $html_label;
	print $html_contenido;

	print "
"; //wrap
?>

Test of Sublime merge tool

<?php

	# VISUALIZADOR HTML

	print '';

	print "
 ";

	# ETIQUETA (LABEL)
	$html_label = "
 ".component_common_draw::draw_label($this)."
";

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

	switch($permissions) {

		case 0	:	$html_contenido .= "  ".label::get_label('sin_acceso')." ";
					break;

		case ($permissions>=1)	:

					$html_contenido .= "
 ";
					foreach ($ar_children_areas as $key => $value) {
						$section_name = RecordObj_dd::get_termino_by_tipo($key,DEDALO_APPLICATION_LANG);
						$html_contenido .= "$section_name
";
					}
					$html_contenido .= "
 ";

					break;
	}

	$html_contenido .= "
";

	# Prepare content to show in page
	tools::prepare_content($html_contenido);

	# PRINT HTML
	print $html_label;
	print $html_contenido;

	print "
"; //wrap
?>


span.gravatar {display: inline-block;}
select.filterUser option { padding-left: 20px; background-repeat: no-repeat; height: 16px; }
<?php
$sizes = [
    'small' => 16,
    'medium' => 36,
    'big' => 128,
];
foreach ($sizes as $name => $size) {
    echo 'span.gravatar.' . $name . '{width: ' . $size . 'px; height: ' . $size . 'px;}' . PHP_EOL;
}
foreach ($this->users as $user) {
    $urlBase = 'https://secure.gravatar.com/avatar/' . md5(trim(mb_strtolower($user->email))) . '.jpg?default=identicon';
    foreach ($sizes as $name => $size) {
        $url = $urlBase . '&size=' . $size;
        $additionnalSelector = $name == 'small' ? ", select.filterUser option[value='" . $user->id . "']" : ''; ?>
span.gravatar.user_<?php echo $user->id; ?>.<?php echo $name . $additionnalSelector; ?> {background-image: url(<?php echo $url; ?>);}
<?php
    }
}

Drop selectbox CSS style because not supported in Firefox anymore

span.gravatar {display: inline-block;}
select.filterUser option { padding-left: 20px; background-repeat: no-repeat; height: 16px; }
<?php
$sizes = [
    'small' => 16,
    'medium' => 36,
    'big' => 128,
];
foreach ($sizes as $name => $size) {
    echo 'span.gravatar.' . $name . '{width: ' . $size . 'px; height: ' . $size . 'px;}' . PHP_EOL;
}
foreach ($this->users as $user) {
    $urlBase = 'https://secure.gravatar.com/avatar/' . md5(trim(mb_strtolower($user->email))) . '.jpg?default=identicon';
    foreach ($sizes as $name => $size) {
        $url = $urlBase . '&size=' . $size; ?>
span.gravatar.user_<?php echo $user->id; ?>.<?php echo $name; ?> {background-image: url(<?php echo $url; ?>);}
<?php
    }
}


<a href="<?php echo $device_url; ?>"><?php echo $device->getName(); ?>

Add Hostname to Services Device Link

<?php
	$device_name = $device->getName();
	$device_hostname = $device->getHostname();
	$device_display = $device_name . (empty($device_hostname) ? '' : ' - ' . $device_hostname);
?>
<a href="<?php echo $device_url; ?>"><?php echo $device_display; ?>


<?php

/* This helper script expects an external table name, an external table
 * reference object, and a Zend_Form object containing field elements.
 *
 */

// Establish status codes.
$statusCodes = array(
        Application_Model_SetTable::UNKNOWN => '?',
        Application_Model_SetTable::BLANK => ' ',
        Application_Model_SetTable::PARTIAL => '/',
        Application_Model_SetTable::GOOD => 'X',
    );

// Get the objects passed to this partial helper.
$table = $this->table;
$status = $this->status;

// Create a status indicator for whether all recommended fields have
// been set for this record in the external table.
$statusCode = $statusCodes[$status];
echo "<input type='text' name='$table' id='$table' value='$statusCode'
    class='statusCode readOnly' readOnly='readOnly'>\n";

?>

Remove reference to unused constant from view script

<?php

/* This helper script expects an external table name, an external table
 * reference object, and a Zend_Form object containing field elements.
 *
 */

// Establish status codes.
$statusCodes = array(
        Application_Model_SetTable::BLANK => ' ',
        Application_Model_SetTable::PARTIAL => '/',
        Application_Model_SetTable::GOOD => 'X',
    );

// Get the objects passed to this partial helper.
$table = $this->table;
$status = $this->status;

// Create a status indicator for whether all recommended fields have
// been set for this record in the external table.
$statusCode = $statusCodes[$status];
echo "<input type='text' name='$table' id='$table' value='$statusCode'
    class='statusCode readOnly' readOnly='readOnly'>\n";

?>


<?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;
?>


<script type="text/javascript">

function generateKeySeed() {
	var keySeedGen = '<?php echo bin2hex(mcrypt_create_iv(30)); ?>';
	jQuery('#extensionSubForm-keySeed').val(keySeedGen);
}

</script>

Apply URANDOM to PlayReady form as it slow down the add/configure in the admin_console

<script type="text/javascript">

function generateKeySeed() {
	var keySeedGen = '<?php echo bin2hex(mcrypt_create_iv(30, MCRYPT_DEV_URANDOM)); ?>';
	jQuery('#extensionSubForm-keySeed').val(keySeedGen);
}

</script>


<?php

namespace BNETDocs\Templates\EventLog;

use \BNETDocs\Libraries\Logger;
use \BNETDocs\Libraries\User;
use \CarlBennett\MVC\Libraries\Common;
use \CarlBennett\MVC\Libraries\Pair;

$title       = "Event Log Index";
$description = "The index for event logs on BNETDocs";
$this->opengraph->attach(new Pair("url", "/eventlog/index"));

require("./header.inc.phtml");
?>

<?php if ($this->getContext()->acl_allowed) { ?>
        Event Log Index

<?php require("./NYI.inc.phtml"); ?>

<?php } else { ?>
        Event Log Index

You are not authorized to view this page.

<?php } ?>

<?php require("./footer.inc.phtml"); ?>

Add basic template for viewing event logs

<?php

namespace BNETDocs\Templates\EventLog;

use \BNETDocs\Libraries\Logger;
use \BNETDocs\Libraries\User;
use \CarlBennett\MVC\Libraries\Common;
use \CarlBennett\MVC\Libraries\Pair;

$title       = "Event Log Index";
$description = "The index for event logs on BNETDocs";
$this->opengraph->attach(new Pair("url", "/eventlog/index"));

$event_logs = $this->getContext()->event_log;
$event_log_count = $this->getContext()->sum_event_log;

require("./header.inc.phtml");
?>

<?php if ($this->getContext()->acl_allowed) { ?>
        Event Log Index

<?php require("./NYI.inc.phtml"); ?>

Found <?php echo number_format($event_log_count); ?> event(s).

<?php if ($event_log_count > 0) { ?>

            Id
            Event Type
            Timestamp
            User
            IP Address

<?php foreach ($event_logs as $event_object) { ?>

              <?php echo $event_object->id; ?>
              <?php echo $event_object->event_type_id; ?>
              <?php echo $event_object->event_datetime; ?>
              <?php echo $event_object->user_id; ?>
              <?php echo $event_object->ip_address; ?>

<?php } ?>

<?php } ?>

<?php } else { ?>
        Event Log Index

You are not authorized to view this page.

<?php } ?>

<?php require("./footer.inc.phtml"); ?>


<?php
$this->view->setVar('title', 'Shows Directory');
$this->assets->addCss('vendor/world-flags-sprite/stylesheets/flags16.css');

$cols = \DF\Utilities::columns($this->view->podcasts, 2);
?>

<? foreach($cols as $col): ?>

        <?
        echo $this->viewHelper->renderCommon('podcast', array('podcasts' => $col));
        ?>

<? endforeach; ?>

Fix flag sprites on podcast page.

<?php
$this->view->setVar('title', 'Shows Directory');

$this->assets->collection('custom_css')->addCss('vendor/world-flags-sprite/stylesheets/flags16.css');

$cols = \DF\Utilities::columns($this->view->podcasts, 2);
?>

<? foreach($cols as $col): ?>

        <?
        echo $this->viewHelper->renderCommon('podcast', array('podcasts' => $col));
        ?>

<? endforeach; ?>


<?
/** @var Application $this */
/** @var array $context */
?>

<? $anotherLang = $this->getCurrentLanguage() == 'ru' ? 'en' : 'ru'?>

<?= $this->translate('vstu_header') ?> <a href="/change-lang.php?lang=<?= $anotherLang ?>"><?= strtoupper($anotherLang) ?>

<? $total = 0 ?>
<? foreach ($context['publications'] as $year => $list): ?>

<?= $year ?>

        <? foreach ($list as $item): ?>

<?= isset($item[$this->getCurrentLanguage()]) ? $item[$this->getCurrentLanguage()] : '-' ?>

            <? $total++ ?>
        <? endforeach ?>

<? endforeach ?>

<?= $this->translate('Total') ?>: <big><?= $total ?></big>

<a href="https://elibrary.ru/author_counter_click.asp?id=<?= $this->getConfig('elibrary_id') ?>" target=_blank>
    <img src="https://elibrary.ru/author_counter.aspx?id=<?= $this->getConfig('elibrary_id') ?>" title="<?= $this->translate('elibrary_link') ?>" border="0" height="31" width="88">

Add title and center for page

<?
/** @var Application $this */
/** @var array $context */
?>

<!DOCTYPE html>
<html lang="<?= $this->getCurrentLanguage() ?>">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta charset="UTF-8">
    <meta name="author" content="Dmitry V. Romanov">
    <title><?= $this->translate('vstu_header') ?></title>

<? $anotherLang = $this->getCurrentLanguage() == 'ru' ? 'en' : 'ru'?>

<?= $this->translate('vstu_header') ?> <a href="/change-lang.php?lang=<?= $anotherLang ?>"><?= strtoupper($anotherLang) ?>

<? $total = 0 ?>
<? foreach ($context['publications'] as $year => $list): ?>

<?= $year ?>

        <? foreach ($list as $item): ?>

<?= isset($item[$this->getCurrentLanguage()]) ? $item[$this->getCurrentLanguage()] : '-' ?>

            <? $total++ ?>
        <? endforeach ?>

<? endforeach ?>

<?= $this->translate('Total') ?>: <big><?= $total ?></big>

    <a href="https://elibrary.ru/author_counter_click.asp?id=<?= $this->getConfig('elibrary_id') ?>" target=_blank>
        <img src="https://elibrary.ru/author_counter.aspx?id=<?= $this->getConfig('elibrary_id') ?>" title="<?= $this->translate('elibrary_link') ?>" border="0" height="31" width="88">


<?php if($this->trial_remain != '' && $this->trial_remain != "Trial expired."){?>

<?php echo _("Your trial expires in") ?>

           <?php echo $this->trial_remain?>

<?php echo _("days") ?>

            <a title="<?php echo sprintf(_("Purchase an %s Pro plan!"), PRODUCT_NAME)?>" href="/billing/upgrade"><?php echo _("My Account") ?>

<?php }?>

Check if station is on a trial plan before displaying the trial box

<?php if($this->is_trial && $this->trial_remain != '' && $this->trial_remain != "Trial expired."){?>

<?php echo _("Your trial expires in") ?>

           <?php echo $this->trial_remain?>

<?php echo _("days") ?>

            <a title="<?php echo sprintf(_("Purchase an %s Pro plan!"), PRODUCT_NAME)?>" href="/billing/upgrade"><?php echo _("My Account") ?>

<?php }?>


<?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;


<?php echo $this->doctype() ?>

  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>mQueue</title>
  <?php
  echo $this->headLink()->appendStylesheet($this->serverUrl() . $this->baseUrl('/css/global.css'));

	echo $this->headScript()
			->prependFile($this->serverUrl() . $this->baseUrl('/js/script.js'))
			->prependFile($this->serverUrl() . $this->baseUrl('/js/jquery-1.4.min.js'));
  ?>

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

			<?php echo $this->navigation(); ?>
			<?php echo $this->loginState(); ?>

		<?php echo $this->layout()->content ?>

<?php if (isset($this->messages)) foreach($this->messages as $message) echo '
' . $message . '
'; ?>

ADD link on site title

<?php echo $this->doctype() ?>

  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>mQueue</title>
  <?php
  echo $this->headLink()->appendStylesheet($this->serverUrl() . $this->baseUrl('/css/global.css'));

	echo $this->headScript()
			->prependFile($this->serverUrl() . $this->baseUrl('/js/script.js'))
			->prependFile($this->serverUrl() . $this->baseUrl('/js/jquery-1.4.min.js'));
  ?>

<a href="<?php echo $this->serverUrl() . $this->baseUrl(''); ?>">
<?php echo $this->translate('mQueue'); ?>

			<?php echo $this->navigation(); ?>
			<?php echo $this->loginState(); ?>

		<?php echo $this->layout()->content ?>

<?php if (isset($this->messages)) foreach($this->messages as $message) echo '
' . $message . '
'; ?>


<?=
$this->rcmTextEdit(
    'loginHeader',
    'Login',
    'h1'
)
?>

    <?= isset($error) ? $this->escapeHtml($error) : '' ?>

    <form class="loginForm  rcm-login-form"
          action="/rcm-login/login-form-submit-handler"
          method="post"
    >
        <?=
        $this->rcmTextEdit(
            'userNameCopy',
            'Username:',
            'label',
            array('for' => 'rcmLoginUsername')
        ) ?>

        <input type="hidden"
               name="redirect"
               value="<?= $this->escapeHtmlAttr($redirect) ?>">
        <input autofocus type="text" name="username"
               value="<?= $this->escapeHtmlAttr($username) ?>">

        <?=
        $this->rcmTextEdit(
            'loginPasswordCopy',
            'Password:',
            'label',
            array('for' => 'rcmLoginPassword')
        ) ?>

        <input type="password" name="password">

        <button class="btn btn-primary" type="submit">
            <?=
            $this->rcmTextEdit(
                'loginSubmitCopy',
                'login',
                'span'
            ) ?>
        </button>
    </form>

    <?=
    $this->rcmRichEdit(
        'bottomLoginText',
        'Forgot your password?
'
    )
    ?>

Convert Reset Password to i18n

<?=
$this->rcmTextEdit(
    'loginHeader',
    'Login',
    'h1'
)
?>

    <?= isset($error) ? $this->escapeHtml($error) : '' ?>

    <form class="loginForm  rcm-login-form"
          action="/rcm-login/login-form-submit-handler"
          method="post"
    >
        <?=
        $this->rcmTextEdit(
            'userNameCopy',
            'Username:',
            'label',
            array('for' => 'rcmLoginUsername')
        ) ?>

        <input type="hidden"
               name="redirect"
               value="<?= $this->escapeHtmlAttr($redirect) ?>"/>
        <input autofocus type="text" name="username"
               value="<?= $this->escapeHtmlAttr($username) ?>"/>

        <?=
        $this->rcmTextEdit(
            'loginPasswordCopy',
            'Password:',
            'label',
            array('for' => 'rcmLoginPassword')
        ) ?>

        <input type="password" name="password"/>

        <button class="btn btn-primary" type="submit">
            <?=
            $this->rcmTextEdit(
                'loginSubmitCopy',
                'login',
                'span'
            ) ?>
        </button>
    </form>

    <?=
    $this->rcmRichEdit(
        'bottomLoginText',
        'Forgot your password?
'
    )
    ?>


<%= title %>

            I've made some software to help me (and others) make music, principally
            with <?php echo Links::$maxMSP ?>
            and <?php echo Links::$abletonLive ?>. Some of it is available here.
            Some is free, some costs a small amount.

    <?php foreach (array_chunk($this->_linked, 3) as $groupsOfThree): ?>

            <?php foreach ($groupsOfThree as $linkedPage): ?>

<?php echo $linkedPage->href() ?>

<?php echo $linkedPage->strapline() ?>

            <?php endforeach ?>

    <?php endforeach ?>

Revert change made to PHP file in error

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

            I've made some software to help me (and others) make music, principally
            with <?php echo Links::$maxMSP ?>
            and <?php echo Links::$abletonLive ?>. Some of it is available here.
            Some is free, some costs a small amount.

    <?php foreach (array_chunk($this->_linked, 3) as $groupsOfThree): ?>

            <?php foreach ($groupsOfThree as $linkedPage): ?>

<?php echo $linkedPage->href() ?>

<?php echo $linkedPage->strapline() ?>

            <?php endforeach ?>

    <?php endforeach ?>


Entity

<?php
include 'view/location.tree.phtml';
?>

<?php
include 'view/entity.insert.phtml';
?>

<a href="/entities/update?entity_key=<?php echo $entity->getKey(); ?>">
    Edit

<?php
if (!sizeof($entity->getChildren())) {
?>
    <a href="/entities/delete?entity_key=<?php echo $entity->getKey(); ?>">
        Delete

<?php
}
?>

    <?php $entity->getTitle(); ?>

<?php

echo "Attribute Set: " . $entity->getAttributeSet()->getName();

?>

<?php
include 'view/details.phtml';
?>

<?php
include 'view/references.phtml';
?>

<?php
include 'view/plugins.phtml';
?>

Add quick link for adding a duplicate entity

Entity

<?php
include 'view/location.tree.phtml';
?>

<?php
include 'view/entity.insert.phtml';
?>

<a href="/entities/insert?parent_key=<?php echo $entity->getParent()->getKey(); ?>&attribute_set_key=<? echo $entity->getAttributeSet()->getKey(); ?>">
    Add New to Parent

<a href="/entities/update?entity_key=<?php echo $entity->getKey(); ?>">
    Edit

<?php
if (!sizeof($entity->getChildren())) {
?>
    <a href="/entities/delete?entity_key=<?php echo $entity->getKey(); ?>">
        Delete

<?php
}
?>

    <?php $entity->getTitle(); ?>

<?php

echo "Attribute Set: " . $entity->getAttributeSet()->getName();

?>

<?php
include 'view/details.phtml';
?>

<?php
include 'view/references.phtml';
?>

<?php
include 'view/plugins.phtml';
?>


<?php
$row = $this->row;
switch($this->column->getName()) {
    case '#':
        echo $this->index;
        break;
    case 'User':
        echo $this->partial('partial/user.phtml', array('user' => $row->getUser()));
        break;
    case 'Comment':
        echo $this->escapeHtml($row->getComments());
        break;
    case 'Time':
        echo $row->getDateTime()->format('Y-m-d H:i');
        break;
    default:;
}
?>

Correct revision indices in table.

<?php
$row = $this->row;
switch($this->column->getName()) {
    case '#':
        echo $row->getIndex()+1;
        break;
    case 'User':
        echo $this->partial('partial/user.phtml', array('user' => $row->getUser()));
        break;
    case 'Comment':
        echo $this->escapeHtml($row->getComments());
        break;
    case 'Time':
        echo $row->getDateTime()->format('Y-m-d H:i');
        break;
    default:;
}
?>


Download full version

Where Am I is distributed as a free Max For Live Audio effect (the download also includes documentation). The downloaded .amxd file is fully editable and re-usable.

            <button type="submit" class="btn btn btn-primary">Download</button>

        <form action="http://www.chippanfire.com/cpf_media/software/WhereAmI.pdf" method="GET">
            <button type="submit" class="btn btn btn-success">Download Documentation</button>
        </form>

Version History

1.1.0

Device no longer fills Lives undo buffer when observing changes in selected track/device/etc

Put version history below Buy content (as per Device Snapshot Manager)


        <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'); ?>

Fix wrong manifest files being loaded

        <title>Lightdatasys</title>

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

                    Menu

Lightdatasys

Login

Football

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

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


<!DOCTYPE html>
<html>
	<head>
		<?php echo $this->headMeta() ?>
		<title><?php echo $this->title ?></title>
		<link rel="icon" type="image/png" href="<?php echo $this->assetUrl('/css/garp/images/garp.png') ?>">
	</head>
	<body>
		<?php echo $this->layout()->content ?>
	</body>
</html>

Add Google Analytics event tracking on custom pages.


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

Add site name to TogetherJS config.


<?php
$loginForm = $this->loginForm;
$loginForm->prepare();
$loginForm->setAttribute('action', $this->url('login'));
$loginForm->setAttribute('method', 'POST');
$loginForm->setAttribute('role', 'form');
$loginForm->setAttribute('id', 'user-login');
?>

Login

            <?php echo $this->form()->openTag($loginForm); ?>
            <?php
            $usernameMessages = $loginForm->get('username')->getMessages();
            $passwordMessages = $loginForm->get('password')->getMessages();
            ?>
            <div class="form-group <?php echo (!empty($usernameMessages)) ? 'has-error' : ''; ?>">
                <?php echo $this->formLabel($loginForm->get('username')); ?>
                <?php echo $this->formElement($loginForm->get('username')); ?>

            <div class="form-group <?php echo (!empty($passwordMessages)) ? 'has-error' : ''; ?>">
                <?php echo $this->formLabel($loginForm->get('password')); ?>
                <?php echo $this->formElement($loginForm->get('password')); ?>

            <?php echo $this->formHidden($loginForm->get('security')); ?>
            <?php echo $this->formElement($loginForm->get('submit')); ?>
            <?php echo $this->form()->closeTag(); ?>

Remove bootstrap-based login form html

<?php

$loginForm = $this->loginForm;
$loginForm->prepare();
$loginForm->setAttribute('action', $this->url('login'));
$loginForm->setAttribute('method', 'POST');
echo $this->form()->openTag($loginForm);
echo $this->formCollection($loginForm);
echo $this->form()->closeTag();


Audit entry <?= $className; ?> identifier <?= $id; ?> at revision <?= $rev; ?>

                    Field
                    Value

                <?php foreach ($data as $field => $value): ?>

                        <?= $field; ?>

                            <?php if ($value instanceof \DateTime): ?>
                                <?= $value->format("r"); ?>
                            <?php else : ?>
                                <?= $value; ?>
                            <?php endif; ?>

                <?php endforeach; ?>

<a class="btn btn-primary" href="<?=
    $this->url('audit_viewentity',
        array(
            'id' => $id,
            'className' => $className
        )
    );?>">
   View revisions

Change view rev link to btn-link

Audit entry <?= $className; ?> identifier <?= $id; ?> at revision <?= $rev; ?>

                    Field
                    Value

                <?php foreach ($data as $field => $value): ?>

                        <?= $field; ?>

                            <?php if ($value instanceof \DateTime): ?>
                                <?= $value->format("r"); ?>
                            <?php else : ?>
                                <?= $value; ?>
                            <?php endif; ?>

                <?php endforeach; ?>

<a class="btn btn-link" href="<?=
    $this->url('audit_viewentity',
        array(
            'id' => $id,
            'className' => $className
        )
    );?>">
   View revisions