当前位置: 首页>>代码示例>>PHP>>正文


PHP add_stylesheet_to_page函数代码示例

本文整理汇总了PHP中add_stylesheet_to_page函数的典型用法代码示例。如果您正苦于以下问题:PHP add_stylesheet_to_page函数的具体用法?PHP add_stylesheet_to_page怎么用?PHP add_stylesheet_to_page使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了add_stylesheet_to_page函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: use_widget

/**
 * Use widget
 *
 * @access public
 * @param string $widget_name
 * @return void
 */
function use_widget($widget_name)
{
    if (function_exists('add_javascript_to_page') && function_exists('add_stylesheet_to_page')) {
        add_javascript_to_page("widgets/{$widget_name}/widget.js");
        add_stylesheet_to_page(get_javascript_url("widgets/{$widget_name}/widget.css"));
    }
    // if
}
开发者ID:abhinay100,项目名称:feng_app,代码行数:15,代码来源:common.php

示例2: set_page_title

<?php

set_page_title(lang('add contact'));
project_tabbed_navigation();
project_crumbs(array(array(lang('people'), get_url('project', 'people')), lang('add contact')));
add_stylesheet_to_page('project/people.css');
add_stylesheet_to_page('project/attachments.css');
?>
<script type="text/javascript" src="<?php 
echo get_javascript_url('modules/addContactToProjectForm.js');
?>
"></script>
<script type="text/javascript" src="<?php 
echo get_javascript_url('modules/addContactForm.js');
?>
"></script>
<form action="<?php 
echo $project_init ? $project->getAddContactUrl(array('project_init' => '1')) : $project->getAddContactUrl();
?>
" method="post" enctype="multipart/form-data">
<?php 
tpl_display(get_template_path('form_errors'));
?>
  
  <div>
    <?php 
echo radio_field('contact[what]', array_var($contact_data, 'what', 'existing') == 'existing', array('value' => 'existing', 'id' => 'contactFormExistingContact'));
?>
    <?php 
echo label_tag(lang('attach existing contact'), 'contactFormExistingContact', false, array('class' => 'checkbox'));
?>
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:add_contact.php

示例3: set_page_title

<?php

