本文整理汇总了PHP中prep_word_url函数的典型用法代码示例。如果您正苦于以下问题:PHP prep_word_url函数的具体用法?PHP prep_word_url怎么用?PHP prep_word_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了prep_word_url函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GetArticlesTiempo
private function GetArticlesTiempo($data = false)
{
if ($data['type'] == 'highlight') {
return array();
}
$date = date('Y-m-d H:i:s');
$table = '`nrp_tiempoarg_beta`.';
$ret = array();
$pub = 0;
$sql = "select id_publishing as id\n from {$table}publishing \n where id_state = '2' AND CONCAT(date_publishing,' ',time_publishing) <= '{$date}'\n order by date_publishing desc, time_publishing desc \n LIMIT 0,1";
$query = $this->db->query($sql);
if (!$query) {
return $ret;
}
$pub = $query->row();
if (!$pub) {
return $ret;
}
$pub = $pub->id;
$sql = "select a.id_article as id, a.title, a.id_category as category,\n (select f.file \n from {$table}article_file af\n left join {$table}nza_file f on f.id_file = af.id_file \n where af.id_article = a.id_article\n order by af.home desc\n LIMIT 0,1) as picture\n from {$table}article a\n where a.id_publishing = '{$pub}' AND a.id_category = '{$data['id']}' and a.id_state = 3 and a.id_type != 4 and a.id_type != 5\n having picture\n order by a.page LIMIT 0,5";
$articles = $this->db->query($sql)->result();
foreach ($articles as $article) {
$article->link = $this->config->item("link-tiempo-argentino", 'app') . 'nota/' . $article->id . '/' . prep_word_url($article->title);
$article->picture = $this->config->item("link-tiempo-argentino", 'app') . 'thumb_file_cnx/' . $article->picture;
$ret[] = $article;
}
return $ret;
}
示例2: GetCharactersCloud
public function GetCharactersCloud()
{
$sql = "SELECT COUNT(*) AS total, t.`nombre`, t.`id`, t.`id_categoria`, advf.`advLink` as advLink\n FROM `contenidos_tags` ct\n LEFT JOIN contenidos c ON c.id = ct.`id_contenido`\n LEFT JOIN tags t ON t.id = ct.`id_tag`\n LEFT JOIN advf AS advf ON t.`id_foto` = advf.advID\n WHERE c.fecha BETWEEN DATE_SUB(NOW(),INTERVAL 1 WEEK) AND NOW() AND nombre != '' AND t.`id_tipo` = '2' AND t.`id_foto`\n GROUP BY ct.id_tag\n ORDER BY total DESC\n LIMIT 7";
$result = $this->db->query($sql)->result();
$json = array();
$total = 0;
foreach ($result as $key => $tag) {
$total = $total + $tag->total;
}
foreach ($result as $key => $tag) {
$json[$key]['section'] = $tag->id_categoria;
$json[$key]['tag'] = $tag->nombre;
$json[$key]['href'] = $this->config->item("link-infonews", 'app') . 'tag/' . $tag->id . '/' . prep_word_url($tag->nombre);
if ($key < 2) {
$size = 137;
} else {
$size = 67;
}
$json[$key]['picture'] = upload_advf($tag->advLink, $size, $size, true);
}
return $json;
}
示例3: layout
<div class="union"><img src="<?php
echo layout();
?>
images/union.png"></div>
<div class="content">
<div class="title">
<h1>FICHA DEL COMERCIO</h1>
</div>
<a class="close app-loader" href="<?php
echo base_url();
?>
agroservicios/<?php
echo $store->id_province;
?>
/<?php
echo prep_word_url($store->province);
?>
"><img src="<?php
echo layout();
?>
images/cerrar.png"></a>
<div class="text">
<h1><?php
echo $store->store;
?>
</h1>
<?php
if ($store->details) {
echo $store->details;
?>
<br>
示例4: foreach
<th>Precio s/iva</th>
<th class="qq">Cantidad</th>
<?php
if (!isset($cartDisabled)) {
?>
<th></th>
<?php
}
?>
</tr>
</thead>
<?php
$subtotal = 0;
$shipping = 0;
foreach ($cartItems as $item) {
$link = base_url() . 'libro/' . $item->id . '/' . prep_word_url($item->title);
$itemCost = prep_cost($item->cost, true, false);
$itemCostIVA = prep_cost($item->cost * 0.96, true, false);
$itemCostST = prep_cost($item->cost * round($item->items), true, false);
if ($item->active == 1) {
$subtotal += $item->cost * round($item->items);
}
if ($item->active != 1 && isset($cartDisabled)) {
continue;
}
$inCart = $this->Cart->ItemExists($item->id, 0, 0);
?>
<tr data-value="<?php
echo $item->active == 1 ? $item->cost : 0;
?>
" data-id="<?php
示例5: foreach
<div class="row products-list">
<?php
foreach ($productsSearch as $item) {
$itemUriName = prep_word_url($item->name);
$inCart = $this->Cart->ItemExists($item->id, 0, 0);
$itemCost = prep_cost($item->cost, true, false);
if (round($item->cost2) == round($item->cost)) {
$item->cost2 = 0;
}
$colors = $this->Data->ProductColors($item->id);
?>
<div class="col-sm-3 product-list-item">
<div class="cover style3 product-preview" style="background-image:url('<?php
echo thumb($item->file, 386, 450);
?>
')">
<?php
if ($item->id_state != 1) {
?>
<span class="badge badge-outstock"><?php
echo $item->state;
?>
</span>
<?php
} elseif (round($item->cost2) && ($perc = round(($item->cost2 - $item->cost) / $item->cost2 * 100)) >= 5) {
?>
<span class="badge badge-discount rbadge-discount"><?php
echo $perc;
?>
%</span>
示例6: base_url
if (!$teamNext) {
?>
inactive<?php
}
?>
"><?php
if ($teamNext) {
?>
<a class="app-loader" href="<?php
echo base_url();
?>
nosotros/equipo-humano/<?php
echo $teamNext->id_team;
?>
/<?php
echo prep_word_url($teamNext->name . ' ' . $teamNext->lastname);
?>
"><img src="<?php
echo layout();
?>
images/next.png"></a><?php
} else {
?>
<img src="<?php
echo layout();
?>
images/next.png"><?php
}
?>
</div>
</div>
示例7: prep_word_url
echo $article->author_name;
?>
<?php
echo $article->author_lastname;
?>
" title="<?php
echo $article->author_name;
?>
<?php
echo $article->author_lastname;
?>
" class="app-link" <?php
echo $this->Data->clientID ? 'target="_blank" ' : "";
?>
href="<?php
echo $this->config->item('link-infonews', 'app') . "autor/{$article->author_id}/" . prep_word_url($article->author_name . ' ' . $article->author_lastname);
?>
"><?php
echo $article->author_name;
?>
<?php
echo $article->author_lastname;
?>
</a></h3>
<h2><a ga-event="Click,Barra lateral Opinion,Nota: ''<?php
echo str_replace(',', ".", str_replace('"', "'", $article->title));
?>
''" title="<?php
echo $article->title;
?>
" class="app-link" href="<?php
示例8: layout
?>
)"></div>
<img class="commas" src="<?php
echo layout('ico/reviews/icono-opinion-autor.png');
?>
">
</div>
<div class="opinion">
<span class="author"><a title="<?php
echo $article->author_name;
?>
<?php
echo $article->author_lastname;
?>
" href="<?php
echo base_url() . "autor/{$article->author_id}/" . prep_word_url($article->author_name . ' ' . $article->author_lastname);
?>
"><?php
echo $article->author_name;
?>
<?php
echo $article->author_lastname;
?>
</a></span>
<?php
if ($article->author_twitter) {
?>
<p class="twitter"><a href="http://twitter.com<?php
echo $article->author_twitter;
?>
" target="_blank">@<?php
示例9: foreach
<?php
foreach ($articles as $article) {
$this->load->shview("section/articles/list", array('article' => $this->Data->DataArticleList($article->id)));
}
?>
<?php
if ($total > $nextList) {
?>
<div class="widget-more-notes">
<span class="button"><a class="button-more" href="<?php
echo base_url() . 'autor/' . $author->id . '/' . prep_word_url($author->author_name . ' ' . $author->author_lastname) . '/' . $nextList;
?>
">ver más notas</a><span class="line"></span></span>
</div>
<?php
}
示例10: book
public function book($id = 0)
{
$id = round($id);
if (!$id) {
return redirect('catalogo');
}
$this->data['book'] = $this->Data->GetBook($id);
$this->data['categories'] = $this->Data->GetCategories();
$this->data['url'] = base_url() . 'libro/' . $id . '/' . prep_word_url($this->data['book']->title);
$this->data['IDcategory'] = $this->data['book']->id_category;
if (!$this->data['book']) {
return redirect('catalogo');
}
$this->load->view('section/book', $this->data);
}
示例11: uploadFile
public function uploadFile($file = null)
{
$exp = explode('.', $file['name']);
if (count($exp) < 2) {
return false;
}
$ext = strtolower($exp[count($exp) - 1]);
if (!$ext || !$exp[0] || !$file['tmp_name'] || !file_exists($file['tmp_name'])) {
return false;
}
$data = array();
$data['name'] = substr($file['name'], 0, strlen($file['name']) - strlen($ext) - 1);
$fname = prep_word_url($data['name']);
$data['name'] = $file['name'];
$name = $this->makeFileName($fname, $ext);
$newfile = $this->getFolder() . $name;
copy($file['tmp_name'], $newfile);
unset($data['action']);
$data['id_type'] = $this->FileType($ext);
$data['id_folder'] = $this->input->post('folder');
$data['id_user'] = $this->MApp->user->id;
$data['file'] = $name;
$id = $this->SaveNewFile($data);
$data['id'] = $id;
if ($data['id_type'] == 1) {
$data['thumb'] = thumb_url($id, $this->fglobal);
}
$data['url'] = upload($name, $this->fglobal);
$this->ActionsFileAdded($data);
return $data;
}
示例12: base_url
</div>
<?php
}
}
?>
</div>
</div>
<div class="col-33 nopadding">
<?php
if (isset($yafuetodoArticles[0])) {
$article = $this->Data->DataArticleHome($yafuetodoArticles[0]->id);
if ($article) {
?>
<div class="widget-article type-4">
<div class="title-header"><a href="<?php
echo base_url() . prep_word_url('Ya fue todo');
?>
">Ya fue todo</a></div>
<div class="article-content">
<?php
if ($article->picture) {
?>
<div class="figure">
<?php
if ($article->videohome) {
?>
<span class="video-ico"></span><?php
}
?>
<a title="<?php
echo $article->title;
示例13: base_url
?>
" class="tag"><?php
echo $item->tags[0]->tag;
?>
</a>
<?php
if (isset($item->tags[1]) && $item->tags[1]->important) {
?>
<a href="<?php
echo base_url();
?>
tags/<?php
echo $item->tags[1]->id;
?>
/<?php
echo prep_word_url($item->tags[1]->tag);
?>
" class="tag"><?php
echo $item->tags[1]->tag;
?>
</a>
<?php
}
?>
<?php
}
?>
<?php
/*
<span class="comments"><span class="coments-count">20</span></span>
*/
示例14: foreach
if ($related && count($related)) {
?>
<div class="in widget-related">
<div class="title">
<h1><?php
echo $this->lang->line('Artículos relacionados');
?>
</h1>
</div>
<div class="grid app-lighter in">
<?php
foreach ($related as $r) {
$blog = $this->Data->GetBlog($r);
if ($r) {
$time = mysql_to_unix($blog->date);
$link = base_url() . $this->lang->line('blog') . '/post/' . $blog->id . '/' . prep_word_url($blog->title);
?>
<div class="grid-col-3 blog">
<a href="<?php
echo $link;
?>
" class="app-loader">
<div class="blog-in">
<h1><?php
echo $blog->title;
?>
</h1>
<div class="separador"></div>
<p><span class="fecha"><?php
echo round(date('d', $time));
?>
示例15: base_url
?>
</small>
</div>
<div class="data-program">
<div class="info">
<?php
if ($tagP) {
?>
<h1><a href="<?php
echo base_url();
?>
programa/<?php
echo $tagP->id;
?>
/<?php
echo prep_word_url($tagP->nombre);
?>
" target="_blank"><?php
echo $program->programa;
?>
</a></h1>
<?php
} else {
?>
<h1><?php
echo $program->programa;
?>
</h1>
<?php
}
?>