diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-01-23 09:24:20 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-01-23 09:24:20 +0000 |
commit | 637004c5391eb48b473a80df1de425aaae8edc25 (patch) | |
tree | 97c9b38f58fe0d6f3280a022d89740a1cadd92db /modules/statistics.module | |
parent | 4dac201e7c447a1f7e09d7972a14f517bbbf3edc (diff) | |
download | brdo-637004c5391eb48b473a80df1de425aaae8edc25.tar.gz brdo-637004c5391eb48b473a80df1de425aaae8edc25.tar.bz2 |
- Tidied up XHTML. Patch by Ulf.
- Added missing t() function. Patch by Stefan.
Diffstat (limited to 'modules/statistics.module')
-rw-r--r-- | modules/statistics.module | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/statistics.module b/modules/statistics.module index ff0c127cc..3121a7dbf 100644 --- a/modules/statistics.module +++ b/modules/statistics.module @@ -164,7 +164,7 @@ function statistics_help() { <h3>Configuring the statistics module</h3> - <p>There are a couple of configuration options added to the main <?php print l("site configuration", "admin/system"); ?> admin page. + <p>There are a couple of configuration options added to the main <?php print l("site configuration", "admin/system"); ?> admin page.</p> <p>The first option, <i>enable access log</i>, allows you to turn the access log on and off. This log is used to store things like referrers and who's online. Enabling the log adds one database call per page displayed by Drupal.</p> @@ -205,7 +205,7 @@ function statistics_help() { <li><i>administer statistics module</i> - enable for user roles that get to configure the statistics module.</li> <li><i>administer statistics</i> - enable for user roles that get to view the referrer statistics.</li> </ul> -If '<i>administer statistics</i>' and '<i>access statistics</i>' are both enabled, the user will see a link from each node to that node's referrer statistics (if enabled). +<p>If '<i>administer statistics</i>' and '<i>access statistics</i>' are both enabled, the user will see a link from each node to that node's referrer statistics (if enabled).</p> <h2>Statistics module (for developers)</h2> @@ -219,7 +219,7 @@ If '<i>administer statistics</i>' and '<i>access statistics</i>' are both enable <p>The module automatically adds '# reads' to each node's link section (if enabled).</p> <h3>Top stories</h3> -<p>The statistics.module provides a function '<i>statistics_title_list($type)</i>' to return an array of links to any of the following: the top viewed nodes of all time, the top viewed nodes of today, the last viewed nodes. You can pass in: +<p>The statistics.module provides a function '<i>statistics_title_list($type)</i>' to return an array of links to any of the following: the top viewed nodes of all time, the top viewed nodes of today, the last viewed nodes. You can pass in:</p> <ul> <li><i>totalcount</i> - This will return an array with links to the top viewed nodes of all time.<br /> Example: <code>statistics_title_list("totalcount");</code><br /><br /></li> @@ -570,12 +570,12 @@ function statistics_config_topnodes_block($edit) { $form .= form_textfield(t("All time top nodes title"), "statistics_block_top_all_head", $edit["statistics_block_top_all_head"], 20, 40, t("Specify a name for the \"all time top\" section of the block generated by this module. HTML tags permitted.")); $form .= form_select(t("Number of all time views to display"), "statistics_block_top_all_num", $edit["statistics_block_top_all_num"], array("0" => t("Disabled"), "1" => "1", "2" => "2", "3" => "3", "4" => "4", "5" => "5", "6" => "6", "7" => "7", "8" => "8", "9" => "9", "10" => "10", "15" => "15", "20" => "20", "25" => "25", "30" => "30", "40" => "40"), t("Set how many \"all time top\" nodes to display on the block generated by this module.")); - $form .= "<hr>"; + $form .= "<hr />"; $form .= form_textfield(t("Most recent views heading"), "statistics_block_top_last_head", $edit["statistics_block_top_last_head"], 20, 40, t("Specify a name for the \"last views\" section of the block generated by this module. HTML tags permitted.")); $form .= form_select(t("Number of most recent views to display"), "statistics_block_top_last_num", $edit["statistics_block_top_last_num"], array("0" => t("Disabled"), "1" => "1", "2" => "2", "3" => "3", "4" => "4", "5" => "5", "6" => "6", "7" => "7", "8" => "8", "9" => "9", "10" => "10", "15" => "15", "20" => "20", "25" => "25", "30" => "30", "40" => "40"), t("Set how many \"last viewed\" nodes to display on the block generated by this module.")); - $form .= "<hr>"; + $form .= "<hr />"; $form .= form_submit("Submit \"top nodes\" block changes"); @@ -902,8 +902,8 @@ function statistics_summary($dbfield, $dbrows) { $content = node_load(array("nid" => $nid["nid"])); $links = link_node($content, 1); - $output .= "<tr><td><b>". l($nid["title"], "node/view/". $nid["nid"], array("title" => t("View this posting."))) ."</b></td><td align=\"right\"><small>". t("Submitted by %a on %b", array("%a" => format_name($content), "%b" => format_date($content->created, "large"))) ."</td></tr>"; - $output .= "</small><tr><td colspan=\"2\"><div style=\"margin-left: 20px;\">". check_output($content->teaser) ."</div></td></tr>"; + $output .= "<tr><td><b>". l($nid["title"], "node/view/". $nid["nid"], array("title" => t("View this posting."))) ."</b></td><td align=\"right\"><small>". t("Submitted by %a on %b", array("%a" => format_name($content), "%b" => format_date($content->created, "large"))) ."</small></td></tr>"; + $output .= "<tr><td colspan=\"2\"><div style=\"margin-left: 20px;\">". check_output($content->teaser) ."</div></td></tr>"; $output .= "<tr><td align=\"right\" colspan=\"2\">[ ". $theme->links($links) ." ]<br /><br /></td></tr>"; } |