// Set page title and set crumbs to index
set_page_title(lang('weekly schedule'));
dashboard_tabbed_navigation('weekly_schedule');
dashboard_crumbs(lang('weekly schedule'));
add_stylesheet_to_page('dashboard/weekly_schedule.css');
add_stylesheet_to_page('project/calendar.css');
add_stylesheet_to_page('project/tickets.css');
?>
<script type="text/javascript" src="<?php 
echo get_javascript_url('modules/calendar.js');
?>
"></script>
<?php 
if (isset($upcoming_milestones) && is_array($upcoming_milestones) && count($upcoming_milestones) || isset($upcoming_tickets) && is_array($upcoming_tickets) && count($upcoming_tickets) || isset($late_milestones) && is_array($late_milestones) && count($late_milestones) || isset($late_tickets) && is_array($late_tickets) && count($late_tickets)) {
    ?>
  <div id="viewToggle">
    <a href="<?php 
    echo get_url('dashboard', 'weekly_schedule', array('view' => 'list'));
    ?>
"><img src="<?php 
    if ($view_type == "list") {
        echo get_image_url("icons/list_on.png");
    } else {
        echo get_image_url("icons/list_off.png");
    }
    ?>
" title="<?php 
    echo lang('list view');
    ?>
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:weekly_schedule.php

示例4: trace

<?php

trace(__FILE__, "set_page_title(lang('overview')");
set_page_title(lang('overview'));
trace(__FILE__, "project_crumbs(lang('overview'))");
project_crumbs(lang('overview'));
add_stylesheet_to_page('project/project_log.css');
trace(__FILE__, 'stylesheet added');
$this->includeTemplate(get_template_path('project/pageactions'));
if (active_project()->getParent()) {
    ?>
  <div class="block">
  <div class="header parent">
    <?php 
    echo lang('parent project');
    ?>
: <a href="<?php 
    echo active_project()->getParent()->getOverviewUrl();
    ?>
"><?php 
    echo clean(active_project()->getParent()->getName());
    ?>
</a>
 </div>
 </div>
<?php 
}
// if
if (trim(active_project()->getDescription()) && active_project()->getShowDescriptionInOverview()) {
    ?>
<div id="project">
开发者ID:noxstyle,项目名称:Project-Pier,代码行数:31,代码来源:overview.php

示例5: trace

<?php

trace(__FILE__, 'begin');
// Set page title and set crumbs to index
set_page_title(lang('my tasks'));
dashboard_tabbed_navigation(DASHBOARD_TAB_MY_TASKS);
dashboard_crumbs(lang('my tasks'));
add_stylesheet_to_page('dashboard/my_tasks.css');
if (logged_user()->canManageProjects()) {
    add_page_action(lang('add project'), get_url('project', 'add'));
    add_page_action(lang('copy project'), get_url('project', 'copy'));
}
// if
add_page_action(lang('group by project'), get_url('dashboard', 'my_tasks'));
add_page_action(lang('order by name'), get_url('dashboard', 'my_tasks_by_name'));
add_page_action(lang('order by priority'), get_url('dashboard', 'my_tasks_by_priority'));
add_page_action(lang('order by milestone'), get_url('dashboard', 'my_tasks_by_milestone'));
// If user have any assigned task or milestone this variable will be changed to TRUE
// else it will remain false
$has_assigned_tasks = false;
if (isset($active_projects) && is_array($active_projects) && count($active_projects)) {
    ?>
<div id="myTasks">
<?php 
    foreach ($active_projects as $active_project) {
        $assigned_milestones = $active_project->getUsersMilestones(logged_user());
        $assigned_tasks = $active_project->getUsersTasks(logged_user());
        if (is_array($assigned_milestones) && count($assigned_milestones) || is_array($assigned_tasks) && count($assigned_tasks)) {
            $has_assigned_tasks = true;
            ?>
  <div class="block">
开发者ID:bahmany,项目名称:PythonPurePaperless,代码行数:31,代码来源:my_tasks.php

示例6: load_template_tags

<?php

function load_template_tags()
{
    foreach (array('task_list', 'task') as $sys_object) {
        require dirname(dirname(dirname(__FILE__))) . '/template_tags/' . $sys_object . '.php';
    }
}
load_template_tags();
add_stylesheet_to_page('project/task_list.css');
$task_list_options = array();
if ($cc = $task_list->countComments()) {
    $task_list_options[] = '<span><a href="' . $task_list->getViewUrl() . '#objectComments">' . lang('comments') . '(' . $cc . ')</a></span>';
}
global $the_task_list;
$the_task_list = $task_list;
?>
<div class="taskList">
<div class="block" id="taskList<?php 
echo $task_list->getId();
?>
">
  <div class="header">
    <?php 
task_list_view_link();
?>
    <?php 
if ($task_list->isPrivate()) {
    ?>
    <div class="private" title="<?php 
    echo lang('private task list');
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:task_list.php

示例7: set_page_title

<?php

set_page_title(lang('search results'));
project_tabbed_navigation();
project_crumbs(lang('search results'));
add_stylesheet_to_page('project/search_results.css');
?>
<div id="searchForm">
  <form action="<?php 
echo active_project()->getSearchUrl();
?>
" method="get">
    <?php 
echo input_field('search_for', array_var($_GET, 'search_for'));
?>
    <input type="hidden" name="c" value="project" />
    <input type="hidden" name="a" value="search" />
    <input type="hidden" name="active_project" value="<?php 
echo active_project()->getId();
?>
" />
    <?php 
echo submit_button(lang('search'));
?>
    <?php 
echo lang('search hint');
?>
  </form>
</div>

<?php 
开发者ID:bahmany,项目名称:PythonPurePaperless,代码行数:31,代码来源:search.php

示例8: set_page_title

<?php

set_page_title($category->getDisplayName());
administration_tabbed_navigation(ADMINISTRATION_TAB_CONFIGURATION);
administration_crumbs(array(array(lang('configuration'), get_url('administration', 'configuration')), array($category->getDisplayName())));
add_stylesheet_to_page('admin/config.css');
if (isset($options) && is_array($options) && count($options)) {
    ?>
<form action="<?php 
    echo $category->getUpdateUrl();
    ?>
" method="post" onreset="return confirm('<?php 
    echo lang('confirm reset form');
    ?>
')">
  <div id="configCategoryOptions">
<?php 
    $counter = 0;
    foreach ($options as $option) {
        $counter++;
        ?>
    <div class="configCategoryOption <?php 
        echo $counter % 2 ? 'odd' : 'even';
        ?>
" id="configCategoryOption_<?php 
        echo $option->getName();
        ?>
">
      <div class="configOptionLabel"><label><?php 
        echo clean($option->getDisplayName());
        ?>
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:update_category.php

示例9: set_page_title

<?php

// Set page title and set crumbs to index
set_page_title(lang('company card of', $company->getName()));
dashboard_tabbed_navigation();
if (logged_user()->isMemberOfOwnerCompany()) {
    dashboard_crumbs(array(array(lang('contacts'), get_url('dashboard', 'contacts')), array($company->getName())));
} else {
    dashboard_crumbs(array(array($company->getName())));
}
// if
if ($company->canEdit(logged_user())) {
    add_page_action(lang('edit company'), $company->getEditUrl());
    add_page_action(lang('edit company logo'), $company->getEditLogoUrl());
    if (!$company->isOwner()) {
        add_page_action(lang('update permissions'), $company->getUpdatePermissionsUrl());
    }
    // if
}
// if
if (Contact::canAdd(logged_user(), $company)) {
    add_page_action(lang('add contact'), $company->getAddContactUrl());
}
// if
add_stylesheet_to_page('dashboard/company_list.css');
$this->includeTemplate(get_template_path('company_card', 'company'));
开发者ID:bklein01,项目名称:Project-Pier,代码行数:26,代码来源:card.php

示例10: set_page_title

<?php

set_page_title(lang('milestones'));
project_tabbed_navigation('milestones');
project_crumbs(array(array(lang('milestones'), get_url('milestone', 'index')), array(lang('view calendar'))));
if (ProjectMilestone::canAdd(logged_user(), active_project())) {
    add_page_action(lang('add milestone'), get_url('milestone', 'add'));
}
// if
add_stylesheet_to_page('project/calendar.css');
$view_image = $view_type == "list" ? "icons/list_on.png" : "icons/list_off.png";
add_view_option(lang('list'), get_image_url($view_image), get_url('milestone', 'index', array("view" => "list")));
$view_image = $view_type == "card" ? "icons/excerpt_on.png" : "icons/excerpt_off.png";
add_view_option(lang('card'), get_image_url($view_image), get_url('milestone', 'index', array("view" => "details")));
add_view_option(lang('calendar'), get_image_url("icons/calendar_off.png"), get_url('milestone', 'calendar'));
?>
<div class="calendar">
  <h2><?php 
echo clean(lang(sprintf('month %u', $month)));
?>
 <?php 
echo $year;
?>
</h2>
<?php 
$calendar = array();
if (is_array($milestones) && count($milestones)) {
    foreach ($milestones as $milestone) {
        $due = $milestone->getDueDate();
        if ($due->getYear() != $year or $due->getMonth() != $month) {
            continue;
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:calendar.php

示例11: set_page_title

<?php

set_page_title(lang('people'));
project_tabbed_navigation();
project_crumbs(lang('people'));
if (active_project()->canChangePermissions(logged_user())) {
    add_page_action(lang('permissions'), get_url('project', 'permissions'));
}
// if
add_stylesheet_to_page('project/people.css');
if (isset($project_companies) && is_array($project_companies) && count($project_companies)) {
    ?>
<div id="people">
<?php 
    foreach ($project_companies as $company) {
        ?>
  <div class="projectCompany">
    <div class="projectCompanyLogo"><img src="<?php 
        echo $company->getLogoUrl();
        ?>
" alt="<?php 
        echo clean($company->getName());
        ?>
" /></div>
    <div class="projectCompanyMeta">
      <div class="projectCompanyInfo">
        <div class="projectCompanyName"><a href="<?php 
        echo $company->getCardUrl();
        ?>
" class="companyName"><?php 
        echo clean($company->getName());
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:people.php

示例12: add_stylesheet_to_page

<?php

add_stylesheet_to_page('project/comments.css');
?>
<div id="objectComments">
  <h2><?php 
echo lang('comments');
?>
</h2>
<?php 
$comments = $__comments_object->getComments();
if (is_array($comments) && count($comments)) {
    $counter = 0;
    foreach ($comments as $comment) {
        $counter++;
        ?>
  <div class="comment <?php 
        echo $counter % 2 ? 'even' : 'odd';
        if ($comment->isPrivate()) {
            echo ' private';
        }
        ?>
" id="comment<?php 
        echo $comment->getId();
        ?>
">
<?php 
        if ($comment->isPrivate()) {
            ?>
    <div class="private" title="<?php 
            echo lang('private comment');
开发者ID:469306621,项目名称:Languages,代码行数:31,代码来源:object_comments.php

示例13: set_page_title

<?php

set_page_title(lang('permissions'));
project_tabbed_navigation(PROJECT_TAB_PEOPLE);
project_crumbs(array(array(lang('people'), get_url('project', 'people')), array(lang('permissions'))));
add_stylesheet_to_page('project/permissions.css');
$quoted_permissions = array();
foreach ($permissions as $permission_id => $permission_text) {
    $quoted_permissions[] = "'{$permission_id}'";
}
// foreach
?>
<script type="text/javascript" src="<?php 
echo get_javascript_url('modules/updatePermissionsForm.js');
?>
"></script>
<script type="text/javascript">
  App.modules.updatePermissionsForm.owner_company_id = <?php 
echo owner_company()->getId();
?>
;
  App.modules.updatePermissionsForm.project_permissions = new Array(<?php 
echo implode(', ', $quoted_permissions);
?>
);
</script>

<?php 
if (isset($companies) && is_array($companies) && count($companies)) {
    ?>
<form action="<?php 
开发者ID:ukd1,项目名称:Project-Pier,代码行数:31,代码来源:permissions.php

示例14: set_page_title

<?php

set_page_title(lang('radio'));
add_stylesheet_to_page('radio.css');
?>
<script type="text/javascript" src="<?php 
echo get_javascript_url('/nativeradio/swfobject.js');
?>
"></script>
<div id="flashcontent1">No flash, no radio<br />
<a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Download Flash</a>
</div>
<script type="text/javascript">
// <![CDATA[

  var so = new SWFObject("<?php 
echo get_javascript_url('nativeradio/nativeradio2small.swf');
?>
", "nativeradio2small", "200", "50", "10", "#cccccc");
  so.addParam("scale", "noscale");
  so.addVariable("swfcolor", "333333");
  so.addVariable("swfwidth", "200");
  so.addVariable("swfradiochannel", "TrackFM.nl");
  so.addVariable("swfstreamurl", "http://stream.trackfm.nl:8000/medium");
  so.addVariable("swfpause", "0");
  so.write("flashcontent1");

  if (document.all) {
    self.resizeTo(215+12, 145+35);
  } else {
    self.resizeTo(215, 145);
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:radio.php

示例15: set_page_title

<?php

set_page_title($message->getTitle());
project_tabbed_navigation('messages');
project_crumbs(array(array(lang('messages'), get_url('message', 'index')), array(lang('view message'))));
if (ProjectMessage::canAdd(logged_user(), active_project())) {
    add_page_action(lang('add message'), get_url('message', 'add'));
}
// if
add_stylesheet_to_page('project/messages.css');
$createdBy = $message->getCreatedBy();
?>
<div class="message block">
  <div class="header">
<?php 
if ($message->isPrivate()) {
    ?>
    <div class="private" title="<?php 
    echo lang('private message');
    ?>
"><span><?php 
    echo lang('private message');
    ?>
</span></div>
<?php 
}
// if
if ($message->getCreatedBy() instanceof User) {
    ?>
    <div class="author"><?php 
    echo lang('posted on by', format_datetime($message->getCreatedOn()), $message->getCreatedBy()->getCardUrl(), clean($message->getCreatedBy()->getDisplayName()));
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:view.php


注:本文中的add_stylesheet_to_page函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。