Files
winix/templates/mount.cpp
Tomasz Sowa 85b678a8fb added: notifications to users' emails
(core/notify.h core/notify.cpp)
       templatesnotify directory
       all notifications are managed by a second thread


git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@512 e52654a7-88a9-db11-a3e9-0013d4bc506e
2009-09-30 22:31:20 +00:00

58 lines
956 B
C++
Executable File

/*
* This file is a part of CMSLU -- Content Management System like Unix
* and is not publicly distributed
*
* Copyright (c) 2008-2009, Tomasz Sowa
* All rights reserved.
*
*/
#include "templates.h"
#include "../core/data.h"
namespace TemplatesFunctions
{
void mount_param_withheader(Info & i)
{
i.result = data.mounts.CurrentMountIsParam(Mount::withheader);
}
void mount_param_withinfo(Info & i)
{
i.result = data.mounts.CurrentMountIsParam(Mount::withinfo);
}
void mount_param_thread_with_header(Info & i)
{
i.result = data.mounts.CurrentMountIsParam(Mount::thread_with_header);
}
void mount_param_thread_with_info(Info & i)
{
i.result = data.mounts.CurrentMountIsParam(Mount::thread_with_info);
}
void mount_is_thread(Info & i)
{
i.result = data.mounts.CurrentMountType() == Mount::thread;
}
void mount_is_cms(Info & i)
{
i.result = data.mounts.CurrentMountType() == Mount::cms;
}
} // namespace TemplatesFunctions