From: Jakub Skoczen Date: Wed, 2 Mar 2011 13:41:20 +0000 (+0100) Subject: Initial commit with results/pager/status styled X-Git-Url: http://git.indexdata.com/?p=mkdruding1.git;a=commitdiff_plain;h=4cb919777611d46ade6397a4c31c871a624912a8 Initial commit with results/pager/status styled Ding2 seems to have no actuall theme yet, so this is mostly bartik-like --- 4cb919777611d46ade6397a4c31c871a624912a8 diff --git a/css/mkdruding2.css b/css/mkdruding2.css new file mode 100644 index 0000000..804dfc3 --- /dev/null +++ b/css/mkdruding2.css @@ -0,0 +1,29 @@ +.mkdru-result-description { + font-size: 0.8em; +} + +.mkdru-pager-container { + text-align: center; + background-color: #F6F6F2; + border-color: #F9F9F9; + padding: 3px 5px 3px 5px; +} + +.mkdru-pager-inner-container { + border-top: 1px solid #D6D6D6; + border-bottom: 1px solid #D6D6D6; + padding: 5px 0px 5px 0px; +} + +.mkdru-status-container { + background-color: #F6F6F2; + border-color: #F9F9F9; + padding: 3px 5px 3px 5px; +} + +.mkdru-status-inner-container { + border-top: 1px solid #D6D6D6; + border-bottom: 1px solid #D6D6D6; + padding: 5px 0px 5px 0px; +} + diff --git a/mkdruding2.info b/mkdruding2.info new file mode 100644 index 0000000..7f603d3 --- /dev/null +++ b/mkdruding2.info @@ -0,0 +1,27 @@ +name = Ding2-like mkdru theme +description = Style metasearch results like the results from the data-well +core = 7.x +base theme = bartik + +stylesheets[all][] = css/mkdruding2.css + +regions[header] = Header +regions[help] = Help +regions[page_top] = Page top +regions[page_bottom] = Page bottom +regions[highlighted] = Highlighted + +regions[featured] = Featured +regions[content] = Content +regions[sidebar_first] = Sidebar first +regions[sidebar_second] = Sidebar second + +regions[triptych_first] = Triptych first +regions[triptych_middle] = Triptych middle +regions[triptych_last] = Triptych last + +regions[footer_firstcolumn] = Footer first column +regions[footer_secondcolumn] = Footer second column +regions[footer_thirdcolumn] = Footer third column +regions[footer_fourthcolumn] = Footer fourth column +regions[footer] = Footer diff --git a/mkdruding2.js b/mkdruding2.js new file mode 100644 index 0000000..e601817 --- /dev/null +++ b/mkdruding2.js @@ -0,0 +1,35 @@ +Drupal.theme.mkdruResult = function(hit, num, detailLink) { + var html = ""; + html += '
  • ' + + '

    ' + + '' + + hit["md-title"] + '

    '; + html += '
    ' + + '

    ' + + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    '; + if (hit["md-author"]) { + html += '
    ' + + '' + + hit['md-author']+''; + if (hit['md-date']) { + html += ' ('+hit['md-date']+')'; + } + html += '

    '; + } + html += "
    "; + if (hit["md-description"]) { + // limit description to 400 characters + html += hit["md-description"][0].substr(0, 400); + } + html += '
    ' + html += '
    ' + html += '
    ' + html += '
  • '; + return html; +}; diff --git a/template.php b/template.php new file mode 100644 index 0000000..aa215d8 --- /dev/null +++ b/template.php @@ -0,0 +1,6 @@ + +
    +
    +
    + + +
    +
    +
    + +
    +
    + + +
    +
    +