Plugin Directory

Changeset 359060


Ignore:
Timestamp:
03/12/2011 05:23:18 AM (15 years ago)
Author:
donalmacarthur
Message:
 
Location:
atlas-html-sitemap-generator
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • atlas-html-sitemap-generator/tags/1.1/classes/dmac-admin-tools.php

    r359011 r359060  
    428428     *
    429429     * @since 1.0.00
     430     * @param array $data array of plugin links
     431     * @return string $out the formatted sidebox content
    430432     */     
    431433    function like_box_content( $data ) {
    432434   
    433         /* Wrap the postbox content in an .dmac-postbox div for styling purposes. */
     435        /* Wrap the postbox content in a .dmac-postbox div for styling purposes. */
    434436        $out = "<div class='dmac-postbox'>\n";
    435437            $out .= "<table class='form-table'>\n";
     
    450452     *
    451453     * @since 1.0.00
     454     * @param array $data array of plugin links
     455     * @return string $out the formatted sidebox content
    452456     */
    453457    function support_box_content( $data ) {
    454458   
    455         /* Wrap the postbox content in an .dmac-postbox div for styling purposes. */
     459        /* Wrap the postbox content in a .dmac-postbox div for styling purposes. */
    456460        $out = "<div class='dmac-postbox'>\n";
    457461            $out .= "<table class='form-table'>\n";
     
    467471     *
    468472     * @since 1.0.00
     473     * @param string $form PayPal donation form
     474     * @return string $out the formatted sidebox content
    469475     */     
    470476    function donate_box_content( $form ) {
    471477   
    472         /* Wrap the postbox content in an .dmac-postbox div for styling purposes. */
     478        /* Wrap the postbox content in a .dmac-postbox div for styling purposes. */
    473479        $out = "<div class='dmac-postbox'>\n";
    474480            $out .= "<table class='form-table'>\n";
     
    480486        return $out;
    481487    }
     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    }
    482517}
    483518endif;
  • atlas-html-sitemap-generator/tags/1.1/classes/html-sitemap-backend.php

    r359011 r359060  
    112112        add_meta_box( 'dmac-sidebox-donate', 'Make A Donation!', array( &$this, 'donate_box_content' ), $this->pagehook, 'side' );
    113113        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' );
    114115    }
    115116   
     
    153154        $data['wp-forum-link'] = 'http://wordpress.org/tags/atlas-html-sitemap-generator?forum_id=10';
    154155        $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/';
    156157   
    157158        /* Print the page header. */
     
    289290        echo $this->admin_tools->donate_box_content( $form );
    290291    }
     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    }
    291304}
  • atlas-html-sitemap-generator/trunk/classes/dmac-admin-tools.php

    r359011 r359060  
    428428     *
    429429     * @since 1.0.00
     430     * @param array $data array of plugin links
     431     * @return string $out the formatted sidebox content
    430432     */     
    431433    function like_box_content( $data ) {
    432434   
    433         /* Wrap the postbox content in an .dmac-postbox div for styling purposes. */
     435        /* Wrap the postbox content in a .dmac-postbox div for styling purposes. */
    434436        $out = "<div class='dmac-postbox'>\n";
    435437            $out .= "<table class='form-table'>\n";
     
    450452     *
    451453     * @since 1.0.00
     454     * @param array $data array of plugin links
     455     * @return string $out the formatted sidebox content
    452456     */
    453457    function support_box_content( $data ) {
    454458   
    455         /* Wrap the postbox content in an .dmac-postbox div for styling purposes. */
     459        /* Wrap the postbox content in a .dmac-postbox div for styling purposes. */
    456460        $out = "<div class='dmac-postbox'>\n";
    457461            $out .= "<table class='form-table'>\n";
     
    467471     *
    468472     * @since 1.0.00
     473     * @param string $form PayPal donation form
     474     * @return string $out the formatted sidebox content
    469475     */     
    470476    function donate_box_content( $form ) {
    471477   
    472         /* Wrap the postbox content in an .dmac-postbox div for styling purposes. */
     478        /* Wrap the postbox content in a .dmac-postbox div for styling purposes. */
    473479        $out = "<div class='dmac-postbox'>\n";
    474480            $out .= "<table class='form-table'>\n";
     
    480486        return $out;
    481487    }
     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    }
    482517}
    483518endif;
  • atlas-html-sitemap-generator/trunk/classes/html-sitemap-backend.php

    r359011 r359060  
    112112        add_meta_box( 'dmac-sidebox-donate', 'Make A Donation!', array( &$this, 'donate_box_content' ), $this->pagehook, 'side' );
    113113        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' );
    114115    }
    115116   
     
    153154        $data['wp-forum-link'] = 'http://wordpress.org/tags/atlas-html-sitemap-generator?forum_id=10';
    154155        $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/';
    156157   
    157158        /* Print the page header. */
     
    289290        echo $this->admin_tools->donate_box_content( $form );
    290291    }
     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    }
    291304}
Note: See TracChangeset for help on using the changeset viewer.