当前位置: 首页>>代码示例>>PHP>>正文


PHP seoUrl函数代码示例

本文整理汇总了PHP中seoUrl函数的典型用法代码示例。如果您正苦于以下问题:PHP seoUrl函数的具体用法?PHP seoUrl怎么用?PHP seoUrl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了seoUrl函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: storvargen_preprocess_block

function storvargen_preprocess_block(&$vars)
{
    if ($vars['block']->module == 'block') {
        $info = block_custom_block_get($vars['block']->delta);
        $description = seoUrl($info['info']);
        $vars['classes_array'][] = $description;
    }
}
开发者ID:jhunte,项目名称:storvargen,代码行数:8,代码来源:template.php

示例2: switch

				<h5>Related Content</h5>
						<div class="related-content-links">	
							<?php 
            switch ($activities_weekday) {
                case count($activities_weekday) === 1:
                    echo 'This activity is only available on ' . $page_title . '.';
                    break;
                default:
                    echo '<p>This activity is also available on:</p>';
                    echo '<ul>';
                    foreach ($activities_weekday as $day) {
                        switch ($day) {
                            case $page_title:
                                continue;
                            default:
                                echo '<li><a href="/activities-2/' . seoUrl($day) . '#' . basename(get_permalink()) . '" class="btn">' . esc_html($day) . '</a></li>';
                        }
                    }
                    echo '</ul>';
            }
            ?>
						</div>
					<div class="social-share">
						<p>Share this activity on social media</p>
						<ul>
							<li class="facebook"><a href="http://www.facebook.com/sharer.php?u=<?php 
            echo get_post_permalink();
            ?>
">Facebook</a>
							</li>
							<li class="twitter"><a href="http://twitter.com/share?text=Home:%20Venture%20Community%20Association&amp;url=<?php 
开发者ID:jonsully1,项目名称:venturecentre-wp-theme,代码行数:31,代码来源:activities-template.php

示例3: BookingForConnectorModelOnSellUnit

//$services="";
//if (count($resource->Services) > 0){
//	$tmpservices = array();
//	foreach ($resource->Services as $service){
//		$tmpservices[] = BFCHelper::getLanguage($service->Name, $this->language);
//	}
//	$services = implode(', ',$tmpservices);
//}
//$resource->Price
/**** for search similar *****/
//add counter
$model = new BookingForConnectorModelOnSellUnit();
$retCounter = $model->setCounterByResourceId($resource->ResourceId, "details", $language);
//BFCHelper::setState($resource->Merchant, 'merchant', 'merchant');
//-------------------pagina per il redirect di tutte le risorsein vendita
$routeMerchant = $base_url . '/merchant-details/merchantdetails/' . $resource->MerchantId . '-' . seoUrl($merchant->Name);
$merchantLogo = plugins_url("images/default.png", dirname(__FILE__));
$merchantLogoError = plugins_url("images/default.png", dirname(__FILE__));
if ($merchant->LogoUrl != '') {
    $merchantLogo = BFCHelper::getImageUrlResized('merchant', $merchant->LogoUrl, 'merchant_logo_small_top');
    $merchantLogoError = BFCHelper::getImageUrl('merchant', $merchant->LogoUrl, 'merchant_logo_small_top');
}
$addressDataMerchant = $merchant->AddressData;
$PlanimetryData = $resource->PlanimetryData;
$showResourcePlanimetria = !empty($PlanimetryData);
$VideoData = $resource->VideoData;
$showResourceVideo = !empty($VideoData);
$unitfloor = array('unitfloor_value' => __('ND', 'bfi'), 'unitfloor_value0' => __('Ground floor', 'bfi'), 'unitfloor_value-1' => __('Top floor', 'bfi'), 'unitfloor_value-2' => __('Mansarda', 'bfi'), 'unitfloor_value-3' => __('multi-level', 'bfi'));
$centralizedheating = array('centralizedheating_value-2' => __('ND', 'bfi'), 'centralizedheating_value-1' => __('Accounted', 'bfi'), 'centralizedheating_value0' => __('Autonomous', 'bfi'), 'centralizedheating_value1' => __('Centralized', 'bfi'));
echo $sellonsearchform;
?>
开发者ID:Bookingfor,项目名称:wordpress-plugin,代码行数:31,代码来源:onsellunit.php

