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


PHP smarty_modifier_strip函数代码示例

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


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

示例1: is_array

  					              title="<?php 
                echo $this->_tpl_vars['labels']['alt_edit_build'];
                ?>
"
  					              src="<?php 
                echo @TL_THEME_IMG_DIR;
                ?>
/icon_edit.png"/>
  					     <?php 
            }
            ?>
    
  					  </a>   
  				</td>
  				<td><?php 
            echo is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['build']['notes']) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)) ? $this->_run_mod_handler('truncate', true, $_tmp, $this->_config[0]['vars']['BUILD_NOTES_TRUNCATE_LEN']) : smarty_modifier_truncate($_tmp, $this->_config[0]['vars']['BUILD_NOTES_TRUNCATE_LEN']);
            ?>
</td>
  				<td><?php 
            if ($this->_tpl_vars['build']['release_date'] != '') {
                echo localize_date_smarty(array('d' => $this->_tpl_vars['build']['release_date']), $this);
            }
            ?>
</td>
  				<td class="clickable_icon">
  				   <?php 
            if ($this->_tpl_vars['build']['active'] == 1) {
                ?>
 
  				     <img style="border:none" 
  				            title="<?php 
开发者ID:viglesiasce,项目名称:tl_RC1,代码行数:31,代码来源:%%3E^3E1^3E13F1AB%%buildView.tpl.php

示例2: is_array

</td>
                          </tr>
                        </table></td>
                      <td width="73%" valign="top"><table width="100%" border="0">
                          <tr>
                            <td class="txt_green"><a href="index.php?action=hotel&option=single&id=<?php 
        echo $this->_tpl_vars['hotel']['hot_id'];
        ?>
"><?php 
        echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['hotel']['hot_subject']) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp);
        ?>
</a></td>
                          </tr>
                          <tr>
                            <td><?php 
        echo is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['hotel']['hot_info']) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)) ? $this->_run_mod_handler('truncate', true, $_tmp, 200, "...", true) : smarty_modifier_truncate($_tmp, 200, "...", true);
        ?>
</td>
                          </tr>
                          <tr>
                            <td align="right" ><a href="index.php?action=hotel&option=single&id=<?php 
        echo $this->_tpl_vars['hotel']['hot_id'];
        ?>
" class="link_more">详细进入&gt;&gt;</a></td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td height="1" background="image/lvyou/line.gif"></td>
开发者ID:holin,项目名称:sstour,代码行数:31,代码来源:%%EC^ECC^ECC92813%%hotels.htm.php

示例3: is_array

]" /></td>

      		<td><span class="bold"><?php 
                echo is_array($_tmp = $this->_tpl_vars['gui']->arrUnassignedReq[$this->_sections['row2']['index']]['req_doc_id']) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp);
                ?>
</span></td>
      		<td><span class="bold"><a href="lib/requirements/reqView.php?requirement_id=<?php 
                echo $this->_tpl_vars['gui']->arrUnassignedReq[$this->_sections['row2']['index']]['id'];
                ?>
">
      			<?php 
                echo is_array($_tmp = $this->_tpl_vars['gui']->arrUnassignedReq[$this->_sections['row2']['index']]['title']) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp);
                ?>
</a></span></td>
      		<td><?php 
                echo is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['gui']->arrUnassignedReq[$this->_sections['row2']['index']]['scope']) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)) ? $this->_run_mod_handler('truncate', true, $_tmp, $this->_config[0]['vars']['SCOPE_SHORT_TRUNCATE']) : smarty_modifier_truncate($_tmp, $this->_config[0]['vars']['SCOPE_SHORT_TRUNCATE']);
                ?>
</td>
      	</tr>
      	<?php 
            }
        } else {
            ?>
      	<tr><td></td><td><span class="bold"><?php 
            echo $this->_tpl_vars['labels']['req_msg_norequirement66'];
            ?>
</span></td></tr>
      	<?php 
        }
        ?>
      </table>
开发者ID:viglesiasce,项目名称:tl_RC1,代码行数:31,代码来源:%%14^149^149BE41B%%reqTcAssign.tpl.php

示例4: is_array

"><?php 
echo $this->_tpl_vars['sql_scenic']['sc_subject'];
?>
</a> &raquo; <a href="<?php 
echo $this->_tpl_vars['boardurl'];
?>
index.php?action=scenic&option=article&id=<?php 
echo $this->_tpl_vars['sql_scenic']['sc_id'];
?>
">资讯</a></div>
	  <div id="show">
        <div>
          <ul class="xspace-itemlist">
            <li class="xspace-loglist">
              <h4 class="xspace-entrytitle"> <?php 
echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['sql_hotelthread']['thr_subject']) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp);
?>
</h4>
              <p class="xspace-smalltxt"> <?php 
echo $this->_tpl_vars['sql_hotelthread']['thr_date'];
?>
 <a>查看(<?php 
echo $this->_tpl_vars['sql_hotelthread']['thr_views'];
?>
)</a> <a href="javascript:;" onClick="fshowwindows('<?php 
echo $this->_tpl_vars['boardurl'];
?>
index.php?action=update&option=scenicarticle&type=edit&id=<?php 
echo $this->_tpl_vars['sql_hotelthread']['thr_hid'];
?>
&Industry=<?php 
开发者ID:holin,项目名称:sstour,代码行数:31,代码来源:%%37^377^3771EF2F%%scenicthread.htm.php

示例5: is_array

        ?>
index.php?action=update&option=hotelyou&type=del&id=<?php 
        echo $this->_tpl_vars['hotelthread']['thr_hid'];
        ?>
&Industry=<?php 
        echo $this->_tpl_vars['hotelthread']['thr_id'];
        ?>
\',\'\',\'\',\'location.href=\\\'<?php 
        echo $this->_tpl_vars['boardurl'];
        ?>
index.php?action=hotel&option=hotelyou&id=<?php 
        echo $this->_tpl_vars['hotelthread']['thr_hid'];
        ?>
\\\'\');', '', '');">删除</a></p>
              <div class="xspace-itemmessage" id="xspace-item169"> <?php 
        echo is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['hotelthread']['thr_content']) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)) ? $this->_run_mod_handler('truncate', true, $_tmp, 300, "", true) : smarty_modifier_truncate($_tmp, 300, "", true);
        ?>
</div>
            </li>
			<?php 
    }
}
unset($_from);
?>
          </ul>
        </div>
		<?php 
if ($this->_tpl_vars['fpageup']) {
    ?>
<div class="left_links" style="width:100%"><?php 
    echo $this->_tpl_vars['fpageup'];
开发者ID:holin,项目名称:sstour,代码行数:31,代码来源:%%37^37A^37AC4ED0%%hotelyou.htm.php

示例6: is_array

" value="<?php 
echo is_array($_tmp = $this->_tpl_vars['showform_params']['returntitle']) ? $this->_run_mod_handler('strip', true, $_tmp, '') : smarty_modifier_strip($_tmp, '');
?>
" name="title">
    </div>
    <div style="margin-left:60px;  margin-top:10px"> 
        <label style="position:absolute">Описание объявления</label>
        <textarea style="margin-left:162px; width:230px;height:70px;" maxlength="1000" name="description" ><?php 
echo is_array($_tmp = $this->_tpl_vars['showform_params']['returndescription']) ? $this->_run_mod_handler('strip', true, $_tmp, '') : smarty_modifier_strip($_tmp, '');
?>
</textarea>
    </div>
    <div style="margin-left:60px;  margin-top:10px"> 
        <label >Цена</label>
        <input style="margin-left:124px; width:230px" type="text" maxlength="9"  value="<?php 
echo is_array($_tmp = $this->_tpl_vars['showform_params']['returnprice']) ? $this->_run_mod_handler('strip', true, $_tmp, '') : smarty_modifier_strip($_tmp, '');
?>
" name="price" >                                                         
    </div>
    <div style="margin-left:221px;  margin-top:10px"> 
        <input style="height:30px;font-weight: 700;color:white;border-radius: 3px;background: rgb(64,199,129);box-shadow: 0 -3px rgb(53,167,110) inset;transition: 0.2s;" type="submit" value="Отправить" name="main_form_submit"  > </div>
    </div>
</form>
    
  <table method="post" style="border: 1px solid black; margin-top:30px;margin-left: 80px">
        <div >
           <tr>
                <td> |  Название объявления </td>
                <td>  |  Цена </td>
                <td>  |  Имя </td>
                <td>  |  Удалить | </td>
开发者ID:Anatoliy-Bezhenaru,项目名称:xaver.loc,代码行数:31,代码来源:%%45^45E^45E480CD%%index.tpl.php

示例7: smarty_function_mini_calendar


//.........这里部分代码省略.........

  # Cuando se hacia un redirect usando el ErrorDocument del 403 al archivo, no se pasaban los
  # parametros
  if((!isset($_REQUEST['Year'])&&!isset($_REQUEST['Month']))||!isset($_REQUEST['Day'])) {
    $query = parse_url($_SERVER['REQUEST_URI'],PHP_URL_QUERY);
    parse_str($query,$_REQUEST);
  }
  if (!isset($_REQUEST['Year'])) $_REQUEST['Year'] = date('Y');
  if (!isset($_REQUEST['Month'])) $_REQUEST['Month'] = date('m');
  if (!isset($_REQUEST['Day'])) $_REQUEST['Day'] = date('d');
  
  // Build the month
  $Month = new Calendar_Month_Weekdays($_REQUEST['Year'],$_REQUEST['Month']);
  
  // Construct strings for next/previous links
  $PMonth = $Month->prevMonth('object'); // Get previous month as object
  $prev = '?Year='.$PMonth->thisYear().'&amp;Month='.$PMonth->thisMonth().'&amp;Day='.$PMonth->thisDay();
  $NMonth = $Month->nextMonth('object');
  $next = '?Year='.$NMonth->thisYear().'&amp;Month='.$NMonth->thisMonth().'&amp;Day='.$NMonth->thisDay();
  
  // Build the days in the month
  if($params['selectedDays'])
    foreach($params['selectedDays'] as $selectedDay) {
      $selectedDays[] = new Calendar_Day(smarty_modifier_date_format($selectedDay,"%Y"),smarty_modifier_date_format($selectedDay,"%m"), smarty_modifier_date_format($selectedDay,"%d"));
    }
  
  $class = ($params['custom_class']?$params['custom_class']:'');
  $Month->build($selectedDays);
  
  $out = "<table class=\"calendar\">";
  $out .= "<caption>".smarty_modifier_date_format($Month->getTimeStamp(),"%B %Y")."</caption>";
  $out .= "<tr>";
  $out .= "<th>Lun</th>";
  $out .= "<th>Mar</th>";
  $out .= "<th>Mie</th>";
  $out .= "<th>Jue</th>";
  $out .= "<th>Vie</th>";
  $out .= "<th".($params['dif_weekend']?" class=\"weekend sat\"":"").">Sáb</th>";
  $out .= "<th".($params['dif_weekend']?" class=\"weekend sun\"":"").">Dom</th>";
  $out .= "</tr>";
  while ( $Day = $Month->fetch() ) {
    // Build a link string for each day
    //$link = $_SERVER['PHP_SELF'].
    $link =     ($params['action']?$params['action']:"").'?Year='.$Day->thisYear().
                '&amp;Month='.$Day->thisMonth().
                '&amp;Day='.$Day->thisDay();

    
    //	Contain the week's day's number, 0 = sunday, ..., 6 = saturday
    $num_day = date("w",strtotime($Day->thisYear()."-".$Day->thisMonth()."-".$Day->thisDay()));
    // isFirst() to find start of week
    if ( $Day->isFirst() )
        $out .= "<tr>\n";

    if ( $Day->isSelected() ) {
        $out .= "<td class=\"selected\">";
        if($params['dif_weekend'])
          if($num_day == 6)
            $out .= "<div class=\"weekend sat\">";
          elseif($num_day == 0)
            $out .= "<div class=\"weekend sun\">";
          elseif($Day->thisDay()==date("d") AND $Day->thisMonth()==date("m") AND $Day->thisYear()==date("Y"))
            $out .= "<div class=\"now\">";
        $out .= "<a href=\"".$link."\"".(($class)?" class=\"$class\"":"").">".$Day->thisDay()."</a>";
        if(($params['dif_weekend'] && ($num_day == 6 || $num_day == 0)) || ($Day->thisDay()==date("d") && $Day->thisMonth()==date("m") && $Day->thisYear()==date("Y")))
          $out .= "</div>";
        $out .= "</td>\n";
    } else if ( $Day->isEmpty() ) {
        $out .= "<td>&nbsp;</td>\n";
    } elseif($Day->thisDay()==date("d") AND $Day->thisMonth()==date("m") AND $Day->thisYear()==date("Y")) {
        $out .= "<td><div class=\"now\">".$Day->thisDay()."</div></td>\n";
    } else {
        $out .= "<td>";
        if($num_day == 6 && $params['dif_weekend'])
          $out .= "<div class=\"weekend sat\">".$Day->thisDay()."</div>";
        elseif($num_day == 0 && $params['dif_weekend'])
          $out .= "<div class=\"weekend sun\">".$Day->thisDay()."</div>";
        else $out .= $Day->thisDay();
	$out .= "</td>\n";
    }
    // isLast() to find end of week
    if ( $Day->isLast() )
        $out .= "</tr>\n";
  }
 
  $start_year = ($params['start_year'])?$params['start_year']:"-5";
  $end_year = ($params['end_year'])?$params['end_year']:"+5";
  if (!isset($params['display_date'])) $params['display_date'] = true;
  $display_date = $params['display_date'];
  $day = $_REQUEST['Year']."-".$_REQUEST['Month']."-01";
  if($display_date) {
    $out .= "<tr>";
    $out .= "<td colspan=\"7\" class=\"control\"><form method=\"get\" action=\"".$params['action']."\"";
    $out .= ($params['frm_extra']?" ".$params['frm_extra']:"").">".smarty_function_html_select_date(array('time'=>$day,'prefix'=>'','start_year'=>$start_year,'end_year'=>$end_year,'display_days'=>false, 'display_months'=>true, 'display_years'=>true, 'month_extra'=>'id="Month"', 'year_extra'=>'id="Year"'),$smarty)."&nbsp;".($params['btn_img']?"<input name=\"btnsubmit\" type=\"image\" src=\"".$params['btn_img']."\"/>":"<input name=\"btnsubmit\" type=\"submit\" value=\"Ir\" />").($params['today_btn']===true?"&nbsp;<input name=\"today\" type=\"button\" value=\"Hoy\" title=\"Presione para ir al mes en curso\" onclick=\"location.href = './'\" />":"")."</form></td>";
    $out .= "</tr>";
  }
  $out .= "</table>";
  $out = smarty_modifier_strip($out);
  return $out;
}
开发者ID:ReneVallecillo,项目名称:almidon,代码行数:101,代码来源:function.mini_calendar.php

示例8: is_array

                            echo $this->_tpl_vars['value'][$this->_tpl_vars['field']['field']];
                            ?>
</div><?php 
                        }
                        ?>
							<?php 
                        if ($this->_tpl_vars['field']['type'] == 'html') {
                            ?>
<div id="<?php 
                            echo $this->_tpl_vars['field']['field'];
                            ?>
_<?php 
                            echo $this->_tpl_vars['value'][$this->_tpl_vars['itemKey']];
                            ?>
" class="field-html"><?php 
                            echo is_array($_tmp = is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['value'][$this->_tpl_vars['field']['field']]) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)) ? $this->_run_mod_handler('truncate', true, $_tmp, 240) : smarty_modifier_truncate($_tmp, 240);
                            ?>
</div><div style="display:none"><?php 
                            echo $this->_tpl_vars['value'][$this->_tpl_vars['field']['field']];
                            ?>
</div><?php 
                        }
                        ?>
							<?php 
                        if ($this->_tpl_vars['field']['type'] == 'flag') {
                            ?>
<div id="<?php 
                            echo $this->_tpl_vars['field']['field'];
                            ?>
_<?php 
                            echo $this->_tpl_vars['value'][$this->_tpl_vars['itemKey']];
开发者ID:jambik,项目名称:ikkf05,代码行数:31,代码来源:%%02^02F^02FBCDE8%%base_items_table.tpl.php

示例9: is_array

</link>
    <guid>http://www.sstour.net/index.php?action=news&amp;option=single&amp;id=<?php 
        echo $this->_tpl_vars['list']['new_id'];
        ?>
</guid>
    <description>
      <![CDATA[<?php 
        echo is_array($_tmp = is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['list']['new_content']) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) ? $this->_run_mod_handler('default', true, $_tmp, '简介') : smarty_modifier_default($_tmp, '简介');
        ?>
]]>
    </description>
    <category><?php 
        echo is_array($_tmp = @$this->_tpl_vars['columnsArray'][$this->_tpl_vars['columns']]) ? $this->_run_mod_handler('default', true, $_tmp, '最新动态') : smarty_modifier_default($_tmp, '最新动态');
        ?>
</category>
    <author><?php 
        echo is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['list']['new_writer']) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)) ? $this->_run_mod_handler('default', true, $_tmp, '嵊泗') : smarty_modifier_default($_tmp, '嵊泗');
        ?>
</author>
    <pubDate><?php 
        echo is_array($_tmp = $this->_tpl_vars['list']['new_date']) ? $this->_run_mod_handler('date_format', true, $_tmp, '%a, %d %b %Y %T') : smarty_modifier_date_format($_tmp, '%a, %d %b %Y %T');
        ?>
</pubDate>
    </item>
    <?php 
    }
}
unset($_from);
?>
  </channel>
</rss>
开发者ID:holin,项目名称:sstour,代码行数:31,代码来源:%%0C^0C6^0C6D0E9B%%rss_index.htm.php

示例10: is_array

            ?>
&Industry=<?php 
            echo $this->_tpl_vars['hotelimage']['hi_id'];
            ?>
' target='_blank' title='<?php 
            echo $this->_tpl_vars['hotelimage']['hi_subject'];
            ?>
'><img width="100" height="100" src='<?php 
            echo $this->_tpl_vars['hotelimage']['hi_src'];
            ?>
' alt='<?php 
            echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['hotelimage']['hi_subject']) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp);
            ?>
' /><BR />
      <?php 
            echo is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['hotelimage']['hi_subject']) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)) ? $this->_run_mod_handler('truncate', true, $_tmp, 10, "", true) : smarty_modifier_truncate($_tmp, 10, "", true);
            ?>
</a></div>
    <?php 
        }
    }
    unset($_from);
    ?>
 </div>
  <?php 
    if ($this->_tpl_vars['fpageup']) {
        ?>
  <div class="left_links" style="width:100%"><?php 
        echo $this->_tpl_vars['fpageup'];
        ?>
</div>
开发者ID:holin,项目名称:sstour,代码行数:31,代码来源:%%F1^F15^F1538BA2%%hotelphoto.htm.php

示例11: is_array

echo is_array($_tmp = $this->_tpl_vars['art']) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp);
?>
 

<h1>regex_replace 使用</h1> <?php 
echo is_array($_tmp = $this->_tpl_vars['cc']) ? $this->_run_mod_handler('regex_replace', true, $_tmp, "/(\\d\\d\\d\\d)/", "这里有四个数") : smarty_modifier_regex_replace($_tmp, "/(\\d\\d\\d\\d)/", "这里有四个数");
?>
 

<h1>spacify 使用</h1> <?php 
echo is_array($_tmp = 'abcd') ? $this->_run_mod_handler('spacify', true, $_tmp, "^_^") : smarty_modifier_spacify($_tmp, "^_^");
?>
 

<h1>strip 使用</h1> <?php 
echo is_array($_tmp = $this->_tpl_vars['dd']) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp);
?>
 


<h1>truncate 使用</h1> <?php 
echo is_array($_tmp = $this->_tpl_vars['ee']) ? $this->_run_mod_handler('truncate', true, $_tmp, 10) : smarty_modifier_truncate($_tmp, 10);
?>
 

<h1>truncateutf8 使用</h1>
<?php 
echo is_array($_tmp = $this->_tpl_vars['ff']) ? $this->_run_mod_handler('truncateutf8', true, $_tmp, 10, "...", true) : smarty_modifier_truncateutf8($_tmp, 10, "...", true);
?>
 
开发者ID:yuxujian,项目名称:YuNote,代码行数:29,代码来源:%%4D^4DC^4DCCF1D7%%example8.tpl.php

示例12: settype

			<?php 
                }
                ?>

			<?php 
                $_from = $this->_tpl_vars['article']->getAuthors();
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                $this->_foreach['authorList'] = array('total' => count($_from), 'iteration' => 0);
                if ($this->_foreach['authorList']['total'] > 0) {
                    foreach ($_from as $this->_tpl_vars['author']) {
                        $this->_foreach['authorList']['iteration']++;
                        ?>
				<dc:creator><?php 
                        echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['author']->getFullName()) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : $this->_plugins['modifier']['escape'][0][0]->smartyEscape($_tmp, 'html');
                        ?>
</dc:creator>
			<?php 
                    }
                }
                unset($_from);
                ?>

			<?php 
                if ($this->_tpl_vars['article']->getDatePublished()) {
                    ?>
				<dc:date><?php 
                    echo is_array($_tmp = $this->_tpl_vars['article']->getDatePublished()) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d");
                    ?>
</dc:date>
开发者ID:EreminDm,项目名称:water-cao,代码行数:31,代码来源:%%A3^A3B^A3B4EC65%%rss.tpl.php

示例13: unset

                }
                unset($_from);
                ?>
				<link rel="alternate" href="<?php 
                echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('page' => 'article', 'op' => 'view', 'path' => $this->_tpl_vars['article']->getBestArticleId($this->_tpl_vars['currentJournal'])), $this);
                ?>
