forked from vincent3569/i-feel-dirty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
27 lines (21 loc) · 1.11 KB
/
functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
if (!OFFSET_PATH) {
setOption('personnal_thumb_width', '200', false);
setOption('personnal_thumb_height', '120', false);
setOption('comment_form_toggle', false, true); // force this option of comment_form, to avoid JS conflits
setOption('comment_form_pagination', false, true); // force this option of comment_form, to avoid JS conflits
setOption('tinymce4_comments', null, true); // force this option to disable tinyMCE for comment form
$_zenpage_enabled = extensionEnabled('zenpage');
$_zenpage_and_pages_enabled = extensionEnabled('zenpage') && ZP_PAGES_ENABLED;
$_zenpage_and_news_enabled = extensionEnabled('zenpage') && ZP_NEWS_ENABLED;
/*$_ifeeldirty_homepage = $_zenpage_and_pages_enabled && (checkForPage(getOption('ifeeldirty_homepage')));*/
/*$_ifeeldirty_news_on_homepage = $_zenpage_and_news_enabled && (getOption('ifeeldirty_news_on_homepage'));*/
$_zp_page_check = 'my_checkPageValidity';
}
function my_checkPageValidity($request, $gallery_page, $page) {
if ($gallery_page == 'gallery.php') {
$gallery_page = 'index.php';
}
return checkPageValidity($request, $gallery_page, $page);
}
?>