<?php $home_link = l('Powered by OpenScholar', 'http://openscholar.harvard.edu', array('attributes' => array('class' => 'poweredby'), 'html' => TRUE)); $login_link = theme('vsite_login_link', "Login", array('class' => 'footer-login')); ?> <p class="copy"> <?php print $login_link; ?> © President & Fellows Harvard University. IQSS, 1737 Cambridge Street, Cambridge, MA, 02138 <a href="http://openscholar.harvard.edu/contact">Contact Form</a> <span id="powered-link"><?php print $home_link; ?> </span></p><?php if (variable_get('openscholar_reportverinfo', 1)) { ?> <img src="http://openscholar.harvard.edu/openscholar_lu/spacer.gif?<?php echo drupal_query_string_encode($openscholar_version_info); ?> " /><?php } ?> </div><!-- /wrap --> </div> <!-- /#footer --> </div><!-- /page-wrapper --> </div> <!-- /page --> <div id="extradiv"></div> <?php if ($closure_region) { ?> <div id="closure-blocks"><?php print $closure_region; ?>
/** * Return an array suitable for theme_links() rather than marked up HTML link. */ function tao_pager_link($text, $page_new, $element, $parameters = array(), $attributes = array()) { $page = isset($_GET['page']) ? $_GET['page'] : ''; if ($new_page = implode(',', pager_load_array($page_new[$element], $element, explode(',', $page)))) { $parameters['page'] = $new_page; } $query = array(); if (count($parameters)) { $query[] = drupal_query_string_encode($parameters, array()); } $querystring = pager_get_querystring(); if ($querystring != '') { $query[] = $querystring; } // Set each pager link title if (!isset($attributes['title'])) { static $titles = NULL; if (!isset($titles)) { $titles = array(t('« first') => t('Go to first page'), t('‹ previous') => t('Go to previous page'), t('next ›') => t('Go to next page'), t('last »') => t('Go to last page')); } if (isset($titles[$text])) { $attributes['title'] = $titles[$text]; } else { if (is_numeric($text)) { $attributes['title'] = t('Go to page @number', array('@number' => $text)); } } } return array('title' => $text, 'href' => $_GET['q'], 'attributes' => $attributes, 'query' => count($query) ? implode('&', $query) : NULL); }
function getArgsString() { return drupal_query_string_encode($this->args); }
function alim_pager_link($text, $page_new, $element, $parameters = array(), $attributes = array()) { //if(arg(0) == 'alimsearch' || arg(0) == 'search' ) changed //if(arg(0) == 'alimsearch' || (arg(0) == 'search' && arg(1) == 'node' && arg(2) != '' )) if(arg(0) == 'single' && arg(1) == 'view' ) $attributes['class'] = 'popups'; $page = isset($_GET['page']) ? $_GET['page'] : ''; if ($new_page = implode(',', pager_load_array($page_new[$element], $element, explode(',', $page)))) { $parameters['page'] = $new_page; } $query = array(); if (count($parameters)) { $query[] = drupal_query_string_encode($parameters, array()); } $querystring = pager_get_querystring(); if ($querystring != '') { $query[] = $querystring; } // Set each pager link title if (!isset($attributes['title'])) { static $titles = NULL; if (!isset($titles)) { $titles = array( t('« first') => t('Go to first page'), t('‹ previous') => t('Go to previous page'), t('next ›') => t('Go to next page'), t('last »') => t('Go to last page'), ); } if (isset($titles[$text])) { $attributes['title'] = $titles[$text]; } else if (is_numeric($text)) { $attributes['title'] = t('Go to page @number', array('@number' => $text)); } } return l($text, $_GET['q'], array('attributes' => $attributes, 'query' => count($query) ? implode('&', $query) : NULL)); }
/** * Return the URL that should be redirected to during an installation request. * * The output of this function is suitable for sending to install_goto(). * * @param $install_state * An array of information about the current installation state. * @return * The URL to redirect to. * * @see install_full_redirect_url() */ function install_redirect_url($install_state) { return 'install.php?' . drupal_query_string_encode($install_state['parameters']); }