1
0
Fork 0

starting adding contextual help for wp >= 3.3, needs soe more work, started translation of options area

Dieser Commit ist enthalten in:
Oldperl 2012-05-21 18:30:41 +00:00
Ursprung 672ad385e3
Commit 5329bf5707
7 geänderte Dateien mit 228 neuen und 28 gelöschten Zeilen

146
_psd/akismet.json Normale Datei

Dateidiff unterdrückt, weil mindestens eine Zeile zu lang ist

34
_psd/semr_update.php Normale Datei
Datei anzeigen

@ -0,0 +1,34 @@
{
"new_version": "1.2.0",
"url": "http://sourceforge.net/projects/semmelstatz",
"package": "http://sourceforge.net/projects/semmelstatz/files/latest/download",
"info":{
"name": "semmelstatzR",
"author": "<a href='http://sourceforge.net/projects/semmelstatz'>SEM-Team</a>",
"author_profile": "",
"requires": "2.8",
"tested": "3.3.2",
"compatibility":{
"2.8.2":{
"1.1.0":[0,0,0]
},
"3.3.2":{
"1.2.0":[0,0,0]
}
},
"rating": 99,
"num_ratings": 253,
"downloaded": 466,
"last_upated": "2012-05-21",
"added": "2010-04-01",
"homepage": "http://sourceforge.net/projects/semmelstatz",
"tags": {"wordpress":"wordpress","statistic":"upgrade","update":"update","wp":"wp","repository":"repsitory","plugins":"plugins"},
"sections":{
"description": "<h3>SemmelstatzR(eloaded), the next generation of the statistic-fetisch for Wordpress.</h3>If you don't wanna use automatic installer or it won't work you should download update for plugin directly and install manually using this <a href=\"http://sourceforge.net/projects/semmelstatz/files/latest/download\" target=\"_blank\">Link<\/a>",
"installation": "See README",
"screenshots":"",
"changelog":"We have changed a lot of stuff :)",
"faq":"No FAQ since now. If you have any question use our forums on sf.net."
}
}
}

Datei anzeigen

@ -122,6 +122,9 @@ function semmelstatzR_help($contextual_help, $screen_id, $screen) {
$sHelpFile = $sHelpPathDefault;
}
if(!empty($sHelpFile)) $semrContextHelp = file_get_contents($sHelpFile);
} else {
include_once SEMMELSTATZR_SRVPATH."includes/help/v33/test.php";
return;
}
}
return $semrContextHelp.$contextual_help;

17
includes/help/v33/test.php Normale Datei
Datei anzeigen

@ -0,0 +1,17 @@
<?php
$aArgs1 = array(
'title'=>'Options',
'id'=>1,
'content'=>'Dies ist ein Tescht'
);
$aArgs2 = array(
'title'=>'Table Stuff',
'id'=>2,
'content'=>'Dies ist ein Tescht'
);
if(strstr($semr_hook['options'], get_current_screen()->id)) {
get_current_screen()->add_help_tab($aArgs1);
get_current_screen()->add_help_tab($aArgs2);
}
?>

Datei anzeigen

@ -46,7 +46,7 @@
*/
if(!current_user_can('manage_statz')) {
die('Zugriff verweigert');
die('Acces denied!!!');
}
if(isset($_POST['options_save'])) {
@ -90,17 +90,17 @@ if(!current_user_can('manage_statz')) {
if($sem_options["statz_recdays_limit"] < 1 || (!is_numeric($sem_options["statz_recdays_limit"]))) $sem_options["statz_recdays_limit"] = 1;
update_option("semmelstatzR_options", $sem_options);
echo "<div class='updated fade'><p>Der Wert f&uuml;r das Limit wurde erfolgreich gespeichert.</p></div>";
echo "<div class='updated fade'><p>".semr_i18n("Successfully saved limit value.")."</p></div>";
}
if(isset($_POST['limit_execute'])) {
$days = $sem_options["statz_recdays_limit"];
if(($days >= sem_showStatzDays()) || (!is_numeric($days))) {
echo "<div class='error fade'><p>Der eingegebene Wert ist keine Zahl oder zu gro&szlig;!</p></div>";
echo "<div class='error fade'><p>".semr_i18n("Given value is no number or to big!")."</p></div>";
}
else {
if ($result == sem_delOutOfLimit()) {
echo "<div class='updated fade'><p>Die <i>statz</i>-Tabelle wurde erfolgreich auf ".$days." Tage gek&uuml;rzt.</p></div>";
echo "<div class='updated fade'>".sprintf(semr_i18n("Successfully shortened <i>statz</i>-table to %s days."), $days)."</p></div>";
}
}
}
@ -134,57 +134,56 @@ if(!current_user_can('manage_statz')) {
<td><input name="statz_use_img" type="checkbox" id="statz_write_admins" value="statz_use_img"
<?php if($sem_options["statz_use_img"] == TRUE) {?> checked="checked" <?php } ?> />
</td>
<td><?php echo semr_i18n('Use a pixelimage in the footer to track visitors. Only needed with some cache-plugins. - (Default: Off)'); ?></td>
<td><?php echo semr_i18n('Use a pixelimage in the footer to track visitors. Only needed with some cache-plugins. - (default: off)'); ?></td>
</tr>
<tr style="background:#eee;" valign="middle">
<th>Blog-Administratoren aufzeichnen</th>
<th><?php echo semr_i18n('Log blog administrators'); ?></th>
<td><input name="statz_write_admins" type="checkbox" id="statz_write_admins" value="statz_write_admins"
<?php if($sem_options["statz_write_admins"] == TRUE) {?> checked="checked" <?php } ?> />
</td>
<td>Trackt alle Zugriffe des/der Blog-Admins im Frontend des Blogs - (default: AUS)</td>
<td><?php echo semr_i18n('All frontend hits of blog-admin(s) are tracked - (default: off)'); ?></td>
</tr>
<tr valign="middle">
<th>Blog-User aufzeichnen</th>
<th><?php echo semr_i18n('Log blog-user'); ?></th>
<td><input name="statz_write_users" type="checkbox" id="statz_write_users" value="statz_write_users"
<?php if($sem_options["statz_write_users"] == TRUE) {?> checked="checked" <?php } ?> />
</td>
<td>Trackt alle Zugriffe der registrierten Blog-User im Frontend des Blogs - (default: AUS)</td>
<td><?php echo semr_i18n('All frontend hits of registered blog-users are tracked - (default: off)'); ?></td>
</tr>
<tr style="background:#eee;" valign="middle">
<th>IP-Adressen codiert aufzeichnen</th>
<th><?php echo semr_i18n('Disguised record of IP addresses'); ?></th>
<td><input name="statz_encode_ip" type="checkbox" id="statz_encode_ip" value="statz_encode_ip"
<?php if($sem_options["statz_encode_ip"] == TRUE) {?> checked="checked" <?php } ?> />
</td>
<td>Der Gesetzgeber verbietet die Aufzeichnung der IP-Adresse eines Besuchers &uuml;ber dessen
zeitlichen Verbleib auf einer Webseite hinaus. Nach Aktivierung dieser Option rechnet SEMMELSTATZ
die IP-Adresse des Besuchers nach einem simplen arithmetischen Verfahren um. Somit schreibt
SEMMELSTATZ keine IP-Adressen im Klartext in die <i>statz</i>-Tabelle - (default: AUS)</td>
<td><?php echo semr_i18n('In some countries there are restrictions by law to use and/or store an IP address
longer than the time of visit. If you activate this option SEMMELSTATZ will hide IP by a simple arithmetical process.
Therefor no readable IP address will be stored to <i>statz</i>-table - (default: off)'); ?></td>
</tr>
<tr valign="middle">
<th>Statz der letzten <input name="statz_days_limit" type="text" id="statz_days_limit"
value="<?php echo $sem_options["statz_days_limit"]; ?>" style="text-align:center;" size="2" maxlength="2" />
Tage anzeigen
</th>
<th><?php echo sprintf(semr_i18np('Show statz of last <input name="statz_days_limit" type="text" id="statz_days_limit"
value="%s" style="text-align:center;" size="2" maxlength="2" /> day',
'Show statz of last <input name="statz_days_limit" type="text" id="statz_days_limit"
value="%s" style="text-align:center;" size="2" maxlength="2" /> days',
$sem_options["statz_days_limit"]), $sem_options["statz_days_limit"])?></th>
<td><input name="statz_show_dailystatz" type="checkbox" id="statz_show_dailystatz" value="statz_show_dailystatz"
<?php if($sem_options["statz_show_dailystatz"] == TRUE) {?> checked="checked" <?php } ?> />
</td>
<td>Tages&uuml;bersicht Besucher-Hits-Referer in absoluten Zahlen mit absteigendem Datum - (default: 7, AN)</td>
<td><?php echo semr_i18n('Daily visitor/hits/referer in absolute terms, with descending date - (default: 7 , on)'); ?></td>
</tr>
<tr style="background:#eee;" valign="middle">
<th><input name="statz_referer_limit" type="text" id="statz_referer_limit"
value="<?php echo $sem_options["statz_referer_limit"]; ?>" style="text-align:center;" size="2" maxlength="2" />
Referer anzeigen
</th>
<th><?php echo sprintf(semr_i18n('Show %s referer'),
'<input name="statz_referer_limit" type="text" id="statz_referer_limit"
value="'.$sem_options["statz_referer_limit"].'" style="text-align:center;" size="2" maxlength="2" />'); ?></th>
<td><input name="statz_show_referers" type="checkbox" id="statz_show_referers" value="statz_show_referers"
<?php if($sem_options["statz_show_referers"] == TRUE) {?> checked="checked" <?php } ?> />
</td>
<td>Listet <?php echo $sem_options["statz_referer_limit"]; ?> Links auf Webseiten, die auf dieses Blog
verweisen - (default: 10, AN)</td>
<td><?php echo sprintf(semr_i18n('List of %s links to websites which backlink to this blog - (default: 10, on)'),
$sem_options["statz_referer_limit"]); ?></td>
</tr>
<tr valign="middle">

Datei anzeigen

@ -95,14 +95,15 @@ if(is_admin() == true) {
* @return void
*/
function semmelstatzR_menu() {
global $semr_hook;
if (function_exists('add_menu_page')) {
add_menu_page('SemmelstatzR','SemmelstatzR',
$semr_hook['semR'] = add_menu_page('SemmelstatzR','SemmelstatzR',
'manage_statz', 'semmelstatzR/semmelstatzR-statz.php', '',
plugins_url('semmelstatzR/img/statz_small.png'));
}
if (function_exists('add_submenu_page')) {
global $semr_hook;
$semr_hook['statz'] = add_submenu_page('semmelstatzR/semmelstatzR-statz.php',
semr_i18n('Current Statz'), semr_i18n('Current Statz'),

Datei anzeigen

@ -81,7 +81,7 @@ if(class_exists("Upgrademe")) {
function semmelstatzR_upgrademe() {
// will be changed to sf.net soon as website is ready
//return 'http://semmelstatz.sourceforge.net/semr_update.php';
return 'http://www.php-backoffice.de/updates/semr_update.php';
return 'http://www.php-backoffice.de/updates/test/semr_update.php';
}
}
?>