示例4: get_post_meta

$event_start_time = get_post_meta(get_the_ID(), 'event-start-time', true);
$event_end_time = get_post_meta(get_the_ID(), 'event-end-time', true);
$event_charge = get_post_meta(get_the_ID(), 'event-charge', true);
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
	 <h2 class="entry-title"><?php 
        the_title();
        ?>
</h2>
        <article id="<?php 
        echo basename(get_permalink());
        ?>
" class="<?php 
        echo seoUrl(esc_html($category[0]->name));
        ?>
 entry">
		  <div class="inner">
			<header class="entry-header">
				  <h3 class="entry-title"><?php 
        the_title();
        ?>
</h3>
				  <figure>
					  <?php 
        echo the_post_thumbnail('full', array('class' => 'img-responsive img-circle'));
        ?>
				</figure>
					<p><em>Category: </em><?php 
        echo !empty($category) ? esc_html($category[0]->name) : '';
开发者ID:jonsully1,项目名称:venturecentre-wp-theme,代码行数:31,代码来源:single-events.php

示例5: seoUrl

    } else {
        $html .= 'Would you like to leave your review?';
    }
    $html .= '</a>';
    $html .= '</div>';
    echo $html;
    ?>
	<?php 
}
?>
	<?php 
$uriMerchantResources = $base_url . '/merchant-details/merchantdetails/' . $merchant->MerchantId . '-' . seoUrl($merchant->Name) . '/resources';
$uriMerchantRatings = $base_url . '/merchant-details/merchantdetails/' . $merchant->MerchantId . '-' . seoUrl($merchant->Name) . '/reviews';
$uriMerchantOffers = $base_url . '/merchant-details/merchantdetails/' . $merchant->MerchantId . '-' . seoUrl($merchant->Name) . '/offers';
$uriMerchantOnsellunits = $base_url . '/merchant-details/merchantdetails/' . $merchant->MerchantId . '-' . seoUrl($merchant->Name) . '/sales';
$uriMerchantContacts = $base_url . '/merchant-details/merchantdetails/' . $merchant->MerchantId . '-' . seoUrl($merchant->Name) . '/contacts';
?>
	<ul class="com_bookingforconnector_merchantdetails-menu">
		<?php 
