Project

General

Profile

Feature #15878 » tmpl_css.diff

Administrator Admin, 2006-03-25 21:45

View differences:

TYPO3core/typo3/sysext/indexed_search/ext_typoscript_setup.txt 2006-03-25 21:39:07.000000000 +0100
.tx-indexedsearch .tx-indexedsearch-whatis { margin-top:10px; margin-bottom:5px; }
.tx-indexedsearch .tx-indexedsearch-whatis .tx-indexedsearch-sw { font-weight:bold; font-style:italic; }
.tx-indexedsearch .tx-indexedsearch-noresults { text-align:center; font-weight:bold; }
.tx-indexedsearch .tx-indexedsearch-res .tx-indexedsearch-title { background:#eeeeee; }
.tx-indexedsearch .tx-indexedsearch-res .tx-indexedsearch-title .tx-indexedsearch .tx-indexedsearch-res .tx-indexedsearch-result-count { background: #eeeeee; }
.tx-indexedsearch .tx-indexedsearch-res .tx-indexedsearch-descr { font-style:italic; }
.tx-indexedsearch .tx-indexedsearch-res .tx-indexedsearch-descr .tx-indexedsearch-redMarkup { color:red; }
.tx-indexedsearch .tx-indexedsearch-res .tx-indexedsearch-info { background:#eeeeff; }
......
.tx-indexedsearch .tx-indexedsearch-res .tx-indexedsearch-secHead TD { vertical-align:middle; }
.tx-indexedsearch .tx-indexedsearch-res .noResume { color : #666666; }
.tx-indexedsearch .tx-indexedsearch-category { background:#cccccc; font-size: 16px; font-weight: bold; }
/* Additional styles, needed for the tableless template_css.tmpl (styles don't conflict with the original template) */
.tx-indexedsearch .res-tmpl-css { clear: both; margin-bottom: 1em; }
.tx-indexedsearch .searchbox-tmpl-css LABEL { margin-right: 1em; width: 10em; float: left; }
.tx-indexedsearch .result-count-tmpl-css, .tx-indexedsearch .percent-tmpl-css { font-size: 0.9em; letter-spacing: 0; font-weight: normal; margin-top: -1.2em; float: right; }
.tx-indexedsearch .info-tmpl-css dt, .tx-indexedsearch dl.info-tmpl-css dd { float: left; }
.tx-indexedsearch .info-tmpl-css dd.item-mtime { float: none; }
.tx-indexedsearch .info-tmpl-css dd.item-path { float: none; }
)
_LOCAL_LANG {
}
TYPO3core/typo3/sysext/indexed_search/pi/class.tx_indexedsearch.php 2006-03-25 21:09:49.000000000 +0100
foreach($this->resultSections as $id => $dat) {
$markerArray = array();
$aBegin = '<a href="'.htmlspecialchars($GLOBALS['TSFE']->anchorPrefix.'#'.md5($id)).'">';
$aBegin = '<a href="'.htmlspecialchars($GLOBALS['TSFE']->anchorPrefix.'#anchor_'.md5($id)).'">';
$aContent = htmlspecialchars(trim($dat[0]) ? trim($dat[0]) : $this->pi_getLL('unnamedSection')).
' ('.$dat[1].' '.$this->pi_getLL($dat[1]>1 ? 'word_pages' : 'word_page','',1).')';
$aEnd = '</a>';
......
$html = $this->cObj->getSubpart($this->templateCode, '###SECTION_HEADER###');
$markerArray['###ANCHOR_URL###'] = md5($id);
$markerArray['###ANCHOR_URL###'] = 'anchor_'.md5($id);
$markerArray['###SECTION_TITLE###'] = $sectionTitleLinked;
$markerArray['###RESULT_COUNT###'] = $countResultRows;
$markerArray['###RESULT_NAME###'] = $this->pi_getLL('word_page'.($countResultRows>1 ? 's' : ''));
......
}
}
return '<a href="'.$scheme.$firstDom.'/index.php?id='.$id.$addParams.'" target="'.$this->conf['search.']['detect_sys_domain_records.']['target'].'">'.htmlspecialchars($str).'</a>';
if ($target=$this->conf['search.']['detect_sys_domain_records.']['target']) {
$target = ' target="'.$target.'"';
}
return '<a href="'.htmlspecialchars($scheme.$firstDom.'/index.php?id='.$id.$addParams).'"'.$target.'>'.htmlspecialchars($str).'</a>';
} else {
return $this->pi_linkToPage($str,$id,$this->conf['result_link_target'],$urlParameters);
}
TYPO3core/typo3/sysext/indexed_search/pi/indexed_search.tmpl 2006-03-25 21:07:16.000000000 +0100
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>indexed_search</title>
<title>indexed_search template</title>
</head>
<body>
<h3>SEARCH FORM</h3>
<h1>Indexed Search: Default template</h1>
<h2>TEMPLATE_SEARCH_FORM</h2>
<p><em>Template for displaying the search form.</em></p>
<!-- ###SEARCH_FORM### begin -->
<div class="tx-indexedsearch-searchbox">
......
<!-- ###HIDDEN_FIELDS### end -->
<table cellpadding="0" cellspacing="0" border="0" summary="Search form">
<tr>
<td>###FORM_SEARCHFOR###</td>
<td colspan="2"><input type="text" name="tx_indexedsearch[sword]" value="###SWORD_VALUE###" class="tx-indexedsearch-searchbox-sword sword" /></td>
......
</tr>
<!-- ###SELECT_SECTION### end -->
<!-- ###SELECT_FREEINDEXUID### begin -->
<tr>
<td>###FORM_FREEINDEXUID###</td>
<td valign="top">###FORM_FREEINDEXUID###</td>
<td colspan="2">
<select name="tx_indexedsearch[freeIndexUid]" class="tx-indexedsearch-selectbox-freeIndexUid freeIndexUid">
###SELECTBOX_FREEINDEXUIDS_VALUES###
......
</form>
</div>
<!-- ###SEARCH_FORM### end -->
<br /><br />
<h2>TEMPLATE_RULES</h2>
<p><em>Template for displaying the search rules.</em></p>
<!-- ###RULES### begin -->
<div class="tx-indexedsearch-rules">
......
<p>###RULES_TEXT###</p>
</div>
<!-- ###RULES### end -->
<br /><br />
<h2>TEMPLATE_RESULT_SECTION_LINKS</h2>
<p><em>Template for the section links in section mode.</em></p>
<!-- ###RESULT_SECTION_LINKS### begin -->
<div class="tx-indexedsearch-sec">
<table cellpadding="0" cellspacing="0" border="0" summary="Result links">
......
<tr>
<td width="100%">--&gt; ###LINK###</td>
</tr>
<!-- ###RESULT_SECTION_LINKS_LINK### end -->
<br /><br />
<h2>TEMPLATE_SECTION_HEADER</h2>
<p><em>Template for the section title in section mode.</em></p>
<!-- ###SECTION_HEADER### begin -->
<div class="tx-indexedsearch-secHead"><a name="###ANCHOR_URL###"></a>
<table cellpadding="0" cellspacing="0" border="0" summary="Section header">
......
</div>
<!-- ###SECTION_HEADER### end -->
<br /><br />
<h2>TEMPLATE_RESULT_OUTPUT</h2>
<p><em>Template for the search result list.</em></p>
<!-- ###RESULT_OUTPUT### begin -->
<div class="tx-indexedsearch-res">
<table cellpadding="0" cellspacing="0" border="0" summary="Result row">
<!-- ###HEADER_ROW### begin -->
<tr>
<td class="tx-indexedsearch-icon icon" nowrap="nowrap">###ICON###</td>
......
<br />
</div>
<!-- ###RESULT_OUTPUT### end -->
<br /><br />
</body>
</html>
TYPO3core/typo3/sysext/indexed_search/pi/template_css.tmpl 2006-03-25 21:10:52.000000000 +0100
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>indexed_search template</title>
</head>
<body>
<h1>Indexed Search: Tableless template</h1>
<h2>TEMPLATE_SEARCH_FORM</h2>
<p><em>Template for displaying the search form.</em></p>
<!-- ###SEARCH_FORM### begin -->
<div class="tx-indexedsearch-searchbox searchbox-tmpl-css">
<form action="###ACTION_URL###" method="post" name="tx_indexedsearch">
<div>
<input type="hidden" name="tx_indexedsearch[_sections]" value="0" />
<input type="hidden" name="tx_indexedsearch[_freeIndexUid]" value="_" />
<input type="hidden" name="tx_indexedsearch[pointer]" value="0" />
<!-- ###HIDDEN_FIELDS### begin -->
<input type="hidden" name="###HIDDEN_FIELDNAME###" value="###HIDDEN_VALUE###" />
<!-- ###HIDDEN_FIELDS### end -->
</div>
<fieldset>
<legend>Search form</legend>
<div class="tx-indexedsearch-form">
<label for="tx-indexedsearch-searchbox-sword">###FORM_SEARCHFOR###</label>
<input type="text" name="tx_indexedsearch[sword]" value="###SWORD_VALUE###" id="tx-indexedsearch-searchbox-sword" class="tx-indexedsearch-searchbox-sword sword" />&nbsp;
</div>
<!-- ###ADDITONAL_KEYWORD### begin -->
<input type="hidden" name="tx_indexedsearch[sword_prev]" value="###SWORD_PREV_VALUE###" />
<input type="checkbox" name="tx_indexedsearch[sword_prev_include]" value="1" ###SWORD_PREV_INCLUDE_CHECKED### />###ADD_TO_CURRENT_SEARCH###.
<!-- ###ADDITONAL_KEYWORD### end -->
<!-- ###SEARCH_FORM_EXTENDED### begin -->
<!-- ###SELECT_SEARCH_FOR### begin -->
<div class="tx-indexedsearch-search-for">
<label for="tx-indexedsearch-selectbox-type">###FORM_MATCH###</label>
<!-- ###SELECT_SEARCH_TYPE### begin -->
<select name="tx_indexedsearch[type]" id="tx-indexedsearch-selectbox-type" class="tx-indexedsearch-selectbox-type type">###SELECTBOX_TYPE_VALUES###</select>&nbsp;
<!-- ###SELECT_SEARCH_TYPE### end -->
<!-- ###SELECT_SEARCH_DEFOP### begin -->
<select name="tx_indexedsearch[defOp]" id="tx-indexedsearch-selectbox-defop" class="tx-indexedsearch-selectbox-defop defop">###SELECTBOX_DEFOP_VALUES###</select>
<!-- ###SELECT_SEARCH_DEFOP### end -->
</div>
<!-- ###SELECT_SEARCH_FOR### end -->
<!-- ###SELECT_SEARCH_IN### begin -->
<div class="tx-indexedsearch-search-in">
<label for="tx-indexedsearch-selectbox-media">###FORM_SEARCHIN###</label>
<!-- ###SELECT_SEARCH_MEDIA### begin -->
<select name="tx_indexedsearch[media]" id="tx-indexedsearch-selectbox-media" class="tx-indexedsearch-selectbox-media media">###SELECTBOX_MEDIA_VALUES###</select>&nbsp;
<!-- ###SELECT_SEARCH_MEDIA### end -->
<!-- ###SELECT_SEARCH_LANG### begin -->
<select name="tx_indexedsearch[lang]" id="tx-indexedsearch-selectbox-lang" class="tx-indexedsearch-selectbox-lang lang">###SELECTBOX_LANG_VALUES###</select>
<!-- ###SELECT_SEARCH_LANG### end -->
</div>
<!-- ###SELECT_SEARCH_IN### end -->
<!-- ###SELECT_SECTION### begin -->
<div class="tx-indexedsearch-search-select-section">
<label for="tx-indexedsearch-selectbox-sections">###FORM_FROMSECTION###</label>
<select name="tx_indexedsearch[sections]" id="tx-indexedsearch-selectbox-sections" class="tx-indexedsearch-selectbox-sections sections">###SELECTBOX_SECTIONS_VALUES###</select>
</div>
<!-- ###SELECT_SECTION### end -->
<!-- ###SELECT_FREEINDEXUID### begin -->
<div class="tx-indexedsearch-search-freeindexuid">
<label for="tx-indexedsearch-selectbox-freeIndexUid">###FORM_FREEINDEXUID###</label>
<select name="tx_indexedsearch[freeIndexUid]" id="tx-indexedsearch-selectbox-freeIndexUid" class="tx-indexedsearch-selectbox-freeIndexUid freeIndexUid">###SELECTBOX_FREEINDEXUIDS_VALUES###</select>
</div>
<!-- ###SELECT_FREEINDEXUID### end -->
<!-- ###SELECT_ORDER### begin -->
<div class="tx-indexedsearch-search-select-order">
<label for="tx-indexedsearch-selectbox-order">###FORM_ORDERBY###</label>
<select name="tx_indexedsearch[order]" id="tx-indexedsearch-selectbox-order" class="tx-indexedsearch-selectbox-order order">###SELECTBOX_ORDER_VALUES###</select>&nbsp;
<select name="tx_indexedsearch[desc]" id="tx-indexedsearch-selectbox-desc" class="tx-indexedsearch-selectbox-desc desc">###SELECTBOX_DESC_VALUES###</select>
</div>
<!-- ###SELECT_ORDER### end -->
<!-- ###SELECT_RESULTS### begin -->
<div class="tx-indexedsearch-search-select-results">
<label for="tx-indexedsearch-selectbox-results">###FORM_ATATIME###</label>
<select name="tx_indexedsearch[results]" id="tx-indexedsearch-selectbox-results" class="tx-indexedsearch-selectbox-results results">###SELECTBOX_RESULTS_VALUES###</select>
</div>
<!-- ###SELECT_RESULTS### end -->
<!-- ###SELECT_GROUP### begin -->
<div class="tx-indexedsearch-search-select-group">
<label for="tx-indexedsearch-selectbox-group">###FORM_STYLE###</label>
<select name="tx_indexedsearch[group]" id="tx-indexedsearch-selectbox-group" class="tx-indexedsearch-selectbox-group group">###SELECTBOX_GROUP_VALUES###</select>
<!-- ###SELECT_EXTRESUME### begin -->
<input type="hidden" name="tx_indexedsearch[extResume]" value="0" />
<input type="checkbox" value="1" name="tx_indexedsearch[extResume]" ###EXT_RESUME_CHECKED### />&nbsp;###FORM_EXTRESUME###
<!-- ###SELECT_EXTRESUME### end -->
</div>
<!-- ###SELECT_GROUP### end -->
<!-- ###SEARCH_FORM_EXTENDED### end -->
<div class="tx-indexedsearch-search-submit">
<input type="submit" name="tx_indexedsearch[submit_button]" value="###FORM_SUBMIT###" id="tx-indexedsearch-searchbox-button-submit" class="tx-indexedsearch-searchbox-button submit" />
</div>
</fieldset>
<p>###LINKTOOTHERMODE###</p>
</form>
</div>
<!-- ###SEARCH_FORM### end -->
<br /><br />
<h2>TEMPLATE_RULES</h2>
<p><em>Template for displaying the search rules.</em></p>
<!-- ###RULES### begin -->
<div class="tx-indexedsearch-rules">
<h2>###RULES_HEADER###</h2>
<p>###RULES_TEXT###</p>
</div>
<!-- ###RULES### end -->
<br /><br />
<h2>TEMPLATE_RESULT_SECTION_LINKS</h2>
<p><em>Template for the section links in section mode.</em></p>
<!-- ###RESULT_SECTION_LINKS### begin -->
<div class="tx-indexedsearch-sec">
<ol>
###LINKS###
</ol>
</div>
<!-- ###RESULT_SECTION_LINKS### end -->
<!-- ###RESULT_SECTION_LINKS_LINK### begin -->
<li>###LINK###</li>
<!-- ###RESULT_SECTION_LINKS_LINK### end -->
<br /><br />
<h2>TEMPLATE_SECTION_HEADER</h2>
<p><em>Template for the section title in section mode.</em></p>
<!-- ###SECTION_HEADER### begin -->
<div id="###ANCHOR_URL###" class="tx-indexedsearch-secHead">
<h2 class="tx-indexedsearch-title title">###SECTION_TITLE### <span class="tx-indexedsearch-result-count result-count result-count-tmpl-css">###RESULT_COUNT### ###RESULT_NAME###</span></h2>
</div>
<!-- ###SECTION_HEADER### end -->
<br /><br />
<h2>TEMPLATE_RESULT_OUTPUT</h2>
<p><em>Template for the search result list.</em></p>
<!-- ###RESULT_OUTPUT### begin -->
<div class="tx-indexedsearch-res res res-tmpl-css">
<!-- ###HEADER_ROW### begin -->
<h3><span class="tx-indexedsearch-icon icon">###ICON###</span> <span class="tx-indexedsearch-result-number result-number">###RESULT_NUMBER###</span> <span class="tx-indexedsearch-title title">###TITLE###</span> <span class="tx-indexedsearch-percent percent percent-tmpl-css">###RATING###</span></h3>
<!-- ###HEADER_ROW### end -->
<!-- ###ROW_LONG### begin -->
<p class="tx-indexedsearch-descr descr">###DESCRIPTION###</p>
<dl class="tx-indexedsearch-info info info-tmpl-css">
<dt class="tx-indexedsearch-text-item-size item-size">###TEXT_ITEM_SIZE###&nbsp;</dt>
<dd class="tx-indexedsearch-text-item-size item-size">###SIZE###,&nbsp;</dd>
<dt class="tx-indexedsearch-text-item-crdate item-crdate">###TEXT_ITEM_CRDATE###&nbsp;</dt>
<dd class="tx-indexedsearch-text-item-crdate item-crdate">###CREATED###,&nbsp;</dd>
<dt class="tx-indexedsearch-text-item-mtime item-mtime">###TEXT_ITEM_MTIME###&nbsp;</dt>
<dd class="tx-indexedsearch-text-item-mtime item-mtime">###MODIFIED###</dd>
<dt class="tx-indexedsearch-text-item-path item-path">###TEXT_ITEM_PATH###&nbsp;</dt>
<dd class="tx-indexedsearch-text-item-path item-path">###PATH###</dd>
</dl>
<!-- ###ROW_LONG### end -->
<!-- ###ROW_SHORT### begin -->
<p class="tx-indexedsearch-descr descr">###DESCRIPTION###</p>
<!-- ###ROW_SHORT### end -->
<!-- ###ROW_SUB### begin -->
<p class="tx-indexedsearch-list list">###TEXT_ROW_SUB###</p>
<!-- ###ROW_SUB### end -->
</div>
<!-- ###RESULT_OUTPUT### end -->
<br /><br />
</body>
</html>
(2-2/2)