[ Index ]

PHP Cross Reference of PageLines Framework

title

Body

[close]

/includes/ -> config.options.php (source)

   1  <?php
   2  
   3  /**
   4   * 
   5   *
   6   *  Options Array
   7   *
   8   *
   9   *  @package PageLines Options
  10   *  @subpackage Options
  11   *  @since 2.0.b3
  12   *
  13   */
  14  
  15  class PageLinesOptionsArray {
  16  
  17      /**
  18       * Construct
  19       */
  20  	function __construct() {
  21          
  22  
  23          $this->options['website_setup']         = $this->website_setup();
  24          $this->options['layout_editor']         = $this->layout_editor();
  25          $this->options['color_control']         = $this->color_control();
  26          $this->options['typography']             = $this->typography();
  27          $this->options['header_and_footer']     = $this->header_footer();
  28          $this->options['blog_and_posts']         = $this->blog_posts();
  29          $this->last_options['advanced']         = $this->advanced();
  30          $this->last_options['custom_code']         = $this->custom_code();
  31      }
  32  
  33  
  34      /**
  35      *
  36      * @TODO document
  37      *
  38      */
  39  	function website_setup(){
  40          $a = array(
  41              'icon'            => PL_ADMIN_ICONS.'/compass.png',
  42              'account_signup'    => array(
  43                  'default'        => '',
  44                  'type'             => 'account_signup',
  45                  'inputlabel'     => __( 'Account Login', 'pagelines' ),
  46                  'title'            => __( 'PageLines Account Sign In', 'pagelines' ),                        
  47                  'shortexp'         => __( 'Login or Register for a Free PageLines Account', 'pagelines' ),
  48                  'exp'             => __( 'Logging in with your PageLines account will allow you to purchase items from the PageLines Store, and more.', 'pagelines' )
  49              ),
  50              'pl_logo'    => array(
  51              
  52                  'type'             =>     'multi_option',
  53                  'selectvalues'    => array(
  54                      'pagelines_custom_logo' => array(
  55                          'default'         => PL_IMAGES.'/logo.png',
  56                          'type'             => 'image_upload',
  57                          'imagepreview'     => '270',
  58                          'inputlabel'     => __( 'Upload custom logo', 'pagelines' )
  59                      )
  60                  ),
  61                  'title'         => __( 'Custom Logo', 'pagelines' ),                        
  62                  'shortexp'         => __( 'Input full URL to your custom header or logo image', 'pagelines' ),
  63                  'exp'            => ''
  64              ),
  65              
  66              'pagelines_favicon'        => array(
  67                  'version'         => 'pro',
  68                  'default'         =>     PL_ADMIN_IMAGES . "/favicon-pagelines.ico",
  69                  'inputlabel'    => 'Upload Favicon (16px by 16px)',
  70                  'type'             =>     'image_upload',
  71                  'imagepreview'     =>     '16',
  72                  'title'         =>     __( 'Favicon Image', 'pagelines' ),                        
  73                  'shortexp'         =>     __( 'Input full URL to favicon image (<strong>favicon.ico</strong> image file)', 'pagelines' ),
  74                  'exp'             =>     __( 'Enter the full URL location of your custom <strong>favicon</strong> which is visible in browser favorites and tabs.<br/> <strong>Must be .png or .ico file - 16px by 16px</strong>.', 'pagelines' )
  75              ),        
  76              'twittername' => array(
  77                  'default'         => '',
  78                  'type'             => 'text',
  79                  'inputlabel'     => __( 'Your Twitter Username', 'pagelines' ),
  80                  'title'         => __( 'Twitter Integration', 'pagelines' ),
  81                  'shortexp'         => __( 'Places your Twitter feed in your site', 'pagelines' ),
  82                  'exp'             => __( 'This places your Twitter feed on the site. Leave blank if you want to hide or not use.', 'pagelines' )
  83              ),
  84              'site-hashtag' => array(
  85                  'default'         => '',
  86                  'type'             => 'text',
  87                  'inputlabel'     => __( 'Your Website Hashtag', 'pagelines' ),
  88                  'title'         => __( 'Website Hashtag', 'pagelines' ),
  89                  'shortexp'         => __( 'This hashtag will be used in social media (e.g. Twitter) and elsewhere to create feeds.', 'pagelines' ),
  90                  'exp'             => __( 'Having a hashtag can be useful in creating a common thread or feed in your social media efforts.', 'pagelines' )
  91              ),
  92              
  93              'pl_login_image'    => array(
  94                  'version'         => 'pro',
  95                  'default'         => PL_ADMIN_IMAGES . "/login-pl.png",
  96                  'type'             =>     'image_upload',
  97                  'inputlabel'    => 'Upload Icon (80px Height)',
  98                  'imagepreview'     =>     '60',
  99                  'title'         => __( 'Login Page Image', 'pagelines' ),                        
 100                  'shortexp'         => __( "The image to use on your site's login page", 'pagelines' ),
 101                  'exp'            => __( 'This image will be used on the login page to your admin. Use an image that is approximately <strong>80px</strong> in height.', 'pagelines' )
 102              ),
 103              'pagelines_touchicon'    => array(
 104                  'version'         => 'pro',
 105                  'default'         => '',
 106                  'inputlabel'    => 'Upload Icon (57px by 57px)',
 107                  'type'             =>     'image_upload',
 108                  'imagepreview'     =>     '60',
 109                  'title'         => __( 'Mobile Touch Image', 'pagelines' ),                        
 110                  'shortexp'         => __( 'Input full URL to Apple touch image (.jpg, .gif, .png)', 'pagelines' ),
 111                  'exp'            => __( 'Enter the full URL location of your Apple Touch Icon which is visible when your users set your site as a <strong>webclip</strong> in Apple Iphone and Touch Products. It is an image approximately 57px by 57px in either .jpg, .gif or .png format.', 'pagelines' )
 112              ),
 113              'pl_watermark'    => array(
 114                  'version'         => 'pro',
 115                  'type'             =>     'multi_option',
 116                  'selectvalues'    => array(
 117                      'watermark_image'    => array(
 118                          'type'             => 'image_upload', 
 119                          'inputlabel'     => 'Watermark Image', 
 120                          'default'         => PL_IMAGES.'/pagelines.png', 
 121                  
 122                      ), 
 123                      'watermark_link'    => array('type' => 'text', 'inputlabel' => 'Watermark Link (Blank for None)', 'default' => 'http://www.pagelines.com'),
 124                      'watermark_alt'        => array('type' => 'text', 'inputlabel' => 'Watermark Link alt text', 'default' => 'Build a website with PageLines' ),
 125                      'watermark_hide'    => array('type' => 'check', 'inputlabel' => "Hide Watermark")
 126                  ),
 127                  'title'         => __( 'Website Watermark', 'pagelines' ),                        
 128                  'shortexp'         => __( 'Configure your website watermark (in footer)', 'pagelines' ),
 129                  'exp'            => ''
 130              ),
 131              'pagetitles' => array(
 132                      'default'    => true,
 133                      'type'        => 'check',
 134                      'inputlabel'=> __( 'Automatically show Page titles?', 'pagelines' ),
 135                      'title'        => __( 'Page Titles', 'pagelines' ),                        
 136                      'shortexp'    => __( 'Show the title of pages above the page content', 'pagelines' ),
 137                      'exp'        => __( 'This option will automatically place page titles on all pages.', 'pagelines' )
 138              ),
 139              'sidebar_no_default' => array(
 140                      'default'    => '',
 141                      'type'        => 'check',
 142                      'inputlabel'    => __( 'Hide Sidebars When Empty (no widgets)', 'pagelines' ),
 143                      'title'        => __( 'Remove Default Sidebars When Empty', 'pagelines' ),
 144                      'shortexp'    => __( 'Hide default sidebars when sidebars have no widgets in them', 'pagelines' ),
 145                      'exp'        => __( 'This allows you to remove sidebars completely when they have no widgets in them.', 'pagelines' )
 146              ),
 147              'sidebar_wrap_widgets' => array(
 148                      'default'     => 'top',
 149                      'version'    => 'pro',
 150                      'type'         => 'select',
 151                      'selectvalues'    => array(
 152                          'top'        => array('name' => __( 'On Top of Sidebar', 'pagelines') ),
 153                          'bottom'    => array('name' => __( 'On Bottom of Sidebar', 'pagelines') )
 154                      ),
 155                      'inputlabel'     => __( 'Sidebar Wrap Widgets Position', 'pagelines' ),
 156                      'title'     => __( 'Sidebar Wrap Widgets', 'pagelines' ),
 157                      'shortexp'     => __( 'Choose whether to show the sidebar wrap widgets on the top or bottom of the sidebar', 'pagelines' ),
 158                      'exp'         => __( 'You can select whether to show the widgets that you place in the sidebar wrap template in either the top or the bottom of the sidebar.', 'pagelines' )
 159              ),
 160          
 161          );
 162          
 163          if ( get_option( 'pagelines_email_sent') ) 
 164              unset($a['email_capture']);
 165              
 166          if ( pagelines_check_credentials() ) 
 167              unset($a['account_signup']);
 168          
 169          return apply_filters('pagelines_options_website_setup', $a);
 170      }
 171      
 172      /**
 173       * Layout Editor Interface & Options
 174       *
 175       * @since 2.0.0
 176       */
 177  	function layout_editor(){
 178  
 179          $a = array(
 180              'icon'            => PL_ADMIN_ICONS.'/layout.png',
 181              'layout_handling' => array(
 182                  'default'        => 'pixels',
 183                  'type'            => 'graphic_selector',
 184                  'inputlabel'    => __( 'How should layout be handled?', 'pagelines' ),
 185                  'showname'        => true,
 186                  'sprite'        => PL_ADMIN_IMAGES.'/sprite-layout-modes.png',
 187                  'height'        => '88px', 
 188                  'width'            => '130px',
 189                  'layout'        => 'interface',
 190                  'selectvalues'    => array(
 191                      'pixels'        => array( 'name' => __( 'Responsive with Pixel Width', 'pagelines' ), 'offset' => '0px 0px' ), 
 192                      'percent'        => array( 'name' => __( 'Responsive with % Width', 'pagelines' ), 'offset' => '0px -88px', 'version'    => 'pro' ), 
 193                      'static'        => array( 'name' => __( 'Static with Pixel Width', 'pagelines' ), 'offset' => '0px -176px' )
 194                  ),
 195                  'title'        => __( 'Layout Handling', 'pagelines' ),                        
 196                  'shortexp'    => __( 'Select between responsive vs. static; pixel based or percentage based layout', 'pagelines' ),
 197                  'exp'        => __( "Responsive layout adjusts to the size of your user's browser window; static is fixed width. Use this option to switch between the pixel based site width and a percentage based one.", 'pagelines' )
 198              ),
 199              'site_design_mode'    => array(
 200                  
 201                  'default'    => 'full_width',
 202                  'type'        => 'graphic_selector',
 203                  'showname'    => true,
 204                  'sprite'        => PL_ADMIN_IMAGES.'/sprite-design-modes.png',
 205                  'height'        => '88px', 
 206                  'width'            => '130px',
 207                  'layout'         => 'interface',    
 208                  'selectvalues'    => array(
 209                      'full_width'    => array('name' => __( "Full-Width Sections", 'pagelines' ), 'offset' => '0px 0px'),
 210                      'fixed_width'    => array('name' => __( "Fixed-Width Mode", 'pagelines' ), 'version' => 'pro', 'offset' => '0px -88px', 'version'    => 'pro')
 211                  ), 
 212                  'inputlabel'    => __( 'Site Design Mode', 'pagelines' ),
 213                  'title'        => __( 'Site Design Mode', 'pagelines' ),                        
 214                  'shortexp'    => __( 'The basic HTML layout structure for color and background effects', 'pagelines' ),
 215                  'exp'        => __( 'This option controls how the basic HTML layout is built. Different layout structures change the way background colors and images behave.<ul><li><strong>Full-Width Mode</strong> Full width design mode allows you to have aspects of your site that are the full-width of your screen; while others are the width of the content area.</li><li><strong>Fixed-Width Mode</strong> Fixed width design mode creates a fixed width <strong>page</strong> that can be used as the area for your design.  You can set a background to the page; and the content will have a seperate <strong>fixed-width</strong> background area (i.e. the width of the content).</li></ul>', 'pagelines' ),
 216              ),    
 217              'disable_mobile_view' => array(
 218                  'default'     => false,
 219                  'type'         => 'check',
 220                  'title'     => __( 'Disable Mobile Optimized View', 'pagelines' ),
 221                  'inputlabel'    => __( 'Disable Mobile View', 'pagelines' ),                
 222                  'shortexp'     => __( 'Forces mobile devices to see the full site', 'pagelines' ),
 223                  'exp'         => __( 'By default PageLines accommodates mobile devices resolution and shows a mobile optimized view. Check this option to make it so users see your full site.', 'pagelines' ),
 224              ),
 225              'layout_default' => array(
 226                  'type'             => 'graphic_selector',
 227                  'layout'         => 'interface',
 228                  'default'        => 'one-sidebar-right',    
 229                  'sprite'        => PL_ADMIN_IMAGES.'/sprite-layouts.png', 
 230                  'height'        => '50px', 
 231                  'width'            => '50px', 
 232                  'selectvalues'    => array(
 233                      'fullwidth'                => array( 'name' => __( 'Fullwidth layout', 'pagelines' ), 'offset' => '0px 0px'),
 234                      'one-sidebar-right'     => array( 'name' => __( 'One sidebar on right', 'pagelines' ), 'offset' => '0px -50px'),
 235                      'one-sidebar-left'        => array( 'name' => __( 'One sidebar on left', 'pagelines' ), 'offset' => '0px -100px'),
 236                      'two-sidebar-right'     => array( 'name' => __( 'Two sidebars on right', 'pagelines' ), 'version' => 'pro', 'offset' => '0px -150px' ),
 237                      'two-sidebar-left'         => array( 'name' => __( 'Two sidebars on left', 'pagelines' ), 'version' => 'pro', 'offset' => '0px -200px' ),
 238                      'two-sidebar-center'     => array( 'name' => __( 'Two sidebars, one on each side', 'pagelines' ), 'version' => 'pro', 'offset' => '0px -250px' ),
 239                  ),
 240                  'title'         => __( 'Default Layout Mode', 'pagelines' ),
 241                  'inputlabel'    => __( 'Select Default Layout', 'pagelines' ),                
 242                  'shortexp'         => __( 'Select your default layout mode, this can be changed on individual pages.<br />Once selected, you can adjust the layout in the Layout Dimension Editor', 'pagelines' ),
 243                  'exp'             => __( 'The default layout for pages and posts on your site. Dimensions can be changed using the Layout Dimension Editor.', 'pagelines' ),
 244                  'docslink'        => 'http://www.pagelines.com/wiki/index.php?title=How_to_Use_the_Layout_Editor_Settings'
 245              ),
 246              'layout' => array(
 247                  'default'    => 'one-sidebar-right',
 248                  'type'        => 'layout',
 249                  'layout'    => 'interface',
 250                  'title'        => __( 'Layout Dimension Editor', 'pagelines' ),                        
 251                  'shortexp'    => __( 'Configure the default layout sizes for your site, which is initially selected above in the Default Layout Mode. <br/>This option allows you to adjust columns and margins for the default layout', 'pagelines' ),
 252              ), 
 253              
 254              'resetlayout' => array(
 255                  'default'    => '',
 256                  'inputlabel'    => __("Reset Layout", 'pagelines'),
 257                  'type'         => 'reset',
 258                  'callback'    => 'reset_layout_to_default',
 259                  'title'     => __( 'Reset Layout To Default', 'pagelines' ),    
 260                  'layout'    => 'full',                    
 261                  'shortexp'    => __( 'Changes layout mode and dimensions back to default', 'pagelines' ),
 262              )
 263          );
 264          
 265          return apply_filters('pagelines_options_layout_editor', $a);
 266          
 267      }
 268      
 269      /**
 270       * Design Control and Color Options
 271       *
 272       * @since 2.0.0
 273       */
 274  	function color_control(){
 275  
 276          $a = array(    
 277              'icon'            => PL_ADMIN_ICONS.'/color.png',
 278              'page_colors'        => array(
 279                  'title'     => __( 'Basic Layout Colors', 'pagelines' ),                        
 280                  'shortexp'     => __( 'The main layout colors for your site', 'pagelines' ),
 281                  'exp'         => __( 'Use these options to quickly setup the main layout colors for your site.  You can use these options to build custom sites very quickly, or to quickly prototype a design then refine through custom CSS.<br/><br/><strong>Notes:</strong> <ol><li>To make the background transparent, you can leave the options blank (delete text).</li>  <li>Further customize and refine colors through custom CSS or plugins</li></ol>', 'pagelines' ),
 282                  'type'         => 'color_multi',
 283                  'layout'    => 'full',
 284                  'selectvalues'    => array(
 285                      'bodybg'    => array(                
 286                          'default'         => '#FFFFFF',
 287                          'css_prop'        => 'background-color',
 288                          'flag'            => 'set_default',
 289                          'cssgroup'        => 'bodybg',
 290                          'inputlabel'     => __( 'Body Background', 'pagelines' ),
 291                          
 292                      ),
 293                      'pagebg'        => array(                
 294                          'default'         => '',
 295                          'cssgroup'        =>    'pagebg',
 296                          'flag'            => 'blank_default',
 297                          'css_prop'        => 'background-color',
 298                          'inputlabel'     => __( 'Page Background (Optional)', 'pagelines' ),
 299                          ),
 300                      'contentbg'    => array(        
 301                          'default'         => '',
 302                          'cssgroup'        =>    'contentbg',
 303                          'flag'            => 'blank_default',
 304                          'css_prop'        => 'background-color',
 305                          'id'            => 'the_bg',
 306                          'inputlabel'     => __( 'Content Background (Optional)', 'pagelines' ),
 307                          'math'        => array(
 308                                  array( 
 309                                      'id'        => 'cascade', // use this for getting stored background color
 310                                      'mode'         => 'contrast', 
 311                                      'cssgroup'     => 'cascade', 
 312                                      'css_prop'     => 'background-color', 
 313                                      'diff'         => '1%', 
 314                                      'depends'     => pl_background_cascade()
 315                                  ),
 316                                  array( 
 317                                      'id'        => 'bg', // use this for getting stored background color
 318                                      'mode'         => 'contrast', 
 319                                      'cssgroup'     => 'border_layout', 
 320                                      'css_prop'     => 'border-color', 
 321                                      'diff'         => '8%', 
 322                                      'depends'     => pl_background_cascade()
 323                                  ),
 324                                  array(
 325                                      'mode'         => 'darker', 
 326                                      'cssgroup'     => 'border_layout_darker', 
 327                                      'css_prop'     => 'border-color', 
 328                                      'depends'     => pl_background_cascade()
 329                                  ), 
 330                                  array(
 331                                      'mode'         => 'lighter', 
 332                                      'cssgroup'     => 'border_layout_lighter', 
 333                                      'css_prop'     => 'border-color', 
 334                                      'depends'     => pl_background_cascade()
 335                                  ),
 336                                  
 337                                  array( 
 338                                      'id'        => 'box_bg',
 339                                      'mode'         => 'contrast', 
 340                                      'cssgroup'     => 'box_color_primary', 
 341                                      'css_prop'     => 'background-color', 
 342                                      'diff'         => '5%', 
 343                                      'depends'     => pl_background_cascade(),
 344                                      'math'        => array(
 345                                          array( 'id' => 'text_box', 'mode' => 'contrast', 'cssgroup' => 'text_box', 'css_prop' => 'color', 'diff' => '65%', 'math' => array(
 346                                              array( 'mode' => 'shadow', 'mixwith' => pl_background_cascade(), 'cssgroup' => array('text_box') ),
 347                                          )),
 348                                          array( 'id' => 'primary_border', 'mode' => 'contrast', 'cssgroup' => 'border_primary', 'css_prop' => 'border-color', 'diff' => '8%', 'math' => array(
 349                                              array( 'mode' => 'darker', 'cssgroup' => 'border_primary_shadow', 'css_prop' => array('border-left-color', 'border-top-color'), 'diff' => '10%'),
 350                                              array( 'mode' => 'lighter', 'cssgroup' => 'border_primary_highlight', 'css_prop' => array('border-left-color', 'border-top-color'), 'diff' => '15%'),
 351                                          )),
 352                                          array( 'mode' => 'darker', 'cssgroup' => 'border_primary_darker', 'css_prop' => 'border-color', 'diff' => '10%' ),
 353                                          array( 'mode' => 'lighter', 'cssgroup' => 'border_primary_lighter', 'css_prop' => 'border-color', 'diff' => '10%' ),
 354                                          array( 'id' => 'box_bg_secondary', 'mode' => 'contrast', 'cssgroup' => 'box_color_secondary', 'css_prop' => array('background-color'), 'diff' => '3%', 'math' => array(
 355                                              array( 'id' => 'text_box_second', 'mode' => 'contrast', 'cssgroup' => 'text_box_secondary', 'css_prop' => array('color'), 'diff' => '65%'),
 356                                              array( 'mode' => 'darker', 'cssgroup' => 'border_secondary', 'css_prop' => array('border-color'), 'diff' => '5%'),
 357                                              array( 'mode' => 'darker', 'cssgroup' => 'border_secondary', 'css_prop' => array('border-left-color', 'border-top-color'), 'diff' => '15%'),
 358                                              
 359                                          )),
 360                                          array( 'id' => 'box_bg_tertiary', 'mode' => 'contrast', 'cssgroup' => 'box_color_tertiary', 'css_prop' => array('background-color'), 'diff' => '6%','math' => array(
 361                                              array( 'mode' => 'darker', 'cssgroup' => 'border_tertiary', 'css_prop' => array('border-color'), 'diff' => '10%'),
 362                                              array( 'mode' => 'darker', 'cssgroup' => 'border_tertiary', 'css_prop' => array('border-left-color', 'border-top-color'), 'diff' => '15%'),
 363                                          )), 
 364                                          
 365                                      )
 366                                      
 367                                  ),
 368                                  
 369                                  array( 'mode' => 'lighter', 'cssgroup' => 'box_color_lighter', 'css_prop' => 'background-color'),
 370                              )
 371                          ),
 372                  ),
 373              ),
 374              'text_colors'        => array(
 375                  'title'         => __( 'Page Text Colors', 'pagelines' ),                        
 376                  'shortexp'         => __( 'Controls the color of text used throughout your site', 'pagelines' ),
 377                  'exp'             => __( 'These options control the colors of the text throughout the page or content area of your site.<br/><br/>Certain text types are designed to contrast with different box elements and are meant to be used with hover effects.<br/><br/>Experiment to find exactly how colors are combined with text on your site.', 'pagelines' ),
 378                  'type'             => 'color_multi',
 379                  'layout'        => 'full',
 380                  'selectvalues'    => array(
 381                      'text_primary' => array(        
 382                          'id'            => 'text_primary',
 383                          'default'         => '#000000',
 384                          'flag'            => 'set_default',
 385                          'cssgroup'        =>    'text_primary',
 386                          'inputlabel'     => __( 'Primary Text', 'pagelines' ),
 387                          'math'        => array(
 388                              array( 'mode' => 'mix', 'mixwith' => pl_background_cascade(), 'cssgroup' => 'text_secondary', 'css_prop' => 'color', 'diff' => '65%'),
 389                              array( 'mode' => 'shadow', 'mixwith' => pl_background_cascade(), 'cssgroup' => array('text_primary', 'text_secondary', 'text_tertiary') ),
 390                          )
 391                      ),
 392                      'headercolor'    => array(        
 393                          'default'     => '#000000',
 394                          'cssgroup'    => 'headercolor',
 395                          'flag'            => 'set_default',
 396                          'inputlabel'     => __( 'Text Headers', 'pagelines' ),
 397                          'math'        => array(
 398                              array( 'mode' => 'shadow', 'mixwith' => pl_background_cascade(), 'cssgroup' => 'headercolor'),
 399                          )
 400                      ),
 401                      
 402                      'linkcolor' => array(
 403                          'default'        => '#225E9B',
 404                          'cssgroup'        =>    'linkcolor',
 405                          'flag'            => 'set_default',
 406                          'inputlabel'     => __( 'Primary Links', 'pagelines' ),    
 407                          'math'            => array(
 408                              array( 'mode' => 'mix', 'mixwith' => pl_background_cascade(),  'cssgroup' => 'linkcolor_hover', 'css_prop' => 'color', 'diff' => '80%'),    
 409                              array( 'mode' => 'shadow', 'mixwith' => pl_background_cascade(), 'cssgroup' => 'linkcolor'),
 410                          )                
 411                      ),
 412                      'footer_text' => array(
 413                          'default'        => '#AAAAAA',
 414                          'cssgroup'        =>    'footer_highlight',
 415                          'flag'            => 'set_default',
 416                          'inputlabel'     => __( 'Footer Text', 'pagelines' ),    
 417                          'math'            => array(
 418                              array( 'mode' => 'mix', 'mixwith' => pl_body_bg(),  'cssgroup' => 'footer_text', 'css_prop' => 'color', 'diff' => '66%'),
 419                              array( 'mode' => 'shadow', 'mixwith' => pl_body_bg(), 'cssgroup' => array('footer_text', 'footer_highlight') ),
 420                          )                    
 421                      ),
 422                  ),
 423              ),
 424              'canvas_shadow' => array(
 425                  'title'         => __( 'Enable Content Shadow (Fixed Width Mode Only)', 'pagelines' ),                        
 426                  'shortexp'         => __( 'Adds a shadow on the fixed width content area for a little style', 'pagelines' ),
 427                  'exp'             => __( 'Check this option to enable a drop shadow on the canvas area when using fixed width mode.', 'pagelines' ),
 428                  'type'             => 'check',
 429                  'default'        => false,
 430                  'inputlabel'    => 'Content Shadow', 
 431                  'version'        => 'pro'
 432              ),
 433              'page_background_image' => array(
 434                  'title'     => __( 'Site Background Image (Optional)', 'pagelines' ),                        
 435                  'shortexp'     => __( 'Setup a background image for the background of your site', 'pagelines' ),
 436                  'exp'         => __( 'Use this option to apply a background image to your site. This option will be applied to different areas depending on the design mode you have set.<br/><br/><strong>Positioning</strong> Use percentages to position the images, 0% corresponds to the <strong>top</strong> or <strong>left</strong> side, 50% to center, etc..', 'pagelines' ),
 437                  'type'         => 'background_image',
 438                  'selectors'    => cssgroup('page_background_image')
 439              ),
 440              'supersize_bg' => array(
 441                  'title'         => __( '<strong>Supersize</strong> The Background Image (Fixed Width Mode Required)', 'pagelines' ),                        
 442                  'shortexp'         => __( 'Uses a script to set the background for full width and responsive design', 'pagelines' ),
 443                  'exp'             => __( 'Sets the background to match the width of the browser.', 'pagelines' ),
 444                  'type'             => 'check',
 445                  'default'        => true,
 446                  'inputlabel'    => 'Supersize The Background Image'
 447              ),
 448              
 449  
 450  
 451          );
 452          
 453          return apply_filters('pagelines_options_color_control', $a);
 454          
 455      }
 456      
 457      /**
 458       * Typography Options
 459       *
 460       * @since 2.0.0
 461       */
 462  	function typography(){
 463  
 464          $a = array(
 465              'icon'            => PL_ADMIN_ICONS.'/typography.png',
 466              'type_headers' => array(
 467                      'default'     => array( 'font' => 'helvetica', 'weight' => 'bold' ),
 468                      'type'         => 'typography',
 469                      'layout'    => 'full',
 470                      'selectors'    => cssgroup('type_headers'),
 471                      'inputlabel'     => 'Select Font',
 472                      'title'     => __( 'Typography - Text Headers', 'pagelines' ),
 473                      'shortexp'     => __( "Select and style your site's header tags (H1, H2, H3...)", 'pagelines' ),
 474                      'exp'         => __( "Set typography for your h1, h2, etc.. tags. <br/><br/><strong>*</strong> Denotes Web Safe Fonts<br/><strong>G</strong> Denotes Google Fonts<br/><br/><strong>Note:</strong> These options make use of the <a href='http://code.google.com/webfonts' target='_blank'>Google fonts API</a> to vastly increase the number of websafe fonts you can use.", 'pagelines' ),
 475                      'pro_note'    => __( 'The Pro version of this framework has over 50 websafe and Google fonts.', 'pagelines' )
 476              ),
 477  
 478              'type_primary' => array(
 479                      'default'     => array( 'font' => 'helvetica' ),
 480                      'type'        => 'typography',
 481                      'layout'    => 'full',
 482                      'selectors'    => cssgroup('type_primary'),
 483                      'inputlabel'=> __( 'Select Font', 'pagelines' ),
 484                      'title'     => __( 'Typography - Primary Font', 'pagelines' ),
 485                      'shortexp'     => __( 'Select and style the standard type used in your site (body)', 'pagelines' ),
 486                       'exp'         => __( "Set typography for your primary site text. This is assigned to your site's body tag. <br/><br/> <strong>*</strong> Denotes Web Safe Fonts<br/><strong>G</strong> Denotes Google Fonts", 'pagelines' ),
 487                      'pro_note'    => __( 'The Pro version of this framework has over 50 websafe and Google fonts.', 'pagelines' )
 488              ),
 489  
 490  
 491              'type_secondary' => array(
 492                      'default'     => array( 'font' => 'helvetica' ),
 493                      'type'         => 'typography',
 494                      'layout'    => 'full',
 495                      'selectors'    => cssgroup('type_secondary'),
 496                      'inputlabel'     => __( 'Select Font', 'pagelines' ),
 497                      'title'     => __( 'Typography - Secondary Font ', 'pagelines' ),
 498                       'shortexp'     => __( "Select and style your site's secondary or sub title text (Metabar, Sub Titles, etc..)", 'pagelines' ),
 499                      'exp'         => __( 'This options sets the typography for secondary text used throughout your site. This includes your navigation, subtitles, widget titles, etc.. <br/><br/> <strong>*</strong> Denotes Web Safe Fonts<br/><strong>G</strong> Denotes Google Fonts', 'pagelines' ),
 500                      'pro_note'    => __( 'The Pro version of this framework has over 50 websafe and Google fonts.', 'pagelines' )
 501              ),
 502  
 503              'type_inputs' => array(
 504                      'version'     => 'pro',
 505                      'default'     => array( 'font' => 'helvetica' ),
 506                      'type'         => 'typography',
 507                      'layout'    => 'full',
 508                      'selectors'    => cssgroup('type_inputs'),
 509                      'inputlabel'     => __( 'Select Font', 'pagelines' ),
 510                      'title'     => __( 'Typography - Inputs and Textareas', 'pagelines' ),
 511                      'shortexp'     => __( "Select and Style Your Site's Text Inputs and Textareas", 'pagelines' ),
 512                      'exp'         => __( "This options sets the typography for general text inputs and textarea inputs. This includes default WordPress comment fields, etc.. <br/><br/> This option makes use of the <a href='http://code.google.com/webfonts'>Google fonts API</a> to vastly increase the number of websafe fonts you can use.<br/><strong>*</strong> Denotes web safe fonts<br/><strong>G</strong> Denotes Google fonts<br/><br/><strong>Note:</strong> the <strong>preview</strong> pane represents the font in your current browser and OS. If developing locally, Google fonts require an internet connection.", 'pagelines' ),
 513              ),
 514  
 515              'typekit_script' => array(
 516                      'default'    => "",
 517                      'type'        => 'textarea',
 518                      'inputlabel'    => __( 'Typekit Header Script', 'pagelines' ),
 519                      'title'        => __( 'Typekit Font Replacement', 'pagelines' ),
 520                      'shortexp'    => __( 'Typekit is a service that allows you to use tons of new fonts on your site', 'pagelines' ),
 521                      'exp'        => __( "Typekit is a new service and technique that allows you to use fonts outside of the 10 or so <strong>web-safe</strong> fonts. <br/><br/>Visit <a href='http://www.typekit.com' target='_blank'>Typekit.com</a> to get the script for this option. Instructions for setting up Typekit are <a href='http://typekit.assistly.com/portal/article/6780-Adding-fonts-to-your-site' target='_blank'>here</a>.", 'pagelines')
 522              ),
 523              'fontreplacement' => array(
 524                      'version'    => 'pro',
 525                      'default'    => false,
 526                      'type'        => 'check',
 527                      'inputlabel'=> __( 'Use Cufon font replacement?', 'pagelines' ),
 528                      'title'        => __( 'Use Cufon Font Replacement', 'pagelines' ),
 529                      'shortexp'    => __( 'Use a special font replacement technique for certain text', 'pagelines' ),
 530                      'exp'        => sprintf( __( "Cufon is a special technique for allowing you to use fonts outside of the 10 or so <strong>web-safe</strong> fonts. <br/><br/>%s is equipped to use it.  Select this option to enable it. Visit the <a href='http://cufon.shoqolate.com/generate/'>Cufon site</a>.", 'pagelines' ), PL_NICETHEMENAME )
 531              ),
 532              'font_file'    => array(
 533                      'version'    => 'pro',
 534                      'default'    => '',
 535                      'type'        => 'text',
 536                      'inputlabel'    => __( 'Cufon replacement font file URL', 'pagelines' ),
 537                      'title'        => __( 'Cufon: Replacement Font File URL', 'pagelines' ),
 538                      'shortexp'    => __( 'The font file used to replace text', 'pagelines' ),
 539                      'exp'        => __( "Use the <a href='http://cufon.shoqolate.com/generate/'>Cufon site</a> to generate a font file for use with this theme.  Place it in your theme folder and add the full URL to it here. The default font is Museo Sans.", 'pagelines' )
 540              ),
 541              'replace_font' => array(
 542                      'version'    => 'pro',
 543                      'default'    => 'h1',
 544                      'type'        => 'text',
 545                      'inputlabel'=> __( 'CSS elements for font replacement', 'pagelines' ),
 546                      'title'        => __( 'Cufon: CSS elements for font replacement', 'pagelines' ),
 547                      'shortexp'    => __( 'Add selectors of elements you would like replaced', 'pagelines' ),
 548                      'exp'        => __( 'Use standard CSS selectors to replace them with your Cufon font. Font replacement must be enabled.', 'pagelines' )
 549              ),
 550          );
 551          
 552          return apply_filters('pagelines_options_typography', $a);
 553          
 554      }
 555      
 556      /**
 557       * Header and Footer Options
 558       *
 559       * @since 2.0.0
 560       */
 561  	function header_footer(){
 562  
 563          $a = array(
 564              'icon'            => PL_ADMIN_ICONS.'/header.png',
 565              'drop_down_options' => array(
 566                  'default' => '',
 567                  'type' => 'check_multi',
 568                  'selectvalues'=> array(
 569          
 570                      'enable_drop_down'    => array(
 571                          'default'        => false,
 572                          'type'            => 'check',
 573                          'scope'            => '',
 574                          'inputlabel'    => __( 'Enable Drop Down Navigation?', 'pagelines' ),
 575                          'title'            => __( 'Drop Down Navigation', 'pagelines' ),
 576                          'shortexp'        => __( 'Enable universal drop down navigation', 'pagelines' ),
 577                          'exp'            => __( 'Checking this option will create drop down menus for all child pages when users hover over main navigation items.', 'pagelines' )
 578                          ),
 579                      'drop_down_shadow'    => array(
 580                          'default'        => true,
 581                          'type'            => 'check',
 582                          'scope'            => '',
 583                          'inputlabel'    => __( 'Enable Shadow on Drop Down Menu?', 'pagelines' ),
 584                          'title'            => __( 'Drop Down Shadow', 'pagelines' ),
 585                          'shortexp'        => __( 'Enable shadow for drop down navigation', 'pagelines' ),
 586                          'exp'            => __( 'Checking this option will create shadows for the drop down menus', 'pagelines' )
 587                          ),
 588                      'drop_down_arrows'    => array(
 589                          'default'        => true,
 590                          'type'            => 'check',
 591                          'scope'            => '',
 592                          'inputlabel'    => __( 'Enable Arrows on Drop Down Menu?', 'pagelines' ),
 593                          'title'            => __( 'Drop Down Arrows', 'pagelines' ),
 594                          'shortexp'        => __( 'Enable arrows for drop down navigation', 'pagelines' ),
 595                          'exp'            => __( 'Checking this option will create arrows for the drop down menus', 'pagelines' )
 596                          )),
 597                  'inputlabel'            => __( 'Select Which Drop Down Options To Show', 'pagelines' ),
 598                  'title'                    => __( 'Nav Classic &amp; BrandNav Section - Drop Down Handling', 'pagelines' ),                        
 599                  'shortexp'                => __( 'Select which to show', 'pagelines' ),
 600                  'exp'                    => __( 'Enable drop downs and choose the options you would like to show', 'pagelines' ) 
 601               
 602              ),
 603              'hidesearch' => array(
 604                      'version'            => 'pro',
 605                      'default'            => false,
 606                      'type'                => 'check',
 607                      'inputlabel'        => __( 'Hide search field?', 'pagelines' ),
 608                      'title'                => __( 'Nav Classic - Hide Search', 'pagelines' ),                        
 609                      'shortexp'            => __( 'Remove the search field from the nav section', 'pagelines' ),
 610                      'exp'                => __( 'Removes the search field from the PageLines Navigation Section.', 'pagelines' )
 611                  ), 
 612              'icon_position'        => array(
 613                      'version'    => 'pro',
 614                      'type'        => 'text_multi',
 615                      'inputsize'    => 'tiny',
 616                      'selectvalues'    => array(
 617                          'icon_pos_bottom'    => array('inputlabel'=> __( 'Distance From Bottom (in pixels)', 'pagelines' ), 'default'=> 12),
 618                          'icon_pos_right'    => array('inputlabel'=> __( 'Distance From Right (in pixels)', 'pagelines' ), 'default'=> 1),
 619                      ),
 620                      'title'        => __( 'Branding Section - Social Icon Position', 'pagelines' ),
 621                      'shortexp'    => __( 'Control the location of the social icons in the branding section', 'pagelines' ),
 622                      'exp'        => __( 'Set the position of your header icons with these options. They will be relative to the <strong>branding</strong> section of your site.', 'pagelines' )
 623              ),
 624              'rsslink' => array(
 625                      'default'    => true,
 626                      'type'        => 'check',
 627                      'inputlabel'=> __( 'Display the Blog RSS icon and link?', 'pagelines' ),
 628                      'title'        => __( 'News/Blog RSS Icon', 'pagelines' ),
 629                      'shortexp'    => __( 'Places a news/blog RSS icon in your header', 'pagelines' ),
 630                      'exp'        => ''
 631                  ),
 632              'facebook_headers'    => array(
 633                  'default'    => false,
 634                  'type'        => 'check',
 635                  'inputlabel'=> __( 'Display facebook Opengraph data in page header?', 'pagelines' ),
 636                  'title'        => __( 'Facebook Opengraph', 'pagelines' ),
 637                  'shortexp'    => __( 'Places the special og: data in page <head> area.', 'pagelines' ),
 638                  'exp'        => ''
 639              ),
 640              'icon_social' => array(
 641                      'version'    => 'pro',
 642                      'type'        => 'text_multi',
 643                      'inputsize'    => 'regular',
 644                      'selectvalues'    => array(
 645                          'gpluslink'            => array('inputlabel'=> __( 'Your Google+ Profile URL', 'pagelines' ), 'default'=> ''),
 646                          'facebooklink'        => array('inputlabel'=> __( 'Your Facebook Profile URL', 'pagelines' ), 'default'=> ''),
 647                          'twitterlink'        => array('inputlabel'=> __( 'Your Twitter Profile URL', 'pagelines' ), 'default'=> ''),
 648                          'linkedinlink'        => array('inputlabel'=> __( 'Your LinkedIn Profile URL', 'pagelines' ), 'default'=> ''),
 649                          'youtubelink'        => array('inputlabel'=> __( 'Your YouTube Profile URL', 'pagelines' ), 'default'=> ''),
 650                      ),
 651                      'title'        => __( 'Social Icons', 'pagelines' ),
 652                      'shortexp'    => __( 'Add social network profile icons to your header', 'pagelines' ),
 653                      'exp'        => __( 'Fill in the URLs of your social networking profiles. This option will create icons in the header/branding section of your site.', 'pagelines' )
 654              ),
 655              'nav_use_hierarchy' => array(
 656                      'default'    => false,
 657                      'type'        => 'check',
 658                      'inputlabel'=> __( 'Use Child Pages For Secondary Nav?', 'pagelines' ),
 659                      'title'        => __( 'Secondary Nav - Use Child Pages', 'pagelines' ),
 660                      'shortexp'    => __( 'Use this options if you want child pages in secondary nav, instead of WP menus', 'pagelines' ),
 661                      'exp'        => ''
 662                  ),
 663              'footer_num_columns' => array(
 664                  'type'             => 'count_select',        
 665                  'count_start'    => '1',
 666                  'count_number'    => '6', 
 667                  'title'         => __( 'FootCols Section - Column Number', 'pagelines' ),
 668                  'shortexp'         => __( 'Control the number of columns per row in your footer columns section', 'pagelines' ),
 669                  'inputlabel'    => __( 'Select Number of Footer Columns', 'pagelines' )
 670              ),
 671              'footer_logo' => array(
 672                      'version'    => 'pro',
 673                      'default'    => PL_IMAGES.'/logo-small.png',
 674                      'type'        => 'image_upload',
 675                      'imagepreview'    => '100',
 676                      'inputlabel'    => __( 'Add Footer logo', 'pagelines' ),
 677                      'title'        => __( 'FootCols Section - Logo', 'pagelines' ),
 678                      'shortexp'    => __( 'Show a logo in the footer', 'pagelines' ),
 679                      'exp'        => __( 'Add the full url of an image for use in the footer. Recommended size: 140px wide.', 'pagelines' )
 680              ),
 681              'footer_more' => array(
 682                      'default'    => sprintf( __( "Thanks for dropping by! Feel free to join the discussion by leaving comments, and stay updated by subscribing to the <a href='%s'>RSS feed</a>.", 'pagelines' ), get_bloginfo('rss2_url') ),
 683                      'type'        => 'textarea',
 684                      'inputlabel'=> __( 'More Statement In Footer', 'pagelines' ),
 685                      'title'        => __( 'FootCols Section - More Statement', 'pagelines' ),
 686                      'shortexp'    => __( 'Add a quick statement for users who want to know more...', 'pagelines' ),
 687                      'exp'        => __( "This statement will show in the footer columns under the word more. It is for users who may want to know more about your company or service.", 'pagelines' )
 688              ),
 689              'footer_terms' => array(
 690                      'default'     => '&copy; '.date('Y').' '.get_bloginfo('name'),
 691                      'type'         => 'textarea',
 692                      'inputlabel'=> __( 'Terms line in footer:', 'pagelines' ),
 693                      'title'     => __( 'FootCols Section - Site Terms Statement', 'pagelines' ),
 694                      'shortexp'     => __( 'A line in your footer for <strong>terms and conditions</strong> text or similar', 'pagelines' ),
 695                      'exp'         => __( "It's sometimes a good idea to give your users a terms and conditions statement so they know how they should use your service or content.", 'pagelines' )
 696              )
 697          );
 698          
 699          return apply_filters('pagelines_options_header_footer', $a);
 700          
 701      }
 702  
 703      /**
 704       * Blog and Post Options
 705       *
 706       * @since 2.0.0
 707       */
 708  	function blog_posts(){
 709  
 710          $a = array(
 711              'icon'            => PL_ADMIN_ICONS.'/blog.png',
 712              'blog_layout_mode'    => array(
 713                      'default'        => 'magazine',
 714                      'default_free'    => 'blog',
 715                      'type'            => 'graphic_selector',
 716                      'showname'        => true,
 717                      'sprite'        => PL_ADMIN_IMAGES.'/sprite-blog-modes.png',
 718                      'height'        => '90px', 
 719                      'width'            => '115px',
 720                      'layout'        => 'interface',
 721                      'selectvalues'    => array(
 722                          'magazine'    => array('name' => __( "Magazine Layout Mode", 'pagelines' ), 'version' => 'pro', 'offset' => '0px -90px', 'version' => 'pro'),
 723                          'blog'        => array('name' => __( "Blog Layout Mode", 'pagelines' ), 'offset' => '0px 0px')
 724                          ), 
 725                      'inputlabel'    => __( 'Select Post Layout Mode', 'pagelines' ),
 726                      'title'            => __( 'Blog Post Layout Mode', 'pagelines' ),                        
 727                      'shortexp'        => __( 'Choose between magazine style and blog style layout', 'pagelines' ),
 728                      'exp'            => __( 'Choose between two magazine or blog layout mode. <br/><br/> <strong>Magazine Layout Mode</strong><br/> Magazine layout mode makes use of post <strong>clips</strong>. These are summarized excerpts shown at half the width of the main content column.<br/>  <strong>Note:</strong> There is an option for showing <strong>full-width</strong> posts on your main <strong>posts</strong> page.<br/><br/><strong>Blog Layout Mode</strong><br/> This is your classical blog layout. Posts span the entire width of the main content column.', 'pagelines' )
 729                  ), 
 730              'excerpt_mode_full' => array(
 731                  'default'        => 'left',
 732                  'type'            => 'graphic_selector',
 733                  'inputlabel'    => __( 'Select Excerpt Mode', 'pagelines' ),
 734                  'showname'        => true,
 735                  'sprite'        => PL_ADMIN_IMAGES.'/sprite-excerpt-modes.png',
 736                  'height'        => '50px', 
 737                  'width'            => '62px',
 738                  'layout'        => 'interface',
 739                  'selectvalues'    => array(
 740                      'left'            => array( 'name' => __( 'Left Justified', 'pagelines' ), 'offset' => '0px -50px' ), 
 741                      'top'            => array( 'name' => __( 'On Top', 'pagelines' ), 'offset' => '0px 0px', 'version' => 'pro' ), 
 742                      'left-excerpt'    => array( 'name' => __( 'Left, In Excerpt', 'pagelines' ), 'offset' => '0px -100px' ), 
 743                      'right-excerpt'    => array( 'name' => __( 'Right, In Excerpt', 'pagelines' ), 'offset' => '0px -150px', 'version' => 'pro' ), 
 744                      
 745                  ),
 746                  'title'        => __( 'Feature Post Excerpt Mode', 'pagelines' ),                        
 747                  'shortexp'    => __( 'Select how thumbs should be handled in full-width posts', 'pagelines' ),
 748                  'exp'        => __( 'Use this option to configure how thumbs will be shown in full-width posts on your blog page.', 'pagelines' )
 749              ),
 750              'metabar_standard' => array(
 751                  'default'        => 'By [post_author_posts_link] On [post_date] &middot; [post_comments] [post_edit]',
 752                  'type'            => 'text',
 753                  'inputlabel'    => __( 'Configure Full Width Post Metabar', 'pagelines' ),
 754                  'title'            => __( 'Full Width Post Meta', 'pagelines' ),                
 755                  'layout'        => 'full',        
 756                  'shortexp'        => __( 'Additional information about a post such as Author, Date, etc...', 'pagelines' ),
 757                  'exp'            => __( 'Use shortcodes to control the dynamic information in your metabar. Example shortcodes you can use are: <ul><li><strong>[post_categories]</strong> - List of categories</li><li><strong>[post_edit]</strong> - Link for admins to edit the post</li><li><strong>[post_tags]</strong> - List of post tags</li><li><strong>[post_comments]</strong> - Link to post comments</li><li><strong>[post_author_posts_link]</strong> - Author and link to archive</li><li><strong>[post_author_link]</strong> - Link to author URL</li><li><strong>[post_author]</strong> - Post author with no link</li><li><strong>[post_time]</strong> - Time of post</li><li><strong>[post_date]</strong> - Date of post</li><li><strong>[post_type]</strong> - Type of post</li></ul>', 'pagelines' )
 758              ),
 759              'excerpt_mode_clip' => array(
 760                  'version'        => 'pro',
 761                  'default'        => 'left',
 762                  'type'            => 'graphic_selector',
 763                  'inputlabel'    => __( 'Select Clip Excerpt Mode', 'pagelines' ),
 764                  'showname'        => true,
 765                  'sprite'        => PL_ADMIN_IMAGES.'/sprite-excerpt-modes.png',
 766                  'height'        => '50px', 
 767                  'width'            => '62px',
 768                  'layout'        => 'interface',
 769                  'selectvalues'    => array(
 770                      'left'            => array( 'name' => __( 'Left Justified', 'pagelines' ), 'offset' => '0px -50px' ), 
 771                      'top'            => array( 'name' => __( 'On Top', 'pagelines' ), 'offset' => '0px 0px' ), 
 772                      'left-excerpt'    => array( 'name' => __( 'Left, In Excerpt', 'pagelines' ), 'offset' => '0px -100px' ), 
 773                      'right-excerpt'    => array( 'name' => __( 'Right, In Excerpt', 'pagelines' ), 'offset' => '0px -150px' ), 
 774                      
 775                  ),
 776                  'title'        => __( 'Clip Excerpt Mode', 'pagelines' ),                        
 777                  'shortexp'    => __( 'Select how thumbs should be handled in clips', 'pagelines' ),
 778                  'exp'        => __( 'Use this option to configure how thumbs will be shown in clips. These are the smaller <strong>magazine</strong> style excerpts on your blog page.', 'pagelines' )
 779              ),
 780              'metabar_clip' => array(
 781                  'version'        => 'pro',
 782                  'default'        => 'On [post_date] By [post_author_posts_link] [post_edit]',
 783                  'type'            => 'text',
 784                  'layout'        => 'full',
 785                  'inputlabel'    => __( 'Configure Clip Metabar', 'pagelines' ),
 786                  'title'            => __( 'Clip Metabar', 'pagelines' ),                        
 787                  'shortexp'        => __( 'Additional information about a clip such as Author, Date, etc...', 'pagelines' ),
 788                  'exp'            => __( 'Use shortcodes to control the dynamic information in your metabar. Example shortcodes you can use are: <ul><li><strong>[post_categories]</strong> - List of categories</li><li><strong>[post_edit]</strong> - Link for admins to edit the post</li><li><strong>[post_tags]</strong> - List of post tags</li><li><strong>[post_comments]</strong> - Link to post comments</li><li><strong>[post_author_posts_link]</strong> - Author and link to archive</li><li><strong>[post_author_link]</strong> - Link to author URL</li><li><strong>[post_author]</strong> - Post author with no link</li><li><strong>[post_time]</strong> - Time of post</li><li><strong>[post_date]</strong> - Date of post</li></ul>', 'pagelines' )
 789              ),
 790              'full_column_posts'    => array(
 791                      'version'        => 'pro',
 792                      'default'        => 2,
 793                      'type'            => 'count_select',
 794                      'count_number'    => get_option('posts_per_page'),
 795                      'inputlabel'    => __( 'Number of Full Width Posts?', 'pagelines' ),
 796                      'title'            => __( 'Full Width Posts (Magazine Layout Mode Only)', 'pagelines' ),                        
 797                      'shortexp'        => __( 'When using magazine layout mode, select the number of <strong>featured</strong> or full-width posts', 'pagelines' ),
 798                      'exp'            => __( 'Select the number of posts you would like shown at the full width of the main content column in magazine layout mode (the rest will be half-width post <strong>clips</strong>).', 'pagelines' )
 799                  ),
 800              'thumb_handling' => array(
 801                      'type'        => 'check_multi',
 802                      'selectvalues'    => array(
 803                          'thumb_blog'        => array('inputlabel'=> __( 'Posts/Blog Page', 'pagelines' ), 'default'=> true),
 804                          'thumb_single'        => array('inputlabel'=> __( 'Single Post Pages', 'pagelines' ), 'default'=> false),
 805                          'thumb_search'         => array('inputlabel'=> __( 'Search Results', 'pagelines' ), 'default'=> false),
 806                          'thumb_category'     => array('inputlabel'=> __( 'Category Lists', 'pagelines' ), 'default'=> true),
 807                          'thumb_archive'     => array('inputlabel'=> __( 'Post Archives', 'pagelines' ), 'default'=> true),
 808                          'thumb_clip'         => array('inputlabel'=> __( 'In Post Clips (Magazine Mode)', 'pagelines' ), 'default'=> true),
 809                      ),
 810                      'title'        => __( 'Post Thumbnail Placement', 'pagelines' ),
 811                      'shortexp'    => __( 'Where should the theme use post thumbnails?', 'pagelines' ),
 812                      'exp'        => __( 'Use this option to control where post <strong>featured images</strong> or thumbnails are used. Note: The post clips option only applies when magazine layout is selected.', 'pagelines' )
 813              ),
 814              'excerpt_handling' => array(
 815                      'type'        => 'check_multi',
 816                      'selectvalues'    => array(
 817                          'excerpt_blog'        => array('inputlabel'=> __( 'Posts/Blog Page', 'pagelines' ), 'default'=> true),
 818                          'excerpt_single'    => array('inputlabel'=> __( 'Single Post Pages', 'pagelines' ), 'default'=> false),
 819                          'excerpt_search'    => array('inputlabel'=> __( 'Search Results', 'pagelines' ), 'default'=> true),
 820                          'excerpt_category'     => array('inputlabel'=> __( 'Category Lists', 'pagelines' ), 'default'=> true),
 821                          'excerpt_archive'     => array('inputlabel'=> __( 'Post Archives', 'pagelines' ), 'default'=> true),
 822                      ),
 823                      'title'        => __( 'Post Excerpt or Summary Handling', 'pagelines' ),
 824                      'shortexp'    => __( 'Where should the theme use post excerpts when showing full column posts?', 'pagelines' ),
 825                      'exp'        => __( 'This option helps you control where post excerpts are displayed.<br/><br/> <strong>About:</strong> Excerpts are small summaries of articles filled out when creating a post.', 'pagelines' )
 826              ),
 827              
 828              'social_shares' => array(
 829                      'type'        => 'check_multi',
 830                      'selectvalues'    => array(
 831                          'share_facebook'    => array('inputlabel'=> __( 'Facebook', 'pagelines' ), 'default'=> true),
 832                          'share_twitter'        => array('inputlabel'=> __( 'Twitter', 'pagelines' ), 'default'=> true),
 833                          'twitter_hash'        => array('inputlabel'=> __( 'Twitter - Add #Hashtag', 'pagelines' ), 'default'=> true, 'version' => 'pro'),
 834                          'twitter_via'        => array('inputlabel'=> __( 'Twitter - Show Via @Handle', 'pagelines' ), 'default'=> false, 'version' => 'pro'),
 835                          'share_stumble'        => array('inputlabel'=> __( 'StumbleUpon', 'pagelines' ), 'default'=> false, 'version' => 'pro'),
 836                          'share_google'        => array('inputlabel'=> __( 'Google+', 'pagelines' ), 'default'=> true),
 837                          'share_buffer'        => array('inputlabel'=> __( 'Buffer', 'pagelines' ), 'default'=> false, 'version' => 'pro'),
 838                          'share_linkedin'    => array('inputlabel'=> __( 'LinkedIn', 'pagelines' ), 'default'=> false),
 839                          'share_pinterest'    => array('inputlabel'=> __( 'Pinterest', 'pagelines' ), 'default'=> true, 'version' => 'pro'),
 840                          'share_under_meta'    => array('inputlabel'=> __( 'Add Shares Under Metabar', 'pagelines' ), 'default'=> false, 'version' => 'pro'),
 841                      ),
 842                      'inputlabel'=> __( 'Select Which Share Buttons To Show', 'pagelines' ),
 843                      'title'        => __( 'Sharebar Social Sharing Buttons', 'pagelines' ),                        
 844                      'shortexp'    => __( 'Select which to show and configure appearance', 'pagelines' ),
 845                      'exp'        => __( "Select which social sharing buttons you would like to use in your Sharebar.<br/><br/> <strong>Note:</strong> that since these use iFrames and javascript (provided by the companies themselves) they may be hard to style and control.", 'pagelines' )
 846              ),
 847              'continue_reading_text' => array(
 848                      'version'    => 'pro',
 849                      'default'    => 'Read More',
 850                      'type'        => 'text',
 851                      'inputlabel'=> __( 'Continue Reading Link Text', 'pagelines' ),
 852                      'title'        => __( '<strong>Continue Reading</strong> Link Text (When Using Excerpts)', 'pagelines' ),                        
 853                      'shortexp'    => __( 'The link at the end of your excerpt', 'pagelines' ),
 854                      'exp'         => __( "This text will be used as the link to your full article when viewing articles on your posts page (when excerpts are turned on).", 'pagelines' )
 855              ),
 856              'content_handling' => array(
 857                      'type'        => 'check_multi',
 858                      'selectvalues'=> array(
 859                          'content_blog'        => array('inputlabel'=> __( 'Posts/Blog Page', 'pagelines' ), 'default'=> false),
 860                          'content_search'    => array('inputlabel'=> __( 'Search Results', 'pagelines' ), 'default'=> false),
 861                          'content_category'     => array('inputlabel'=> __( 'Category Lists', 'pagelines' ), 'default'=> false),
 862                          'content_archive'     => array('inputlabel'=> __( 'Post Archives', 'pagelines' ), 'default'=> false),
 863                      ),
 864                      'title'        => __( 'Full Post Content', 'pagelines' ),
 865                      'shortexp'    => __( 'In addition to single post pages and page templates, where should the theme place the full content of posts?', 'pagelines' ),
 866                      'exp'        => __( 'Choose where the full content of posts is displayed. Choose between all posts pages or just single post pages (i.e. posts pages can just show excerpts or titles).', 'pagelines' )
 867              ),
 868  
 869              'excerpt_len' => array(
 870                      'version'    => 'pro',
 871                      'default'     => 55,
 872                      'type'         => 'text',
 873                      'inputlabel'=> __( 'Number of words.', 'pagelines' ),
 874                      'title'     => __( 'Excerpt Length', 'pagelines' ),
 875                      'shortexp'     => __( 'Set the length of excerpts to something other than default', 'pagelines' ),
 876                      'exp'         => __( 'Excerpts are set to 55 words by default.', 'pagelines' )
 877              ),
 878              'excerpt_tags' => array(
 879                      'version'    => 'pro',
 880                      'default'     => '<a>',
 881                      'type'         => 'text',
 882                      'inputlabel'=> __( 'Allowed Tags', 'pagelines' ),
 883                      'title'     => __( 'Allow Tags in Excerpt', 'pagelines' ),
 884                      'shortexp'     => __( 'Control which tags are stripped from excerpts', 'pagelines' ),
 885                      'exp'         => __( 'By default WordPress strips all HTML tags from excerpts. You can use this option to allow certain tags. Simply enter the allowed tags in this field. <br/>An example of allowed tags could be: <strong>&lt;p&gt;&lt;br&gt;&lt;a&gt;</strong>. <br/><br/> <strong>Note:</strong> Enter a period <strong>.</strong> to disallow all tags.', 'pagelines' )
 886              )            
 887          );
 888          
 889          return apply_filters('pagelines_options_blog_posts', $a);
 890          
 891      }
 892      
 893      /**
 894       * Advanced and Misc Options
 895       *
 896       * @since 2.0.0
 897       */
 898  	function advanced(){
 899  
 900          $a = array(
 901              'icon'            => PL_ADMIN_ICONS.'/settings.png',
 902  
 903              'google_ie' => array(
 904                      'default'    => false,
 905                      'type'        => 'check',
 906                      'inputlabel'=> __( 'Include Google IE Compatibility Script?', 'pagelines' ),
 907                      'title'        => __( 'Google IE Compatibility Fix', 'pagelines' ),
 908                      'shortexp'    => __( 'Include a Google JS script that fixes problems with IE', 'pagelines' ),
 909                      'exp'        => __( "More info on this can be found <a target='_blank' href='http://code.google.com/p/ie7-js/'>here</a>.", 'pagelines' )
 910              ),
 911              'load_prettify_libs' => array(
 912                      'default'    => false,
 913                      'type'        => 'check',
 914                      'inputlabel'=> __( 'Enable Code Prettify?', 'pagelines' ),
 915                      'title'        => __( 'Google Prettify Code', 'pagelines' ),
 916                      'shortexp'    => __( 'Adds pretty syntax highlighting for code.', 'pagelines' ),
 917                      'exp'        => __( "Add a class of 'prettyprint' to code or pre tags, or optionally use the [pl_codebox] shortcode. Wrap the codebox shortcode using [pl_raw] if Wordpress inserts line breaks.", 'pagelines' )
 918              ),
 919              'partner_link'     => array(
 920                      'default'    => '',
 921                      'type'        => 'text',
 922                      'inputlabel'=> __( 'Enter Partner Link', 'pagelines' ),
 923                      'title'        => __( 'PageLines Affiliate/Partner Link', 'pagelines' ),
 924                      'shortexp'    => __( 'Change a your PageLines footer link to a PageLines affiliate link', 'pagelines' ),
 925                      'exp'        => __( "If you are a <a target='_blank' href='http://www.pagelines.com'>PageLines Partner</a> enter your link here and the footer link will become a partner or affiliate link.", 'pagelines' )
 926              ),
 927  
 928              'disable_ajax_save' => array(
 929                      'default'    => '',
 930                      'type'        => 'check',
 931                      'inputlabel'=> __( 'Disable AJAX Saving?', 'pagelines' ),
 932                      'title'        => __( 'Disable AJAX Saving', 'pagelines' ),
 933                      'shortexp'    => __( 'Check to disable AJAX saving', 'pagelines' ),
 934                      'exp'        => __( "Check this option if you are having problems with AJAX saving. For example, if design control or typography options aren't working", 'pagelines' )
 935              ),
 936  
 937              'special_body_class'     => array(
 938                      'default'    => '',
 939                      'version'    => 'pro',
 940                      'type'        => 'text',
 941                      'inputlabel'=> __( 'Install Class', 'pagelines' ),
 942                      'title'        => __( 'Current Install Class', 'pagelines' ),
 943                      'shortexp'    => __( 'Add a special body class to this install of PageLines', 'pagelines' ),
 944                      'exp'        => __( "Use this option to add a class to the &gt;body&lt; element of the website. This can be useful when using the same child theme on several installations or sub domains and can be used to control CSS customizations.", 'pagelines' )
 945              ),
 946              'enable_debug' => array(
 947                      'default'    => '',
 948                      'version'    => 'pro',
 949                      'type'        => 'check',
 950                      'inputlabel'=> __( 'Enable debug?', 'pagelines' ),
 951                      'title'        => __( 'PageLines debug', 'pagelines' ),
 952                      'shortexp'    => __( 'Show detailed settings information', 'pagelines' ),
 953                      'exp'        =>    sprintf( __( 'This information can be useful in the forums if you have a problem. %s', 'pagelines' ),
 954                                      sprintf( '%s', ( ploption( 'enable_debug' ) ) ? 
 955                                      sprintf( '<br /><a href="%s">Click here</a> for your debug info.', site_url( '?pldebug=1' ) ) : '' ) )
 956              ),
 957              'pl_minify' => array(
 958                      'default'    => false,
 959                      'type'        => 'check',
 960                      'inputlabel'=> __( 'Enable CSS minification?', 'pagelines' ),
 961                      'title'        => __( 'Minification', 'pagelines' ),
 962                      'shortexp'    => __( 'Strips whitespace from compiled CSS.', 'pagelines' ),
 963                      'exp'        => ""
 964              ),
 965              'hide_controls_meta'     => array(
 966                      'default'         => 'publish_posts',
 967                      'version'        => 'pro',
 968                      'type'             => 'select',
 969                      'selectvalues'    => array(
 970                          'edit_users'            => array('name' => __( 'Administrator', 'pagelines') ),
 971                          'moderate_comments'        => array('name' => __( 'Editor', 'pagelines') ),
 972                          'publish_posts'            => array('name' => __( 'Author', 'pagelines') ),
 973                          'edit_posts'            => array('name' => __( 'Contributor', 'pagelines') )
 974                      ),
 975                      'inputlabel'     => __( 'Minimum user level for Post/Page Meta Settings', 'pagelines' ),
 976                      'title'         => __( 'Post/Page Meta', 'pagelines' ),
 977                      'shortexp'         => __( 'Set userlevels for the different settings pages. ', 'pagelines' ),
 978                      'exp'             => __( 'Members with a user level lower than the settings here will not be able to see the settings.', 'pagelines' )
 979              ),
 980              'hide_controls_cpt'     => array(
 981                      'default'         => 'moderate_comments',
 982                      'version'        => 'pro',
 983                      'type'             => 'select',
 984                      'title'            => 'Special Post Types',
 985                      'selectvalues'    => array(
 986                          'edit_users'            => array('name' => __( 'Administrator', 'pagelines') ),
 987                          'moderate_comments'        => array('name' => __( 'Editor', 'pagelines') ),
 988                          'publish_posts'            => array('name' => __( 'Author', 'pagelines') ),
 989                          'edit_posts'            => array('name' => __( 'Contributor', 'pagelines') )
 990                      ),
 991                      'inputlabel'     => __( 'Minimum user level for Custom Post Types ( banners, features etc )', 'pagelines' ),
 992                      'exp'             => __( 'Members with a user level lower than the settings here will not be able to see the settings.', 'pagelines' )
 993  
 994              )
 995  
 996          );
 997          
 998          return apply_filters('pagelines_options_advanced', $a);
 999          
1000      }
1001      
1002      /**
1003       * Custom Coding Options
1004       *
1005       * @since 2.0.0
1006       */
1007  	function custom_code(){
1008  
1009          $a = array(
1010              'icon'            => PL_ADMIN_ICONS.'/code.png',
1011              'customcss' => array(
1012                      'default'     => default_less(),
1013                      'type'         => 'code',
1014                      'height'    => '300px',
1015                      'layout'     => 'full',
1016                      'inputlabel'=> __( 'CSS/LESS Rules', 'pagelines' ),
1017                      'title'     => __( 'Custom CSS / LESS', 'pagelines' ),
1018                      'shortexp'     => __( 'Insert custom CSS or LESS styling here. It will be stored in the DB and not overwritten.', 'pagelines' ),
1019                      'exp'         => $this->css_examples(),
1020                      'vidtitle'    => __( 'View Customization Documentation', 'pagelines' )
1021                  ),
1022              'headerscripts' => array(
1023                      'version'    => 'pro',
1024                      'default'    => default_headerscript(),
1025                      'type'        => 'code',
1026                      'layout'    => 'full',
1027                      'inputlabel'=> __( 'HTML/Javascript', 'pagelines' ),
1028                      'title'        => __( 'Header Scripts - HTML/Javascript', 'pagelines' ),
1029                      'shortexp'    => __( 'HTML and Scripts inserted directly before the end of the HTML &lt;head&gt; tag', 'pagelines' ),
1030                      'exp'        => ''
1031                  ),
1032              'footerscripts' => array(
1033                      'default'    => '',                        
1034                      'type'        => 'code',
1035                      'layout'    => 'full',
1036                      'inputlabel'=> __( 'Footerscripts Code or Analytics', 'pagelines' ),
1037                      'title'        => __( 'Footer Scripts &amp; Analytics', 'pagelines' ),
1038                      'shortexp'    => __( 'Any footer scripts including Google Analytics', 'pagelines' ),
1039                      'exp'        => ''
1040                  ), 
1041              'asynch_analytics' => array(
1042                      'version'    => 'pro',
1043                      'default'    => '',
1044                      'type'        => 'code',
1045                      'layout'    => 'full',
1046                      'inputlabel'=> __( 'Asynchronous Analytics', 'pagelines' ),
1047                      'title'        => __( 'Asynchronous Analytics', 'pagelines' ),
1048                      'shortexp'    => __( 'Placeholder for Google asynchronous analytics. Goes just before <strong>&lt;/html&gt;</strong> tag', 'pagelines' ),
1049                      'exp'        => ''
1050              ),
1051          );
1052          
1053          return apply_filters('pagelines_options_custom_code', $a);
1054      }
1055      
1056      
1057  	function css_examples() {
1058          
1059          $example_body = ".post-excerpt{<br/>&nbsp;&nbsp;&nbsp;background-color: lighten(@dark-base, 50);<br/>&nbsp;&nbsp;&nbsp;.border-radius( 10px );<br/>&nbsp;&nbsp;&nbsp;padding: 5px;<br />}";
1060          
1061          $example = sprintf( "<div class='theexample'><strong>Example:</strong><br/>%s</div>", $example_body );
1062          
1063          $docs = __("Enter CSS Rules to change the style of your site.<br/><br/> A lot can be accomplished by simply changing the default styles of the <strong>body</strong> tag such as <strong>line-height</strong>, <strong>font-size</strong>, or <strong>color</strong> (as in text color).", 'pagelines' );
1064          
1065          return $example . $docs;
1066          
1067          
1068      }
1069      
1070      
1071  	function account_signup(){
1072          
1073          ob_start(); 
1074          ?>
1075          whoop
1076          <?php 
1077          return ob_get_clean();
1078          
1079      }
1080      
1081  
1082  
1083      
1084      /**
1085       * Custom Options (Deprecated)
1086       *
1087       * @since 2.0.0
1088       */
1089  	function custom_options(){
1090  
1091          $a = array(    );
1092          
1093          return apply_filters('pagelines_custom_options', $a);
1094          
1095      }
1096      
1097      
1098  }
1099  
1100  function default_headerscript(){
1101      return sprintf("<script>%sjQuery(document).ready(function() {%s});%s</script>", "\n","\n\t//Add jQuery Code Here\n","\n");
1102  }
1103  
1104  function default_less(){
1105      return sprintf('#page{%s}', "\n\t//Add LESS/CSS Rules Here\n");
1106  }
1107  
1108  /**
1109   *
1110   *  Returns Options Array
1111   *
1112   */
1113  function get_option_array( $load_unavailable = true ){
1114      
1115      global $disabled_settings; 
1116      
1117      $default = new PageLinesOptionsArray();
1118       
1119      $optionarray =  array_merge( $default->options, $default->last_options);
1120      if( isset($disabled_settings) && !empty($disabled_settings) ){
1121          foreach($disabled_settings as $key => $s){
1122              
1123              if( isset( $s['section'] ) && false != $s['option_id'] ) {
1124                  if( isset($optionarray[$s['panel']][ $s['option_id'] ]) && ( !$load_unavailable || $s['keep'] == false ) )
1125                      unset($optionarray[$s['panel']][ $s['option_id'] ]);
1126              } else {
1127                  if( isset($optionarray[ $s['panel'] ]) && ( !$load_unavailable || $s['keep'] == false ) ) 
1128                      unset($optionarray[ $s['panel'] ]);
1129              }    
1130          }
1131      }
1132      return apply_filters('pagelines_options_array', $optionarray);    
1133  }


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