زمان کنونی: ۱۹-۲-۱۴۰۳, ۰۵:۴۶ عصر درود مهمان گرامی! (ورودثبت نام)


ارسال پاسخ 
 
امتیاز موضوع:
  • 0 رأی - میانگین امتیازات: 0
  • 1
  • 2
  • 3
  • 4
  • 5
استفاده از div در کد php
۱۸-۵-۱۳۹۲, ۱۰:۴۱ عصر
ارسال: #1
استفاده از div در کد php
سلام دوستانمن میخواهم کد پی اچ پی زیر که در واقع نتایج سرچ جوملا رو در صفحه نمایش میده در یکdiv قرار بدم و با کم یا زیاد کردن طول و عرضdiv طول و عرض نمایش نتایج جستجو دست خودم باشهلطفا بنده را راهنمایی بفرمایید که کد div رو باید دقیقا کجای کدهای زیر قرار بدهم؟با تشکر
<?php
/**
* @package    Joomla.Site
* @subpackage  com_finder
*
defined('_JEXEC') or die;

// Get the mime type class.
$mime = !empty($this->result->mime) ? 'mime-' . $this->result->mime : null;

// Get the base url.
$base = JURI::getInstance()->toString(array('scheme', 'host', 'port'));

// Get the route with highlighting information.
if (!empty($this->query->highlight) && empty($this->result->mime) &&
$this->params->get('highlight_terms', 1) &&
JPluginHelper::isEnabled('system', 'highlight')) {
   $route = $this->result->route . '&highlight=' .
base64_encode(json_encode($this->query->highlight));
} else {
   $route = $this->result->route;
}
?>

<dt class="result-title <?php echo $mime; ?>">
   <a href="<?php echo JRoute::_($route); ?>"><?php echo
$this->result->title; ?></a>
</dt>
<?php if ($this->params->get('show_description', 1)): ?>
<dd class="result-text<?php echo $this->pageclass_sfx; ?>">
   <?php echo  JHtml::_('string.truncate',
$this->result->description, $this->params->get('description_length',
255)); ?>
</dd>
<?php endif; ?>
<?php if ($this->params->get('show_url', 1)): ?>
<dd class="result-url<?php echo $this->pageclass_sfx; ?>">
   <?php echo $base . JRoute::_($this->result->route); ?>
</dd>
<?php endif;
یافتن تمامی ارسال‌های این کاربر
نقل قول این ارسال در یک پاسخ بازگشت به بالا
ارسال پاسخ 


پرش به انجمن:


کاربرانِ درحال بازدید از این موضوع: 1 مهمان