[ Index ]

PHP Cross Reference of PageLines Framework

title

Body

[close]

/admin/ -> class.welcome.php (source)

   1  <?php
   2  /**
   3   * PageLines Welcome (class)
   4   *
   5   * This generates and returns the Welcome Page of the theme's Global Settings
   6   *
   7   */
   8  class PageLinesWelcome {
   9  
  10      /**
  11       * PHP5 Constructor
  12       */
  13  	function __contruct(){}
  14  
  15      /**
  16       * Get Welcome
  17       *
  18       * Pull all of the components together and returns them via the 'pagelines_welcome_intro' filter
  19       *
  20       * @uses        get_intro
  21       * @uses        get_plugins_billboard
  22       *
  23       * @internal    uses 'pagelines_welcome_finally' filter - text at the end of the welcome page
  24       *
  25       * @return      mixed|void
  26       */
  27  	function get_welcome(){
  28  
  29          $dash = new PageLinesDashboard;
  30  
  31          // PageLines Plus
  32          $args = array(
  33              'title'            => __( 'Some Tips To Get You Started', 'pagelines' ),
  34              'data'            => $this->welcome_array(),
  35              'icon'            => PL_ADMIN_ICONS . '/light-bulb.png',
  36              'excerpt-trim'    => false
  37          );
  38  
  39          $view = $this->get_welcome_billboard();
  40  
  41          $view .= $dash->wrap_dashboard_pane('tips', $args);
  42  
  43          $view .= $this->getting_started_video();
  44  
  45          $args = array(
  46              'title'            => __( 'Core WordPress Graphical/Functional Support', 'pagelines' ),
  47              'data'            => $this->get_welcome_plugins(),
  48              'icon'            => PL_ADMIN_ICONS . '/extend-plugins.png',
  49              'excerpt-trim'    => false,
  50              'align'            => 'right',
  51              'btn-text'        => 'Get It',
  52              'target'        => 'new'
  53          );
  54  
  55          $view .= $this->get_support_banner();
  56  
  57          $view .= $dash->wrap_dashboard_pane('support-plugins', $args);
  58  
  59          return apply_filters('pagelines_welcome_intro', $view);
  60      }
  61  
  62  	function getting_started_video(){
  63          ob_start();
  64          ?>
  65          <div class="admin_billboard">
  66              <div class="admin_billboard_pad fix">
  67                      <h3 class="admin_header_main"><?php _e( 'Video - Build A Site in 10 Minutes', 'pagelines' ); ?></h3>
  68                      <div class='admin_billboard_text'>
  69                          <?php _e( "In this video <a href='http://nickhaskins.com/'>Nick</a> shows you how to build a beautiful site in 10 minutes with PageLines", 'pagelines' ); ?>
  70                      </div>
  71              </div>
  72          </div>
  73          <iframe src="http://player.vimeo.com/video/44265010" width="100%" height="400" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
  74          <?php
  75  
  76          return ob_get_clean();
  77      }
  78  
  79  	function welcome_array(){
  80  
  81          $data = array(
  82              'story1'    => array(
  83                  'title'    => __( 'The First Rule', 'pagelines' ),
  84                  'text'    => __( "It's time we introduce you to the first rule.  The first rule of PageLines is that you come first. We truly appreciate your business and support.", 'pagelines' ),
  85                  'img'    => PL_ADMIN_ICONS . '/first-rule.png'
  86              ),
  87              'story3'    => array(
  88                  'title'    => __( 'Drag &amp; Drop Template Setup', 'pagelines' ),
  89                  'text'    => sprintf( __( "Check out the <a href='%s'>Template Setup panel</a>! Using drag and drop you can completely control the appearance of your templates. Learn more in the <a href='http://docs.pagelines.com/'>docs</a>.", 'pagelines' ), admin_url(PL_TEMPLATE_SETUP_URL) ),
  90                  'img'    => PL_ADMIN_ICONS . '/dash-drag-drop.png'
  91              ),
  92              'story4'    => array(
  93                  'title'    => __( 'Set Up Your Extensions', 'pagelines' ),
  94                  'text'    => __( "To maximize PageLines you're gonna need some extensions. Head over to the extensions page to get supported plugins and learn about extensions in the Store and Plus.", 'pagelines' ),
  95                  'img'    => PL_ADMIN_ICONS . '/dash-plug.png'
  96              ),
  97              'spprt'    => array(
  98                  'title'    => __( 'Get Fast Support', 'pagelines' ),
  99                  'text'    => __( "For help getting started, we offer our customers tons of support including comprehensive <a href='http://www.pagelines.com/wiki/' target='_blank'>docs</a>, and an active, moderated <a href='http://forum.pagelines.com/' target='_blank'>forum</a>.", 'pagelines' ),
 100                  'img'    => PL_ADMIN_ICONS . '/dash-light-bulb.png'
 101              ),
 102              'opts'    => array(
 103                  'title'    => __( 'Site-Wide Vs. Page-by-Page Options', 'pagelines' ),
 104                  'text'    => __( "PageLines is completely set up using a combination of site-wide and page-by-page options. Configure your site wide settings in the 'site options' panel, and setup your page by page options on individual pages, and in the 'page options' panel, which is used to set defaults and manage multiple post pages (like your blog).", 'pagelines' ),
 105                  'img'    => PL_ADMIN_ICONS . '/dash-opts.png'
 106              ),
 107              'widgets'    => array(
 108                  'title'    => __( 'Menus and Widgets', 'pagelines' ),
 109                  'text'    => __( "PageLines makes use of WordPress functionality to help you manage your site faster and better. Specifically, you'll be using WP menus and widgets so you may want to familiarize yourself with those interfaces as well.", 'pagelines' ),
 110                  'img'    => PL_ADMIN_ICONS . '/dash-setting.png'
 111              ),
 112          );
 113  
 114          return $data;
 115  
 116      }
 117  
 118      /**
 119       * Get Welcome Billboard
 120       *
 121       * Used to produce the content at the top of the theme Welcome page.
 122       *
 123       * @uses        PL_CHILD_URL (constant)
 124       * @internal    uses 'pagelines_welcome_billboard' filter
 125       *
 126       * @return      mixed|void
 127       */
 128  	function get_welcome_billboard(){
 129  
 130          ob_start();
 131          ?>
 132  
 133          <div class="admin_billboard">
 134              <div class="admin_billboard_pad fix">
 135                      <h3 class="admin_header_main"><?php _e( 'Getting Started with PageLines', 'pagelines' ); ?></h3>
 136                      <div class='admin_billboard_text'>
 137                          <?php _e( 'Congratulations and Welcome! Here are a few tips to get you started...', 'pagelines' ); ?>
 138                      </div>
 139              </div>
 140          </div>
 141          <?php
 142  
 143          $bill = ob_get_clean();
 144  
 145  
 146          return apply_filters('pagelines_welcome_billboard', $bill);
 147      }
 148  
 149  
 150  	function get_support_banner(){
 151  
 152          ob_start();
 153          ?>
 154  
 155          <div class="admin_billboard">
 156              <div class="admin_billboard_pad fix">
 157                      <h3 class="admin_header_main"><?php _e( 'Core Plugin Support', 'pagelines' ); ?></h3>
 158                      <div class='admin_billboard_text'>
 159                          <?php _e( 'These common WordPress plugins that have special support within the framework', 'pagelines' ); ?>
 160                      </div>
 161              </div>
 162          </div>
 163          <?php
 164  
 165          $banner = ob_get_clean();
 166  
 167  
 168          return $banner;
 169      }
 170  
 171  	function get_welcome_plugins(){
 172          $plugins = array(
 173              'postorder'    => array(
 174                  'title'            => __( 'Post Types Order', 'pagelines' ),
 175                  'link'            => 'http://wordpress.org/extend/plugins/post-types-order/',
 176                  'text'            => __( 'Allows you to re-order custom post types like features and boxes.', 'pagelines' ),
 177                  'btn-text'        => 'Get On WordPress.org'
 178              ),
 179              'specialrecent'    => array(
 180                  'title'            => __( 'Special Recent Posts', 'pagelines' ),
 181                  'link'            => 'http://wordpress.org/extend/plugins/special-recent-posts/',
 182                  'text'            => __( 'A sidebar widget that shows your most recent blog posts and their thumbs.', 'pagelines' ),
 183                  'btn-text'        => 'Get On WordPress.org'
 184              ),
 185              'disqus'    => array(
 186                  'title'            => __( 'Disqus Comments', 'pagelines' ),
 187                  'link'            => 'http://wordpress.org/extend/plugins/disqus-comment-system/',
 188                  'text'            => __( 'Improve your commenting system.', 'pagelines' ),
 189                  'btn-text'        => 'Get On WordPress.org'
 190              ),
 191              'cforms'    => array(
 192                  'title'            => __( 'CForms', 'pagelines' ),
 193                  'link'            => 'http://www.deliciousdays.com/cforms-plugin/',
 194                  'text'            => __( 'Advanced contact forms that can be used for creating mailing lists, etc.', 'pagelines' ),
 195                  'btn-text'        => 'Get On DeliciousDays.com'
 196              ),
 197              'wp125'    => array(
 198                  'title'            => __( 'WP125', 'pagelines' ),
 199                  'link'            => 'http://wordpress.org/extend/plugins/wp125/',
 200                  'text'            => __( 'Used to show 125px by 125px ads or images in your sidebar(Widget).', 'pagelines' ),
 201                  'btn-text'        => 'Get On WordPress.org'
 202              ),
 203              'flickrrss'    => array(
 204                  'title'            => __( 'FlickrRSS Images', 'pagelines' ),
 205                  'link'            => 'http://eightface.com/wordpress/flickrrss/',
 206                  'text'            => __( 'Shows pictures from your Flickr Account (Widget &amp; Carousel Section).', 'pagelines' ),
 207                  'btn-text'        => 'Get On EightFace.com'
 208              ),
 209              'nextgen'    => array(
 210                  'title'            => __( 'NextGen-Gallery', 'pagelines' ),
 211                  'link'            => 'http://wordpress.org/extend/plugins/nextgen-gallery/',
 212                  'text'            => __( 'Allows you to create image galleries with special effects (Carousel Section).', 'pagelines' ),
 213                  'btn-text'        => 'Get On WordPress.org'
 214              ),
 215              'pagenavi'    => array(
 216                  'title'            => __( 'Wp-PageNavi', 'pagelines' ),
 217                  'link'            => 'http://wordpress.org/extend/plugins/wp-pagenavi/',
 218                  'text'            => __( 'Creates advanced <strong>paginated</strong> post navigation.', 'pagelines' ),
 219                  'btn-text'        => 'Get On WordPress.org'
 220              )
 221          );
 222  
 223          return apply_filters('pagelines_welcome_plugins', $plugins);
 224      }
 225  
 226  
 227  
 228  }


Generated: Fri Aug 30 18:26:24 2013 Cross-referenced by PHPXref 0.7.1