First create a static block and call phtml from static block
The code of .phtml file
call in a phtml file in static block
{{block type="core/template" template="newsletter/unsci.phtml"
name="newsletterall" }}
Create a phtml in unsci.phtml under app/design/frontend/yourpackage/youtemplate/newsletter
Call a static block like the code is below-
If you want only to unsubscribe then you should add below code in phtml file
<?php $subscriber = Mage::getModel('newsletter/subscriber')
->loadByEmail("dev.amit.bera@gmail.com")
if( $subscriber->getId()){
$unscibeurl=Mage::helper('newsletter')->getUnsubscribeUrl($subscriber); ?>
<a href="<?php echo echo $unscibeurl; ?>">Un subcribe</a>
<?php } ?>
Call static block in anywhere using below code
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId($indenfirename)->toHtml(); ?>