Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
You can edit, remove or generally modify any code that is released under GPL.
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
If it’s code from the WordPress repository here then yes. All of the code here is GPL and you are free to do with it as you like provided you don’t try and restrict others from doing the same.
That’s a little abbreviated and not a complete explanation but you get the idea I hope. 😉
If the code came from somewhere else then the answer is an unqualified “Maybe”. Where did you find that code and from which “free template”?
Edit: Doh! 2 minutes late!
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
provided you don’t try and restrict others from doing the same.
So if you use code released under GPL, you cannot re-release it under creative commons?
Thread Starter
op1001
(@op1001)
THis is just an example
I just went to the free templates right now.
on this site.
and here i picked this as the example ONLY..
Theme
Magazino..
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'magazino' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
</header><!-- .entry-header -->
<?php if ( is_search() ) : // Only display Excerpts for search pages ?>
<div class="entry-summary post-content">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content post_content">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'magazino' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'magazino' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>
<footer class="entry-meta">
<?php magazino_posted_on(); ?>
<?php if ( comments_open() || ( '0' != get_comments_number() && ! comments_open() ) ) : ?>
<span class="sep"> | </span>
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'magazino' ), __( '1 Comment', 'magazino' ), __( '% Comments', 'magazino' ) ); ?></span>
<?php endif; ?>
<?php edit_post_link( __( 'Edit', 'magazino' ), '<span class="sep"> | </span><span class="edit-link">', '</span>' ); ?>
</footer><!-- #entry-meta -->
</article><!-- #post-<?php the_ID(); ?> -->
Could you use this code in your own theme?
that is what I meant..
again this is just an example..
and since i am here.. what is the purpose of adding the theme name in this line
<?php edit_post_link( __( 'Edit', 'magazino' ),
? I’ve seen it in a lot of code where they add extra ‘name template’
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Could you use this code in your own theme?
Yes, you’re pretty much guaranteed not to have licensing issues when using code from a theme distributed on WordPress.org.
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
So if you use code released under GPL, you cannot re-release it under creative commons?
The GPL goes with the code so if you create something using GPL’ed code then that code you have created (derived from) is GPL’ed too.
and since i am here.. what is the purpose of adding the theme name in this line
<?php edit_post_link( __( ‘Edit’, ‘magazino’ ),
The theme name in that line denotes the text domain for internationalization http://codex.wordpress.org/I18n_for_WordPress_Developers