示例#1
0
 function extract_keyword($orginal_keyword)
 {
     $keyword_array = array();
     $keyword_array[] = alias_name($orginal_keyword);
     foreach (explode(' ', $orginal_keyword) as $item) {
         $keyword_array[] = $item;
         $keyword_array[] = alias_name($item);
     }
     return $keyword_array;
 }
示例#2
0
<div class="col-md-4">
<?php 
echo showad(1, $this->ads);
?>
 
    <br/>
  <?php 
if ($this->sidebar_topics) {
    ?>
 
<?php 
    if ($this->params[0] == alias_name($this->database, "topic") && $this->sidebar_topics) {
        ?>
<div class="panel panel-info">
        <div class="panel-heading">
          <h3 class="panel-title"><?php 
        echo POEMS_BY_TOPIC;
        ?>
</h3>
        </div>
        <ul class="list-group">
          <div class="list-group">
              <?php 
        foreach ($this->sidebar_topics as $topics) {
            ?>
              <a class="list-group-item" href="<?php 
            echo get_url($this->database, "topic", $topics['topic_id'], $topics['topic_slug']);
            ?>
"><i class="fa fa-chevron-circle-right pull-right"></i> <?php 
            echo $topics['topic_name'];
示例#3
0
文件: footer.php 项目: ronak2ram/fnji
    $(document).ready(function(e) {
        //$('.dropdown-toggle').dropdown();
        $("[data-toggle=tooltip]").tooltip();
        $("[data-toggle=popover]").popover();
    });
</script>
<script type="text/javascript">
    // call date picker


    $(document).ready(function() {

<?php 
$pagination_pages = array("topic", "poets", "poet", "topics", "search");
foreach ($pagination_pages as $module) {
    if ($this->page_array['param_vars'][0] == alias_name($this->database, $module)) {
        ?>

                var options = {
                    currentPage: <?php 
        echo $this->page_array['current_page'];
        ?>
,
                    totalPages: <?php 
        echo $this->page_array['total_pages'];
        ?>
,
                    numberOfPages: 8,
                    alignment: "left",
                    pageUrl: function(type, page, current) {
                        var ret = '';