PageRenderTime 57ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/config/config_features.php

https://github.com/pagelines/iBlogPro4
PHP | 255 lines | 240 code | 15 blank | 0 comment | 17 complexity | 3b2efa7e8110d1383dea8cd7f29561f0 MD5 | raw file
  1. <?php
  2. function get_feature_array(){
  3. return array(
  4. 'feature_settings' => array(
  5. 'timeout' => array(
  6. 'default' => 0,
  7. 'type' => 'text_small',
  8. 'inputlabel' => 'Timeout (ms)',
  9. 'title' => 'Feature Viewing Time (Timeout)',
  10. 'shortexp' => 'The amount of time a feature is set before it transitions in milliseconds',
  11. 'exp' => 'Set this to 0 to only transition on manual navigation. Use milliseconds, for example 10000 equals 10 seconds of timeout.'
  12. ),
  13. 'fspeed' => array(
  14. 'default' => 1500,
  15. 'type' => 'text_small',
  16. 'inputlabel' => 'Transition Speed (ms)',
  17. 'title' => 'Feature Transition Time (Timeout)',
  18. 'shortexp' => 'The time it takes for your features to transition in milliseconds',
  19. 'exp' => 'Use milliseconds, for example 1500 equals 1.5 seconds of transition time.'
  20. ),
  21. 'feffect' => array(
  22. 'default' => 'fade',
  23. 'type' => 'select_same',
  24. 'selectvalues' => array('blindX','blindY','blindZ', 'cover','curtainX','curtainY','fade','fadeZoom','growX','growY','none','scrollUp','scrollDown','scrollLeft','scrollRight','scrollHorz','scrollVert','shuffle','slideX','slideY','toss','turnUp','turnDown','turnLeft','turnRight','uncover','wipe','zoom'),
  25. 'inputlabel' => 'Select Transition Effect',
  26. 'title' => 'Transition Effect',
  27. 'shortexp' => "How the features transition",
  28. 'exp' => "This controls the mode with which the features transition to one another."
  29. ),
  30. 'feature_playpause' => array(
  31. 'default' => false,
  32. 'type' => 'check',
  33. 'inputlabel' => 'Show play pause button?',
  34. 'title' => 'Show Play/Pause Button (when timeout is greater than 0 (auto-transition))',
  35. 'shortexp' => "Show a play/pause button for auto-scrolling features",
  36. 'exp' => "Selecting this option will add a play/pause button for auto-scrolling features, that users can use to pause and watch a video, read a feature, etc.."
  37. ),
  38. 'feature_nav_type' => array(
  39. 'default' => "thumbs",
  40. 'type' => 'radio',
  41. 'selectvalues' => array(
  42. 'names' => 'Use Feature Names',
  43. 'thumbs' => 'Use Feature Thumbs (50px by 30px)',
  44. 'numbers'=>'Use Numbers'
  45. ),
  46. 'inputlabel' => 'Feature navigation type?',
  47. 'title' => 'Feature Navigation Mode',
  48. 'shortexp' => "Select the mode for your feature navigation",
  49. 'exp' => "Select from the three modes. Using feature names will use the names of the features, using the numbers will use incremental numbers, thumbnails will use feature thumbnails if provided."
  50. ),
  51. 'fremovesync' => array(
  52. 'default' => false,
  53. 'type' => 'check',
  54. 'inputlabel' => 'Remove Transition Syncing',
  55. 'title' => 'Remove Feature Transition Syncing',
  56. 'shortexp' => "Make features wait to move on until after the previous one has cleared the screen",
  57. 'exp' => "This controls whether features can move on to the screen while another is transitioning off. If removed features will have to leave the screen before the next can transition on to it."
  58. )
  59. )
  60. );
  61. }
  62. function get_feature_setup(){
  63. return array(
  64. 'title' => array(
  65. 'title' => 'Feature Title',
  66. 'shortexp'=> 'Styling the "title" section of the feature',
  67. 'exp' => 'This is where to type the title text or other HTML that you would like to accompany the media in the feature.<br/> <strong>We recommend H1 tags with a class of "ftitle" and H3 tags with a class of "fsub"</strong>',
  68. 'inputlabel' => 'Feature Title (text + html)',
  69. 'type' => 'textarea'
  70. ),
  71. 'text' => array(
  72. 'title' => 'Feature Text',
  73. 'shortexp'=> 'Use text with html to style your description',
  74. 'exp' => 'This is where to type the describing text or other HTML that you would like to accompany the media in the feature. HTML, links & images are all possible.<br/> <strong>Make sure to use paragraph tags for formatting ("&lt;p&gt;" tags).</strong>',
  75. 'inputlabel' => 'Feature Text (text + html)',
  76. 'type' => 'textarea_big'
  77. ),
  78. 'media' => array(
  79. 'title' => 'Feature Media',
  80. 'shortexp'=> 'Add pictures, videos, text or anything you can embed to the feature (HTML)',
  81. 'exp' => "Add media like pictures or youtube videos here. HTML is ok, or use 'embed' code from any website.<br/> Make it any size you like but it's optimized for a width of <strong>".FMEDIAWIDTH."</strong> and height of <strong>".FMEDIAHEIGHT."</strong>.<br/><br/> Add a 'br' tag on top to create a separation between the top of the feature and the media.",
  82. 'inputlabel' => 'Feature Media Code (Embed Code or HTML)',
  83. 'type' => 'textarea_big'
  84. ),
  85. 'link' => array(
  86. 'title' => 'Feature Link (Optional)',
  87. 'shortexp'=> 'Add a URL for the feature to tell users where to "learn more"',
  88. 'exp' => 'This link will show up under the featuretext. Use full URL.',
  89. 'inputlabel' => 'Feature Link (URL)',
  90. 'type' => 'text'
  91. ),
  92. 'background' => array(
  93. 'title' => 'Feature Background (CSS - Optional)',
  94. 'shortexp'=> 'Use CSS shorthand to control the feature background',
  95. 'exp' => 'Use <a href="http://www.w3schools.com/css/css_background.asp">CSS background shorthand</a> to style the background of each feature. For example: <strong>#fff url(image.gif) no-repeat top left</strong>.',
  96. 'inputlabel' => 'Feature Background (CSS Background Shorthand)',
  97. 'type' => 'text'
  98. ),
  99. 'thumb' => array(
  100. 'title' => "Feature Thumb (Image Nav Mode Only)",
  101. 'shortexp' => "Full URL to the feature image or thumb.",
  102. 'exp' => "Simply add the url of the image you would like to use for the feature navigation. Note: This mode must be selected in feature options.",
  103. 'inputlabel' => 'Image URL',
  104. 'type' => 'image_url',
  105. 'imagepreview' => '50'
  106. ),
  107. 'page' => array(
  108. 'title' => "Display Pages (optional)",
  109. 'shortexp' => "Which pages should show this feature slide",
  110. 'exp' => "Add the IDs of the pages that you want to display this feature slide. <br/><strong>Note:</strong> if no page is added, it will show on all feature pages. Also a page template that includes the features slides must be selected for this to work.",
  111. 'inputlabel' => 'Page IDs - Comma Separated',
  112. 'type' => 'text'
  113. ),
  114. 'name' => array(
  115. 'title' => 'Feature Name (optional)',
  116. 'shortexp'=> 'For easy referencing in the menu',
  117. 'exp' => 'This just allows you to change the name of the feature in the menu navigation. It may be used for more features in the future.',
  118. 'inputlabel' => 'Feature Name',
  119. 'type' => 'text'
  120. ),
  121. 'draft' => array(
  122. 'title' => "Draft Status (optional)",
  123. 'shortexp' => "Select if still drafting",
  124. 'exp' => "Select this option if you want this feature to be a draft and not be published to your site",
  125. 'inputlabel' => 'Mark As Draft',
  126. 'type' => 'check'
  127. ),
  128. );
  129. }
  130. function get_default_features(){
  131. return array(
  132. '1' => array(
  133. 'title' => '<h3 class="fsub">Welcome to </h3><h1 class="ftitle">'.THEMENAME.'</h1>',
  134. 'text' => '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam quis molestie nunc. Vivamus molestie, quam vitae pharetra at ultricies tortor quam sed ante.</p>',
  135. 'media' => '<img src="'.THEME_IMAGES.'/feature1.jpg" alt="feature1" />',
  136. 'link' => '#url_goes_here',
  137. 'thumb' => THEME_IMAGES.'/fthumb1.png',
  138. 'background' => '',
  139. 'name'=>'Feature 1',
  140. ),
  141. '2' => array(
  142. 'title' => '<h3 class="fsub">Make An</h3><h1 class="ftitle">Impression</h1>',
  143. 'text' => '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam quis molestie nunc. Vivamus molestie, quam vitae pharetra at ultricies tortor quam sed ante.</p>',
  144. 'media' => '<br/><object width="'.FMEDIAWIDTH.'" height="'.FMEDIAHEIGHT.'"><param value="transparent" name="wmode" /><param name="movie" value="http://www.youtube.com/v/4oAB83Z1ydE&hl=en&fs=1&showinfo=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/4oAB83Z1ydE&hl=en&fs=1&showinfo=0" type="application/x-shockwave-flash" allowscriptaccess="always" wmode="transparent" allowfullscreen="true" width="'.FMEDIAWIDTH.'" height="'.FMEDIAHEIGHT.'"></embed></object>',
  145. 'link' => '#url_goes_here',
  146. 'thumb' => THEME_IMAGES.'/fthumb2.png',
  147. 'background' => '',
  148. 'name'=>'Feature 2'
  149. ),
  150. '3' => array(
  151. 'title' => '<h3 class="fsub">Wordpress Theme By</h3><h1 class="ftitle">PageLines</h1>',
  152. 'text' => '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam quis molestie nunc. Vivamus molestie, quam vitae pharetra at ultricies tortor quam sed ante.</p>',
  153. 'media' => '<img src="'.THEME_IMAGES.'/feature2.jpg" />',
  154. 'link' => '#url_goes_here',
  155. 'thumb' => THEME_IMAGES.'/fthumb3.png',
  156. 'background' => '',
  157. 'name'=>'Feature 3'
  158. ),
  159. '4' => array(
  160. 'title' => '<h3 class="fsub">PageLines\' Shortcodes</h3><h1 class="ftitle">Dynamic<br/>Features</h1>',
  161. 'text' => 'In the latest version of our framework we\'ve added a shortcode library to make your features and posts dynamic. The Google maps shortcode is used here!',
  162. 'media' => '[googlemap address="San Diego, CA 92109"]',
  163. 'link' => '#url_goes_here',
  164. 'thumb' => THEME_IMAGES.'/fthumb4.png',
  165. 'background' => '',
  166. 'name'=>'Feature 4'
  167. ),
  168. '5' => array(
  169. 'title' => '',
  170. 'text' => '',
  171. 'media' => '',
  172. 'link' => '',
  173. 'background' => '',
  174. 'name'=>'Feature 5'
  175. ),
  176. '6' => array(
  177. 'title' => '',
  178. 'text' => '',
  179. 'media' => '',
  180. 'link' => '',
  181. 'background' => '',
  182. 'name'=>'Feature 6'
  183. )
  184. );
  185. }
  186. function get_fbox_setup(){
  187. return array(
  188. 'title' => array(
  189. 'title' => 'Feature Box Title',
  190. 'shortexp'=> 'Styling the "title" section of the feature box',
  191. 'exp' => 'Type the feature box title text with HTML formatting.<br/><br/> We recommend H3 tags for example:<br/> <strong>&lt;h3&gt;Your Feature Box Title &lt;/h3&gt;</strong>',
  192. 'inputlabel' => 'Feature Title (text + html)',
  193. 'type' => 'textarea'
  194. ),
  195. 'text' => array(
  196. 'title' => "Feature Box Text + HTML",
  197. 'shortexp' => "The text inside of your footer text boxes",
  198. 'exp' => "Set the text for your feature boxes. Use HTML markup including image tags for pictures.<br/><br/>For example:<br/> <strong>&lt;img src='image_url.com' alt='alt text' /&gt;</strong>",
  199. 'inputlabel' => 'Feature box text and html',
  200. 'type' => 'textarea_big'
  201. ),
  202. 'name' => array(
  203. 'title' => "Name (optional)",
  204. 'shortexp' => "The name of this feature box for reference",
  205. 'exp' => "Simply add a name for this box so you can navigate to it quickly.",
  206. 'inputlabel' => 'Name',
  207. 'type' => 'text'
  208. ),
  209. 'page' => array(
  210. 'title' => "Display Page IDs (optional)",
  211. 'shortexp' => "Which pages should show this feature box (if none are set, it will be shown on all pages with fboxes enabled)",
  212. 'exp' => "Add the IDs of the pages that you want to display this feature box. <br/><strong>Note:</strong> if no page is added, it will show on all pages. Also a page template that includes the features boxes must be selected for this to work.",
  213. 'inputlabel' => 'Page IDs - Comma Separated',
  214. 'type' => 'text'
  215. )
  216. );
  217. }
  218. function get_default_fboxes(){
  219. return array(
  220. '1' => array(
  221. 'title' => '<h3>You\'ll love this theme</h3>',
  222. 'text' => '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In et nulla diam, ac interdum nisl. Nunc mattis tincidunt dictum. Etiam luctus consequat ipsum.</p><p><img alt="fbox1" class="aligncenter" src="'.THEME_IMAGES.'/fbox1.png" /></p>',
  223. 'name' => 'Feature Box 1',
  224. 'page' => ''
  225. ),
  226. '2' => array(
  227. 'title' => '<h3>PageLines Themes</h3>',
  228. 'text' => '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In et nulla diam, ac interdum nisl. Nunc mattis tincidunt dictum. Etiam luctus consequat ipsum.</p><p><img alt="fbox1" class="aligncenter" src="'.THEME_IMAGES.'/fbox2.png" /></p>',
  229. 'name' => 'Feature Box 2',
  230. 'page' => ''
  231. ),
  232. '3' => array(
  233. 'title' => '<h3>Thanks!</h3>',
  234. 'text' => '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In et nulla diam, ac interdum nisl. Nunc mattis tincidunt dictum. Etiam luctus consequat ipsum.</p><p><img alt="fbox1" class="aligncenter" src="'.THEME_IMAGES.'/fbox3.png" /></p>',
  235. 'name' => 'Feature Box 3',
  236. 'page' => ''
  237. )
  238. );
  239. }
  240. ?>