git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@4 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6

This commit is contained in:
David Arranz 2012-07-11 17:55:10 +00:00
parent 7d83645f41
commit 318fef7b63
42 changed files with 25 additions and 28 deletions

View File

@ -135,6 +135,4 @@ function bp_dedication_options() {
return apply_filters( 'bp_dedication_options', $options ); return apply_filters( 'bp_dedication_options', $options );
} }
?> ?>

View File

@ -65,13 +65,13 @@ function bp_dedication_create_new_dedication() {
'post_type' => 'post' //'post',page' or use a custom post type if you want to 'post_type' => 'post' //'post',page' or use a custom post type if you want to
); );
$pid = wp_insert_post($new_post); $post_id = wp_insert_post($new_post);
if ($pid) { if ($post_id) {
$link = get_permalink($pid); $link = get_permalink($post_id);
add_post_meta($pid, 'ghostpool_dedication_artist', $artist_name); add_post_meta($post_id, 'ghostpool_dedication_artist', $artist_name);
add_post_meta($pid, 'ghostpool_dedication_song', $song_name); add_post_meta($post_id, 'ghostpool_dedication_song', $song_name);
add_post_meta($pid, 'ghostpool_dedication_url', $videoData['videoURL']); add_post_meta($post_id, 'ghostpool_dedication_url', $videoData['videoURL']);
$imageurl = $videoData['thumbnail']; $imageurl = $videoData['thumbnail'];

View File

@ -24,12 +24,12 @@ global $bp;
</li> </li>
<li> <li>
<label>Artist name</label> <label>Artist name</label>
<input type="text" name="artist-text" class="artist-text" id="artist-text"/> <input type="text" name="artist-name" class="artist-name" id="artist-name"/>
</li> </li>
<li> <li>
<label>Song name</label> <label>Song name</label>
<input type="text" name="song-text" class="song-text" id="song-text"/> <input type="text" name="song-name" class="song-name" id="song-name"/>
</li> </li>
</ul> </ul>

View File

@ -1,6 +1,5 @@
<?php <?php
// Themes Options Menu // Themes Options Menu
$shortname = "theme"; $shortname = "theme";
$page_handle = $shortname . '-options'; $page_handle = $shortname . '-options';
$options = array( $options = array(
@ -323,7 +322,7 @@ $options = array(
"name" => __('Thumbnail Width', 'gp_lang'), "name" => __('Thumbnail Width', 'gp_lang'),
"desc" => __('The width to crop the thumbnail to (can be overridden on individual posts, set to 0 to have a proportionate width).', 'gp_lang'), "desc" => __('The width to crop the thumbnail to (can be overridden on individual posts, set to 0 to have a proportionate width).', 'gp_lang'),
"id" => $shortname . "_homepage_thumbnail_width", "id" => $shortname . "_homepage_thumbnail_width",
"std" => "130", "std" => "300",
"type" => "text", "type" => "text",
"size" => "small", "size" => "small",
"details" => "px"), "details" => "px"),
@ -347,7 +346,7 @@ $options = array(
"name" => __('Homepage Category IDs', 'gp_lang'), "name" => __('Homepage Category IDs', 'gp_lang'),
"desc" => __('Enter the IDs of the <a href="../wp-admin/edit-tags.php?taxonomy=category">post categories</a> you want to display (leave blank to display all categories).', 'gp_lang'), "desc" => __('Enter the IDs of the <a href="../wp-admin/edit-tags.php?taxonomy=category">post categories</a> you want to display (leave blank to display all categories).', 'gp_lang'),
"id" => $shortname . "_homepage_cats", "id" => $shortname . "_homepage_cats",
"std" => "", "std" => get_category_by_slug(BP_DEDICATION_SLUG),
"type" => "text"), "type" => "text"),
array("type" => "divider"), array("type" => "divider"),
array( array(
@ -370,7 +369,7 @@ $options = array(
"name" => __('Posts Per Page', 'gp_lang'), "name" => __('Posts Per Page', 'gp_lang'),
"desc" => __('The number of posts per page.', 'gp_lang'), "desc" => __('The number of posts per page.', 'gp_lang'),
"id" => $shortname . "_homepage_posts_per_page", "id" => $shortname . "_homepage_posts_per_page",
"std" => "10", "std" => "4",
"type" => "text", "type" => "text",
"size" => "small"), "size" => "small"),
array("type" => "divider"), array("type" => "divider"),
@ -402,7 +401,7 @@ $options = array(
"name" => __('Score Type', 'gp_lang'), "name" => __('Score Type', 'gp_lang'),
"desc" => __('Choose the score type to display.', 'gp_lang'), "desc" => __('Choose the score type to display.', 'gp_lang'),
"id" => $shortname . "_homepage_score_type", "id" => $shortname . "_homepage_score_type",
"std" => "1", "std" => "0",
"options" => array('Site Score' => __('Site Score', 'gp_lang'), 'User Score' => __('User Score', 'gp_lang'), 'Site & User Score' => __('Site & User Score', 'gp_lang'), 'No Scores' => __('No Scores', 'gp_lang')), "options" => array('Site Score' => __('Site Score', 'gp_lang'), 'User Score' => __('User Score', 'gp_lang'), 'Site & User Score' => __('Site & User Score', 'gp_lang'), 'No Scores' => __('No Scores', 'gp_lang')),
"type" => "select"), "type" => "select"),
array("type" => "divider"), array("type" => "divider"),
@ -448,7 +447,7 @@ $options = array(
"name" => __('Post Categories', 'gp_lang'), "name" => __('Post Categories', 'gp_lang'),
"desc" => __('Choose whether to display the post categories.', 'gp_lang'), "desc" => __('Choose whether to display the post categories.', 'gp_lang'),
"id" => $shortname . "_homepage_cats_", "id" => $shortname . "_homepage_cats_",
"std" => "1", "std" => "0",
"options" => array(__('Enable', 'gp_lang'), __('Disable', 'gp_lang')), "options" => array(__('Enable', 'gp_lang'), __('Disable', 'gp_lang')),
"type" => "radio"), "type" => "radio"),
array( array(
@ -462,7 +461,7 @@ $options = array(
"name" => __('Post Tags', 'gp_lang'), "name" => __('Post Tags', 'gp_lang'),
"desc" => __('Choose whether to display the post tags.', 'gp_lang'), "desc" => __('Choose whether to display the post tags.', 'gp_lang'),
"id" => $shortname . "_homepage_tags", "id" => $shortname . "_homepage_tags",
"std" => "1", "std" => "0",
"options" => array(__('Enable', 'gp_lang'), __('Disable', 'gp_lang')), "options" => array(__('Enable', 'gp_lang'), __('Disable', 'gp_lang')),
"type" => "radio"), "type" => "radio"),
array("type" => "close"), array("type" => "close"),
@ -617,7 +616,7 @@ $options = array(
"name" => __('Thumbnail Width', 'gp_lang'), "name" => __('Thumbnail Width', 'gp_lang'),
"desc" => __('The width to crop the thumbnail to (can be overridden on individual posts, set to 0 to have a proportionate width).', 'gp_lang'), "desc" => __('The width to crop the thumbnail to (can be overridden on individual posts, set to 0 to have a proportionate width).', 'gp_lang'),
"id" => $shortname . "_cat_thumbnail_width", "id" => $shortname . "_cat_thumbnail_width",
"std" => "100", "std" => "280",
"type" => "text", "type" => "text",
"size" => "small", "size" => "small",
"details" => "px"), "details" => "px"),
@ -657,7 +656,7 @@ $options = array(
"name" => __('Posts Per Page', 'gp_lang'), "name" => __('Posts Per Page', 'gp_lang'),
"desc" => __('The number of posts per page.', 'gp_lang'), "desc" => __('The number of posts per page.', 'gp_lang'),
"id" => $shortname . "_cat_posts_per_page", "id" => $shortname . "_cat_posts_per_page",
"std" => "10", "std" => "6",
"type" => "text", "type" => "text",
"size" => "small"), "size" => "small"),
array("type" => "divider"), array("type" => "divider"),
@ -681,7 +680,7 @@ $options = array(
"name" => __('Read More Link', 'gp_lang'), "name" => __('Read More Link', 'gp_lang'),
"desc" => __('Choose whether to display the read more links.', 'gp_lang'), "desc" => __('Choose whether to display the read more links.', 'gp_lang'),
"id" => $shortname . "_cat_read_more", "id" => $shortname . "_cat_read_more",
"std" => "0", "std" => "1",
"options" => array(__('Enable', 'gp_lang'), __('Disable', 'gp_lang')), "options" => array(__('Enable', 'gp_lang'), __('Disable', 'gp_lang')),
"type" => "radio"), "type" => "radio"),
array("type" => "divider"), array("type" => "divider"),
@ -713,35 +712,35 @@ $options = array(
"name" => __('Post Date', 'gp_lang'), "name" => __('Post Date', 'gp_lang'),
"desc" => __('Choose whether to display the post date.', 'gp_lang'), "desc" => __('Choose whether to display the post date.', 'gp_lang'),
"id" => $shortname . "_cat_date", "id" => $shortname . "_cat_date",
"std" => "0", "std" => "1",
"options" => array(__('Enable', 'gp_lang'), __('Disable', 'gp_lang')), "options" => array(__('Enable', 'gp_lang'), __('Disable', 'gp_lang')),
"type" => "radio"), "type" => "radio"),
array( array(
"name" => __('Post Author', 'gp_lang'), "name" => __('Post Author', 'gp_lang'),
"desc" => __('Choose whether to display the post author.', 'gp_lang'), "desc" => __('Choose whether to display the post author.', 'gp_lang'),
"id" => $shortname . "_cat_author", "id" => $shortname . "_cat_author",
"std" => "0", "std" => "1",
"options" => array(__('Enable', 'gp_lang'), __('Disable', 'gp_lang')), "options" => array(__('Enable', 'gp_lang'), __('Disable', 'gp_lang')),
"type" => "radio"), "type" => "radio"),
array( array(
"name" => __('Post Categories', 'gp_lang'), "name" => __('Post Categories', 'gp_lang'),
"desc" => __('Choose whether to display the post categories.', 'gp_lang'), "desc" => __('Choose whether to display the post categories.', 'gp_lang'),
"id" => $shortname . "_cat_cats", "id" => $shortname . "_cat_cats",
"std" => "1", "std" => "0",
"options" => array(__('Enable', 'gp_lang'), __('Disable', 'gp_lang')), "options" => array(__('Enable', 'gp_lang'), __('Disable', 'gp_lang')),
"type" => "radio"), "type" => "radio"),
array( array(
"name" => __('Post Comments', 'gp_lang'), "name" => __('Post Comments', 'gp_lang'),
"desc" => __('Choose whether to display the post comments.', 'gp_lang'), "desc" => __('Choose whether to display the post comments.', 'gp_lang'),
"id" => $shortname . "_cat_comments", "id" => $shortname . "_cat_comments",
"std" => "0", "std" => "1",
"options" => array(__('Enable', 'gp_lang'), __('Disable', 'gp_lang')), "options" => array(__('Enable', 'gp_lang'), __('Disable', 'gp_lang')),
"type" => "radio"), "type" => "radio"),
array( array(
"name" => __('Post Tags', 'gp_lang'), "name" => __('Post Tags', 'gp_lang'),
"desc" => __('Choose whether to display the post tags.', 'gp_lang'), "desc" => __('Choose whether to display the post tags.', 'gp_lang'),
"id" => $shortname . "_cat_tags", "id" => $shortname . "_cat_tags",
"std" => "1", "std" => "0",
"options" => array(__('Enable', 'gp_lang'), __('Disable', 'gp_lang')), "options" => array(__('Enable', 'gp_lang'), __('Disable', 'gp_lang')),
"type" => "radio"), "type" => "radio"),
array("type" => "close"), array("type" => "close"),

View File

@ -280,7 +280,7 @@ if (function_exists('bp_is_active')) {
} }
// No ver mostrar de buddypress excepto para el admin // No ver mostrar de buddypress excepto para el tablero
if (!is_admin() ) define( 'BP_DISABLE_ADMIN_BAR', true ); if (!is_admin() ) define( 'BP_DISABLE_ADMIN_BAR', true );

View File

@ -632,8 +632,8 @@ h3.comments {
} }
.home-page .post-loop { .home-page .post-loop {
width: 49%; width: 49% !important;
padding-right: 1%; padding-right: 1% !important;
} }
.post-text { .post-text {

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB