/** * Function to generate pagination * * This function generate pagination * * * @param $params contains option of the generated result * @param $template to associate generated result * * @return string HTML code of the pagination */ function smarty_function_sirclo_render_pagination($params, $template) { $vw = ''; $first = ''; $last = ''; $prev = ''; $next = ''; $view_all = ''; $paging = array(); $options = array(); if (!empty($params['first'])) { $first = $params['first']; } if (!empty($params['last'])) { $last = $params['last']; } if (!empty($params['prev'])) { $options['text_prev'] = $params['prev']; } if (!empty($params['next'])) { $options['text_next'] = $params['next']; } if (!empty($params['paging'])) { $paging = $params['paging']; } if (!empty($params['view_all'])) { $view_all = $params['view_all']; } $vw = Helper_Renderer::renderPaging($paging, 10, $options); return $vw; }
/** * Function to generate order table * * This function generate order table * * * @param $params contains option of the generated result * @param $template to associate generated result * * @return string HTML code of the order table <table>...</table> */ function smarty_function_sirclo_render_order_table($params, $template) { $html = ''; if (isset($params['order'])) { $colors = array('color1' => Helper_Structure::getArrayValue($params, 'color1'), 'color2' => Helper_Structure::getArrayValue($params, 'color2')); $html = Helper_Renderer::renderOrderTable($params['order'], $colors); } return $html; }
/** * Function to generate login form * * This function generate login form * * * @param $params contains option of the generated result * @param $template to associate generated result * * @return string HTML code of the login form <form>...</form> */ function smarty_function_sirclo_render_login_form($params, $template) { $_btn_class = !empty($params['btn_class']) ? $params['btn_class'] : 'btn-flat'; $_lang = !empty($params['lang']) ? $params['lang'] : "en"; $_label_email = $_lang == "id" ? "E-mail" : "E-mail"; $_label_password = $_lang == "id" ? "Password" : "Password"; $params['fields'] = array(array('name' => 'username', 'type' => 'emailLogin', 'value' => '', 'label' => 'E-mail', 'attribute' => 'required'), array('name' => 'password', 'type' => 'passwordLogin', 'value' => '', 'label' => 'Password', 'attribute' => 'required'), array('name' => '', 'type' => 'submit', 'value' => 'LOGIN', 'label' => '', 'attribute' => 'class="' . $_btn_class . '"')); $_html = Helper_Renderer::renderForm($params); return $_html; }
/** * Function to generate register form * * This function generate register form * * * @param $params contains option of the generated result * @param $template to associate generated result * * @return string HTML code of the register form <form>...</form> */ function smarty_function_sirclo_render_register_form($params, $template) { $_html = Helper_Renderer::sircloRenderRegisterForm($params); return $_html; }
/** * Function to generate reset password form * * This function generate reset password form * * * @param $params contains option of the generated result * @param $template to associate generated result * * @return string HTML code of the reset password form <form>...</form> */ function smarty_function_sirclo_render_reset_password_form($params, $template) { $html = Helper_Renderer::sircloRenderResetPassword($params); return $html; }
/** * Function to generate product add to cart form * * This function generate product add to cart form * * * @param $params contains option of the generated result * @param $template to associate generated result * * @return string HTML code of the product add to cart form <form>...</form> */ function smarty_function_sirclo_render_product_add_to_cart($params, $template) { $_html = Helper_Renderer::sircloRenderProductAddToCart($params); return $_html; }
static function sircloRenderTestimonialForm($params) { $_btn_class = !empty($params['btn_class']) ? $params['btn_class'] : 'btn-flat'; $_lang = !empty($params['lang']) ? $params['lang'] : "en"; $_label_name = $_lang == "id" ? "Nama Anda" : "Your Name"; $_label_author_desc = $_lang == "id" ? "Profil Anda" : "Your Profile"; $_label_testimonial = $_lang == "id" ? "Testimonial" : "Testimonial"; $_label_email = $_lang == "id" ? "Email" : "Email"; $_label_company = $_lang == "id" ? "Company" : "Company"; $_label_website = $_lang == "id" ? "Website" : "Website"; $_label_image = $_lang == "id" ? "Picture" : "Picture"; $params['fields'] = array(array('name' => 'author', 'type' => 'text', 'value' => '', 'label' => $_label_name, 'attribute' => 'required'), array('name' => 'email', 'type' => 'text', 'value' => '', 'label' => $_label_email, 'attribute' => ''), array('name' => 'company', 'type' => 'text', 'value' => '', 'label' => $_label_company, 'attribute' => ''), array('name' => 'website', 'type' => 'text', 'value' => '', 'label' => $_label_website, 'attribute' => ''), array('name' => 'content', 'type' => 'textarea', 'value' => '', 'label' => $_label_testimonial, 'attribute' => 'required'), array('name' => 'picture', 'type' => 'file', 'label' => $_label_image), array('name' => '', 'type' => 'submit', 'value' => 'Submit Testimonial', 'label' => '', 'attribute' => 'class="' . $_btn_class . '"')); $html = Helper_Renderer::renderForm($params); return $html; }
/** * Function to generate list of recent order * * This function take the parameter as option of the generated result * * * @param $params contains option of the generated result * @param $template to associate generated result * * @return string HTML code of the order list in table */ function smarty_function_sirclo_render_account_order_list($params, $template) { $html = Helper_Renderer::sircloRenderOrderList($params); return $html; }
/** * Function to generate account edit password form * * This function render edit password form * * * @param $params contains option of the generated result * @param $template to associate generated form * * @return string HTMLcode of the account password edit form <form>...</form> */ function smarty_function_sirclo_render_account_edit_password($params, $template) { $html = Helper_Renderer::sircloRenderAccountEditPassword($params); return $html; }
function htmlSite($middle, $options = NULL) { $this->data['csses'] = array(array('url' => $this->resource('css/blueprint/screen.css'), 'media' => 'screen, projection')); $this->data['ie_csses'] = array(array('url' => $this->resource('css/blueprint/ie.css'), 'media' => 'screen, projection')); if (!isset($options)) { $options = $this->_getDefaultOptions(); } $this->data['meta_http'] = array('Content-Type' => 'text/html; charset=UTF-8'); $jses = array($this->resource('js/jquery.min.js')); $jses = array_merge($jses, $this->getJses()); $extraHead = ''; if (isset($this->extraHead)) { $extraHead = $this->extraHead; } $extraHead .= Helper_Renderer::renderAjaxInfo($this); return $this->htmlCommon($this->getBodyContent($middle, $options) . $this->xmlJses($jses), $extraHead, $options); }
/** * Function to generate contact form * * This function generate contact form * * @param $params contains option of the generated result * @param $template to associate generated result * * @return string HTML code of the contact form <form>...</form> */ function smarty_function_sirclo_render_contact_form($params, $template) { $_html = Helper_Renderer::sircloRenderContactForm($params); return $_html; }
/** * Function to generate payment notification form * * This function generate payment notification form * * * @param $params contains option of the generated result * @param $template to associate generated result * * @return string HTML code of the payment notification form <form>...</form> */ function smarty_function_sirclo_render_payment_notif_form($params, $template) { $_html = Helper_Renderer::sircloRenderPaymentNotifForm($params); return $_html; }
/** * Function to generate place order form * * This function generate place order form * * * @param $params contains option of the generated result * @param $template to associate generated result * * @return string HTML code of the place order form <form>...</form> */ function smarty_function_sirclo_render_place_order_form($params, $template) { $html = Helper_Renderer::sircloRenderPlaceOrderForm($params); return $html; }
/** * Function to generate testimonial form * * This function generate testimonial form * * * @param $params contains option of the generated result * @param $template to associate generated result * * @return string HTML code of the testimonial form <form>...</form> */ function smarty_function_sirclo_render_testimonial_form($params, $template) { $html = Helper_Renderer::sircloRenderTestimonialForm($params); return $html; }
/** * Function to generate account info * * This function render account info * * * @param $params contains option of the generated result * @param $template to associate generated result * * @return string HTML code of the account info as table <table>...</table> */ function smarty_function_sirclo_render_account_info($params, $template) { $html = Helper_Renderer::sircloRenderAccountInfo($params); return $html; }