• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP theme_image函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: connect_node_functions_form

function connect_node_functions_form()
{
    drupal_add_css(drupal_get_path('module', 'connect') . '/connect.css');
    $child = array();
    $options = array();
    $p_nid = arg(1);
    $parent = node_load($p_nid);
    // determine possible and enabled actions
    $requirements_OK = TRUE;
    $actions = connect_get_actions($parent->nid);
    $action_list = module_invoke_all('connect');
    unset($action_list['connect_action_basic']);
    foreach ($action_list as $function => $action) {
        $status = '';
        if (in_array($function, $actions)) {
            if (TRUE === _connect_hook_check_requirements($parent, $child, $function, 'parent')) {
                $status = ' ' . theme_image(drupal_get_path('module', 'connect') . '/images/accept.png', '(ACTIVE)', 'This function is active.');
            } else {
                $requirements_OK = FALSE;
                $status = ' ' . theme_image(drupal_get_path('module', 'connect') . '/images/exclamation.png', '(INACTIVE)', 'This function is not active. Please check the settings tab.');
            }
        }
        $options[$function] = $action['title'] . $status . '<p class="connect-comment">' . $action['desc'] . '</p>';
    }
    if (!$requirements_OK) {
        drupal_set_message('One or more of your selected functions requires additional settings to be configured.<br />Please check the settings tab for details.', 'error');
    }
    $form = array();
    $form['parent_id'] = array('#type' => 'value', '#value' => $parent->nid);
    $form['connect_actions'] = array('#type' => 'fieldset', '#title' => 'Choose functions to apply to this campaign');
    $form['connect_actions']['actions'] = array('#type' => 'checkboxes', '#title' => '', '#options' => $options, '#default_value' => $actions);
    $form['submit'] = array('#type' => 'submit', '#value' => t('Submit'));
    return $form;
}
开发者ID:rnao,项目名称:Connect,代码行数:34,代码来源:connect_admin.php


示例2: hook_article_button

 function hook_article_button($line)
 {
     if (!get_pref($this->link, "COMBINED_DISPLAY_MODE")) {
         $rv = "<img src=\"" . theme_image($this->link, 'plugins/close_button/button.png') . "\"\n\t\t\t\tclass='tagsPic' style=\"cursor : pointer\"\n\t\t\t\tonclick=\"closeArticlePanel()\"\n\t\t\t\ttitle='" . __('Close article') . "'>";
     }
     return $rv;
 }
开发者ID:bohoo,项目名称:tiny_tiny_rss-openshift-quickstart-1,代码行数:7,代码来源:init.php


示例3: blocnotes

function blocnotes($typeBlocNote = "shared", $nomBlocNote = "", $largeur = "100%", $nblBlocNote = "5", $gifbgcolor = "", $affiche = true)
{
    global $REQUEST_URI;
    if ($typeBlocNote == "shared") {
        if ($nomBlocNote == "\$username") {
            global $cookie;
            $nomBlocNote = $cookie[1];
        }
        $bouton = "";
        $bnid = md5($nomBlocNote);
    } elseif ($typeBlocNote == "context") {
        if ($nomBlocNote == "\$username") {
            global $cookie, $admin;
            $nomBlocNote = $cookie[1];
            $cur_admin = explode(":", base64_decode($admin));
            if ($cur_admin) {
                $nomBlocNote = $cur_admin[0];
            }
        }
        if (stristr($REQUEST_URI, "article.php")) {
            $bnid = md5($nomBlocNote . substr($REQUEST_URI, 0, strpos($REQUEST_URI, "&")));
        } else {
            $bnid = md5($nomBlocNote . $REQUEST_URI);
        }
    } else {
        $nomBlocNote = "";
    }
    if ($nomBlocNote) {
        global $theme;
        if ($affiche) {
            $aff = "<style type=\"text/css\">";
            if (@file_exists("themes/{$theme}/style/bloc-note.css")) {
                $aff .= file_get_contents("themes/{$theme}/style/bloc-note.css");
            } else {
                $aff .= file_get_contents("modules/bloc-notes/bloc-note.css");
            }
            $aff .= "</style>";
        } else {
            $aff = "";
        }
        $aff .= "<table width=\"" . $largeur . "\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\"><tr align=\"center\" valign=\"middle\"><td>";
        $aff .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
        if ($affiche) {
            $aff .= "\n         <tr>\n            <td class=\"bn_head_g\" valign=\"middle\">&nbsp;{$nomBlocNote}</td>\n            <td width=\"51\" height=\"20\">";
            if ($ibid = theme_image("modules/bloc-note.gif")) {
                $imgtmpPI = $ibid;
            } else {
                $imgtmpPI = "modules/bloc-notes/bloc-note.gif";
            }
            $aff .= "<img src=\"{$imgtmpPI}\" alt=\"\"></td>\n         </tr>";
        }
        $aff .= "\n         <tr valign=\"top\">\n            <td colspan=\"2\" class=\"bn_corps\">\n            <form method=\"post\" action=\"modules.php?ModPath=bloc-notes&amp;ModStart=blocnotes\" name=\"A" . $bnid . "\">" . "<textarea class=\"bn_textbox_no_mceEditor\" cols=\"20\" rows=\"" . $nblBlocNote . "\" name=\"texteBlocNote\" ></textarea><br />\n            <input type=\"hidden\" name=\"uriBlocNote\" value=\"" . urlencode($REQUEST_URI) . "\" />\n            <input type=\"hidden\" name=\"typeBlocNote\" value=\"" . $typeBlocNote . "\" />\n            <input type=\"hidden\" name=\"nomBlocNote\" value=\"" . $nomBlocNote . "\" />\n            <input type=\"submit\" name=\"okBlocNote\" value=\"Ok\" class=\"bouton_standard bn_bouton_standard\" />&nbsp;<input type=\"submit\" name=\"supBlocNote\" value=\"RAZ\" class=\"bouton_standard bn_bouton_standard\" />\n            </form><script type=\"text/javascript\" src=\"modules.php?ModPath=bloc-notes&amp;ModStart=blocnotes-read&amp;bnid=" . $bnid . "\"></script>\n            </td>\n         </tr><tr><td colspan=\"2\" class=\"bn_foot\">&nbsp;</td></tr>\n         </table>\n";
        $aff .= "</td></tr></table>";
    }
    if ($affiche) {
        themesidebox("no-title", $aff);
    } else {
        return $aff;
    }
}
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:60,代码来源:bloc-notes-o.php


示例4: theme_header

function theme_header($pageid, $title, $include_menu, $mode, $user_id)
{
    global $PHP_SELF;
    global $HTTP_VARS;
    global $ADMIN_TYPE;
    if ($pageid == 'install') {
        $pageTitle = get_opendb_title_and_version() . " Installation";
    } else {
        $pageTitle = get_opendb_title();
    }
    echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">" . "\n<html>" . "\n<head>" . "\n<title>" . $pageTitle . (!empty($title) ? " - {$title}" : "") . "</title>" . "\n<meta http-equiv=\"Content-Type\" content=\"" . get_content_type_charset() . "\">" . "\n<link rel=\"icon\" href=\"" . theme_image_src("icon-16x16.png") . "\" type=\"image/png\" />" . "\n<link rel=\"search\" type=\"application/opensearchdescription+xml\" title=\"" . get_opendb_title() . " Title Search\" href=\"./searchplugins.php?type=title\">" . "\n<link rel=\"search\" type=\"application/opensearchdescription+xml\" title=\"" . get_opendb_title() . " UPC Search\" href=\"./searchplugins.php?type=upc\">" . get_theme_css($pageid, $mode) . get_opendb_rss_feeds_links() . get_theme_javascript($pageid) . "</head>" . "\n<body>";
    echo "<div id=\"header\">";
    echo "<h1><a href=\"index.php\">" . $pageTitle . "</a></h1>";
    if ($include_menu) {
        echo "<ul class=\"headerLinks\">";
        $help_page = get_opendb_help_page($pageid);
        if ($help_page != NULL) {
            echo "<li class=\"help\"><a href=\"help.php?page=" . $help_page . "\" target=\"_new\" title=\"" . get_opendb_lang_var('help') . "\">" . theme_image("help.png") . "</a></li>";
        }
        $printable_page_url = get_printable_page_url($pageid);
        if ($printable_page_url != NULL) {
            echo "<li><a href=\"" . $printable_page_url . "\" target=\"_new\" title=\"" . get_opendb_lang_var('printable_version') . "\">" . theme_image("printable.gif") . "</a></li>";
        }
        if (is_exists_my_reserve_basket($user_id)) {
            echo "<li><a href=\"borrow.php?op=my_reserve_basket\">" . theme_image("basket.png", get_opendb_lang_var('item_reserve_list')) . "</a></li>";
        }
        if (is_user_granted_permission(PERM_VIEW_LISTINGS, NULL, TRUE)) {
            echo "<li><form class=\"quickSearch\" action=\"listings.php\">" . "<input type=\"hidden\" name=\"search_list\" value=\"y\">" . "<input type=\"hidden\" name=\"title_match\" value=\"partial\">" . "<input type=\"text\" class=\"text\" name=\"title\" size=\"10\" value=\"Title Search\" onfocus=\"if(this.value=='Title Search'){this.value='';this.style.color='black';}\" onblur=\"if(this.value==''){this.value='Title Search';this.style.color='gray';}\">" . "</form></li>";
        }
        if (is_user_granted_permission(PERM_VIEW_ADVANCED_SEARCH, NULL, TRUE)) {
            echo "<li><a href=\"search.php\" title=\"" . get_opendb_lang_var('advanced_search') . "\">" . get_opendb_lang_var('advanced') . "</a></li>";
        }
        if (strlen($user_id) > 0) {
            echo "<li class=\"login\"><a href=\"logout.php\">" . get_opendb_lang_var('logout', 'user_id', $user_id) . "</a></li>";
        } else {
            echo "<li class=\"login\"><a href=\"login.php?op=login\">" . get_opendb_lang_var('login') . "</a></li>";
        }
        echo "</ul>";
    }
    echo "</div>";
    echo "<div id=\"content\" class=\"{$pageid}Content\">";
    if ($include_menu) {
        if ($pageid == 'admin') {
            echo "\n<div id=\"admin-menu\" class=\"menuContainer toggleContainer\" onclick=\"return toggleVisible('admin-menu');\">\r\n                <span id=\"admin-menu-toggle\" class=\"menuToggle toggleHidden\">" . get_opendb_lang_var('admin_tools') . "</span>\r\n                <div id=\"admin-menu-content\" class=\"menuContent elementHidden\">\r\n                <h2 class=\"menu\">Admin Tools</h2>";
            $menu_options_rs = get_system_admin_tools_menu();
            echo get_menu_options_list($menu_options_rs);
            echo "\n</div>";
            echo "\n</div>";
        }
        echo "\n<div id=\"menu\" class=\"menuContainer toggleContainer\" onclick=\"return toggleVisible('menu');\">";
        echo "<span id=\"menu-toggle\" class=\"menuToggle toggleHidden\">" . get_opendb_lang_var('main_menu') . "</span>";
        echo "<div id=\"menu-content\" class=\"menuContent elementHidden\">";
        echo "<h2 class=\"menu\">" . get_opendb_lang_var('main_menu') . '</h2>';
        echo get_menu_options_list(get_menu_options($user_id));
        echo "\n</div>";
        echo "\n</div>";
    }
}
开发者ID:horrabin,项目名称:opendb,代码行数:58,代码来源:theme.php


