function enqueue_general_scripts() { if (is_admin()) { return; } wp_enqueue_script('jquery-tools', THEME_JS . '/jquery.tools.min.js', array('jquery')); wp_enqueue_script('jquery-prettyphoto', THEME_JS . '/jquery.prettyPhoto.js', array('jquery')); $fitvids = get_theme_option('general', 'fitvids'); if ($fitvids) { wp_enqueue_script('jquery-fitvids', THEME_JS . '/jquery.fitvids.js', array('jquery')); } wp_enqueue_script('theme.js', THEME_JS . '/theme.js.php', array('jquery-tools')); if (function_exists('bp_plugin_is_active')) { if (bp_plugin_is_active()) { activate_ult_bp(); } } }
function shortcode_bp_notices($atts, $content = null) { if (bp_plugin_is_active()) { if (function_exists('bp_message_get_notices') && is_user_logged_in()) { // turn on output buffering to capture output ob_start(); // output the notice (stupid BP echo's and no option for return) bp_message_get_notices(); /* Site wide notices to all users */ // get ouwtput content $content = ob_get_clean(); // return the content return '<div class="bp-notices">' . $content . '</div>'; } } }
[slide_left easing="stopSlow" speed="750" delay="550"]<img src="http://para.llel.us/themes/razor-wp/wp-content/uploads/2013/01/animated-slide-3-layer-4.png" alt="slide layer">[/slide_left] [slide_down easing="stopBounce" speed="1150" delay="950"]<img src="http://para.llel.us/themes/razor-wp/wp-content/uploads/2013/01/animated-slide-3-layer-3.png" alt="slide layer">[/slide_down] ";s:17:"s_bg_transparency";s:0:"";s:5:"index";s:12:"1olnnm17a1xc";s:12:"ancestor_key";s:0:"";s:11:"version_key";s:19:"id_rupnhe0urfnfpt68";s:10:"import_key";s:0:"";}s:12:"5yfmxkuu71c0";a:14:{s:3:"key";s:12:"5yfmxkuu71c0";s:5:"media";s:91:"http://para.llel.us/themes/razor-wp/wp-content/uploads/2013/01/animated-slide-1-layer-1.jpg";s:8:"bg_media";s:0:"";s:4:"link";s:0:"";s:12:"target_blank";s:1:"0";s:6:"format";s:16:"background-image";s:8:"position";s:4:"left";s:10:"transition";s:0:"";s:7:"content";s:735:"[slide_right easing="stopSlow" speed="550" delay="280"]<img src="http://para.llel.us/themes/razor-wp/wp-content/uploads/2013/01/animated-slide-1-layer-3.png" alt="slide layer">[/slide_right] [slide_left easing="stopFast" speed="505" delay="22"]<img src="http://para.llel.us/themes/razor-wp/wp-content/uploads/2013/01/animated-slide-1-layer-4.png" alt="slide layer">[/slide_left] [slide_left easing="stopFast" speed="650" delay="550"]<img src="http://para.llel.us/themes/razor-wp/wp-content/uploads/2013/01/animated-slide-1-layer-2.png" alt="slide layer">[/slide_left]";s:17:"s_bg_transparency";s:0:"";s:5:"index";s:12:"5yfmxkuu71c0";s:12:"ancestor_key";s:0:"";s:11:"version_key";s:20:"id_qehnb2a5bf0u394bo";s:10:"import_key";s:0:"";}s:12:"47xl4j3kqbi8";a:14:{s:3:"key";s:12:"47xl4j3kqbi8";s:5:"media";s:91:"http://para.llel.us/themes/razor-wp/wp-content/uploads/2013/01/animated-slide-2-layer-1.jpg";s:8:"bg_media";s:0:"";s:4:"link";s:0:"";s:12:"target_blank";s:1:"0";s:6:"format";s:16:"background-image";s:8:"position";s:4:"left";s:10:"transition";s:0:"";s:7:"content";s:735:"[slide_left easing="stopBack" speed="650" delay="300"]<img src="http://para.llel.us/themes/razor-wp/wp-content/uploads/2013/01/animated-slide-2-layer-2.png" alt="slide layer">[/slide_left] [slide_up easing="stopMedium" speed="460" delay="925"]<img src="http://para.llel.us/themes/razor-wp/wp-content/uploads/2013/01/animated-slide-2-layer-3.png" alt="slide layer">[/slide_up] [slide_right easing="stopBack" speed="810" delay="1050"]<img src="http://para.llel.us/themes/razor-wp/wp-content/uploads/2013/01/animated-slide-2-layer-4.png" alt="slide layer">[/slide_right]";s:17:"s_bg_transparency";s:0:"";s:5:"index";s:12:"47xl4j3kqbi8";s:12:"ancestor_key";s:0:"";s:11:"version_key";s:20:"id_ny7g26pf669p47dc8";s:10:"import_key";s:0:"";}}}}}', true)); } // Layout Settings if (!get_option('razor_theme_settings')) { update_option('razor_theme_settings', maybe_unserialize('a:2:{s:0:"";a:33:{s:9:"tool_tips";s:5:"class";s:6:"hi_dpi";s:8:"inactive";s:10:"responsive";s:6:"active";s:18:"disable_wp_content";s:6:"a:0:{}";s:14:"favorites_icon";s:31:"http://para.llel.us/favicon.ico";s:16:"apple_touch_icon";s:41:"http://para.llel.us/apple-itouch-icon.png";s:15:"append_to_title";s:0:"";s:18:"placeholder_images";s:1:"1";s:18:"custom_placeholder";s:0:"";s:8:"404_page";s:4:"1708";s:16:"google_analytics";s:0:"";s:7:"wpautop";s:1:"1";s:21:"access_theme_settings";s:0:"";s:19:"access_theme_design";s:13:"administrator";s:23:"developer_custom_fields";s:0:"";s:30:"developer_custom_content_types";s:0:"";s:27:"developer_custom_taxonomies";s:0:"";s:30:"developer_custom_fields_access";s:13:"administrator";s:37:"developer_custom_content_types_access";s:0:"";s:34:"developer_custom_taxonomies_access";s:0:"";s:19:"branding_admin_logo";s:0:"";s:26:"branding_admin_header_logo";s:0:"";s:29:"branding_admin_help_tab_title";s:0:"";s:31:"branding_admin_help_tab_content";s:0:"";s:40:"branding_admin_custom_right_column_title";s:0:"";s:34:"branding_admin_custom_right_column";s:0:"";s:42:"branding_admin_right_column_theme_settings";s:1:"1";s:43:"branding_admin_right_column_design_settings";s:1:"1";s:13:"demo_settings";s:0:"";s:5:"index";s:0:"";s:12:"ancestor_key";s:0:"";s:11:"version_key";s:20:"id_h0i1x183qcrz50gu8";s:10:"import_key";s:0:"";}s:7:"options";a:33:{s:9:"tool_tips";s:5:"class";s:6:"hi_dpi";s:8:"inactive";s:10:"responsive";s:6:"active";s:18:"disable_wp_content";s:6:"a:0:{}";s:14:"favorites_icon";s:31:"http://para.llel.us/favicon.ico";s:16:"apple_touch_icon";s:41:"http://para.llel.us/apple-itouch-icon.png";s:15:"append_to_title";s:0:"";s:18:"placeholder_images";s:1:"1";s:18:"custom_placeholder";s:0:"";s:8:"404_page";s:4:"1708";s:16:"google_analytics";s:0:"";s:7:"wpautop";s:1:"1";s:21:"access_theme_settings";s:0:"";s:19:"access_theme_design";s:13:"administrator";s:23:"developer_custom_fields";s:0:"";s:30:"developer_custom_content_types";s:0:"";s:27:"developer_custom_taxonomies";s:0:"";s:30:"developer_custom_fields_access";s:13:"administrator";s:37:"developer_custom_content_types_access";s:0:"";s:34:"developer_custom_taxonomies_access";s:0:"";s:19:"branding_admin_logo";s:0:"";s:26:"branding_admin_header_logo";s:0:"";s:29:"branding_admin_help_tab_title";s:0:"";s:31:"branding_admin_help_tab_content";s:0:"";s:40:"branding_admin_custom_right_column_title";s:0:"";s:34:"branding_admin_custom_right_column";s:0:"";s:42:"branding_admin_right_column_theme_settings";s:1:"1";s:43:"branding_admin_right_column_design_settings";s:1:"1";s:13:"demo_settings";s:0:"";s:5:"index";s:7:"options";s:12:"ancestor_key";s:0:"";s:11:"version_key";s:20:"id_xtv3k6kv2kizqv30g";s:10:"import_key";s:0:"";}}', true)); } # ================================================ # Check for existiong "bp-custom.php" # ================================================ if (bp_plugin_is_active()) { if (!file_exists(WP_PLUGIN_DIR . '/bp-custom.php')) { // if there isn't one we will move the example file and rename it (this is for thumbnail size settings) if (!copy(dirname(__FILE__) . '/example-bp-custom.php', WP_PLUGIN_DIR . '/bp-custom.php')) { // This would be the place for an error message... } } } # ================================================ # Check for fresh install with no widget data # and import the demo widget data if necessary. # ================================================ /* $default_wp_sidebars = maybe_unserialize('a:7:{s:19:"wp_inactive_widgets";a:0:{}s:9:"sidebar-1";a:6:{i:0;s:8:"search-2";i:1;s:14:"recent-posts-2";i:2;s:17:"recent-comments-2";i:3;s:10:"archives-2";i:4;s:12:"categories-2";i:5;s:6:"meta-2";}s:9:"sidebar-2";a:0:{}s:9:"sidebar-3";a:0:{}s:9:"sidebar-4";a:0:{}s:9:"sidebar-5";a:0:{}s:13:"array_version";i:3;}'); $current_sidebars = get_option('sidebars_widgets');
function theme_body_class($classes) { global $theLayout, $theHeader, $theFooter, $bp; // add classes to body tag based on theme settings // fade in content (set's a special "invisible" class) switch (get_theme_var('options,fade_in_content')) { case 'all': $classes[] = 'invisibleAll'; break; case 'content': $classes[] = 'invisibleMiddle'; break; } // header content if (!$theHeader['content']) { $classes[] = 'noHeaderContent'; } // background slider $ss = get_ss($theHeader); if (isset($ss['ss-type']) && $ss['ss-type'] == 'ss-bgSlider') { $classes[] = 'hasBgSlider'; } // theme skin if (get_theme_skin()) { $classes[] = str_replace('.css', '', get_theme_skin()); } // BP Specific if (bp_plugin_is_active()) { // Groups if (bp_is_groups_component() && isset($bp->groups->current_group->id)) { $classes[] = 'bp-group-' . $bp->groups->current_group->id; } } // is responsive if (get_theme_var('options,responsive', 'active') !== 'inactive') { $classes[] = 'isResponsive'; } // return the $classes array return $classes; }