Example #1
0
$r = $article->recentUploaded('Entertainment');
foreach ($r as $art) {
    ?>
                <li>
                    <a href="#">
                        <?php 
    $src = $article->sourceCategoryDropDown($art['artno']);
    ?>
                        <div style="background-image:url('<?php 
    echo $src;
    ?>
');height: 88px;background-repeat: no-repeat;background-size: auto 123px;" >
                        </div>
                        <div>
                            <span><?php 
    echo string_limit($art['topic'], 11, '...');
    ?>
</span>
                        </div>
                    </a>
                </li>
            <?php 
}
?>
            <li>
                <a href="article?category=entertainment" >
                    <div>
                        <br>
                        <br>
                        <span>Top Entertainment</span>
                    </div>
                }
                echo "<span><b>Author: </b>" . $rowcat['blogpostauthor'] . "</span>";
                echo "<span><b>Category: </b>" . $blogcat . "</span>";
                echo "<span><b>Comments: </b>";
                if ($rowcat['blogpostlocked'] == 1) {
                    echo "Locked";
                } else {
                    echo $numcomments;
                    if ($_SESSION['admin']) {
                        $pending = mysql_num_rows(mysql_query("SELECT * FROM blogcomments WHERE blogpostid = '" . $rowcat['blogpostid'] . "' AND approved = 0"));
                        echo " ( <label class='pendingComments' id='comments" . $rowcat['blogpostid'] . "'>Pending: " . $pending . "</label> )";
                    } else {
                    }
                }
                echo "</span>";
                echo "<p>" . string_limit(htmlspecialchars_decode($rowcat['blogpostcontent']), 60) . " ...</p>";
                echo "<a class='blog-post-read-more' href='./" . $rowcat['blogpostnumber'] . "'>Continue reading</a>";
                echo "</div>";
            }
        } else {
            echo "<div class='blog-post empty-blog'><p>This discussion category doesn't have any posts right now.</p></div>";
        }
    }
}
?>

</div>
<div class="one columns blog-seperator"></div>
<div class="four columns blog-sidebar">

	<!-- blog categories -->
Example #3
0
        }
        $title = $title ? $title : 'Tab ' . $key;
        ?>
								<li class=" <?php 
        echo $key == 0 ? 'active' : '';
        ?>
">
									<a data-toggle="tab" title="<?php 
        echo $title;
        ?>
" href="#page_tabbed_content_<?php 
        echo $key;
        ?>
" aria-expanded="true">
										<?php 
        echo string_limit($title, 10);
        ?>
									</a>
								</li>
							<?php 
    }
    ?>
												 
						</ul>
						<div class="tab-content">	

							<?php 
    foreach (element($id, $page) as $key => $meta_key) {
        $widget_key = extract_metakey($meta_key, $delimiter);
        $options = $this->application->get_widget($widget_key);
        if ($options) {
Example #4
0
			<ul class="nav nav-tabs">
			  
			  <li class="dropdown pull-right active">
				<a data-toggle="dropdown" class="dropdown-toggle" href="javascript:void(0)"><i class="fa fa-ellipsis-v"></i></a>
				<ul class="dropdown-menu">
				  <li class="active"><a data-toggle="tab" href="#page-edit-tab-1">
					<i class="fa fa-info-circle"></i> Info</a></li>
				  <li><a data-toggle="tab" href="#page-edit-tab-2">
					<i class="fa fa-tasks"></i> Widgets</a></li>
				  <li><a data-toggle="tab" href="#page-edit-tab-3">
					<i class="fa fa-keyboard-o"></i> Styles</a></li>
				</ul>
			  </li>
			  
			  <li class="pull-left header"><?php 
echo string_limit(element('page_name', $page) ? element('page_name', $page) : '', 10);
?>
</li>
			</ul>
			<div class="tab-content p-l-0 p-r-0">
				<div id="page-edit-tab-1" class="tab-pane active">
					<div class="form-group">
						<label class="control-label" for="title">Page Name</label>		  
						<?php 
$data = array('name' => 'page_name', 'id' => 'page_name', 'maxlength' => '30', 'class' => 'form-control', 'value' => element('page_name', $page), 'placeholder' => 'Enter name');
echo form_input($data);
?>
			
						<p class="help-block"></p>
					</div>
					<div class="form-group">		
Example #5
0
        echo $key == 0 ? 'active' : '';
        ?>
">
									<a data-toggle="tab" title="<?php 
        echo $title;
        ?>
" href="#page_tabbed_content_<?php 
        echo $key;
        ?>
" aria-expanded="true">
										<i class="fa <?php 
        echo element('icon', $options) ? element('icon', $options) : 'fa fa-list';
        ?>
"></i>
										<?php 
        echo string_limit($title, 25);
        ?>
									</a>
								</li>
							<?php 
    }
    ?>
												 
						</ul>
						<div class="tab-content p-0">	

							<?php 
    foreach ($widgets as $key => $meta_key) {
        $data = array();
        $data['meta_key'] = $meta_key;
        $data['event'] = 'tab';
</h2>

                    <?php 
            if ($post['blogpostimg'] != "") {
                ?>
                        <img src="http://www.pavatimarine.com/imgs/blog/headers/<?php 
                echo $post['blogpostimg'];
                ?>
" />
                    <?php 
            } else {
            }
            ?>

                    <p><?php 
            echo string_limit(htmlspecialchars_decode($post['blogpostcontent']), 46);
            ?>
                    <br><a href="./blog/<?php 
            echo $post['blogpostnumber'];
            ?>
">Continue Reading</a></p>

                </div>

            <?php 
        }
        ?>

            </div>

        <?php 
function blogposts($limit)
{
    echo "<div class='eight columns home-content'>\n<h3>recent discussions</h3><h4>the latest updates from pavati marine</h4>\n<ul class='news-reel'>";
    $getposts = mysql_query("SELECT * FROM blogposts ORDER BY blogpostid DESC LIMIT 0," . $limit . "");
    while ($rowposts = mysql_fetch_assoc($getposts)) {
        echo "<li class='news' id='news-" . $rowposts['blogpostid'] . "'>\n<div class='news-date'><h3>" . $rowposts['month'] . "</h3><h2>" . $rowposts['day'] . "</h2>\n</div><h4>" . $rowposts['blogpostname'] . "</h4><p class='news-story news-story-" . $rowposts['blogpostid'] . "'>" . htmlspecialchars_decode(string_limit($rowposts['blogpostcontent'], 50)) . " ...<br>\n<a href='./blog/" . $rowposts['blogpostnumber'] . "'>Continue reading</a></p></li>";
    }
    echo "</ul></div>";
}