Changeset 359060
- Timestamp:
- 03/12/2011 05:23:18 AM (15 years ago)
- Location:
- atlas-html-sitemap-generator
- Files:
-
- 4 edited
-
tags/1.1/classes/dmac-admin-tools.php (modified) (4 diffs)
-
tags/1.1/classes/html-sitemap-backend.php (modified) (3 diffs)
-
trunk/classes/dmac-admin-tools.php (modified) (4 diffs)
-
trunk/classes/html-sitemap-backend.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
atlas-html-sitemap-generator/tags/1.1/classes/dmac-admin-tools.php
r359011 r359060 428 428 * 429 429 * @since 1.0.00 430 * @param array $data array of plugin links 431 * @return string $out the formatted sidebox content 430 432 */ 431 433 function like_box_content( $data ) { 432 434 433 /* Wrap the postbox content in a n.dmac-postbox div for styling purposes. */435 /* Wrap the postbox content in a .dmac-postbox div for styling purposes. */ 434 436 $out = "<div class='dmac-postbox'>\n"; 435 437 $out .= "<table class='form-table'>\n"; … … 450 452 * 451 453 * @since 1.0.00 454 * @param array $data array of plugin links 455 * @return string $out the formatted sidebox content 452 456 */ 453 457 function support_box_content( $data ) { 454 458 455 /* Wrap the postbox content in a n.dmac-postbox div for styling purposes. */459 /* Wrap the postbox content in a .dmac-postbox div for styling purposes. */ 456 460 $out = "<div class='dmac-postbox'>\n"; 457 461 $out .= "<table class='form-table'>\n"; … … 467 471 * 468 472 * @since 1.0.00 473 * @param string $form PayPal donation form 474 * @return string $out the formatted sidebox content 469 475 */ 470 476 function donate_box_content( $form ) { 471 477 472 /* Wrap the postbox content in a n.dmac-postbox div for styling purposes. */478 /* Wrap the postbox content in a .dmac-postbox div for styling purposes. */ 473 479 $out = "<div class='dmac-postbox'>\n"; 474 480 $out .= "<table class='form-table'>\n"; … … 480 486 return $out; 481 487 } 488 489 /** 490 * Print content for a generic sidebox. 491 * 492 * @since 1.0.00 493 * @param array|string $content the raw content for the sidebox 494 * @return string $out the formatted sidebox content 495 */ 496 function side_box_content( $content ) { 497 498 /* Wrap the postbox content in a .dmac-postbox div for styling purposes. */ 499 $out = "<div class='dmac-postbox'>\n"; 500 $out .= "<table class='form-table'>\n"; 501 502 /* If our input is an array... */ 503 if ( is_array( $content ) ) { 504 foreach ( $content as $line ) 505 $out .= "<tr><td>{$line}</td></tr>\n"; 506 } 507 508 /* Else, assume it's a string. */ 509 else 510 $out .= "<tr><td>{$content}</td></tr>\n"; 511 512 $out .= "</table>\n"; 513 $out .= "</div>\n"; 514 515 return $out; 516 } 482 517 } 483 518 endif; -
atlas-html-sitemap-generator/tags/1.1/classes/html-sitemap-backend.php
r359011 r359060 112 112 add_meta_box( 'dmac-sidebox-donate', 'Make A Donation!', array( &$this, 'donate_box_content' ), $this->pagehook, 'side' ); 113 113 add_meta_box( 'dmac-sidebox-support', 'Need Support?', array( &$this, 'support_box_content' ), $this->pagehook, 'side' ); 114 add_meta_box( 'dmac-sidebox-styling', 'Styling Issues?', array( &$this, 'styling_issues_box_content' ), $this->pagehook, 'side' ); 114 115 } 115 116 … … 153 154 $data['wp-forum-link'] = 'http://wordpress.org/tags/atlas-html-sitemap-generator?forum_id=10'; 154 155 $data['donate-link'] = 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=53RPL36YFD9P2'; 155 $data['homepage-link'] = 'http:// www.cranesandskyhooks.com/wordpress-plugins/html-sitemap-generator/';156 $data['homepage-link'] = 'http://cranesandskyhooks.com/wordpress-plugins/html-sitemap-generator/'; 156 157 157 158 /* Print the page header. */ … … 289 290 echo $this->admin_tools->donate_box_content( $form ); 290 291 } 292 293 /** 294 * Print the 'Styling Issues?' side box content. 295 * 296 * @since 1.0 297 */ 298 function styling_issues_box_content( $data ) { 299 300 $content = array( "The sitemap is displayed using your theme's own default styles, so it should blend seamlessly into the rest of your site.", "If you're unhappy with the way your theme is displaying the sitemap, however, you can find tips on tweaking its formatting on the <a href='{$data['homepage-link']}'>plugin's homepage</a>." ); 301 302 echo $this->admin_tools->side_box_content( $content ); 303 } 291 304 } -
atlas-html-sitemap-generator/trunk/classes/dmac-admin-tools.php
r359011 r359060 428 428 * 429 429 * @since 1.0.00 430 * @param array $data array of plugin links 431 * @return string $out the formatted sidebox content 430 432 */ 431 433 function like_box_content( $data ) { 432 434 433 /* Wrap the postbox content in a n.dmac-postbox div for styling purposes. */435 /* Wrap the postbox content in a .dmac-postbox div for styling purposes. */ 434 436 $out = "<div class='dmac-postbox'>\n"; 435 437 $out .= "<table class='form-table'>\n"; … … 450 452 * 451 453 * @since 1.0.00 454 * @param array $data array of plugin links 455 * @return string $out the formatted sidebox content 452 456 */ 453 457 function support_box_content( $data ) { 454 458 455 /* Wrap the postbox content in a n.dmac-postbox div for styling purposes. */459 /* Wrap the postbox content in a .dmac-postbox div for styling purposes. */ 456 460 $out = "<div class='dmac-postbox'>\n"; 457 461 $out .= "<table class='form-table'>\n"; … … 467 471 * 468 472 * @since 1.0.00 473 * @param string $form PayPal donation form 474 * @return string $out the formatted sidebox content 469 475 */ 470 476 function donate_box_content( $form ) { 471 477 472 /* Wrap the postbox content in a n.dmac-postbox div for styling purposes. */478 /* Wrap the postbox content in a .dmac-postbox div for styling purposes. */ 473 479 $out = "<div class='dmac-postbox'>\n"; 474 480 $out .= "<table class='form-table'>\n"; … … 480 486 return $out; 481 487 } 488 489 /** 490 * Print content for a generic sidebox. 491 * 492 * @since 1.0.00 493 * @param array|string $content the raw content for the sidebox 494 * @return string $out the formatted sidebox content 495 */ 496 function side_box_content( $content ) { 497 498 /* Wrap the postbox content in a .dmac-postbox div for styling purposes. */ 499 $out = "<div class='dmac-postbox'>\n"; 500 $out .= "<table class='form-table'>\n"; 501 502 /* If our input is an array... */ 503 if ( is_array( $content ) ) { 504 foreach ( $content as $line ) 505 $out .= "<tr><td>{$line}</td></tr>\n"; 506 } 507 508 /* Else, assume it's a string. */ 509 else 510 $out .= "<tr><td>{$content}</td></tr>\n"; 511 512 $out .= "</table>\n"; 513 $out .= "</div>\n"; 514 515 return $out; 516 } 482 517 } 483 518 endif; -
atlas-html-sitemap-generator/trunk/classes/html-sitemap-backend.php
r359011 r359060 112 112 add_meta_box( 'dmac-sidebox-donate', 'Make A Donation!', array( &$this, 'donate_box_content' ), $this->pagehook, 'side' ); 113 113 add_meta_box( 'dmac-sidebox-support', 'Need Support?', array( &$this, 'support_box_content' ), $this->pagehook, 'side' ); 114 add_meta_box( 'dmac-sidebox-styling', 'Styling Issues?', array( &$this, 'styling_issues_box_content' ), $this->pagehook, 'side' ); 114 115 } 115 116 … … 153 154 $data['wp-forum-link'] = 'http://wordpress.org/tags/atlas-html-sitemap-generator?forum_id=10'; 154 155 $data['donate-link'] = 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=53RPL36YFD9P2'; 155 $data['homepage-link'] = 'http:// www.cranesandskyhooks.com/wordpress-plugins/html-sitemap-generator/';156 $data['homepage-link'] = 'http://cranesandskyhooks.com/wordpress-plugins/html-sitemap-generator/'; 156 157 157 158 /* Print the page header. */ … … 289 290 echo $this->admin_tools->donate_box_content( $form ); 290 291 } 292 293 /** 294 * Print the 'Styling Issues?' side box content. 295 * 296 * @since 1.0 297 */ 298 function styling_issues_box_content( $data ) { 299 300 $content = array( "The sitemap is displayed using your theme's own default styles, so it should blend seamlessly into the rest of your site.", "If you're unhappy with the way your theme is displaying the sitemap, however, you can find tips on tweaking its formatting on the <a href='{$data['homepage-link']}'>plugin's homepage</a>." ); 301 302 echo $this->admin_tools->side_box_content( $content ); 303 } 291 304 }
Note: See TracChangeset
for help on using the changeset viewer.