22 Listopad 2024, 01:16:28

Autor Wątek: Jak przerobić  (Przeczytany 7036 razy)

AngryHeartb

  • Gość
Jak przerobić
« dnia: 15 Kwiecień 2013, 07:31:25 »
Witam,
czy ma ktoś pomysł jak przerobić skrypt historii playlisty który jest plikiem php tak aby działał na wordpress?

Karol

  • Administrator
  • Mistrz radiofonii
  • *****
  • Wiadomości: 1785
Odp: Jak przerobić
« Odpowiedź #1 dnia: 15 Kwiecień 2013, 09:33:58 »
W zawartości szablonu musisz wywołać funkcję:
<?phpinclude(&#39;plik_ze_skryptem.php&#39;)?>


AngryHeartb

  • Gość
Odp: Jak przerobić
« Odpowiedź #2 dnia: 15 Kwiecień 2013, 14:24:45 »
Niestety nie działa, wyświetla mi banner boo.pl http://angryhearts.boo.pl/index.php/49-2/  :o

<?php/** * The template for displaying all pages. * * This is the template that displays all pages by default. * Please note that this is the WordPress construct of pages * and that other &#39;pages&#39; on your WordPress site will use a * different template. * * This theme was generated with Lubith - The Wordpress Theme Generator: http://www.lubith.com * It is based on Twenty Ten (Wordpress 3.x default theme). * */get_header(); ?>


<div class="container">
<div id="content" role="main">

<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>


<div id="post-
<?php the_ID(); ?>
"
<?php post_class(); ?>
>
<?php if ( is_front_page() ) { ?>

<h2 class="entry-title">
<?php the_title(); ?>
</h2>
<?php } else { ?>

<h1 class="entry-title">
<?php the_title(); ?>
</h1>
<?php } ?>


<div class="entry-content">
<?php the_content(); ?>

<?php wp_link_pages( array( &#39;before&#39; => &#39;<div class="page-link">&#39; . __( &#39;Pages:&#39;, &#39;twentyten&#39; ), &#39;after&#39; => &#39;</div>&#39; ) ); ?>

<?php edit_post_link( __( &#39;Edit&#39;, &#39;twentyten&#39; ), &#39;<span class="edit-link">&#39;, &#39;</span>&#39; ); ?>

</div><!-- .entry-content -->
<div class="entry-footer"></div>
</div><!-- #post-## -->

<?php comments_template( &#39;&#39;, true ); ?>


<?php endwhile; ?>


</div><!-- #content -->
</div><!-- .container -->
<?phpinclude(&#39;lista.php&#39;)?>

<?php get_sidebar(); ?>

<?php get_footer(); ?>




Ps. Wie ktoś jak wyśrodkować to menu? Tutaj kod css

/* =Menu
-------------------------------------------------------------- */
#preloader {
width: 0px;
height: 0px;
display: inline;
background: #0a0a08;
}

div.menu-header ul,
div.menu ul {
list-style: none;
display:inline-block;
margin: 0;
}
#access .menu-header li,
div.menu li {
float: left;
position: relative;
}
#access ul li a {
font-family: 'Eater', sans-serif;
font-size: 26px;
font-variant: small-caps;
color: #368f3c;
text-decoration: none;
line-height: 1.1;
text-align: center;
height: 26px;
display: list-item;
float: left;
margin: 0 2.5px 0 0;
padding: 0 18.5px 0 18.5px;
background: #000000;
}
#access ul li a:hover {
font-size: 21px;
line-height: 1.2;
position: relative;
background: #000000;
}
#access ul ul {
vertical-align: middle;
width: 160px;
top: 26px;
left: 0;
position: absolute;
display: none;
z-index: 10;
padding: 10px 10px 10px 10px;
background: #000000;
}
#access ul ul {
box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
-moz-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
-webkit-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
}
#access ul ul li {
width: 100%;
margin: 0;
}
#access ul ul li a {
font-size: 26px;
color: #2b1e06;
line-height: 1.8;
height: 38px;
display: list-item;
overflow: hidden;
padding: 0 0 0 10px;
background: #000000;
float: none;
background-color: #000000;
}
#access ul ul li a:hover {
line-height: 1.8;
background: #e8e8e8;
float: none;
overflow: hidden;
background-color: #e8e8e8;
}
#preloader {
width: 0px;
height: 0px;
display: inline;
background: #0a0a08;
}

div.menu-header ul,
div.menu ul {
list-style: none;
display:inline-block;
margin: 0;
}
#access .menu-header li,
div.menu li {
float: left;
position: relative;
}
#access ul li a {
font-family: 'Eater', sans-serif;
font-size: 26px;
font-variant: small-caps;
color: #368f3c;
text-decoration: none;
line-height: 1.1;
text-align: center;
height: 26px;
display: list-item;
float: left;
margin: 0 2.5px 0 0;
padding: 0 18.5px 0 18.5px;
background: #000000;
}
#access ul li a:hover {
font-size: 26px;
line-height: 1.2;
position: relative;
background: #000000;
}
#access ul ul {
vertical-align: middle;
width: 160px;
top: 26px;
left: 0;
position: absolute;
display: none;
z-index: 10;
padding: 10px 10px 10px 10px;
background: #000000;
}
#access ul ul {
box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
-moz-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
-webkit-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
}
#access ul ul li {
width: 100%;
margin: 0;
}
#access ul ul li a {
font-size: 26px;
color: #2b1e06;
line-height: 1.8;
height: 38px;
display: list-item;
overflow: hidden;
padding: 0 0 0 10px;
background: #000000;
float: none;
background-color: #000000;
}
#access ul ul li a:hover {
line-height: 1.8;
background: #000000;
float: none;
overflow: hidden;
background-color: #000000;
}

/* =Content
-------------------------------------------------------------- */