示例5: marquetapage

function marquetapage()
{
    global $cookie;
    if ($cookie[0] != '') {
        global $REQUEST_URI, $title, $post, $NPDS_Prefix;
        if ($ibid = theme_image("modules/add.gif")) {
            $add = $ibid;
        } else {
            $add = "modules/marquetapage/add.gif";
        }
        if ($ibid = theme_image("modules/addj.gif")) {
            $addj = $ibid;
        } else {
            $addj = "modules/marquetapage/addj.gif";
        }
        $result = sql_query("SELECT uri, topic FROM " . $NPDS_Prefix . "marquetapage WHERE uid='{$cookie['0']}' ORDER BY topic ASC");
        if (sql_num_rows($result)) {
            $tmp_toggle = '<a class="tog" id="show_fav" title="' . translate("Show list") . '"><i id="i_lst_fav" class="fa fa-caret-right fa-2x" ></i></a>';
            $content = "\n   <script type=\"text/javascript\">\n   //<![CDATA[\n   tog = function(lst,sho,hid){\n      \$(document).on('click', 'a.tog', function() {\n         var buttonID = \$(this).attr('id');\n         lst_id = \$('#'+lst);\n         i_id=\$('#i_'+lst);\n         btn_show=\$('#'+sho);\n         btn_hide=\$('#'+hid);\n         if (buttonID == sho) {\n            lst_id.fadeIn(1000);//show();\n            btn_show.attr('id',hid)\n            btn_show.attr('title','" . translate("Hide list") . "');\n            i_id.attr('class','fa fa-caret-up fa-2x');\n         } else if (buttonID == hid) {\n            lst_id.fadeOut(1000);//hide();\n            btn_hide=\$('#'+hid);\n            btn_hide.attr('id',sho);\n            btn_hide.attr('title','" . translate("Show list") . "');\n            i_id.attr('class','fa fa-caret-down fa-2x');\n        }\n       });\n   };\n   //]]>\n   </script>";
            $content .= '
   <h6>
   <a class="tog" id="show_fav" title="' . translate("Show list") . '"><i id="i_lst_fav" class="fa fa-caret-right fa-2x" ></i>&nbsp;Bookmarks </a><span class="tag tag-pill tag-default pull-right">' . sql_num_rows($result) . '</span>
   </h6>
   <ul id="lst_fav" style="display:none;" >
   
   <a href="modules.php?ModPath=marquetapage&amp;ModStart=marquetapage&amp;op=supp_all&amp;uri=' . $_SERVER['PHP_SELF'] . '"><i class="fa fa-trash-o text-danger" title="' . translate("Delete") . '" data-toggle="tooltip"></i></a>';
            while (list($uri, $topic) = sql_fetch_row($result)) {
                $content .= '
      <li><a href="' . $uri . '" style="font-size:.7rem;">' . $topic . '</a>
            <span class="float-xs-right"><a href="modules.php?ModPath=marquetapage&amp;ModStart=marquetapage&amp;op=supp&amp;uri=' . urlencode($uri) . '"><i class="fa fa-trash-o text-danger" title="' . translate("Delete") . '" data-toggle="tooltip"></i></a></span></li>';
            }
            $content .= '
   </ul>
   <script type="text/javascript">
   //<![CDATA[
      tog("lst_fav","show_fav","hide_fav");
   //]]>
   </script>';
        }
        global $block_title;
        $uri = urlencode($REQUEST_URI);
        if ($post) {
            $title .= "/" . $post;
        }
        if ($title == '') {
            $title_MTP = basename(urldecode($uri));
        } else {
            $title_MTP = $title;
        }
        $boxTitle = '<span><a href="modules.php?ModPath=marquetapage&amp;ModStart=marquetapage&amp;op=add&amp;uri=' . $uri . '&amp;topic=' . urlencode($title_MTP) . '"><i class="fa fa-bookmark-o " title="' . translate("Add") . ' ' . translate("favourite") . '" data-toggle="tooltip"></i></a></span>';
        if ($block_title == '') {
            $boxTitle .= '&nbsp;MarqueTaPage';
        } else {
            $boxTitle .= '&nbsp;' . $block_title;
        }
        themesidebox($boxTitle, $content);
    }
}
开发者ID:npds,项目名称:npds_dune,代码行数:58,代码来源:marquetapage.php


示例6: ec_resp_17_preprocess

/**
 * Implements theme_preprocess().
 */
function ec_resp_17_preprocess(&$variables)
{
    if (isset($variables['form']['#form_id'])) {
        switch ($variables['form']['#form_id']) {
            case 'feature_set_admin_form':
                // Display feature set on two columns.
                $output_right = $output_left = '';
                $first_column = 1;
                foreach ($variables['feature_set_category']['category'] as $category => $features) {
                    $output = '';
                    $output .= '<li>';
                    $output .= '<a class="list-group-item feature-set-category">' . $category . '</a>';
                    $output .= '<table class="feature-set-content table table-striped table-hover">';
                    $output .= '<tbody>';
                    foreach ($features as $key => $item) {
                        // Get the icon if available.
                        if (!empty($item['#featuresetinfo']['font'])) {
                            $feature_icon = '<span class="' . $item['#featuresetinfo']['font'] . '"></span>';
                        } elseif (!empty($item['#featuresetinfo']['icon'])) {
                            $image = array('path' => $item['#featuresetinfo']['icon'], 'alt' => t('@feature-set icon', array('@feature-set' => $item['#featuresetinfo']['featureset'])), 'attributes' => array());
                            $feature_icon = theme_image($image);
                        } else {
                            $feature_icon = '';
                        }
                        // Get the feature name and description.
                        $feature_content = '<blockquote>';
                        $feature_content .= '<p>' . $item['#featuresetinfo']['featureset'] . '</p>';
                        if (!empty($item['#featuresetinfo']['description'])) {
                            $feature_content .= '<small>' . $item['#featuresetinfo']['description'] . '</small>';
                        }
                        $feature_content .= '</blockquote>';
                        $output .= '<tr>';
                        $output .= '<td class="feature-set-image">' . $feature_icon . '</td>';
                        $output .= '<td class="feature_set_content">' . $feature_content . '</td>';
                        $output .= '<td class="feature_set_switcher">' . render($item) . '</td>';
                        $output .= '</tr>';
                    }
                    $output .= '</tbody>';
                    $output .= '</table>';
                    $output .= '</li>';
                    if ($first_column) {
                        $output_left .= $output;
                    } else {
                        $output_right .= $output;
                    }
                    $first_column = 1 - $first_column;
                }
                $variables['feature_set_output_left'] = $output_left;
                $variables['feature_set_output_right'] = $output_right;
                break;
        }
    }
}
开发者ID:kimlop,项目名称:platform-dev,代码行数:56,代码来源:template.php


示例7: ec_resp_preprocess_feature_set_admin_form

/**
 * Implements template_preprocess().
 */
function ec_resp_preprocess_feature_set_admin_form(&$variables)
{
    // Add specific javascript.
    drupal_add_js(drupal_get_path('theme', 'ec_resp') . '/scripts/feature-set.js', array('scope' => 'footer', 'weight' => 13));
    $categories_list = '';
    $features_list = '';
    foreach ($variables['feature_set_category']['category'] as $category => $features) {
        $table = array('header' => NULL, 'rows' => array(), 'attributes' => array('class' => array('feature-set-content table table-striped table-hover')));
        // Create category id.
        $category_id = preg_replace("/[^a-z0-9_\\s-]/", "", strtolower($category));
        $category_id = preg_replace("/[\\s-]+/", " ", $category_id);
        $category_id = preg_replace("/[\\s_]/", "-", $category_id);
        // Format categories.
        $categories_list .= theme('html_tag', array('element' => array('#tag' => 'li', '#attributes' => array('class' => 'feature-set__category', 'role' => 'presentation'), '#value' => l($category . ' (' . count($features) . ')', '', array('fragment' => $category_id, 'external' => TRUE)))));
        // Format features.
        $feature_full = '';
        foreach ($features as $key => $item) {
            // Get the icon if available.
            if (!empty($item['#featuresetinfo']['font'])) {
                $feature_icon = theme('html_tag', array('element' => array('#tag' => 'div', '#attributes' => array('class' => array('feature-set__icon', $item['#featuresetinfo']['font'])), '#value' => '')));
            } elseif (!empty($item['#featuresetinfo']['icon'])) {
                $image = array('path' => $item['#featuresetinfo']['icon'], 'alt' => t('@feature-set icon', array('@feature-set' => $item['#featuresetinfo']['featureset'])), 'attributes' => array('class' => 'feature-set__icon'));
                $feature_icon = theme_image($image);
            } else {
                $feature_icon = '';
            }
            // Format feature name.
            $feature_name = theme('html_tag', array('element' => array('#tag' => 'div', '#attributes' => array('class' => 'feature-set__name'), '#value' => $item['#featuresetinfo']['featureset'])));
            // Format feature documentation.
            $feature_documentation = !empty($item['#featuresetinfo']['documentation']) ? l(t('See @name documentation', array('@name' => $item['#featuresetinfo']['featureset'])), $item['#featuresetinfo']['documentation'], array('attributes' => array('target' => '_blank'))) : '';
            // Format feature description.
            $feature_description_value = '';
            $feature_description_value .= !empty($item['#featuresetinfo']['description']) ? $item['#featuresetinfo']['description'] : '';
            $feature_description_value .= !empty($feature_documentation) ? theme('html_tag', array('element' => array('#tag' => 'footer', '#attributes' => array('class' => 'feature-set__doc'), '#value' => $feature_documentation))) : '';
            $feature_description = theme('html_tag', array('element' => array('#tag' => 'blockquote', '#attributes' => array('class' => 'feature-set__desc'), '#value' => $feature_description_value)));
            // Format feature requirements.
            $feature_require = theme('html_tag', array('element' => array('#tag' => 'div', '#attributes' => array('class' => 'feature-set__doc'), '#value' => !empty($item['#featuresetinfo']['require']) ? $item['#featuresetinfo']['require'] : '')));
            // Format switcher.
            $feature_switcher = theme('html_tag', array('element' => array('#tag' => 'div', '#attributes' => array('class' => 'feature-set__switch'), '#value' => render($item))));
            // Group content.
            $feature_header = theme('html_tag', array('element' => array('#tag' => 'div', '#attributes' => array('class' => 'feature-set__header'), '#value' => $feature_icon . $feature_name . $feature_switcher)));
            $feature_content = theme('html_tag', array('element' => array('#tag' => 'div', '#attributes' => array('class' => 'feature-set__content'), '#value' => $feature_description . $feature_require)));
            $feature_full .= theme('html_tag', array('element' => array('#tag' => 'div', '#attributes' => array('class' => 'feature-set__feature'), '#value' => $feature_header . $feature_content)));
        }
        // Update feature list.
        $features_list .= theme('html_tag', array('element' => array('#tag' => 'div', '#attributes' => array('id' => $category_id, 'class' => 'feature-set__feature-group'), '#value' => $feature_full)));
    }
    $variables['feature_set_categories_list'] = $categories_list;
    $variables['feature_set_features_list'] = $features_list;
}
开发者ID:claudiu-cristea,项目名称:platform-dev,代码行数:53,代码来源:template.php


示例8: MM_img

function MM_img($ibid)
{
    $ibid = arg_filter($ibid);
    $ibidX = theme_image($ibid);
    if ($ibidX) {
        $ret = "<img src=\"{$ibidX}\" border=\"0\" alt=\"\" />";
    } else {
        if (@file_exists("images/{$ibid}")) {
            $ret = "<img src=\"images/{$ibid}\" border=\"0\" alt=\"\" />";
        } else {
            $ret = false;
        }
    }
    return $ret;
}
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:15,代码来源:adv-meta_lang.php


示例9: marquetapage

function marquetapage()
{
    global $cookie;
    if ($cookie[0] != "") {
        global $REQUEST_URI, $title, $post, $NPDS_Prefix;
        if ($ibid = theme_image("modules/add.gif")) {
            $add = $ibid;
        } else {
            $add = "modules/marquetapage/add.gif";
        }
        if ($ibid = theme_image("modules/addj.gif")) {
            $addj = $ibid;
        } else {
            $addj = "modules/marquetapage/addj.gif";
        }
        $result = sql_query("select uri, topic from " . $NPDS_Prefix . "marquetapage where uid='{$cookie['0']}' order by topic ASC");
        if (sql_num_rows($result)) {
            $tmp_toggle = '<span id="show_fav" title="' . translate("Show list") . '"><img src="images/admin/ws/toggle_plus.gif" style="vertical-align:middle;" alt="' . translate("Show list") . '" /></span>';
            $content = "<script type=\"text/javascript\" src=\"lib/yui/build/yui/yui-min.js\"></script>";
            $content .= "<script type=\"text/javascript\">\n         //<![CDATA[\n         tog =function(lst,sho,hid){\n           YUI().use('transition', 'node-event-delegate', function (Y) {\n             Y.delegate('click', function(e) {\n              var buttonID = e.currentTarget.get('id'),\n              lst_id = Y.one('#'+lst);\n              btn_show=Y.one('#'+sho);\n              btn_hide=Y.one('#'+hid);\n              if (buttonID === sho) {\n                 lst_id.show(true);\n                 btn_show.set('id',hid);\n                 btn_show.set('title','" . translate("Hide list") . "');\n                 btn_show.setContent('<img src=\"images/admin/ws/toggle_minus.gif\" style=\"vertical-align:middle;\" alt=\"" . translate("Hide list") . "\" />');\n              } else if (buttonID == hid) {\n                 lst_id.transition({\n                   duration: 0.2,\n                   easing: 'ease-out',\n                   opacity: 0\n                 });\n                 btn_hide=Y.one('#'+hid);\n                 lst_id.hide(true);\n                 btn_hide.set('id',sho);\n                 btn_hide.set('title','" . translate("Show list") . "');\n                 btn_hide.setContent('<img src=\"images/admin/ws/toggle_plus.gif\" style=\"vertical-align:middle;\" alt=\"" . translate("Show list") . "\" />');\n              }\n             }, document, 'span');\n           });\n         }\n         //]]>\n         </script>";
            $content .= "\n<table width=\"100%\" id=\"lst_fav\" border=\"0\" cellspacing=\"1\" cellpadding=\"2\" style=\"display:none;\" >\n<thead>\n<tr>\n<th><img src=\"{$addj}\" border=\"0\" style=\"vertical-align:middle\" alt=\"" . translate("Add") . " " . translate("favourite") . "\" title=\"" . translate("Add") . " " . translate("favourite") . "\" />&nbsp;Bookmarks [" . sql_num_rows($result) . "]</th><th align=\"right\"><a href=\"modules.php?ModPath=marquetapage&amp;ModStart=marquetapage&amp;op=supp_all&amp;uri=" . $_SERVER['PHP_SELF'] . "\"><img src=\"modules/marquetapage/del.gif\" border=\"0\" alt=\"" . translate("Delete") . "\" title=\"" . translate("Delete") . "\" style=\"vertical-align: middle;\" /></a></th>\n</tr>\n</thead>\n<tbody>";
            while (list($uri, $topic) = sql_fetch_row($result)) {
                $content .= "\n<tr>\n<td align=\"left\" width=\"95%\"><a href=\"{$uri}\" style=\"font-size: 10px;\">" . $topic . "</a></td>\n";
                $content .= "<td align=\"right\"><a href=\"modules.php?ModPath=marquetapage&amp;ModStart=marquetapage&amp;op=supp&amp;uri=" . urlencode($uri) . "\"><img src=\"modules/marquetapage/del.gif\" border=\"0\" alt=\"" . translate("Delete") . "\" title=\"" . translate("Delete") . "\" style=\"vertical-align: middle;\" /></a></td>\n</tr>\n";
            }
            $content .= "</tbody>\n</table>\n";
            $content .= "\n<script type=\"text/javascript\">\n         //<![CDATA[\n         tog('lst_fav','show_fav','hide_fav');\n         //]]>\n         </script>\n";
        }
        global $block_title;
        $uri = urlencode($REQUEST_URI);
        if ($post) {
            $title .= "/" . $post;
        }
        if ($title == "") {
            $title_MTP = basename(urldecode($uri));
        } else {
            $title_MTP = $title;
        }
        $boxTitle = "<span><a href=\"modules.php?ModPath=marquetapage&amp;ModStart=marquetapage&amp;op=add&amp;uri={$uri}&amp;topic=" . urlencode($title_MTP) . "\"><img src=\"{$add}\" name=\"image\" onmouseover=\"image.src='{$addj}';\" onmouseout=\"image.src='{$add}';\" border=\"0\" style=\"vertical-align:middle\" alt=\"" . translate("Add") . " " . translate("favourite") . "\" title=\"" . translate("Add") . " " . translate("favourite") . "\" /></a></span>";
        if ($block_title == "") {
            $boxTitle .= "&nbsp;MarqueTaPage " . $tmp_toggle;
        } else {
            $boxTitle .= "&nbsp;" . $block_title . " " . $tmp_toggle;
        }
        themesidebox($boxTitle, $content);
    }
}
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:47,代码来源:marquetapage.php


示例10: Affiche_Extention

 function Affiche_Extention($Format = "IMG")
 {
     $this->Extention();
     switch ($Format) {
         case "IMG":
             if ($ibid = theme_image("upload/file_types/" . $this->Extention . ".gif")) {
                 $imgtmp = $ibid;
             } else {
                 $imgtmp = "images/upload/file_types/" . $this->Extention . ".gif";
             }
             if (@file_exists($imgtmp)) {
                 return $imgtmp;
             } else {
                 return "images/upload/file_types/unknown.gif";
             }
             break;
     }
 }
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:18,代码来源:file.class.php


示例11: display_edit_site_plugin

function display_edit_site_plugin($record_r, $HTTP_VARS = NULL)
{
    if (is_array($record_r)) {
        echo get_input_field('site_type', NULL, 'Site Type', 'readonly', 'Y', $record_r['site_type']);
    } else {
        echo get_input_field('site_type', NULL, 'Site Type', 'text(10,10)', 'Y', $record_r['site_type']);
    }
    echo get_input_field('classname', NULL, 'Class Name', 'text(50,50)', 'Y', $record_r['classname']);
    echo get_input_field('title', NULL, 'Title', 'text(25,50)', 'Y', $record_r['title']);
    $field = get_input_field('image', NULL, 'Image', 'url(25,*,"gif,jpg,png",N)', 'N', $record_r['image'], FALSE);
    if (strlen($record_r['image']) > 0) {
        $image_src = "images/site/" . $record_r['image'];
    }
    if ($image_src !== FALSE && strlen($image_src) > 0 && file_exists($image_src)) {
        $field .= theme_image("images/site/" . $image_src, NULL, NULL);
    }
    echo format_field('Image', $field);
    echo get_input_field('description', NULL, 'Description', 'text(50,255)', 'Y', $record_r['description']);
    echo get_input_field('external_url', NULL, 'External URL', 'text(50,255)', 'Y', $record_r['external_url']);
    echo get_input_field('more_info_url', NULL, 'More Info URL', 'text(50,255)', 'N', $record_r['more_info_url']);
    echo get_input_field('items_per_page', NULL, 'Items Per Page', 'number(3)', 'N', $record_r['items_per_page']);
}
开发者ID:horrabin,项目名称:opendb,代码行数:22,代码来源:index.php


示例12: home_url

// Header Content
?>

<div class="row">

	<div class="col-md-3">
		<div class="site-title">
			<a href="<?php 
echo home_url();
?>
" title="<?php 
echo get_bloginfo('name', 'display');
?>
" rel="home">
				<?php 
theme_image('logo.png', get_bloginfo('name', 'display'));
?>
			</a>
		</div>
	</div>

	<div class="col-md-9">
		<nav role="navigation">
			<?php 
theme_menu('topmenu');
?>
		</nav>
	</div>

</div>
开发者ID:studiohyperset,项目名称:cantuaria-starter,代码行数:30,代码来源:header.php


示例13: previewAdminStory

function previewAdminStory($subject, $hometext, $bodytext, $topic, $catid, $ihome, $members, $Mmembers, $deb_day, $deb_month, $deb_year, $deb_hour, $deb_min, $fin_day, $fin_month, $fin_year, $fin_hour, $fin_min, $epur)
{
    global $NPDS_Prefix, $tipath, $hlpfile, $language, $aid, $radminsuper, $adminimg, $topicimage;
    $hlpfile = "manuels/{$language}/newarticle.html";
    $subject = stripslashes(str_replace('"', '&quot;', $subject));
    $hometext = stripslashes($hometext);
    $bodytext = stripslashes($bodytext);
    if ($topic < 1) {
        $topic = 1;
    }
    $affiche = false;
    $result2 = sql_query("SELECT topictext, topicimage, topicadmin FROM " . $NPDS_Prefix . "topics WHERE topicid='{$topic}'");
    list($topictext, $topicimage, $topicadmin) = sql_fetch_row($result2);
    if ($radminsuper) {
        $affiche = true;
    } else {
        $topicadminX = explode(',', $topicadmin);
        for ($i = 0; $i < count($topicadminX); $i++) {
            if (trim($topicadminX[$i]) == $aid) {
                $affiche = true;
            }
        }
    }
    if (!$affiche) {
        header("location: admin.php");
    }
    $f_meta_nom = 'adminStory';
    $f_titre = adm_translate("Nouvel Article");
    //==> controle droit
    //   admindroits($aid,$f_meta_nom); // à voir l'intégrationavec les droits sur les topics ...
    //<== controle droit
    $topiclogo = '<span class="label label-default pull-right"><strong>' . aff_langue($topictext) . '</strong></span>';
    include 'header.php';
    GraphicAdmin($hlpfile);
    global $local_user_language;
    adminhead($f_meta_nom, $f_titre, $adminimg);
    echo '
   <h3>' . adm_translate("Prévisualiser l'Article") . '</h3>
   <form action="admin.php" method="post" name="adminForm">
   <label class="form-control-label">' . adm_translate("Langue de Prévisualisation") . '</label> ' . aff_localzone_langue("local_user_language");
    echo '<div class="card card-block">';
    if ($topicimage !== '') {
        if (!($imgtmp = theme_image('topics/' . $topicimage))) {
            $imgtmp = $tipath . $topicimage;
        }
        $timage = $imgtmp;
        if (file_exists($imgtmp)) {
            $topiclogo = '<img class="img-fluid " src="' . $timage . '" align="right" alt="" />';
        }
    }
    code_aff('<h3>' . $subject . $topiclogo . '</h3>', '<div class="text-muted">' . $hometext . '</div>', $bodytext, '');
    echo '
   </div>
      <div class="form-group row">
         <label class="col-sm-4 form-control-label" for="subject">' . adm_translate("Titre") . '</label>
         <div class="col-sm-8">
            <input class="form-control" type="text" name="subject" value="' . $subject . '" />
         </div>
      </div>
      <div class="form-group row">
         <label class="col-sm-4 form-control-label" for="topic">' . adm_translate("Sujet") . '</label>
         <div class="col-sm-8">
            <select class="c-select form-control" name="topic">';
    $toplist = sql_query("SELECT topicid, topictext, topicadmin FROM " . $NPDS_Prefix . "topics ORDER BY topictext");
    if ($radminsuper) {
        echo '
               <option value="">' . adm_translate("Tous les Sujets") . '</option>';
    }
    while (list($topicid, $topics, $topicadmin) = sql_fetch_row($toplist)) {
        $affiche = false;
        if ($radminsuper) {
            $affiche = true;
        } else {
            $topicadminX = explode(",", $topicadmin);
            for ($i = 0; $i < count($topicadminX); $i++) {
                if (trim($topicadminX[$i]) == $aid) {
                    $affiche = true;
                }
            }
        }
        if ($affiche) {
            if ($topicid == $topic) {
                $sel = 'selected="selected"';
            }
            echo '
               <option ' . $sel . ' value="' . $topicid . '">' . aff_langue($topics) . '</option>';
            $sel = '';
        }
    }
    echo '
            </select>
         </div>
      </div>';
    $cat = $catid;
    SelectCategory($catid);
    echo "<br />";
    if ($members == 1 and $Mmembers == "") {
        $ihome = "-127";
    }
    if ($members == 1 and ($Mmembers > 1 and $Mmembers <= 127)) {
//.........这里部分代码省略.........
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:101,代码来源:stories.php


示例14: format_article

function format_article($link, $id, $mark_as_read = true, $zoom_mode = false, $owner_uid = false)
{
    if (!$owner_uid) {
        $owner_uid = $_SESSION["uid"];
    }
    $rv = array();
    $rv['id'] = $id;
    /* we can figure out feed_id from article id anyway, why do we
     * pass feed_id here? let's ignore the argument :( */
    $result = db_query($link, "SELECT feed_id FROM ttrss_user_entries\n\t\t\tWHERE ref_id = '{$id}'");
    $feed_id = (int) db_fetch_result($result, 0, "feed_id");
    $rv['feed_id'] = $feed_id;
    //if (!$zoom_mode) { print "<article id='$id'><![CDATA["; };
    if ($mark_as_read) {
        $result = db_query($link, "UPDATE ttrss_user_entries\n\t\t\t\tSET unread = false,last_read = NOW()\n\t\t\t\tWHERE ref_id = '{$id}' AND owner_uid = {$owner_uid}");
        ccache_update($link, $feed_id, $owner_uid);
    }
    $result = db_query($link, "SELECT id,title,link,content,feed_id,comments,int_id,\n\t\t\t" . SUBSTRING_FOR_DATE . "(updated,1,16) as updated,\n\t\t\t(SELECT site_url FROM ttrss_feeds WHERE id = feed_id) as site_url,\n\t\t\tnum_comments,\n\t\t\ttag_cache,\n\t\t\tauthor,\n\t\t\torig_feed_id,\n\t\t\tnote,\n\t\t\tcached_content\n\t\t\tFROM ttrss_entries,ttrss_user_entries\n\t\t\tWHERE\tid = '{$id}' AND ref_id = id AND owner_uid = {$owner_uid}");
    if ($result) {
        $line = db_fetch_assoc($result);
        $tag_cache = $line["tag_cache"];
        $line["tags"] = get_article_tags($link, $id, $owner_uid, $line["tag_cache"]);
        unset($line["tag_cache"]);
        $line["content"] = sanitize($link, $line["content"], false, $owner_uid, $line["site_url"]);
        global $pluginhost;
        foreach ($pluginhost->get_hooks($pluginhost::HOOK_RENDER_ARTICLE) as $p) {
            $line = $p->hook_render_article($line);
        }
        $num_comments = $line["num_comments"];
        $entry_comments = "";
        if ($num_comments > 0) {
            if ($line["comments"]) {
                $comments_url = htmlspecialchars($line["comments"]);
            } else {
                $comments_url = htmlspecialchars($line["link"]);
            }
            $entry_comments = "<a target='_blank' href=\"{$comments_url}\">{$num_comments} comments</a>";
        } else {
            if ($line["comments"] && $line["link"] != $line["comments"]) {
                $entry_comments = "<a target='_blank' href=\"" . htmlspecialchars($line["comments"]) . "\">comments</a>";
            }
        }
        if ($zoom_mode) {
            header("Content-Type: text/html");
            $rv['content'] .= "<html><head>\n\t\t\t\t\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n\t\t\t\t\t\t<title>Tiny Tiny RSS - " . $line["title"] . "</title>\n\t\t\t\t\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"tt-rss.css\">\n\t\t\t\t\t</head><body>";
        }
        $title_escaped = htmlspecialchars($line['title']);
        $rv['content'] .= "<div id=\"PTITLE-FULL-{$id}\" style=\"display : none\">" . strip_tags($line['title']) . "</div>";
        $rv['content'] .= "<div class=\"postReply\" id=\"POST-{$id}\">";
        $rv['content'] .= "<div class=\"postHeader\" id=\"POSTHDR-{$id}\">";
        $entry_author = $line["author"];
        if ($entry_author) {
            $entry_author = __(" - ") . $entry_author;
        }
        $parsed_updated = make_local_datetime($link, $line["updated"], true, $owner_uid, true);
        $rv['content'] .= "<div class=\"postDate\">{$parsed_updated}</div>";
        if ($line["link"]) {
            $rv['content'] .= "<div class='postTitle'><a target='_blank'\n\t\t\t\t\ttitle=\"" . htmlspecialchars($line['title']) . "\"\n\t\t\t\t\thref=\"" . htmlspecialchars($line["link"]) . "\">" . $line[&qu 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP theme_image_style函数代码示例发布时间:2022-05-23
下一篇:
PHP theme_get_settings函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap