public static function at_calltoaction($atts = null, $content = null) { if ($atts == 'generator') { return array("name" => __("Call to action", AT_ADMIN_TEXTDOMAIN), "base" => "at_calltoaction", 'icon' => "im-icon-spinner-4", "class" => "at-calltoaction-class", 'category' => __("Theme Short-Codes", AT_ADMIN_TEXTDOMAIN), "params" => array(array("type" => "dropdown", "heading" => __("Action", AT_ADMIN_TEXTDOMAIN), "param_name" => "action", "width" => 200, "value" => array("Search" => "banner_1", "Join" => "banner_2"), "description" => ''), array("type" => "dropdown", "heading" => __("Visibility", AT_ADMIN_TEXTDOMAIN), "param_name" => "visible", "width" => 200, "value" => array("Always visible" => "always", "Visible only for unauthorised visitors" => "guest", "Visible only for members" => "members"), "description" => ''), array("type" => "textfield", "heading" => __("Title", AT_ADMIN_TEXTDOMAIN), "param_name" => "title", "value" => "", "description" => __("Enter block caption.", AT_ADMIN_TEXTDOMAIN)), array("type" => "textfield", "heading" => __("Link", AT_ADMIN_TEXTDOMAIN), "param_name" => "url", "value" => "", "description" => __("Internal or external URI.", AT_ADMIN_TEXTDOMAIN)), array("type" => "textfield", "heading" => __("Button", AT_ADMIN_TEXTDOMAIN), "param_name" => "button", "value" => "", "description" => __("Button caption.", AT_ADMIN_TEXTDOMAIN)), array("type" => "textarea", "heading" => __("Description", AT_ADMIN_TEXTDOMAIN), "param_name" => "description", "value" => "", "description" => __("Please enter few words about action.", AT_ADMIN_TEXTDOMAIN)), array("type" => "textfield", "heading" => __("Extra class name", AT_ADMIN_TEXTDOMAIN), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in Custom CSS Shortcode or Masterkey Custom CSS option.", AT_ADMIN_TEXTDOMAIN)))); } $shortcode_id = self::_shortcode_id(); extract(shortcode_atts(array('title' => '', 'url' => '', 'visible' => 'guest', 'description' => '', 'button' => '', 'action' => '', 'el_class' => '', 'width' => '1/1'), $atts)); $width = wpb_translateColumnWidthToSpan($width); $output = '<div class="main_banner ' . $action . ' ' . $el_class . '">'; $output .= '<div class="text_wrapper">'; if (!empty($title)) { $output .= '<p class="title">' . $title . '</p>'; } if (!empty($description)) { $output .= '<p class="desc">' . $description . '</p>'; } $output .= '</div>'; if (!empty($url)) { $output .= '<a href="' . $url . '" class="btn4">' . $button . '</a>'; } $output .= '</div>'; // OUTPUT if (AT_Common::is_user_logged() == false && $visible == 'guest' || $visible == 'always' || $visible == 'member' && AT_Common::is_user_logged()) { return $output; } }
public function info($dealer = '') { try { if (empty($dealer)) { throw new Exception(); } if (is_numeric($dealer)) { $dealer_id = $dealer; } else { $segment = explode('-', $dealer); if (count($segment) == 1) { throw new Exception(); } $dealer_id = $segment[count($segment) - 1]; if (!is_numeric($dealer_id)) { throw new Exception(); } } $user_model = $this->load->model('user_model'); if (!($dealer_info = $user_model->get_user_by_id($dealer_id)) || !$dealer_info['is_dealer'] || $dealer_info['is_block']) { throw new Exception(); } if (is_numeric($dealer) && !empty($dealer_info['alias'])) { wp_redirect(AT_Common::site_url('dealer/info/' . trim($dealer_info['alias'] . '-' . $dealer_info['id'], '-') . '/'), 301); exit; } } catch (Exception $e) { AT_Core::show_404(); } switch ($dealer_info['layout']) { case 'layout_2': $layout = 'content'; $right_side = 'content/right_side'; break; default: $layout = 'content_right'; $right_side = 'right_side'; break; } $car_model = $this->load->model('car_model'); $reference_model = $this->load->model('reference_model'); $dealer_contact = array(); $affiliate = $user_model->get_dealer_main_affiliate($dealer_info['id']); if ($affiliate) { $phones = array(); if (trim($affiliate['phone']) != '') { $phones[] = trim($affiliate['phone']); } if (trim($affiliate['phone_2']) != '') { $phones[] = trim($affiliate['phone_2']); } $dealer_contact = array('phones' => implode('<br/>', $phones), 'email' => $affiliate['email'], 'adress' => (!empty($affiliate['region']) ? $affiliate['region'] . ', ' : '') . $affiliate['adress'], 'url' => AT_Common::site_url('dealer/info/' . trim($dealer_info['alias'] . '-' . $dealer_info['id'], '-') . '/')); } $affiliates = $user_model->get_dealer_affiliates($dealer_info['id']); $paginator = $this->load->library('paginator'); $paginator = $paginator->get(3, $car_model->get_cars_count_by_user_id($dealer_info['id']), $dealer_info['per_page']); $this->breadcrumbs->add_item(__('Catalog', AT_TEXTDOMAIN), 'catalog'); $this->breadcrumbs->add_item($dealer_info['name'], 'dealer/info/' . trim($dealer_info['alias'] . '-' . $dealer_info['id'], '-') . '/'); $this->view->use_layout('header_' . $layout . '_footer')->add_block('page_title', 'general/page_title', array('page_title' => $dealer_info['name']))->add_block($right_side, 'dealer/right_side', array('dealer_info' => $dealer_info, 'dealer_contact' => $dealer_contact, 'affiliate' => $affiliate, 'affiliates' => $user_model->get_dealer_affiliates($dealer_info['id'])))->add_block('content', 'dealer/info', array('layout' => $layout, 'best_offers' => $car_model->get_best_offers($dealer_info['id']), 'cars' => $car_model->get_cars_by_user_id($dealer_info['id'], $paginator['offset'], $paginator['per_page'])))->add_block('content/pagination', 'general/pagination', $paginator); }
public static function at_manufacturers($atts = null, $content = null) { if ($atts == 'generator') { return array("name" => __("Make", AT_ADMIN_TEXTDOMAIN), "base" => "at_manufacturers", 'icon' => "im-icon-spinner-4", "class" => "at-manufacturers-class", 'category' => __("Theme Short-Codes", AT_ADMIN_TEXTDOMAIN), "params" => array(array("type" => "textfield", "heading" => __("Title", AT_ADMIN_TEXTDOMAIN), "param_name" => "title", "value" => "", "description" => __("Enter shortcode title.", AT_ADMIN_TEXTDOMAIN), 'dependency' => array('element' => 'content_type', 'value' => array('custom_text'))), array("type" => "range", "heading" => __("Columns", AT_ADMIN_TEXTDOMAIN), "param_name" => "columns", "default" => "1", "min" => "1", "max" => "7", "step" => "1", "unit" => 'col', "description" => __("Select limit to display on this block", AT_ADMIN_TEXTDOMAIN)), array("type" => "textfield", "heading" => __("Extra class name", AT_ADMIN_TEXTDOMAIN), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in Custom CSS Shortcode or Masterkey Custom CSS option.", AT_ADMIN_TEXTDOMAIN)))); } $shortcode_id = self::_shortcode_id(); extract(shortcode_atts(array('title' => '', 'columns' => '1', 'el_class' => ''), $atts)); $car_model = AT_Loader::get_instance()->model('car_model'); $manufacturers = $car_model->get_manufacturers(); $output = ''; if (!empty($title)) { $output .= '<h2>' . $title . '</h2>'; } if ($columns > 1) { $output .= '<div class="auto-columns col-' . $columns . '">'; } $output .= '<ul>'; foreach ($manufacturers as $manufacturer) { $output .= '<li><a href="' . AT_Common::site_url('catalog/' . $manufacturer['alias']) . '">' . $manufacturer['name'] . '</a></li>'; } $output .= '</ul>'; if ($columns > 1) { $output .= '</div>'; } $output .= '<div class="clear"></div>'; return $output; }
public static function at_recent_cars($atts = null, $content = null) { if ($atts == 'generator') { return array("name" => __("Recent Listings", AT_ADMIN_TEXTDOMAIN), "base" => "at_recent_cars", 'icon' => "im-icon-spinner-4", "class" => "at-recent-cars-class", 'category' => __("Theme Short-Codes", AT_ADMIN_TEXTDOMAIN), "params" => array(array("type" => "textfield", "heading" => __("Title", AT_ADMIN_TEXTDOMAIN), "param_name" => "title", "value" => "", "description" => __("Description will appear below each chart.", AT_ADMIN_TEXTDOMAIN), 'dependency' => array('element' => 'content_type', 'value' => array('custom_text'))), array("type" => "range", "heading" => __("Limit", AT_ADMIN_TEXTDOMAIN), "param_name" => "limit", "value" => "12", "min" => "0", "max" => "20", "step" => "1", "unit" => '', "description" => __("Select limit to display on this block", AT_ADMIN_TEXTDOMAIN)), array("type" => "dropdown", "heading" => __("Make", AT_ADMIN_TEXTDOMAIN), "param_name" => "manufacturer_id", "width" => 200, "value" => AT_VC_Helper::get_manufacturers(), "description" => ''), array("type" => "dropdown", "heading" => __("Model", AT_ADMIN_TEXTDOMAIN), "param_name" => "model_id", "width" => 200, "value" => array("Any" => "0"), "description" => ''), array("type" => "dropdown", "heading" => __("Autoplay", AT_ADMIN_TEXTDOMAIN), "param_name" => "autoplay", "width" => 200, "value" => array("Yes" => "true", "No" => "false"), "description" => ''), array("type" => "textfield", "heading" => __("Pause", AT_ADMIN_TEXTDOMAIN), "param_name" => "pause", "value" => "4000", "description" => __("Specify slideshow timeout in ms.", AT_ADMIN_TEXTDOMAIN)), array("type" => "textfield", "heading" => __("Extra class name", AT_ADMIN_TEXTDOMAIN), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in Custom CSS Shortcode or Masterkey Custom CSS option.", AT_ADMIN_TEXTDOMAIN)))); } $shortcode_id = self::_shortcode_id(); extract(shortcode_atts(array('title' => '', 'manufacturer_id' => 0, 'model_id' => 0, 'limit' => 12, 'autoplay' => 'false', 'pause' => '4000', 'el_class' => '', 'width' => '1/1'), $atts)); $width = wpb_translateColumnWidthToSpan($width); $car_model = AT_Loader::get_instance()->model('car_model'); $cars = array(); $params = array(); if ($manufacturer_id > 0) { $params['manufacturer_id'] = $manufacturer_id; if ($model_id == 0) { $params['model_id'] = $model_id; } } $cars = $car_model->get_cars($params, $offset = 0, $limit); $output = '<div class="recent ' . $el_class . '"> <h2>' . $title . '</h2> <div class="recent_carousel" data-settings=\'{ "auto": ' . $autoplay . ', "pause": ' . $pause . ', "slideWidth": 220, "minSlides": 1, "infiniteLoop": 1, "maxSlides": 4, "slideMargin": 20, "controls" : true, "pager" : false, "infiniteLoop": true }\'>'; foreach ($cars as $key => $car) { if (isset($car['photo']['photo_name']) && file_exists($car['photo']['photo_path'] . '213x164/' . $car['photo']['photo_name'])) { $static = $car['photo']['photo_url'] . '213x164/' . $car['photo']['photo_name']; $image = '<img src="' . AT_Common::static_url($static) . '" alt="' . $title . '"/>'; } else { if (has_post_thumbnail()) { $image = get_the_post_thumbnail($post_id = get_the_ID(), $size = array(213, 164)); } else { $image = '<img src="' . AT_Common::site_url(AT_URI_THEME . '/framework/assets/images/pics/noimage-small.jpg') . '" alt="' . $title . '"/>'; } } // OLD WAY: // <img src="' . AT_Common::static_url( $car['photo']['photo_path'] . '213x164/' . $car['photo']['photo_name'] ) . '" alt="' . $car['options']['_manufacturer_id']['name'] . ' ' . $car['options']['_model_id']['name'] . '"/> $cost = AT_Common::show_full_price($value = $car['options']['_price'], $currency = $car['options']['_currency_id']); $output .= '<div class="slide"> <a href="' . get_permalink($car['ID']) . '"> ' . $image . ' <div class="description"> Registration ' . $car['options']['_fabrication'] . '<br/>' . (!empty($car['options']['_cilindrics']) ? $car['options']['_cilindrics'] . ' cm³ ' : '') . (!empty($car['options']['_fuel_id']['name']) ? $car['options']['_fuel_id']['name'] . '<br/>' : '') . (!empty($car['options']['_engine_power']) ? $car['options']['_engine_power'] . ' HP<br/>' : '') . (!empty($car['options']['_body_type_id']['name']) ? 'Body ' . $car['options']['_body_type_id']['name'] . '<br/>' : '') . (!empty($car['options']['_mileage']) ? number_format((int) $car['options']['_mileage'], 0, '', ' ') . ' ' . AT_Common::car_mileage(0) : '') . '</div> <div class="title">' . $car['options']['_manufacturer_id']['name'] . ' ' . $car['options']['_model_id']['name'] . ' <span class="price">' . $cost . '</span></div> </a> </div>'; } $output .= '</div> </div>'; return $output; }
public function sociable() { $fields = array('sociable' => array('type' => 'group', 'title' => __('Sociable', AT_ADMIN_TEXTDOMAIN), 'description' => '', 'submit' => __("Add New Sociable", AT_ADMIN_TEXTDOMAIN), 'default' => array(), 'fields' => array('icon' => array('type' => 'select', 'title' => __('Sociable Icon', AT_ADMIN_TEXTDOMAIN), 'description' => __('Select social network icon.', AT_ADMIN_TEXTDOMAIN), 'items' => AT_Common::get_icons('social'), 'default' => ''), 'link' => array('type' => 'input_text', 'title' => __('Sociable Link', AT_ADMIN_TEXTDOMAIN), 'description' => __('Add your custom URL to your network profile.', AT_ADMIN_TEXTDOMAIN), 'default' => '')))); if (!$this->_get_params) { $this->view->add_block('content', 'admin/theme_options/content', array('title' => __('Sociable options', AT_ADMIN_TEXTDOMAIN), 'alias' => 'sociable')); } return $fields; }
public static function at_recent_posts($atts = null, $content = null) { if ($atts == 'generator') { return array("name" => __("Recent Posts", AT_ADMIN_TEXTDOMAIN), "base" => "at_recent_posts", 'icon' => "im-icon-spinner-4", "class" => "at-resent-posts-class", 'category' => __("Theme Short-Codes", AT_ADMIN_TEXTDOMAIN), "params" => array(array("type" => "textfield", "heading" => __("Title", AT_ADMIN_TEXTDOMAIN), "param_name" => "title", "value" => "", "description" => __("Description will appear below each chart.", AT_ADMIN_TEXTDOMAIN), 'dependency' => array('element' => 'content_type', 'value' => array('custom_text'))), array("type" => "dropdown", "heading" => __("Post type", AT_ADMIN_TEXTDOMAIN), "param_name" => "post_type", "width" => 200, "value" => array("Posts" => "post", "News" => "news", "Reviews" => "reviews"), "description" => ''), array("type" => "range", "heading" => __("Limit", AT_ADMIN_TEXTDOMAIN), "param_name" => "limit", "default" => 12, "min" => 0, "max" => 20, "step" => 1, "unit" => '', "description" => __("Select limit to display on this block", AT_ADMIN_TEXTDOMAIN)), array("type" => "textfield", "heading" => __("Description length", AT_ADMIN_TEXTDOMAIN), "param_name" => "trim", "value" => "80", "description" => __("Enter truncated content length in symbols.", AT_ADMIN_TEXTDOMAIN)), array("type" => "range", "heading" => __("View post", AT_ADMIN_TEXTDOMAIN), "param_name" => "view_post", "default" => "3", "min" => "0", "max" => "4", "step" => "1", "unit" => '', "description" => __("Select limit to display on one row", AT_ADMIN_TEXTDOMAIN)), array('heading' => __("Hide <small>(optional)</small>", AT_ADMIN_TEXTDOMAIN), 'description' => __("You may hide away some screen items.", AT_ADMIN_TEXTDOMAIN), 'param_name' => "disable", 'value' => array(__("Date", AT_ADMIN_TEXTDOMAIN) => "date", __("Featured image", AT_ADMIN_TEXTDOMAIN) => "featured", __("Teaser", AT_ADMIN_TEXTDOMAIN) => "excerpt"), 'type' => 'checkbox'), array("type" => "textfield", "heading" => __("Extra class name", AT_ADMIN_TEXTDOMAIN), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in Custom CSS Shortcode or Masterkey Custom CSS option.", AT_ADMIN_TEXTDOMAIN)))); } $shortcode_id = self::_shortcode_id(); $view_post = 0; extract(shortcode_atts(array('title' => '', 'limit' => '3', 'trim' => 80, 'view_post' => '3', 'disable' => '', 'el_class' => '', 'width' => '1/1', 'post_type' => 'post'), $atts)); $width = wpb_translateColumnWidthToSpan($width); $cwidth = (100 - 2.5 * ($view_post - 1)) / $view_post; $query = array('post_type' => $post_type, 'showposts' => $limit, 'nopaging' => false, 'ignore_sticky_posts' => 1); $results = new WP_Query(); $results->query($query); $output = '<div class="recent_blog ">'; $output .= '<h2>' . $title . '</h2>'; $view_post = (int) $view_post; if ($results->have_posts()) { $c = 0; while ($results->have_posts()) { $c++; $class = "post_block"; $results->the_post(); $margin = 2.5; if ($c === $view_post) { $class .= ' last'; $margin = 0; } $output .= '<div class="' . $class . '" style="max-width: ' . $cwidth . '%; margin-right: ' . $margin . '%;">'; // Show featured image if (has_post_thumbnail() && strpos($disable, 'featured') === false) { // $car_model = AT_Loader::get_instance()->model('car_model'); // $cars = array(); // <a title="' . $title . '" href="' . get_permalink( $car['ID'] ) . '"><img src="' . AT_Common::static_url( $car['photo']['photo_path'] . 'original/' . $car['photo']['photo_name'] ) . '" alt="' . $title . '"/></a> $output .= '<a class="thumb" href="' . get_permalink() . '">' . get_the_post_thumbnail($post_id = get_the_ID(), $size = array(180, 180)); if (get_post_meta(get_the_ID(), '_featured_video', true)) { $output .= '<i class="icon-youtube-play has_video"></i>'; } $output .= '</a>'; } $output .= '<h5><a href="' . get_permalink() . '">' . strtoupper(get_the_title()) . '</a></h5>'; // Show date if (strpos($disable, 'date') === false) { $output .= '<div class="date">' . get_the_date() . '</div>'; } // Show teaser if (strpos($disable, 'excerpt') === false) { $output .= '<div class="post"><p>' . AT_Common::truncate($content = get_the_excerpt(), $limit = $trim) . '</p></div>'; } $output .= '</div>'; if ($c === $view_post) { $output .= '<div class="clear"></div>'; $c = 0; } } } $output .= '<div class="clear"></div></div>'; return $output; }
public function car() { $reference_model = $this->load->model('reference_model'); $transport_types['0'] = 'all'; foreach ($reference_model->get_data_for_options('get_transport_types') as $key => $value) { $transport_types[$key] = $value; } $fields = array('car_limit_publish' => array('type' => 'range', 'title' => __('Vehicles limit for users', AT_ADMIN_TEXTDOMAIN), 'description' => __('0 - unlimit.', AT_ADMIN_TEXTDOMAIN), 'min' => 0, 'max' => 200, 'step' => 1, 'unit' => 'cars', 'default' => 10), 'car_limit_publish_dealer' => array('type' => 'range', 'title' => __('Vehicles limit for dealers', AT_ADMIN_TEXTDOMAIN), 'description' => __('0 - unlimit.', AT_ADMIN_TEXTDOMAIN), 'min' => 0, 'max' => 200, 'step' => 1, 'unit' => 'cars', 'default' => 50), 'car_limit_photos' => array('type' => 'range', 'title' => __('Image upload limit for users', AT_ADMIN_TEXTDOMAIN), 'description' => __('Please specify max upload files, 0 - unlimit.', AT_ADMIN_TEXTDOMAIN), 'min' => 0, 'max' => 50, 'step' => 1, 'unit' => 'photos', 'default' => 6), 'car_limit_photos_dealer' => array('type' => 'range', 'title' => __('Image upload limit for dealers', AT_ADMIN_TEXTDOMAIN), 'description' => __('Please specify max upload files, 0 - unlimit.', AT_ADMIN_TEXTDOMAIN), 'min' => 0, 'max' => 50, 'step' => 1, 'unit' => 'photos', 'default' => 6), 'dealer_map' => array('type' => 'checkbox', 'title' => __('Show dealer map:', AT_ADMIN_TEXTDOMAIN), 'description' => '', 'default' => false), 'add_offer_btn' => array('type' => 'checkbox', 'title' => __('Hide offer button:', AT_ADMIN_TEXTDOMAIN), 'description' => '', 'default' => false), 'dealer_map_height' => array('type' => 'range', 'title' => __('Map height', AT_ADMIN_TEXTDOMAIN), 'description' => __('Please specify map height in pixels.', AT_ADMIN_TEXTDOMAIN), 'min' => 100, 'max' => 300, 'step' => 10, 'unit' => 'px', 'default' => 100), 'car_mileage' => array('type' => 'radio', 'title' => __('Car mileage:', AT_ADMIN_TEXTDOMAIN), 'description' => '', 'items' => array('miles' => __('Miles', AT_ADMIN_TEXTDOMAIN), 'kilometers' => __('Kilometers', AT_ADMIN_TEXTDOMAIN)), 'default' => 'miles'), 'car_transport_types' => array('type' => 'block', 'title' => __('Car Transport Types Params', AT_ADMIN_TEXTDOMAIN), 'fields' => array('is_view_all' => array('type' => 'checkbox', 'title' => __('Show Item "All"', AT_ADMIN_TEXTDOMAIN), 'description' => __('Turn on/off item "All"."', AT_ADMIN_TEXTDOMAIN), 'default' => true), 'icon' => array('type' => 'select', 'first_not_view' => true, 'title' => __('Transport type Icon', AT_ADMIN_TEXTDOMAIN), 'description' => __('Select transport type icon.', AT_ADMIN_TEXTDOMAIN), 'items' => AT_Common::get_icons('transport_types'), 'default' => 'filter-icon-all'), 'default' => array('type' => 'select', 'first_not_view' => true, 'title' => __('Default Transport Type', AT_ADMIN_TEXTDOMAIN), 'description' => __('Select default transport type.', AT_ADMIN_TEXTDOMAIN), 'items' => $transport_types, 'default' => '0')), 'default' => array()), 'car_engine_range' => array('type' => 'block', 'title' => __('Car Engine Params', AT_ADMIN_TEXTDOMAIN), 'fields' => array('min' => array('type' => 'range', 'title' => __('Engine min value', AT_ADMIN_TEXTDOMAIN), 'description' => __('You may specify minimal engine value', AT_ADMIN_TEXTDOMAIN), 'min' => 100, 'max' => 11900, 'step' => 100, 'unit' => 'cm³', 'default' => 900), 'max' => array('type' => 'range', 'title' => __('Engine max value', AT_ADMIN_TEXTDOMAIN), 'description' => __('You may specify maximal engine value', AT_ADMIN_TEXTDOMAIN), 'min' => 200, 'max' => 12000, 'step' => 100, 'unit' => 'cm³', 'default' => 6500)), 'default' => array())); if (!$this->_get_params) { $this->view->add_block('content', 'admin/site_options/content', array('title' => __('Transport Options', AT_ADMIN_TEXTDOMAIN), 'alias' => 'car')); } return $fields; }
public static function at_slider_posts($atts = null, $content = null) { if ($atts == 'generator') { return array("name" => __("Slider: Posts", AT_ADMIN_TEXTDOMAIN), "base" => "at_slider_posts", 'icon' => "im-icon-spinner-4", "class" => "at-auto-gallery-class", 'category' => __("Theme Short-Codes", AT_ADMIN_TEXTDOMAIN), "params" => array(array("type" => "range", "heading" => __("Limit", AT_ADMIN_TEXTDOMAIN), "param_name" => "limit", "value" => "5", "min" => "0", "max" => "12", "step" => "1", "unit" => '', "description" => __("Select limit to display on this block", AT_ADMIN_TEXTDOMAIN)), array("type" => "dropdown", "heading" => __("Post type", AT_ADMIN_TEXTDOMAIN), "param_name" => "post_type", "width" => 200, "value" => array("Posts" => "post", "News" => "news", "Reviews" => "reviews"), "description" => ''), array("type" => "dropdown", "heading" => __("Autoplay", AT_ADMIN_TEXTDOMAIN), "param_name" => "autoplay", "width" => 200, "value" => array("Yes" => "true", "No" => "false"), "description" => ''), array("type" => "textfield", "heading" => __("Pause", AT_ADMIN_TEXTDOMAIN), "param_name" => "pause", "value" => "4000", "description" => __("Specify slideshow timeout in ms.", AT_ADMIN_TEXTDOMAIN)), array("type" => "textfield", "heading" => __("Extra class name", AT_ADMIN_TEXTDOMAIN), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in Custom CSS Shortcode or Masterkey Custom CSS option.", AT_ADMIN_TEXTDOMAIN)))); } $shortcode_id = self::_shortcode_id(); extract(shortcode_atts(array('limit' => 5, 'post_type' => 'post', 'autoplay' => 'false', 'pause' => '4000', 'el_class' => '', 'width' => '1/1'), $atts)); $width = wpb_translateColumnWidthToSpan($width); $query = array('post_type' => $post_type, 'showposts' => $limit, 'nopaging' => false, 'ignore_sticky_posts' => 1); $results = new WP_Query(); $results->query($query); if ($results->have_posts()) { $output = '<div class="home_slider ' . $el_class . '"> <div class="slider slider_1" data-settings=\'{ "auto": ' . $autoplay . ', "slideWidth": 940, "pause": ' . $pause . ', "minSlides": 1, "infiniteLoop" : "true", "maxSlides": 1, "slideMargin": 0, "controls" : false}\'>'; while ($results->have_posts()) { $results->the_post(); $title = get_the_title(); if (has_post_thumbnail()) { $image = get_the_post_thumbnail($post_id = get_the_ID(), $size = array(640, 428)); } else { $image = '<img src="' . AT_Common::site_url(AT_URI_THEME . '/framework/assets/images/pics/noimage-large.jpg') . '" alt="' . $title . '"/>'; } $output .= '<div class="slide" data-onclick="location.href=' . get_permalink(get_the_ID()) . '"> <a title="' . $title . '" href="' . get_permalink(get_the_ID()) . '">' . $image . '</a> <div class="description"> <a title="' . $title . '" href="' . get_permalink(get_the_ID()) . '"><h2 class="title">' . $title . '</h2></a> <p class="desc">' . AT_Common::truncate($content = get_the_excerpt(), $limit = 80) . '</p> </div> </div>'; } $output .= '</div> </div>'; } else { $output = '<div class="home_slider ' . $el_class . '">' . __("Please add more posts.", AT_TEXTDOMAIN) . '</div>'; } return $output; }
public static function at_recent_dealers($atts = null, $content = null) { if ($atts == 'generator') { return array("name" => __("Recent Dealers", AT_ADMIN_TEXTDOMAIN), "base" => "at_recent_dealers", 'icon' => "im-icon-spinner-4", "class" => "at-resent-posts-class", 'category' => __("Theme Short-Codes", AT_ADMIN_TEXTDOMAIN), "params" => array(array("type" => "textfield", "heading" => __("Title", AT_ADMIN_TEXTDOMAIN), "param_name" => "title", "value" => "", "description" => __("Enter custom title.", AT_ADMIN_TEXTDOMAIN), 'dependency' => array('element' => 'content_type', 'value' => array('custom_text'))), array("type" => "range", "heading" => __("Limit", AT_ADMIN_TEXTDOMAIN), "param_name" => "limit", "value" => "12", "min" => "0", "max" => "20", "step" => "1", "unit" => '', "description" => __("Select limit to display on this block", AT_ADMIN_TEXTDOMAIN)), array("type" => "dropdown", "heading" => __("Carousel", AT_ADMIN_TEXTDOMAIN), "param_name" => "carousel", "width" => 'carousel', "value" => array("Use carousel" => "carousel", "Static" => "static"), "description" => ''), array("type" => "range", "heading" => __("View post", AT_ADMIN_TEXTDOMAIN), "param_name" => "spans", "value" => "4", "min" => "0", "max" => "6", "step" => "1", "unit" => '', "description" => __("Select limit to display on one row", AT_ADMIN_TEXTDOMAIN)), array("type" => "textfield", "heading" => __("Extra class name", AT_ADMIN_TEXTDOMAIN), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in Custom CSS Shortcode or Masterkey Custom CSS option.", AT_ADMIN_TEXTDOMAIN)))); } $shortcode_id = self::_shortcode_id(); extract(shortcode_atts(array('title' => '', 'limit' => 3, 'trim' => 80, 'spans' => 4, 'disable' => '', 'carousel' => 'carousel', 'el_class' => '', 'width' => '1/1', 'post_type' => 'post'), $atts)); $style = ''; if ($carousel == 'static') { $style .= ' style="'; $style .= 'max-width:' . 100 / $spans . '%'; $style .= '"'; } $width = wpb_translateColumnWidthToSpan($width); $dealers = AT_Loader::get_instance()->model('user_model'); $results = $dealers->get_dealers(0, $limit); $total = $dealers->get_dealers_count(); $output = ''; if (count($results > 0)) { $c = 0; $class = "dealer-wrapper"; $output .= '<div class="' . $class . '">'; // $output .= '<a href="#" class="all">Show all...</a>'; $output .= '<div class="results"><span>' . sprintf(__('Total %s dealers', AT_TEXTDOMAIN), $total) . '</span></div>'; $output .= '<div class="clear"></div>'; $output .= '<div class="tabs_' . $carousel . '">'; foreach ($results as $dealer) { $c++; $url = AT_Common::site_url('dealer/info/' . trim($dealer['alias'] . '-' . $dealer['id'], '-') . '/'); if (!file_exists($dealer['photo']['photo_path'] . '138x138/' . $dealer['photo']['photo_name'])) { $photo = AT_URI . '/assets/images/default-dealer-small.jpg'; } else { $photo = $dealer['photo']['photo_url'] . '138x138/' . $dealer['photo']['photo_name']; } $output .= '<div class="slide"' . $style . '>'; $output .= '<a class="thumb img" href="' . $url . '"><img src="' . $photo . '" /></a>'; $output .= '<a class="title" href="' . $url . '">' . $dealer['name'] . '</a>'; $output .= '</div>'; } $output .= '</div>'; $output .= '</div>'; } $output .= '<div class="clear"></div>'; return $output; }
public static function at_auto_news($atts = null, $content = null) { if ($atts == 'generator') { return array("name" => __("Auto news vertical column", AT_ADMIN_TEXTDOMAIN), "base" => "at_auto_news", 'icon' => "im-icon-spinner-4", "class" => "at-auto-news-class", 'category' => __("Theme Short-Codes", AT_ADMIN_TEXTDOMAIN), "params" => array(array("type" => "textfield", "heading" => __("Title", AT_ADMIN_TEXTDOMAIN), "param_name" => "title", "value" => "", "description" => __("Description will appear below each chart.", AT_ADMIN_TEXTDOMAIN), 'dependency' => array('element' => 'content_type', 'value' => array('custom_text'))), array("type" => "range", "heading" => __("Limit", AT_ADMIN_TEXTDOMAIN), "param_name" => "limit", "value" => "2", "min" => "0", "max" => "20", "step" => "1", "unit" => '', "description" => __("Select limit to display on this block", AT_ADMIN_TEXTDOMAIN)), array("type" => "textfield", "heading" => __("Extra class name", AT_ADMIN_TEXTDOMAIN), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in Custom CSS Shortcode or Masterkey Custom CSS option.", AT_ADMIN_TEXTDOMAIN)))); } $shortcode_id = self::_shortcode_id(); extract(shortcode_atts(array('title' => '', 'limit' => 2, 'el_class' => '', 'width' => '1/1'), $atts)); $width = wpb_translateColumnWidthToSpan($width); $query = array('post_type' => 'news', 'posts_per_page' => $limit, 'nopaging' => 0, 'ignore_sticky_posts' => 1); $results = new WP_Query(); $results->query($query); $output = '<div class="news_wrapper ">'; $output = '<div class="news ">'; $output .= '<h2>' . $title . '</h2>'; if ($results->have_posts()) { $c = 0; while ($results->have_posts()) { $c++; $class = "news_box"; $results->the_post(); $output .= '<div class="' . $class . '">'; if (has_post_thumbnail()) { $output .= '<a class="thumb" href="' . get_permalink() . '">' . get_the_post_thumbnail($post_id = get_the_ID(), $size = array(178, 178)) . '</a>'; } $output .= '<h5><a href="' . get_permalink() . '">' . strtoupper(get_the_title()) . '</a></h5>'; $output .= '<div class="date">' . get_the_date() . '</div>'; $output .= '<div class="post"><p>' . AT_Common::truncate($content = get_the_excerpt(), $limit = 40) . '</p></div>'; $output .= '</div>'; if ($c === 2) { $class .= ' last'; $output .= '<div class="clear"></div>'; $c = 0; } } } $output .= '<div class="all_wrapper"><a class="all_news btn7" href="' . get_post_type_archive_link('news') . '">' . __("All news", AT_TEXTDOMAIN) . '</a></div>'; $output .= '</div>'; $output .= '</div>'; wp_reset_postdata(); return $output; }
public function __construct() { $this->core = AT_Core::get_instance(); // if ( !$this->core->get_option( 'theme_is_activated', false ) && is_user_logged_in() ) { // AT_Notices::set_frontend_notice( // '<h3>'.__( 'New to AutoDealer?' , AT_TEXTDOMAIN ) . '</h3>' . // __( 'You almost ready to use full theme features. Please complete two last steps before move your website to production mode.' , AT_TEXTDOMAIN ) . // '<br />' . // sprintf(__( '<a href="%1$s">Click here to continue →</a>' , AT_TEXTDOMAIN ), get_admin_url() . 'admin.php?page=at_site_options_general'), // $class = 'notice' // ); // Header('Location: ' . get_admin_url() . 'admin.php?page=at_site_options_general'); // die(); // // exit( __( 'Theme is not activated' , AT_TEXTDOMAIN ) ); // } // SSL and ajax tricks // if ( ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] != rtrim( home_url(), '/' ) ) { // AT_Common::redirect( AT_Router::get_instance()->server('REQUEST_URI'), '301' ); // } $this->uri = AT_Router::get_instance(); if ($this->uri->get_method() != 'show_underconstruction' && $this->core->get_option('status_site', 'production') == 'underconstruction') { AT_Core::show_underconstruction(); } $this->view = $this->core->view; $this->load = AT_Loader::get_instance(); $this->session = AT_Session::get_instance(); $this->registry = AT_Registry::get_instance(); $this->load->library('breadcrumbs'); $this->breadcrumbs = AT_Breadcrumbs::get_instance(); $validation_rules = $this->load->helper('validation_rules', true); $this->validation = $this->load->library('form_validation', true, $validation_rules->rules); //$this->validation->set_rules(); if (AT_Common::is_user_logged() && $this->core->get_option('theme_is_activated', false)) { $user_model = $this->load->model('user_model'); $user_info = $user_model->get_user_by_id(AT_Common::get_logged_user_id()); $this->registry->set('user_info', $user_info); if ($this->core->get_option('confirm_email_enable', true) && !in_array($this->uri->segments(1), array('confirm_email', 'unlogged')) && (is_null($user_info['date_active']) || empty($user_info['date_active']))) { AT_Common::redirect('auth/confirm_email'); } } }
function __construct($meta_box) { if (!is_admin()) { return; } $this->view = new AT_View(); $this->view->add_style('style.css', 'assets/css/admin/admin.css'); $this->view->add_style('fonts.css', 'assets/css/fonts.css'); $this->view->add_style('icons.css', 'assets/css/icons.css'); $this->view->add_style('datetimepicker.css', 'assets/css/jquery/jquery.datetimepicker.css'); $this->view->add_script('admin-common', 'assets/js/common.js'); $this->view->add_style('select2.css', 'assets/css/select2/select2.css'); $this->view->add_localize_script('admin-common', 'theme_site_url', AT_Common::site_url('/')); $this->view->add_script('admin-options', 'assets/js/admin/options/options.js'); $this->view->add_script('select2', 'assets/js/select2/select2.min.js'); $this->view->add_script('jquery.datetimepicker', 'assets/js/jquery/jquery.datetimepicker.js', array('jquery')); parent::__construct(); $this->_meta_box = $meta_box; add_action('admin_menu', array(&$this, 'add')); add_action('save_post', array(&$this, 'save')); }
public function checkout() { if (!empty($_POST)) { $plan_id = $_POST['plan']; $car_id = AT_Session::get_instance()->userdata('paidEntityID'); $car_model = $this->load->model('car_model'); $plans = $this->core->get_option('merchant_plan', false); // $entityID = $plans[$plan_id]; $price = $plan['rate']; if (isset($_POST['payment_method'])) { if ($_POST['payment_method'] === 'paypal') { // Save session data AT_Session::get_instance()->set_userdata('paymentMethod', $_POST['payment_method']); // AT_Session::get_instance()->set_userdata('paymentAmount',$price); AT_Session::get_instance()->set_userdata('paymentPlanID', $plan_id); AT_Session::get_instance()->set_userdata('checkoutAllower', true); AT_Common::redirect('merchant_paypal/query'); } } } else { AT_Session::get_instance()->unset_userdata('checkoutAllower'); $this->view->use_layout('header_content_footer')->add_block('content', 'payments/denied', array()); } }
<h2></h2> <div class="btn-next"> <a href="#" class="btn3"><?php echo __('Back', AT_TEXTDOMAIN); ?> </a> <?php if (empty($car_info)) { ?> <a href="#" class="btn1"><?php echo __('Add', AT_TEXTDOMAIN); ?> </a> <?php } else { ?> <a href="#" class="btn1"><?php echo __('Save', AT_TEXTDOMAIN); ?> </a> <?php } ?> <span class="form_loading"><img src="<?php echo AT_Common::static_url('assets/images/loading.gif'); ?> " /></span> </div> </div> </form> </div>
private static function _news() { register_post_type('news', array('labels' => array('name' => _x('News', 'post type general name', AT_ADMIN_TEXTDOMAIN), 'singular_name' => _x('News', 'post type singular name', AT_ADMIN_TEXTDOMAIN), 'add_new' => _x('Add New', 'service', AT_ADMIN_TEXTDOMAIN), 'add_new_item' => __('Add News', AT_ADMIN_TEXTDOMAIN), 'edit_item' => __('Edit News', AT_ADMIN_TEXTDOMAIN), 'new_item' => __('Add News', AT_ADMIN_TEXTDOMAIN), 'view_item' => __('View News', AT_ADMIN_TEXTDOMAIN), 'search_items' => __('Search News', AT_ADMIN_TEXTDOMAIN), 'not_found' => __('No news found', AT_ADMIN_TEXTDOMAIN), 'not_found_in_trash' => __('No news found in Trash', AT_ADMIN_TEXTDOMAIN), 'parent_item_colon' => ''), 'singular_label' => __('News', AT_ADMIN_TEXTDOMAIN), 'public' => true, 'exclude_from_search' => false, 'show_ui' => true, 'menu_icon' => AT_Common::static_url('assets/images/admin/custom_pages_icons/20x20/news.png'), 'capability_type' => 'post', 'hierarchical' => false, 'rewrite' => true, 'has_archive' => true, 'query_var' => false, 'supports' => array('title', 'editor', 'thumbnail'))); }
public function callback() { $this->validation(); //Paypal redirects back to this page using ReturnURL, We should receive TOKEN and Payer ID if (isset($_GET["token"]) && isset($_GET["PayerID"])) { $payments_model = $this->load->model('payments_model'); //we will be using these two variables to execute the "DoExpressCheckoutPayment" //Note: we haven't received any payment yet. $token = $_GET["token"]; $payer_id = $_GET["PayerID"]; //get session variables $planID = AT_Session::get_instance()->userdata('paymentPlanID'); $plan = $this->core->get_option('merchant_plan', array()); $plan = $plan[$planID]; $ItemName = $plan['name']; $ItemPrice = number_format($plan['rate'], 2); $ItemNumber = AT_Session::get_instance()->userdata('paidEntityID'); //Item Number $ItemDesc = $plan['name'] . __('for ', AT_TEXTDOMAIN) . '#' . AT_Session::get_instance()->userdata('paidEntityID'); $ItemQty = 1; // Item Quantity $ItemTotalPrice = $ItemPrice * $ItemQty; //(Item Price x Quantity = Total) Get total amount of product; //Other important variables like tax, shipping cost $TotalTaxAmount = 0.0; $HandalingCost = 0.0; $InsuranceCost = 0.0; $ShippinDiscount = 0.0; $ShippinCost = 0.0; $GrandTotal = $ItemTotalPrice + $TotalTaxAmount + $HandalingCost + $InsuranceCost + $ShippinCost + $ShippinDiscount; $padata = '&TOKEN=' . urlencode($token) . '&PAYERID=' . urlencode($payer_id) . '&PAYMENTREQUEST_0_PAYMENTACTION=' . urlencode("SALE") . '&RETURNURL=' . urlencode($this->urlReturn) . '&CANCELURL=' . urlencode($this->urlCancel) . '&L_PAYMENTREQUEST_0_NAME0=' . urlencode($ItemName) . '&L_PAYMENTREQUEST_0_NUMBER0=' . urlencode($ItemNumber) . '&L_PAYMENTREQUEST_0_DESC0=' . urlencode($ItemDesc) . '&L_PAYMENTREQUEST_0_AMT0=' . urlencode($ItemPrice) . '&L_PAYMENTREQUEST_0_QTY0=' . urlencode($ItemQty) . '&PAYMENTREQUEST_0_ITEMAMT=' . urlencode($ItemTotalPrice) . '&PAYMENTREQUEST_0_TAXAMT=' . urlencode($TotalTaxAmount) . '&PAYMENTREQUEST_0_SHIPPINGAMT=' . urlencode($ShippinCost) . '&PAYMENTREQUEST_0_HANDLINGAMT=' . urlencode($HandalingCost) . '&PAYMENTREQUEST_0_SHIPDISCAMT=' . urlencode($ShippinDiscount) . '&PAYMENTREQUEST_0_INSURANCEAMT=' . urlencode($InsuranceCost) . '&PAYMENTREQUEST_0_AMT=' . urlencode($GrandTotal) . '&PAYMENTREQUEST_0_CURRENCYCODE=' . urlencode($this->core->get_option('paypal_currency_code', 'USD')); //We need to execute the "DoExpressCheckoutPayment" at this point to Receive payment from user. // $paypal= new MyPayPal(); $this->method = 'DoExpressCheckoutPayment'; $this->nvp = $padata; $httpParsedResponseAr = $this->connect(); //Check if everything went ok.. if ("SUCCESS" == strtoupper($httpParsedResponseAr["ACK"]) || "SUCCESSWITHWARNING" == strtoupper($httpParsedResponseAr["ACK"])) { $remote_transaction_id = isset($httpParsedResponseAr["PAYMENTINFO_0_TRANSACTIONID"]) ? $httpParsedResponseAr["PAYMENTINFO_0_TRANSACTIONID"] : false; $data = array('sid' => 2, 'ack' => $httpParsedResponseAr["ACK"], 'msg' => '', 'payerid' => $payer_id, 'timestamp' => $httpParsedResponseAr["TIMESTAMP"]); $payments_model->update_transaction_by_token($token, $data); // $this->view->use_layout('header_content_footer') // ->add_block( 'content', 'payments/paypal/success', array( 'response' => $httpParsedResponseAr, 'transaction_id' => $httpParsedResponseAr["PAYMENTINFO_0_TRANSACTIONID"] ) ); /* //Sometimes Payment are kept pending even when transaction is complete. //hence we need to notify user about it and ask him manually approve the transiction */ if (isset($httpParsedResponseAr["PAYMENTINFO_0_PAYMENTSTATUS"]) && 'Completed' == $httpParsedResponseAr["PAYMENTINFO_0_PAYMENTSTATUS"]) { $data = array('sid' => 1, 'payerid' => $payer_id, 'completed_at' => date('Y-m-d H:s:i')); $payments_model->update_transaction_by_token($token, $data); //AT_Session::get_instance()->set_userdata('paypal_transaction_id',$httpParsedResponseAr["PAYMENTINFO_0_TRANSACTIONID"]); // $this->destroy(); AT_Common::redirect('payments/success'); // $this->view->use_layout('header_content_footer') // ->add_block( 'content', 'payments/success', array( 'response' => $httpParsedResponseAr, 'transaction_id' => $remote_transaction_id ) ); } elseif (isset($httpParsedResponseAr["PAYMENTINFO_0_PAYMENTSTATUS"]) && 'Pending' == $httpParsedResponseAr["PAYMENTINFO_0_PAYMENTSTATUS"]) { // AT_Session::get_instance()->set_userdata('paypal_transaction_id',$httpParsedResponseAr["PAYMENTINFO_0_TRANSACTIONID"]); // $this->destroy(); $this->view->use_layout('header_content_footer')->add_block('content', 'payments/paypal/pending', array('response' => $httpParsedResponseAr, 'transaction_id' => $remote_transaction_id)); } // we can retrive transection details using either GetTransactionDetails or GetExpressCheckoutDetails // GetTransactionDetails requires a Transaction ID, and GetExpressCheckoutDetails requires Token returned by SetExpressCheckOut // $padata = // '&TOKEN='.urlencode($token). // '&PAYERID='.urlencode($payer_id). // '&PAYMENTACTION='.urlencode("SALE"). // '&AMT='.urlencode($GrandTotal). // '&CURRENCYCODE='.urlencode($this->core->get_option( 'paypal_currency_code', 'USD' )); // $padata = '&TOKEN='.urlencode($token); // $paypal= new MyPayPal(); // DoExpressCheckoutPayment $this->method = 'GetExpressCheckoutDetails'; $this->nvp = $padata; $httpParsedResponseAr = $this->Connect(); // $httpParsedResponseAr = $paypal->PPHttpPost('GetExpressCheckoutDetails', $padata, $PayPalApiUsername, $PayPalApiPassword, $PayPalApiSignature, $PayPalMode); if ("SUCCESS" == strtoupper($httpParsedResponseAr["ACK"]) || "SUCCESSWITHWARNING" == strtoupper($httpParsedResponseAr["ACK"])) { $data = array('sid' => 1, 'ack' => $httpParsedResponseAr["ACK"], 'msg' => '', 'payerid' => $payer_id, 'completed_at' => date('Y-m-d H:s:i')); $payments_model->update_transaction_by_token($token, $data); // $this->destroy(); AT_Common::redirect('payments/success'); // $this->view->use_layout('header_content_footer') // ->add_block( 'content', 'payments/success', array( 'response' => $httpParsedResponseAr, 'transaction_id' => $remote_transaction_id ) ); // echo '<br /><b>Stuff to store in database :</b><br /><pre>'; // echo '<pre>'; // print_r($httpParsedResponseAr); // echo '</pre>'; } else { // $this->destroy(); $data = array('sid' => 3, 'ack' => $httpParsedResponseAr["ACK"], 'payerid' => $payer_id, 'msg' => $httpParsedResponseAr["L_SHORTMESSAGE0"]); $payments_model->update_transaction_by_token($token, $data); $this->view->use_layout('header_content_footer')->add_block('content', 'payments/paypal/error', array('response' => $httpParsedResponseAr, 'msg' => $httpParsedResponseAr["L_LONGMESSAGE0"])); // echo '<div style="color:red"><b>GetTransactionDetails failed:</b>'.urldecode($httpParsedResponseAr["L_LONGMESSAGE0"]).'</div>'; // echo '<pre>'; // print_r($httpParsedResponseAr); // echo '</pre>'; } } else { // $this->destroy(); $data = array('sid' => 3, 'ack' => $httpParsedResponseAr["ACK"], 'msg' => $httpParsedResponseAr["L_SHORTMESSAGE0"]); $payments_model->update_transaction_by_token($token, $data); // $payments_model->update_transaction( $transaction_id, $data ); $this->view->use_layout('header_content_footer')->add_block('content', 'payments/paypal/error', array('response' => $httpParsedResponseAr, 'msg' => $httpParsedResponseAr["L_LONGMESSAGE0"])); // echo '<div style="color:red"><b>Error : </b>'.urldecode($httpParsedResponseAr["L_LONGMESSAGE0"]).'</div>'; // echo '<pre>'; // print_r($httpParsedResponseAr); // echo '</pre>'; } } }
public function widget($args, $instance) { extract($args); $defaults = array('title' => '', 'type' => 'car', 'limit' => '3', 'description' => ''); $instance = wp_parse_args((array) $instance, $defaults); $title = ''; $html = ''; // Create beautiful title if (isset($instance['title'])) { $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base); if (!empty($title)) { $title_array = explode(" ", $title); $title = ""; foreach ($title_array as $tcount => $word) { if ($tcount == 0) { $word = "<strong>" . $word . "</strong>"; } $title .= $word . " "; } $title = "<h2>" . $title . "</h2>"; } } // echo '<div class="widget">'; echo $before_widget; echo '<div class="tabs_widget tabs_wrapper section">'; echo $title; echo '<ul class="tabs">'; echo '<li class="current">' . __('Recent', AT_TEXTDOMAIN) . '</li>'; echo '<li>' . __('Popular', AT_TEXTDOMAIN) . '</li>'; echo '</ul>'; // Render recent posts container echo '<div class="box visible" style="display: block;">'; $recent_query = new WP_Query(array('showposts' => $instance['limit'], 'nopaging' => 0, 'post_type' => $instance['type'], 'orderby' => 'post_date', 'post_status' => 'publish', 'ignore_sticky_posts' => 1)); $i = 0; while ($recent_query->have_posts()) { $recent_query->the_post(); echo '<div class="tab_post">'; if (has_post_thumbnail()) { echo '<a href="' . esc_url(get_permalink()) . '" class="thumb">'; the_post_thumbnail(array(57, 45)); echo '</a>'; } echo '<div class="desc">'; echo '<a href="' . esc_url(get_permalink()) . '">' . AT_Common::trim_content(get_the_excerpt(), 40) . '</a>'; echo '</div>'; echo '</div>'; } echo '</div>'; // Render popular posts container echo '<div class="box" style="display: none;">'; $popular_query = new WP_Query(array('showposts' => $instance['limit'], 'nopaging' => 0, 'post_type' => $instance['type'], 'orderby' => 'comment_count', 'post_status' => 'publish', 'ignore_sticky_posts' => 1)); $i = 0; while ($popular_query->have_posts()) { $popular_query->the_post(); echo '<div class="tab_post">'; if (has_post_thumbnail()) { echo '<a href="' . esc_url(get_permalink()) . '" class="thumb">'; the_post_thumbnail(array(57, 45)); echo '</a>'; } echo '<div class="desc">'; echo '<a href="' . esc_url(get_permalink()) . '">' . AT_Common::trim_content(get_the_excerpt(), 40) . '</a>'; echo '</div>'; echo '</div>'; } echo '</div>'; echo '</div>'; // display description echo !empty($instance['description']) ? '<p><!-- WHITESPACE --></p><ul><p>' . $instance['description'] . '</p></ul>' : ''; echo $after_widget; // echo '</div>'; }
public function transactions() { if ($this->uri->is_ajax_request() && !empty($_POST)) { try { if (!$this->validation->run('affiliate')) { throw new Exception(serialize($this->validation->get_errors())); } $user_model = $this->load->model('user_model'); $reference_model = $this->load->model('reference_model'); $data = array('dealer_id' => AT_Common::get_logged_user_id(), 'name' => $_POST['name'], 'email' => $_POST['email'], 'adress' => isset($_POST['adress']) ? $_POST['adress'] : '', 'phone' => isset($_POST['phone_1']) ? $_POST['phone_1'] : '', 'phone_2' => isset($_POST['phone_2']) ? $_POST['phone_2'] : '', 'region_id' => isset($_POST['region_id']) ? $_POST['region_id'] : '', 'schedule' => isset($_POST['schedule']) ? serialize($_POST['schedule']) : serialize(array('monday' => '', 'tuesday' => '', 'wednesday' => '', 'thursday' => '', 'friday' => '', 'saturday' => '', 'sunday' => ''))); $_POST['affiliate_id'] = (int) $_POST['affiliate_id']; if ($_POST['affiliate_id'] == 0) { $_POST['affiliate_id'] = $user_model->insert_dealer_affiliate($data); } else { $user_model->update_dealer_affiliate($_POST['affiliate_id'], $data); } $view = new AT_View(); $view->use_layout('content')->add_block('content', 'settings/dealer_affiliate_item', array('affiliate' => $user_model->get_dealer_affiliate_by_id($_POST['affiliate_id']), 'regions' => $reference_model->get_regions())); $content = $view->render()->display(TRUE); unset($view); $response = array('status' => 'OK', 'content' => $content, 'message' => __('The changes was saved.', AT_TEXTDOMAIN)); } catch (Exception $e) { $response = array('status' => 'ERROR', 'message' => unserialize($e->getMessage())); } $this->view->add_json($response)->display(); exit; } $user_model = $this->load->model('user_model'); $reference_model = $this->load->model('reference_model'); $this->view->use_layout('profile'); $this->view->add_block('content', 'settings/transactions', array('transactions' => $user_model->get_user_transactions_by_id(AT_Common::get_logged_user_id()))); $this->breadcrumbs->add_item(__('Account', AT_TEXTDOMAIN), 'profile/'); $this->breadcrumbs->add_item(__('Transactions', AT_TEXTDOMAIN), 'profile/settings/transactions'); $menu_model = $this->load->model('menu_model'); $this->view->add_block('left_side', 'general/navigation', $menu_model->get_menu('main', 'transactions')); }
public static function at_search_auto($atts = null, $content = null) { if ($atts == 'generator') { $shortcode_options = array(); $view = new AT_View(); if (is_array($view->get_option('shortcode_search_forms', array()))) { foreach ($view->get_option('shortcode_search_forms', array()) as $key => $value) { $shortcode_options['Item ' . ($key + 1)] = $key; } } return array("name" => __("Search auto", AT_ADMIN_TEXTDOMAIN), "base" => "at_search_auto", 'icon' => "im-icon-spinner-4", "class" => "at-search-auto-class", 'category' => __("Theme Short-Codes", AT_ADMIN_TEXTDOMAIN), "params" => array(array("type" => "textfield", "heading" => __("Title", AT_ADMIN_TEXTDOMAIN), "param_name" => "title", "value" => "", "description" => '', 'dependency' => array('element' => 'content_type', 'value' => array('custom_text'))), array("type" => "dropdown", "heading" => __("Shortcode Options", AT_ADMIN_TEXTDOMAIN), "param_name" => "shortcode_options", "width" => 200, "value" => $shortcode_options, "description" => __('<b>You can edit settings form`s fields in <a target="_blank" href="admin.php?page=at_site_options_catalog">Catalog Site Options</a> ( "Shortcode Search Form" )</b>', AT_ADMIN_TEXTDOMAIN)), array("type" => "textfield", "heading" => __("Extra class name", AT_ADMIN_TEXTDOMAIN), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in Custom CSS Shortcode or Masterkey Custom CSS option.", AT_ADMIN_TEXTDOMAIN)))); } $shortcode_id = self::_shortcode_id(); extract(shortcode_atts(array('title' => '', 'el_class' => '', 'shortcode_options' => '0', 'width' => '1/1'), $atts)); $view = new AT_View(); $shortcode_search_forms = $view->get_option('shortcode_search_forms', array()); if ($shortcode_options == '' || empty($shortcode_search_forms) || !isset($shortcode_search_forms[$shortcode_options])) { return ''; } $width = wpb_translateColumnWidthToSpan($width); $view->add_script('jquery.selectik', 'assets/js/jquery/jquery.selectik.js'); $view->add_script('catalog', 'assets/js/catalog.js', array('jquery')); $output = '<form method="GET" class="vehicle-filter" action="' . AT_Common::site_url('catalog') . '/"> <div class="search_auto">'; foreach ($shortcode_search_forms[$shortcode_options]['option'] as $key => $value) { switch ($key) { case 'title': $output .= '<h3>' . $title . '</h3>'; break; case 'transport_type': $output .= '<div class="categories">'; foreach ($view->add_widget('reference_widget', array('method' => 'get_transport_types'), true) as $key => $value) { $output .= '<input class="transport_type" type="radio" id="search_radio_' . $value['id'] . '" value="' . $value['id'] . '" name="transport_type_id"' . ($value['is_default'] ? 'checked="checked"' : '') . ' /> <label for="search_radio_' . $value['id'] . '" title="' . $value['name'] . '"><i class="' . $value['alias'] . '"></i></label>'; } $output .= '</div>'; break; case 'manufacturer_model': $output .= ' <div class="clear"></div> <label><strong>' . __("Make", AT_TEXTDOMAIN) . ':</strong></label> <div class="select_box_1"> <select name="manufacturer_id" id="manufacturer_id" class="custom-select select_1 select2">'; $output .= '<option value="0">' . __("Any", AT_TEXTDOMAIN) . '</option>'; foreach ($view->add_widget('reference_widget', array('method' => 'get_manufacturers'), true) as $key => $value) { $output .= '<option value="' . $value['alias'] . '">' . $value['name'] . '</option>'; } // foreach (AT_VC_Helper::get_manufacturers() as $value => $key) { // $output .= '<option value="' . $key. '">' . $value . '</option>'; // } $output .= ' </select> </div> <label><strong>' . __("Model", AT_TEXTDOMAIN) . ':</strong></label> <div class="select_box_1"> <select name="model_id" id="model_id" class="custom-select select_1 select2"> <option value="0">' . __("Any", AT_TEXTDOMAIN) . '</option> </select> </div>'; break; case 'year': $output .= '<label><strong>' . __("Year", AT_TEXTDOMAIN) . ':</strong></label> <div class="select_box_2"> <select name="fabrication_from" id="fabrication_from" class="custom-select select_2 select2"> <option value="0">' . __("From", AT_TEXTDOMAIN) . '</option>'; foreach (AT_VC_Helper::get_years_range() as $value) { $output .= '<option value="' . $value . '">' . $value . '</option>'; } $output .= ' </select> <select name="fabrication_to" id="fabrication_to" class="custom-select select_2 select2"> <option value="0">' . __("To", AT_TEXTDOMAIN) . '</option>'; foreach (AT_VC_Helper::get_years_range() as $value) { $output .= '<option value="' . $value . '">' . $value . '</option>'; } $output .= ' </select> <div class="clear"></div> </div>'; break; case 'price': $output .= '<label><strong>' . __("Price", AT_TEXTDOMAIN) . ':</strong></label> <div class="select_box_2"> <input type="text" name="price_from" placeholder="' . __('From', AT_TEXTDOMAIN) . '" id="price_from" value="" class="txb custom-text"/> <input type="text" name="price_to" placeholder="' . __('To', AT_TEXTDOMAIN) . '" id="price_to" value="" class="txb custom-text"/> <div class="clear"></div> </div>'; break; case 'mileage': $output .= '<label><strong>' . __("Mileage", AT_TEXTDOMAIN) . ':</strong></label> <div class="select_box_2">' . '<input type="text" name="mileage_from" placeholder="' . __('From', AT_TEXTDOMAIN) . '" id="mileage_from" value="" class="txb custom-text"/> <input type="text" name="mileage_to" placeholder="' . __('To', AT_TEXTDOMAIN) . '" id="mileage_to" value="" class="txb custom-text"/> <div class="clear"></div> </div>'; break; case 'body_type': $output .= '<label><strong>' . __('Body type:', AT_TEXTDOMAIN) . '</strong></label> <div class="select_box_1"> <select class="custom-select select_3" id="body_type_id"> <option value="0">' . __('Any', AT_TEXTDOMAIN) . '</option>'; foreach ($view->add_widget('reference_widget', array('method' => 'get_body_types'), true) as $key => $value) { $output .= '<option value="' . $value['id'] . '">' . $value['name'] . '</option>'; } $output .= '</select> </div>'; break; case 'fuel': $output .= '<label><strong>' . __('Fuel:', AT_TEXTDOMAIN) . '</strong></label> <div class="select_box_1"> <select class="custom-select select_3" id="fuel_id"> <option value="0">' . __('Any', AT_TEXTDOMAIN) . '</option>'; foreach ($view->add_widget('reference_widget', array('method' => 'get_fuels'), true) as $key => $value) { $output .= '<option value="' . $value['id'] . '">' . $value['name'] . '</option>'; } $output .= '</select> </div>'; break; case 'transmission': $output .= '<label><strong>' . __('Transmission:', AT_TEXTDOMAIN) . '</strong></label> <div class="select_box_1"> <select class="custom-select select_3" id="transmission_id"> <option value="0">' . __('Any', AT_TEXTDOMAIN) . '</option>'; foreach ($view->add_widget('reference_widget', array('method' => 'get_transmissions'), true) as $key => $value) { $output .= '<option value="' . $value['id'] . '">' . $value['name'] . '</option>'; } $output .= '</select> </div>'; break; case 'doors': $output .= '<label><strong>' . __('Doors:', AT_TEXTDOMAIN) . '</strong></label> <div class="select_box_1"> <select class="custom-select select_3" id="door_id"> <option value="0">' . __('Any', AT_TEXTDOMAIN) . '</option>'; foreach ($view->add_widget('reference_widget', array('method' => 'get_doors'), true) as $key => $value) { $output .= '<option value="' . $value['id'] . '">' . $value['name'] . '</option>'; } $output .= '</select> </div>'; break; case 'region': $output .= '<label><strong>' . __('Region:', AT_TEXTDOMAIN) . '</strong></label> <div class="select_box_1"> <select class="custom-select select_3" id="region_id"> <option value="0">' . __('Any', AT_TEXTDOMAIN) . '</option>'; foreach ($view->add_widget('reference_widget', array('method' => 'get_regions'), true) as $key => $value) { $output .= '<option value="' . $value['id'] . '">' . $value['name'] . '</option>'; } $output .= '</select> </div>'; break; case 'region_state': $output .= ' <div class="clear"></div> <label><strong>' . __("Country", AT_TEXTDOMAIN) . ':</strong></label> <div class="select_box_1"> <select name="region_id" id="region_id" class="custom-select select_1 select2">'; $output .= '<option value="0">' . __("Any", AT_TEXTDOMAIN) . '</option>'; foreach ($view->add_widget('reference_widget', array('method' => 'get_regions'), true) as $key => $value) { $output .= '<option value="' . $value['id'] . '">' . $value['name'] . '</option>'; } // foreach (AT_VC_Helper::get_manufacturers() as $value => $key) { // $output .= '<option value="' . $key. '">' . $value . '</option>'; // } $output .= ' </select> </div> <label><strong>' . __("State", AT_TEXTDOMAIN) . ':</strong></label> <div class="select_box_1"> <select name="state_id" id="state_id" class="custom-select select_1 select2"> <option value="0">' . __("Any", AT_TEXTDOMAIN) . '</option> </select> </div>'; break; case 'drive': $output .= '<label><strong>' . __('Drive:', AT_TEXTDOMAIN) . '</strong></label> <div class="select_box_1"> <select class="custom-select select_3" id="drive_id"> <option value="0">' . __('Any', AT_TEXTDOMAIN) . '</option>'; foreach ($view->add_widget('reference_widget', array('method' => 'get_drive'), true) as $key => $value) { $output .= '<option value="' . $value['id'] . '">' . $value['name'] . '</option>'; } $output .= '</select> </div>'; break; case 'color': $output .= '<label><strong>' . __('Color:', AT_TEXTDOMAIN) . '</strong></label> <div class="select_box_1"> <select class="custom-select select_3" id="color_id"> <option value="0">' . __('Any', AT_TEXTDOMAIN) . '</option>'; foreach ($view->add_widget('reference_widget', array('method' => 'get_colors'), true) as $key => $value) { $output .= '<option data-selectik="<span style=\'background-color:' . $value['alias'] . '\'></span>' . $value['name'] . '" data-color="' . $value['alias'] . '" value="' . $value['id'] . '">' . $value['name'] . '</option>'; } $output .= '</select> </div>'; break; case 'cilindrics': $output .= '<label><strong>' . __('Engine, cm³:', AT_TEXTDOMAIN) . '</strong></label> <div class="select_box_2"> <select class="custom-select select_4" name="engine_from" id="engine_from"> <option value="0">' . __('From', AT_TEXTDOMAIN) . '</option>'; $car_engine_range = $view->get_option('car_engine_range', array('min' => 900, 'max' => 6500)); for ($i = $car_engine_range['min']; $i <= $car_engine_range['max']; $i = $i + 100) { $output .= '<option value="' . $i . '">' . $i . '</option>'; } $output .= '</select> <select class="custom-select select_4" name="engine_to" id="engine_to"> <option value="0">' . __('To', AT_TEXTDOMAIN) . '</option>'; $car_engine_range = $view->get_option('car_engine_range', array('min' => 900, 'max' => 6500)); for ($i = $car_engine_range['min']; $i <= $car_engine_range['max']; $i = $i + 100) { $output .= '<option value="' . $i . '">' . $i . '</option>'; } $output .= '</select> <div class="clear"></div> </div>'; break; case 'only_new_car': $output .= '<div class="chb_wrapper"> <input id="cars_categories" name="cars_categories" type="checkbox" value="new" /> <label class="check_label" for="cars_categories">' . __("Only new cars", AT_TEXTDOMAIN) . '</label> </div>'; break; case 'submit': $output .= '<input type="submit" value="' . __("Search", AT_TEXTDOMAIN) . '" class="btn_search btn5 float-right" id="search_car_shortcode"/>'; break; } } $output .= '<div class="clear"></div> </div> <input type="hidden" name="view" value="' . $view->get_option('catalog_car_type_view_default', 'list') . '"/> <div class="clear"></div> </form>'; return $output; }
} ?> > <?php $cost = AT_Common::show_full_price($value = $car['options']['_price'], $currency = $car['options']['_currency_id']); echo ' <a href="' . get_permalink($car['ID']) . '"> <img src="' . AT_Common::static_url($car['photo']['photo_url'] . '213x164/' . $car['photo']['photo_name']) . '" alt="' . $car['options']['_manufacturer_id']['name'] . ' ' . $car['options']['_model_id']['name'] . '"/> <div class="description"> Registration ' . $car['options']['_fabrication'] . '<br/>' . (!empty($car['options']['_cilindrics']) ? $car['options']['_cilindrics'] . ' cm³ ' : '') . (!empty($car['options']['_fuel_id']['name']) ? $car['options']['_fuel_id']['name'] . '<br/>' : '') . (!empty($car['options']['_engine_power']) ? $car['options']['_engine_power'] . ' HP<br/>' : '') . (!empty($car['options']['_body_type_id']['name']) ? 'Body ' . $car['options']['_body_type_id']['name'] . '<br/>' : '') . (!empty($car['options']['_mileage']) ? number_format((int) $car['options']['_mileage'], 0, '', ' ') . ' ' . AT_Common::car_mileage(0) : '') . '</div> <div class="title">' . $car['options']['_manufacturer_id']['name'] . ' ' . $car['options']['_model_id']['name'] . ' <span class="price">' . $cost . '</span></div> </a>'; ?> </li> <?php } ?> <!-- <li class="last"> <a href="#"> <img src="<?php echo AT_Common::static_url('/assets/images/pics/recent_1.jpg'); ?> " alt=""/> <div class="description">Registration 2010<br/>3.0 Diesel<br/>230 HP<br/>Body Coupe<br/>80 000 Miles</div> <div class="title">Mercedes-Benz <span class="price">$ 115 265</span></div> </a> </li> --> </ul> </div> <?php }
public function add_item($name, $url) { $this->_data[] = array('name' => $name, 'url' => AT_Common::site_url($url)); }
<div class="settings_form affiliate_item <?php if ($affiliate['is_main']) { echo 'main_affiliate'; } ?> " data-id="<?php echo $key; ?> "> <div class="item-title"><?php echo $affiliate['name']; ?> </div> <div class="item-content"> <form action="<?php echo AT_Common::site_url('profile/settings/dealer_affiliates/'); ?> " method="post" class="settings-form"> <input type="hidden" name="affiliate_id" value="<?php echo $affiliate['id']; ?> "> <div class="col1"> <label class="text"><?php echo __('Affiliates name:', AT_TEXTDOMAIN); ?> </label> <input type="text" class="text" name="name" value="<?php echo $affiliate['name']; ?> "/>
?> <p><?php echo implode('<br/>', $phones); ?> </p> <?php } ?> <?php if (!empty($item['email'])) { ?> <p><a href="#" rel="<?php echo AT_Common::nospam($item['email']); ?> " class="email_link_replace markered"><?php echo AT_Common::nospam($item['email']); ?> </a></p> <?php } ?> <h4><?php echo __('<strong>Schedule</strong> affiliates', AT_TEXTDOMAIN); ?> </h4> <ul> <li> <?php echo __('Monday', AT_TEXTDOMAIN); ?> <span><?php
<div class="breadcrumbs"> <?php foreach ($items as $key => $value) { ?> <?php if (count($items) - 1 != $key) { ?> <a href="<?php echo $value['url']; ?> "><?php echo $value['name']; ?> </a> <img src="<?php echo AT_Common::static_url('/assets/images/marker_2.gif'); ?> " alt=""/> <?php } else { ?> <?php echo $value['name']; ?> <?php } ?> <?php } ?> </div>
<div class="cl_15"> </div> </div> <div class="theme-table-body"> <?php foreach ($items as $key => $item) { ?> <?php //print_r($item); ?> <div class="theme-table-body-row" id="user_<?php echo $item['id']; ?> "> <div class="cl_5 user_photo"> <img src="<?php echo AT_Common::static_url(!empty($item['photo']) ? $item['photo']['photo_url'] . '138x138/' . $item['photo']['photo_name'] : 'assets/images/no_photo_profile.png'); ?> "> </div> <div class="cl_16"><?php echo $item['name']; ?> </div> <div class="cl_14"><?php echo $item['email']; ?> </div> <!-- <div class="cl_14"><?php echo !empty($item['phone']) ? $item['phone'] : ' '; ?> </div>
private function _frontend_header($params) { $data = array(); switch ($this->core->get_option('logo_settings')) { case 'logo_image': $width = $this->core->get_option('header_logo_width') != '' ? ' style="max-width:' . $this->core->get_option('header_logo_width') . ';"' : ''; if ($this->core->get_option('header_logo_src') != '') { $data['logo'] = '<img src="' . $this->core->get_option('header_logo_src') . '"' . $width . '>'; } else { $data['logo'] = '<img src="' . AT_Common::static_url('/assets/images/pics/logo_auto_dealer.png') . '"' . $width . '>'; } break; case 'logo_text': $data['logo'] = $this->core->get_option('header_logo_text'); break; default: $data['logo'] = get_bloginfo('name'); break; } $data['header_style'] = $this->core->get_option('header_content_style', 'info'); $data['add_car_button'] = $this->core->get_option('header_add_car_button', true); $data['add_car_button'] = $this->core->get_option('header_add_car_button', true); $data['sociable_view'] = $this->core->get_option('header_sociable_view', true); $data['sociable'] = AT_Core::get_instance()->get_option('sociable', array()); $data['site_type'] = $this->core->get_option('site_type', 'mode_soletrader'); $data['phone'] = $this->core->get_option('header_phone', ''); $data['adress'] = $this->core->get_option('header_adress', ''); $data['header_custom_html'] = $this->core->get_option('header_custom_html', ''); $data['searchbox'] = $this->core->get_option('header_searchbox', true); return $data; }
echo $car['options']['_manufacturer_id']['name']; ?> <?php echo $car['options']['_model_id']['name']; ?> <?php echo $car['options']['_version']; ?> </h2> <div class="date"><?php echo date('F d, Y', strtotime($car['post_date'])); ?> </div> <div class="price"> <?php echo AT_Common::show_full_price($value = $car['options']['_price'], $currency = $car['options']['_currency_id']); ?> </div> </div> <div class="location"> <?php echo __('Year', AT_TEXTDOMAIN); ?> : <?php echo $car['options']['_fabrication']; ?> <br/> <?php if (!empty($car['options']['_region_id'])) { ?> <?php
<?php if (!defined("AT_DIR")) { die('!!!'); } ?> <!--h2>404 Page Not Found!</h2--> <div class="counter_heading"> <img src="<?php echo AT_Common::static_url('assets/images/404.jpg'); ?> "> </div> <!-- <div class="counter_heading">We’ll be here soon with a new website. Estimated time remaining:</div> <div class="counter_wrapper"> <div id="counter"></div> </div> <div class="newsletter"> <div class="title">We are building new? beautiful website. In the meantime, while here, you can use the form below to subscribe to our newsletter. </div> <form method="get" action=""> <input type="text" onblur="if(this.value=='') this.value='Your E-mail...';" onfocus="if(this.value=='Your E-mail...') this.value='';" value="Your E-mail..." class="txb"/> <input type="submit" value="subscribe" class="btn_subscribe"/> </form> </div> <div class="needs_wrapper"> <div class="post_block"> <h3><strong>What</strong> we have finished</h3> <ul> <li>The main website design</li>
<?php if (!defined("AT_DIR")) { die('!!!'); } ?> <a href="<?php echo AT_Common::site_url('auth/login'); ?> ">Sign In</a>
if (!defined("AT_DIR")) { die('!!!'); } //$this->add_style( 'bootstrap', 'assets/css/bootstrap.css'); $this->add_style('style.css', 'assets/css/admin/admin.css'); $this->add_style('fonts.css', 'assets/css/fonts.css'); $this->add_style('icons.css', 'assets/css/icons.css'); $this->add_style('select2.css', 'assets/css/select2/select2.css'); $this->add_script('jquery.form', 'assets/js/jquery/jquery.form.js'); //$this->add_script( 'admin-options', 'assets/js/admin/options/options.js', array( 'jquery', 'media-upload', 'thickbox' ) ); $this->add_script('select2', 'assets/js/select2/select2.min.js'); $this->add_script('admin-options', 'assets/js/admin/options/options.js'); $this->add_script('admin-form-options', 'assets/js/admin/options/form-options.js', array(THEME_PREFIX . 'jquery.form')); ?> <div class="theme_header"> <div class="theme_logo"> <img src="<?php echo AT_Common::static_url('assets/images/admin/logo.png'); ?> "/> </div> <div class="theme_details"> <p><?php echo __('AutoDealer', AT_ADMIN_TEXTDOMAIN); ?> <?php echo __('by', AT_ADMIN_TEXTDOMAIN); ?> <a target="_BLANK" href="http://winterjuice.com/">Winter Juice</a></p> </div> </div>