Beispiel #1
0
    ?>

					<div class="gateway <?php 
    echo text_helper::alternate('odd', 'even');
    ?>
" id="row-gateway-<?php 
    echo $gateway['keyword'];
    ?>
">

						<?php 
    if (isset($gateway['settings']['button'])) {
        ?>

							<?php 
        echo html_helper::anchor('billing/' . $product['type'] . '/checkout/' . $product['product_id'] . '/' . $gateway['keyword'], html_helper::image($gateway['settings']['button']));
        ?>

						<?php 
    } else {
        ?>

							<?php 
        echo html_helper::anchor('billing/' . $product['type'] . '/checkout/' . $product['product_id'] . '/' . $gateway['keyword'], __('payment_button', 'billing_transactions', array('%s' => $gateway['name'])));
        ?>

						<?php 
    }
    ?>

					</div>
Beispiel #2
0
 public static function authButtons($action = 'signup', $button = '')
 {
     $buttons = array();
     foreach (config::item('auth_methods', 'users') as $service) {
         if ($service != 'default') {
             $buttons[] = html_helper::anchor('users/connect/authorize/' . $service . '/' . $action, html_helper::image('assets/images/users/authentication/' . $service . '/' . ($button ? $button : $action) . '.png', array('border' => 0)));
         }
     }
     return $buttons;
 }