if ($merchant->HasResources) {
    ?>
			<?php 
    if ($merchant->HasResources) {
        ?>
				<li class="com_bookingforconnector_merchantdetails-menu-item"><?php 
        echo l('Resources', $uriMerchantResources);
        ?>
</li>
			<?php 
    }
    ?>
开发者ID:Bookingfor,项目名称:drupal-module,代码行数:31,代码来源:merchant-vcard.tpl.php

示例6: url

 	$routeRating = JRoute::_($currUriresource.'&layout=rating');
 	$routeInfoRequest = JRoute::_($currUriresource.'&layout=inforequestpopup&tmpl=component');
 	$routeRapidView = JRoute::_($currUriresource.'&layout=rapidview&tmpl=component');
 
 	$routeMerchant = "";
 	if($isportal){
 		$currUriMerchant = $uriMerchant. '&merchantId=' . $result->MerchantId . ':' . BFCHelper::getSlug($result->MrcName);
 		if ($itemIdMerchant<>0)
 			$currUriMerchant.= '&Itemid='.$itemIdMerchant;
 		$routeMerchant = JRoute::_($currUriMerchant);
 	}
 	*/
 $route = url('accommodation-details/resource/' . $result->ResourceId . '-' . seoUrl($result->ResName));
 $routeRating = url('accommodation-details/resource/' . $result->ResourceId . '-' . seoUrl($result->ResName) . '/ratings');
 $routeRapidView = url('accommodation-details/resource/' . $result->ResourceId . '-' . seoUrl($result->ResName), array('query' => array('layout' => 'rapid')));
 $routeMerchant = url('merchant-details/merchantdetails/' . $result->MerchantId . '-' . seoUrl($result->MrcName));
 $bookingType = 0;
 $availability = 0;
 $ribbonofferdisplay = "hidden";
 $classofferdisplay = "";
 $stay = new StdClass();
 $availability = $result->Availability;
 $bookingType = $result->BookingType;
 if ($result->Price < $result->TotalPrice || $result->IsOffer) {
     $ribbonofferdisplay = "";
     $classofferdisplay = "com_bookingforconnector_highlight";
 }
 if (!empty($result->RateplanId)) {
     $route .= "?pricetype=" . $result->RateplanId;
 }
 ?>
开发者ID:Bookingfor,项目名称:drupal-module,代码行数:31,代码来源:search-listing-resources.tpl.php

示例7: mysqli_query

    mysqli_query($connecDB, "DELETE FROM postcategory WHERE idPost = '{$id}'") or die(mysql_error());
    mysqli_query($connecDB, "DELETE FROM tags WHERE idPost = '{$id}'") or die(mysql_error());
    //TAGS
    //get id post terbaru
    //CATEGORY
    $piecesCAT = $_POST["category"];
    foreach ($piecesCAT as $partCAT) {
        //$cats = $partCAT;
        mysqli_query($connecDB, "INSERT INTO postcategory (idCategory, idPost, timed) VALUES \n                        ('{$partCAT}','{$id}', NOW())") or die(mysql_error());
        //print($partCAT.'<br />');
        //die();
    }
    //END OF CATEGORY
    foreach ($_POST['tags'] as $part) {
        $tagz = ltrim($part);
        $tagSlug = seoUrl($tagz);
        //echo $part;
        mysqli_query($connecDB, "INSERT INTO tags (idPost, namaTags, tagSlug) VALUES \n                        ('{$id}','{$part}', '{$tagSlug}')");
        //print($part.'<br />');
    }
    //END of TAGS
    header('Location: ./post/?type=editPost&idPost=' . $id . '');
}
if (isset($_POST['tambahCategory'])) {
    $namaCategory = $_POST['category'];
    $slug = $_POST['slug'];
    $description = $_POST['description'];
    mysqli_query($connecDB, "INSERT INTO category (category, slug, description) \n                             VALUES ('{$namaCategory}', '{$slug}', '{$description}')");
    header('Location: ./category/');
}
if (isset($_POST['addImage'])) {
开发者ID:portsign,项目名称:equalizer,代码行数:31,代码来源:record.php

示例8: search_availability

function search_availability()
{
    bfi_get_locale();
    if (!isset($_REQUEST['task'])) {
        unset($_SESSION['search.filterparams']);
        setSessionFromSubmittedData();
        $page = isset($_REQUEST['page']) ? $_REQUEST['page'] : 1;
        $num_per_page = 20;
        $start = ($page - 1) * $num_per_page;
        $searchmodel = new BookingForConnectorModelSearch();
        $items = $searchmodel->getItems(false, false, $start);
        $items = is_array($items) ? $items : array();
        $total = 0;
        if (!empty($_SESSION['search.results']) && !empty($_SESSION['search.results']['totalresultcount'])) {
            $total = $_SESSION['search.results']['totalresultcount'];
        }
        $pages = ceil($total / $num_per_page);
        $output = '';
        $output = $output . '<div id="bfcmerchantlist"><div id="searchitems" rel="' . htmlspecialchars(json_encode($items)) . '"></div> 
		<div class="resourcetabmenu">
		<a class="resources" rel="resources"><i class="fa fa-list-ul"></i> ' . __('List', 'bfi') . '</a><a id="maptab" class="mappa" rel="mappa"> ' . __('Map', 'bfi') . '</a>
		</div>
		<div class="resourcetabcontainer">
		<div id="resources" class="tabcontent">
		<div class="com_bookingforconnector-merchantlist">';
        echo $output;
        $merchant_ids = '';
        if ($_SESSION['search.params']['merchantResults']) {
            $resource_ids = array();
            if (is_array($items)) {
                $merchant_ids = array();
                foreach ($items as $merchant) {
                    $merchant_ids[] = $merchant->MerchantId;
                }
                $merchant_ids = implode(',', $merchant_ids);
            }
            echo '<div id="idsforajax" rel="' . $merchant_ids . '"></div>';
            include 'templates/search-listing.php';
        } else {
            $resource_ids = array();
            foreach ($items as $resource) {
                $resource_ids[] = $resource->ResourceId;
            }
            $resource_ids = implode(',', $resource_ids);
            echo '<div id="idsforajax" rel="' . $resource_ids . '"></div>';
            include 'templates/search-listing-resources.php';
        }
        $output = '';
        $output = $output . '</div>
		</div>
		<div id="mappa" class="tabcontent">		
		<div id="map_canvassearch" class="searchmap" style="width:100%; min-height:400px"></div>
		</div>';
        $url = $_SERVER['REQUEST_URI'];
        $pagination_args = array('base' => $url . '%_%', 'format' => '&page=%#%', 'total' => $pages, 'current' => $page, 'show_all' => false, 'end_size' => 5, 'mid_size' => 2, 'prev_next' => true, 'prev_text' => __('&laquo;'), 'next_text' => __('&raquo;'), 'type' => 'plain', 'add_args' => false, 'add_fragment' => '');
        $paginate_links = paginate_links($pagination_args);
        if ($paginate_links) {
            echo "<nav class='custom-pagination'>";
            //		echo "<span class='page-numbers page-num'>Page " . $page . " of " . $numpages . "</span> ";
            echo "<span class='page-numbers page-num'>" . __('Page', 'bfi') . " </span> ";
            print $paginate_links;
            echo "</nav>";
        }
        $output = $output . "</div></div>";
        echo $output;
    } else {
        $task = $_REQUEST['task'];
        if ($task == 'GetMerchantsByIds') {
            $lists = $_REQUEST['merchantsId'];
            $merchants = BFCHelper::getMerchantsByIds($lists, $GLOBALS['bfi_lang']);
            die($merchants);
        } else {
            if ($task == 'getMerchantGroups') {
                $merchantgroups = BFCHelper::getMerchantGroups();
                wp_send_json($merchantgroups);
            } else {
                if ($task == 'GetPhoneByMerchantId') {
                    $merchantId = $_REQUEST['merchantid'];
                    $language = $GLOBALS['bfi_lang'];
                    $phno = BFCHelper::GetPhoneByMerchantId($merchantId, $language);
                    wp_send_json($phno);
                } else {
                    if ($task == 'GetResourcesByIds') {
                        $lists = $_REQUEST['resourcesId'];
                        $language = $GLOBALS['bfi_lang'];
                        $resources = BFCHelper::GetResourcesByIds($lists, $language);
                        @header('Content-Type: application/json; charset=' . get_option('blog_charset'));
                        echo $resources;
                        die;
                    } else {
                        if ($task == 'getmarketinfo') {
                            $base_url = get_site_url();
                            $merchant_id = $_REQUEST['merchantId'];
                            $model = new BookingForConnectorModelMerchantDetails();
                            $merchant = $model->getItem($merchant_id);
                            $output = '<div class="com_bookingforconnector_map_merchantdetails" style="display:block;height:150px;overflow:auto; width: 300px;">
							<div class="com_bookingforconnector_merchantdetails com_bookingforconnector_merchantdetails-t257">
								<h3 style="margin:0;" class="com_bookingforconnector_merchantdetails-name"><a class="com_bookingforconnector_merchantdetails-nameAnchor" href="' . $base_url . '/merchant-details/merchantdetails/' . $merchant->MerchantId . '-' . seoUrl($merchant->Name) . '">' . $merchant->Name . '</a> 
									<br/><span class="com_bookingforconnector_merchantdetails-rating com_bookingforconnector_merchantdetails-rating' . $merchant->Rating . '">
										<span class="com_bookingforconnector_merchantdetails-ratingText">Rating ' . $merchant->Rating . '</span>
//.........这里部分代码省略.........
开发者ID:Bookingfor,项目名称:wordpress-plugin,代码行数:101,代码来源:bfi.php

示例9: index

 /**
  *	All = all fields are filled
  *	1	= Author field is checked
  *  2	= Course field is checked
  *  3	= Author and Course field are checked
  *  4	= Lesson Field is checked
  *  5	= Lesson and Author fields are checked
  *  6	= Course and lesson fields are checked
  * 	Any other input =  All fields selected
  */
 public function index($match = '-', $fields = 'all', $page = null)
 {
     $this->data['main_view12'] = '';
     if ($match == "-" or $match == NULL) {
         $this->data['did_we_search'] = false;
     } else {
         $this->data['did_we_search'] = true;
     }
     switch ($fields) {
         case "author":
             $this->data['checkbox_checking'][1] = true;
             $this->data['checkbox_checking'][2] = false;
             $this->data['checkbox_checking'][4] = false;
             break;
         case "course":
             $this->data['checkbox_checking'][1] = false;
             $this->data['checkbox_checking'][2] = true;
             $this->data['checkbox_checking'][4] = false;
             break;
         case "author-course":
             $this->data['checkbox_checking'][1] = true;
             $this->data['checkbox_checking'][2] = true;
             $this->data['checkbox_checking'][4] = false;
             break;
         case "lesson":
             $this->data['checkbox_checking'][1] = false;
             $this->data['checkbox_checking'][2] = false;
             $this->data['checkbox_checking'][4] = true;
             break;
         case "author-lesson":
             $this->data['checkbox_checking'][1] = true;
             $this->data['checkbox_checking'][2] = false;
             $this->data['checkbox_checking'][4] = true;
             break;
         case "course-lesson":
             $this->data['checkbox_checking'][1] = false;
             $this->data['checkbox_checking'][2] = true;
             $this->data['checkbox_checking'][4] = true;
             break;
         default:
             $this->data['checkbox_checking'][1] = true;
             $this->data['checkbox_checking'][2] = true;
             $this->data['checkbox_checking'][4] = true;
             break;
     }
     // end of fields
     if ($this->input->post('search_mini_button') == true) {
         $filter_slug = "all";
         redirect($this->data['language'] . '/user/search/index/' . seoUrl($this->input->post('search')) . '/' . $filter_slug . '/' . $page, 'refresh');
     }
     $property = $this->input->post('checkbox_group');
     //$this->data['main_view12']=$property;
     $total = 0;
     $filter_slug = '';
     if ($this->input->post('search')) {
         $this->data['did_we_search'] = true;
         $match = seoUrl($this->input->post('search'));
         if ($property) {
             foreach ($property as $value) {
                 $total += $value;
             }
         }
         switch ($total) {
             case 1:
                 $filter_slug = "author";
                 break;
             case 2:
                 $filter_slug = "course";
                 break;
             case 3:
                 $filter_slug = "author-course";
                 break;
             case 4:
                 $filter_slug = "lesson";
                 break;
             case 5:
                 $filter_slug = "author-lesson";
                 break;
             case 6:
                 $filter_slug = "course-lesson";
                 break;
             default:
                 $filter_slug = "all";
                 break;
         }
         redirect($this->data['language'] . '/user/search/index/' . seoUrl($this->input->post('search')) . '/' . $filter_slug . '/' . $page, 'refresh');
     }
     //-------------------- Configuring the Pagination ----------------------
     $config = array();
     $config["base_url"] = base_url() . $this->data['language'] . "/user/search/index/" . $match . '/' . $fields;
//.........这里部分代码省略.........
开发者ID:igor-vidic,项目名称:LessonLearned,代码行数:101,代码来源:search.php

示例10: order

 /**
  *	Description: Displays a table view of all lesson, filterable, orderable with header links 
  *				 and devided with pagination(Takes information from ultiple database tables)
  *	@param int $order (Order type)
  *	@param string $type ('asc' OR 'desc')
  *	@param string $match (Search needle for filtering)
  *
  */
 public function order($order = 1, $type = "asc", $match = '-')
 {
     if ($match == "-" or $match == NULL) {
         $this->data['did_we_search'] = false;
     } else {
         $this->data['did_we_search'] = true;
     }
     //Secondary order parameter
     $order1 = $order;
     if ($order == NULL) {
         $order1 = 'course';
     }
     //Setting default url
     $this->data['url'] = "/" . $order1 . '/' . $type . '/';
     if (empty($match)) {
         //Search parameter
         $match = '-';
     }
     /**----------------------		Creating header links		--------------------------------------**/
     //Total number of table columns
     $total_items = 11;
     //what is the position of the pagination parameter
     $pagination_segment = 7;
     //Specific url path
     $extended_url = "/admin/lesson/order/";
     //User visible header names
     $header_list_name = array(0 => $this->lang->line('course_table_icon'), 1 => $this->lang->line('course_table_course'), 2 => 'Lesson', 3 => $this->lang->line('course_table_slug'), 4 => $this->lang->line('course_table_author'), 5 => 'Language', 6 => $this->lang->line('course_table_created'), 7 => 'Modified', 8 => $this->lang->line('active'), 9 => '', 10 => '', 11 => '');
     //List of valid header slugs( False values are converted to non-clickable)
     $header_order_slug = array(0 => 'category', 1 => 'course', 2 => 'lesson', 3 => 'slug', 4 => 'author', 5 => 'description', 6 => 'created', 7 => 'modified', 8 => 'active', 9 => false, 10 => false, 11 => false);
     //Calling and sending all data required to create header ordering links(Ordering value+type, Pagination and search result filtering)
     $this->data['links'] = $this->course_m->create_table_header($this->data['language'], $total_items, $extended_url, $header_list_name, $header_order_slug, $order, $type, $page = 0, $pagination_segment, $match);
     /**----------------------		Creating header links		--------------------------------------**/
     $this->data['type'] = $type;
     //defaulting the type of search
     if ($type != 'asc' and $type != 'desc') {
         $type = 'asc';
     }
     if ($match != '-' and is_numeric($match) == false or $match == NULL and is_numeric($match) == false) {
         $field = array('description' => decodeseoUrl($match), 'category_name' => decodeseoUrl($match), 'lesson_name' => decodeseoUrl($match), 'title' => decodeseoUrl($match), 'lesson_slug' => decodeseoUrl($match), 'cat_slug' => decodeseoUrl($match), 'lessons.lesson_id' => decodeseoUrl($match));
     } elseif ($match != '-' and is_numeric($match)) {
         $field = array('lessons.lesson_id' => $match);
     } else {
         $field = null;
     }
     $search_haystack = array(1 => 'title', 2 => 'category_name', 3 => 'lesson_name', 4 => 'language.lang_name', 5 => 'first_name', 6 => 'last_name', 7 => 'lessons.lesson_id');
     $multy = array('0' => 'lessons-courses', '1' => 'courses-users', '2' => 'courses-category', '3' => 'lessons-language');
     //-------------------- Configuring the Pagination ----------------------
     $config = array();
     $config["base_url"] = base_url() . $this->data['language'] . "/admin/lesson/order/" . $order . "/" . $type . '/' . $match;
     //Defaulting the match parameter
     if ($match == '-') {
         $match = NULL;
     }
     $config["total_rows"] = $this->lesson_m->count_pagination_records(null, $search_haystack, decodeseoUrl($match), $multy);
     $config['num_links'] = 3;
     $config["per_page"] = 10;
     $config["uri_segment"] = 8;
     // Configuring styles for pagination (Located in '/library/MY_PAgination')
     foreach ($this->my_pagination->set_style() as $key => $value) {
         $config[$key] = $value;
     }
     switch ($order) {
         case 'category':
             $this->db->order_by('category_name', $type);
             break;
         case 'course':
             $this->db->order_by('title', $type);
             break;
         case 'slug':
             $this->db->order_by('c_slug', $type);
             break;
         case 'author':
             $this->db->order_by('first_name', $type);
             break;
         case 'description':
             $this->db->order_by('course_description', $type);
             break;
         case 'date':
             $this->db->order_by('course_date', $type);
             break;
         case 'active':
             $this->db->order_by('course_approved', $type);
             break;
         default:
             $this->db->order_by('title', $type);
             break;
     }
     $this->pagination->initialize($config);
     $this->data["course_data"] = ' ';
     $page = $this->uri->segment(8) ? $this->uri->segment(8) : 0;
     //$this->data['courses'] = $this->course_m->fetch_limit($config["per_page"], $page, $field, $match, true);
     $this->data['courses'] = $this->lesson_m->fetch_pagination_records($config["per_page"], $page, null, true, $search_haystack, decodeseoUrl($match), $multy);
//.........这里部分代码省略.........
开发者ID:igor-vidic,项目名称:LessonLearned,代码行数:101,代码来源:lesson.php

示例11: seoUrl

?>
">
	<input type="hidden" id="hashorder" name="hashorder" value="<?php 
echo $hashorder;
?>
">
	<input type="hidden" id="resourceId" name="resourceId" value="<?php 
echo $resourceId;
?>
">
	<input type="hidden" id="label" name="label" value="<?php 
echo $formlabel;
?>
">
	<input type="hidden" id="redirect" name="redirect" value="<?php 
echo 'merchant-details/reviews/' . $merchant_id . '-' . seoUrl($merchant->Name);
?>
">
	
	<div class="com_bookingforconnector_rating">
		<div class="<?php 
echo COM_BOOKINGFORCONNECTOR_BOOTSTRAP_ROW;
?>
">   
			<div class="<?php 
echo COM_BOOKINGFORCONNECTOR_BOOTSTRAP_COL;
?>
6">
				<label><?php 
_e('Name', 'bfi');
?>
开发者ID:Bookingfor,项目名称:wordpress-plugin,代码行数:31,代码来源:merchantreview.php

示例12: seoUrl

}
?>
						<br>
					 </div>
			</div>	

	<!-- end  summary -->
		<!-- fields -->
			<form id="calculatorForm" action="<?php 
echo $form_url;
?>
/accommodation-details/payment/form/<?php 
echo $resource->ResourceId;
?>
-<?php 
echo seoUrl($resource->Name);
?>
" method="POST" class="com_bookingforconnector_resource-calculatorForm com_bookingforconnector_resource-calculatorTable <?php 
echo $viewExtra ? 'com_bookingforconnector_resource-calculatorTable-viewextras' : '';
?>
 <?php 
echo $viewSummary ? 'com_bookingforconnector_resource-calculatorTable-viewsummary' : '';
?>
">
				<div class="<?php 
echo COM_BOOKINGFORCONNECTOR_BOOTSTRAP_ROW;
?>
 com_bookingforconnector_resource-calculatorForm-mandatory">
					<h4><?php 
_e('Availability', 'bfi');
?>
开发者ID:Bookingfor,项目名称:wordpress-plugin,代码行数:31,代码来源:rate-calculator.php

示例13: add_goods_action

 function add_goods_action()
 {
     $this->_check_login_json();
     //        print_r($_POST);
     $msg = '';
     $_POST['price'] = (int) $_POST['price'];
     if (mb_strlen($_POST['name']) < 3 or mb_strlen($_POST['short_description']) < 15 or count($_POST['categories']) < 1 or $_POST['price'] < 0) {
         $anser_ar['title'] = 'Ошибка';
         $anser_ar['content'] = ' Одно из полей заполнено неверно ';
     } else {
         // <load image>
         if (!empty($_POST['image_url']) or isset($_FILES['image_local'])) {
             if (!empty($_POST['image_url'])) {
                 //загрузка изображений по URl
                 $load_result = $this->upload_img_lib->url_upload($_POST['image_url']);
             } else {
                 //загрузка изображения с компьютера
                 $load_result = $this->upload_img_lib->local_upload('image_local');
             }
             if ($load_result) {
                 $img_data = $this->upload_img_lib->get_file_data();
                 #$this->upload_img_lib->resize_img( $img_data['file_name'], 'small');
                 $this->upload_img_lib->resize_img($img_data['file_name'], 'upper-small');
                 $this->upload_img_lib->resize_img($img_data['file_name'], 'medium');
                 $_POST['main_img'] = $img_data['file_name'];
             } else {
                 $_POST['main_img'] = '';
                 $msg .= $this->upload_img_lib->error_msg();
             }
         }
         // </load image>
         // получение keywords, description
         $html_info = $this->admin_m->get_new_goods_html_info($_POST['name'], $_POST['categories'][0]);
         $_POST['html_keywords'] = $html_info['html_keywords'];
         $_POST['html_description'] = $html_info['html_description'];
         $_POST['url_name'] = seoUrl($_POST['name']);
         $goods_id = $this->admin_m->add_goods($_POST);
         // занесение информации о товаре
         if ($goods_id) {
             foreach ($_POST['categories'] as $cat_id) {
                 // добавление категорий товаров
                 $this->admin_m->add_goods_to_cat($goods_id, $cat_id);
             }
             //add competitors link
             $msg .= $this->admin_m->add_competitors_link($goods_id, $_POST['competitors']);
             $anser_ar['title'] = 'Товар добавлен';
             $anser_ar['content'] = $msg . ' Изменения отобразятся на сайте в течении 10 мин.';
             $anser_ar['script'] = "\$('#right_content_block').load('/admin/add_goods/', {}, function(){ ajax_init(); } )";
         } else {
             $anser_ar['title'] = 'Товар не добавлен';
             $anser_ar['content'] = 'Возникла ошибка при добавлении. ' . $msg;
         }
     }
     echo json_encode($anser_ar);
 }
开发者ID:skybee,项目名称:cctv-pro,代码行数:55,代码来源:Admin.php

示例14: _e

		<?php 
} else {
    ?>
			<?php 
    if ($merchant->RatingsContext !== 0 && $merchant->RatingsContext !== 2) {
        ?>
				<div class="alert alert-block">
					<?php 
        _e('Would you like to be the first to write a review?', 'bfi');
        ?>
					<?php 
        if (($merchant->RatingsContext === 1 || $merchant->RatingsContext === 3) && ($merchant->RatingsType == 0 || $merchant->RatingsType == 2)) {
            ?>
						<a href="<?php 
            echo $base_url . '/merchant-details/review/' . $merchant->MerchantId . '-' . seoUrl($merchant->Name);
            ?>
" class="btn btn-info"><?php 
            _e('Review', 'bfi');
            ?>
</a>
					<?php 
        }
        ?>
	
				</div>
			<?php 
    }
    ?>
	
		<?php 
开发者ID:Bookingfor,项目名称:wordpress-plugin,代码行数:30,代码来源:merchantreviews.php

示例15: foreach

    ?>
</span></i></span></li>

  <?php 
}
?>
</ul>
								<h4 class="headline">
									CATEGORIES
									<span class="line"></span>
								</h4>
								<div class="media popular-post">
								<ul class="list-group">
<?php 
foreach ($category as $c) {
    $cat = seoUrl($c->name);
    ?>
									<li data-id="<?php 
    echo site_url() . 'cat/' . $cat;
    ?>
" class="list-group-item get_cat"><i class="fa fa-circle" style="font-size:6px;vertical-align:middle;color:#ccc;"></i>&nbsp; <?php 
    echo $c->name;
    ?>
</li>
									<?php 
}
?>
</ul>
</div>
								<!--<h4 class="headline">
									TAG CLOUD
开发者ID:rth1972,项目名称:bootstrap_blog,代码行数:31,代码来源:layout.html.php


注:本文中的seoUrl函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。