" />

				<?php 
                if ($this->_tpl_vars['article']->getLocalizedAbstract()) {
                    ?>
					<summary type="html" xml:base="<?php 
                    echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('page' => 'article', 'op' => 'view', 'path' => $this->_tpl_vars['article']->getBestArticleId($this->_tpl_vars['currentJournal'])), $this);
                    ?>
"><?php 
                    echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['article']->getLocalizedAbstract()) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : $this->_plugins['modifier']['escape'][0][0]->smartyEscape($_tmp, 'html');
                    ?>
</summary>
				<?php 
                }
                ?>

												
				<?php 
                if ($this->_tpl_vars['article']->getDatePublished()) {
                    ?>
					<published><?php 
                    echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['article']->getDatePublished()) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%dT%T%z") : smarty_modifier_date_format($_tmp, "%Y-%m-%dT%T%z")) ? $this->_run_mod_handler('regex_replace', true, $_tmp, "/00\$/", ":00") : smarty_modifier_regex_replace($_tmp, "/00\$/", ":00");
                    ?>
</published>
				<?php 
开发者ID:EreminDm,项目名称:water-cao,代码行数:31,代码来源:%%B2^B26^B26711BD%%atom.tpl.php

示例14: is_array

</span></a>
		<meta itemprop="position" content="3" />
	</li>	
</ol>
</div>

<div class="columnDetailArea">
<div class="fixedBox">

<article class="columnDtlBox">
<div class="shadowBox"></div>
<div class="innerBox">

<header class="columnDtlHeader">
<h1 class="title"><?php 
echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['formData']['h1_tag']) ? $this->_run_mod_handler('replace', true, $_tmp, "<br />", "") : smarty_modifier_replace($_tmp, "<br />", "")) ? $this->_run_mod_handler('strip', true, $_tmp, "") : smarty_modifier_strip($_tmp, "");
?>
</h1>
<time class="date" datetime="<?php 
echo is_array($_tmp = $this->_tpl_vars['formData']['keisai_datetime']) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp);
?>
"><?php 
echo $this->_tpl_vars['formData']['keisai_datetime_y'];
?>
年<?php 
echo $this->_tpl_vars['formData']['keisai_datetime_m'];
?>
月<?php 
echo $this->_tpl_vars['formData']['keisai_datetime_d'];
?>
日</time>
开发者ID:aim-web-projects,项目名称:zenshindatsumoreview,代码行数:31,代码来源:%%F9^F97^F9705ECA%%column.html.php

示例15: settype

                    settype($_from, 'array');
                }
                if (count($_from)) {
                    foreach ($_from as $this->_tpl_vars['idx'] => $this->_tpl_vars['import_feedback']) {
                        ?>
  	    	  <tr>
  	    	  	<td><?php 
                        echo is_array($_tmp = $this->_tpl_vars['import_feedback']['req_doc_id']) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp);
                        ?>
</td>
  	    	  	<td><?php 
                        echo is_array($_tmp = $this->_tpl_vars['import_feedback']['title']) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp);
                        ?>
</td>
  	    	  	<td><?php 
                        echo is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['import_feedback']['scope']) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp)) ? $this->_run_mod_handler('truncate', true, $_tmp, $this->_config[0]['vars']['SCOPE_TRUNCATE']) : smarty_modifier_truncate($_tmp, $this->_config[0]['vars']['SCOPE_TRUNCATE']);
                        ?>
</td>
  	    	  	<td><?php 
                        echo is_array($_tmp = $this->_tpl_vars['import_feedback']['type']) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp);
                        ?>
</td>
  	    	  	<td><?php 
                        echo is_array($_tmp = $this->_tpl_vars['import_feedback']['status']) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp);
                        ?>
</td>
  	    	  	<td align="right"><?php 
                        echo $this->_tpl_vars['import_feedback']['expected_coverage'];
                        ?>
</td>
  	    	  	<td><?php 
开发者ID:tamtrong,项目名称:testlink,代码行数:31,代码来源:%%02^025^025A8906%%reqImport.tpl.php


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