Initial commit
This commit is contained in:
.DS_Storeapi.phpconfig.phpcore.phpfiltr.class.phpindex.htmlindex.php
data
.DS_Storeimglist.json.php
favicon.icoimgs
coding_in_progress.jpgindex.htmlpixel.gifthumb.coding_in_progress.jpgthumb.pixel.gifthumb.zuko_default.jpgzuko_default.jpg
index.htmlprofile_pics
tmp
upload.phpuploads
includes
admin
blog.class.phpcheck.class.phpcomment.class.phpcss
ui-lightness
images
animated-overlay.gifui-bg_diagonals-thick_18_b81900_40x40.pngui-bg_diagonals-thick_20_666666_40x40.pngui-bg_flat_10_000000_40x100.pngui-bg_glass_100_f6f6f6_1x400.pngui-bg_glass_100_fdf5ce_1x400.pngui-bg_glass_65_ffffff_1x400.pngui-bg_gloss-wave_35_f6a828_500x100.pngui-bg_highlight-soft_100_eeeeee_1x100.pngui-bg_highlight-soft_75_ffe45c_1x100.pngui-icons_222222_256x240.pngui-icons_228ef1_256x240.pngui-icons_ef8c08_256x240.pngui-icons_ffd27a_256x240.pngui-icons_ffffff_256x240.png
jquery-ui.custom.min.cssjs
locale
main
page.class.phprss.phpsidebar
user.class.phpplugins
.DS_Store
ckeditor
_plugin.phpstyles.js
adapters
build-config.jsckeditor.jsconfig.jsconfig.old.jscontents.cssinfo.jsonlang
plugins
autosave
button
clipboard
dialogs
contextmenu
dialog
filebrowser
floatpanel
format
htmlbuttons
htmlwriter
plugin.js
icons.pngicons_hidpi.pngsamples
image
imagebrowser
justify
link
listblock
panel
popup
readmorebtn
richcombo
sourcedialog
table
tabletools
skins
moono
dialog.cssdialog_ie.cssdialog_ie7.cssdialog_ie8.cssdialog_iequirks.csseditor.csseditor_gecko.csseditor_ie.csseditor_ie7.csseditor_ie8.csseditor_iequirks.cssicons.pngicons_hidpi.png
images
readme.mdoffice2013
ckeditor_simple
_plugin.phpstyles.js
adapters
build-config.jsckeditor.jsconfig.jscontents.cssinfo.jsonlang
plugins
samples
ajax.htmlapi.htmlappendto.html
assets
datafiltering.htmldivreplace.htmlindex.htmlinlineall.htmlinlinebycode.htmlinlinetextarea.htmljquery.htmlplugins
readonly.htmlreplacebyclass.htmlreplacebycode.htmlsample.csssample.jssample_posteddata.phptabindex.htmluicolor.htmluilanguages.htmlxhtmlstyle.htmlskins
moono
disqus
facebook-comments
facebook-root
facebook-share
filtr_stat
friendurl-jquery
galleria-io
index.htmltwitter-root
twitter-tweet
themes
default
index.htmlmurkyhellyeah
components
font
images
arrowDown.svgdango.jpgimg01.jpgimg02.jpgimg03.pngimg04.jpgimg05.jpglightstripe.pngmaterial-flatc.jpgmoto360-filter.jpgmoto360.jpgrecord.jpgtrollface.png
style.csstemplate.phptheme.jsmurkymodern
components
font
images
arrowDown.svgdango.jpgimg01.jpgimg02.jpgimg03.pngimg04.jpgimg05.jpglightstripe.pngmoto360-filter.jpgmoto360.jpgrecord.jpgtrollface.png
style.csstemplate.phptheme.jsmurkystairwell
wooden
29
includes/main/entries.php
Normal file
29
includes/main/entries.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
addTitle($_locale['entries']);
|
||||
|
||||
if (isset($seo[1]) && isnum($seo[1]))
|
||||
$blog = new blog(null, $seo[1]);
|
||||
else
|
||||
$blog = new blog();
|
||||
|
||||
if (theme_component('entries'))
|
||||
include theme_component('entries');
|
||||
else
|
||||
{
|
||||
if (LOGGEDIN && $user['userLevel'] > 2) echo "<a href='/admin/entry'><p class='phantom'>{locale:new_entry}</p></a>";
|
||||
if ($blog->entries)
|
||||
{
|
||||
while ($data = $blog->entries())
|
||||
echo "<article>
|
||||
<header>
|
||||
<h2><a href='".get_entry_link($data['entrySlug'])."'>".htmlspecialchars($data['entryTitle'])."</a></h2>
|
||||
<p class='meta'><time class='date' title='{locale:published_on}'>".show_date($data['entryPublished'])."</time><a href='".get_profile_link($data['userName'])."' class='by' title='{locale:entry_by}'>$data[publicName]</a>".get_entry_admin($data)."</p>
|
||||
</header>
|
||||
<div class='content'>".entry_show_init($data['entryContent'], $data['entrySlug'])."</div>
|
||||
</article>\n";
|
||||
echo "<p class='paginator'>".(isset($seo[1]) && isnum($seo[1]) ? "<a href='/p/".($seo[1]+1)."'>{locale:next_page}</a><a href='/p/".($seo[1]-1)."'>{locale:prev_page}</a>" : "<a href='/p/2'>{locale:next_page}</a>")."</p>";
|
||||
} else
|
||||
echo "<h1>{locale:entry_not_found_title}</h1>"
|
||||
."<p>{locale:entry_not_found}</p>\n";
|
||||
}
|
Reference in New Issue
Block a user